manual: fix typos in the pattern chapter
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
2
3         * manual/pattern.texi: Fix typos & grammar errors.
4
5 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
6
7         * manual/search.texi: Fix typos & grammar errors.
8
9 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
10
11         * manual/message.texi: Fix typos & grammar errors.
12
13 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14
15         * manual/contrib.texi: Fix spelling typos.
16         * manual/crypt.texi: Likewise.
17         * manual/filesys.texi: Likewise.
18         * manual/locale.texi: Likewise.
19         * manual/message.texi: Likewise.
20         * manual/nss.texi: Likewise.
21         * manual/string.texi: Likewise.
22
23 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
24
25         * manual/locale.texi: Fix typos & grammar errors.
26
27 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
28
29         * manual/charset.texi: Fix typos & grammar errors.
30
31 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
32
33         * manual/string.texi: Fix typos.
34
35 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
36
37         * manual/ctype.texi: Fix typos.
38
39 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
40
41         * manual/memory.texi: Fix various typos & grammar errors.
42
43 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
44
45         [BZ #20255]
46         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
47         * math/libm-test.inc (fdim_test_data): Add another test.
48
49         [BZ #6796]
50         [BZ #20255]
51         [BZ #20256]
52         * math/s_fdim.c: Include <math_private.h>.
53         (__fdim): Use math_narrow_eval on result.
54         * math/s_fdimf.c: Include <math_private.h>.
55         (__fdimf): Use math_narrow_eval on result.
56         * sysdeps/i386/fpu/s_fdim.S: Remove file.
57         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
58         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
59         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
60         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
61         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
62         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
63         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
64         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
65         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
66         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
67         * math/libm-test.inc (fdim_test_data): Expect errno setting on
68         overflow.  Add sNaN tests.
69
70         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
71         fpclassify.
72         * math/s_fdimf.c (__fdimf): Likewise.
73         * math/s_fdiml.c (__fdiml): Likewise.
74
75 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
76
77         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
78         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
79         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
80         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
81         ifunc'ed strcasecmp/strncasecmp.
82         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
83         [EALIGN]: Removed.
84         [END]: Likewise.
85         [__strcasecmp]: Define instead of the above to control symbol name.
86         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
87         for __strcasecmp_power8.
88         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
89         for __strncasecmp_power8.
90         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
91         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
92         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
93         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
94         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
95         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
96
97 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
98
99         [BZ #20252]
100         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
101         arguments when second argument is a NaN.
102         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
103         qNaN tests.
104
105         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
106         (conj_test_data): Likewise.
107         (copysign_test_data): Likewise.
108         (creal_test_data): Likewise.
109         (fma_test_data): Likewise.
110         (fmod_test_data): Likewise.
111
112         [BZ #20250]
113         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
114         itself.
115         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
116         zero input to itself.
117         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
118         Likewise.
119         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
120         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
121         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
122         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
123         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
124
125 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
126
127         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
128         * nptl/tst-cancel4-common.c: New file.
129         * nptl/tst-cancel4-common.h: Likewise.
130         * nptl/tst-cancel4.c: Move common definitions to
131         tst-cancel4-common.{c,h} file.
132         * nptl/tst-cancel4_1.c: New test.
133         * nptl/tst-cancel4_2.c: New test.
134
135 2016-06-13  Florian Weimer  <fweimer@redhat.com>
136
137         [BZ #20248]
138         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
139         (write_message): New function.
140         (stackoverflow_handler): Call it instead of printf, to avoid
141         excessive stack usage by printf.
142         (do_test): Restore SIGSEGV, SIGBUS default handlers.
143
144 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
145
146         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
147         (prio_inherit_missing): Remove define.
148         * sysdeps/unix/sysv/linux/arm/kernel-features.h
149         (__ASSUME_FUTEX_LOCK_PI): Likewise.
150         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
151         Likewise.
152         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
153         (__ASSUME_FUTEX_LOCK_PI): Likewise.
154         * sysdeps/unix/sysv/linux/mips/kernel-features.h
155         (__ASSUME_FUTEX_LOCK_PI): Likewise.
156         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
157         (__ASSUME_FUTEX_LOCK_PI): Likewise.
158
159 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
160
161         [BZ #19670]
162         [BZ #19672]
163
164         * io/test-lfs.c (do_prepare): Use xmalloc.
165         * io/tst-fcntl.c (do_prepare): Likewise.
166         * libio/tst-fopenloc.c (do_bz17916): Likewise.
167         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
168         * login/tst-utmp.c (do_prepare): Likewise.
169         * posix/tst-exec.c (do_prepare): Likewise.
170         * posix/tst-pathconf.c (prepare): Likewise.
171         * posix/tst-spawn.c (do_prepare): Likewise.
172         * posix/tst-truncate.c (do_prepare): Likewise.
173         * rt/tst-aio.c (do_prepare): Likewise.
174         * rt/tst-aio64.c (do_prepare): Likewise.
175
176 2016-06-11  Florian Weimer  <fweimer@redhat.com>
177
178         [BZ #20237]
179         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
180         (get*ent): Set entidx to NULL during initialization.  If entidx is
181         NULL, start iteration from the beginning.
182
183 2016-06-11  Florian Weimer  <fweimer@redhat.com>
184
185         * malloc/malloc.c (musable): Return correct size for dumped fake
186         mmapped chunk.
187
188 2016-06-11  Florian Weimer  <fweimer@redhat.com>
189
190         [BZ #20222]
191         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
192         (_IO_cookie_write): Likewise.
193         (_IO_cookie_seek): Likewise.
194         (_IO_cookie_close): Likewise.
195         (_IO_old_cookie_seek): Likewise.
196         (set_callbacks): New function.
197         (_IO_cookie_init): Call set_callbacks to copy callbacks.
198
199 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
200
201         * locale/programs/localedef.c (oldstyle_tables): Remove.
202         * locale/programs/localedef.h (oldstyle_tables): Likewise.
203
204 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
205
206         [BZ #20240]
207         * math/Makefile (CFLAGS-s_modf.c): New variable.
208         (CFLAGS-s_modff.c): Likewise.
209         (CFLAGS-s_modfl.c): Likewise.
210         * math/libm-test.inc (modf_test_data): Add sNaN tests.
211
212 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
213
214         [BZ #20215]
215         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
216         [!__GNUC_PREREQ (3,2)]: Likewise.
217
218 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
219
220         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
221         (msghdr.msg_controllen): Likewise.
222         (cmsghdr.cmsg_len): Likewise.
223         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
224         ptw-oldsendmsg.
225         (CFLAGS-oldrecvmsg.c): Remove rule.
226         (CFLAGS-oldsendmsg.c): Likewise.
227         (CFLAGS-recvmsg.c): Add rule.
228         (CFLAGS-sendmsg.c): Likewise.
229         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
230         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
231         (CFLAGS-recvmsg.c): Remove rule.
232         (CFLAGS-sendmsg.c): Likewise.
233         (CFLAGS-oldrecvmsg.c): Likewise.
234         (CFLAGS-oldsendmsg.c): Likewise.
235         (CFLAGS-recvmmsg.c): Likewise.
236         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
237         to kernel defined interfaces.
238         (msghdr.msg_controllen): Likewise.
239         (cmsghdr.cmsg_len): Likewise.
240         (msghdr.__glibc_reserved1): Remove member.
241         (msghdr.__glibc_reserved2): Likewise.
242         (cmsghdr.__glibc_reserved1): Likewise.
243         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
244         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
245         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
246         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
247         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
248         version.
249         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
250         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
251         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
252         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
253         Remove recvmsg and sendmsg.
254         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
255         Likewise.
256         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
257         Likewise.
258         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
259         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
260         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
261         Likewise.
262         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
263         Likewise.
264         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
265         [libc] (GLIBC_2.24): Likewise.
266         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
267         Likewise.
268         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
269         Likewise.
270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
271         [libc] (GLIBC_2.24): Likewise.
272         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
273         Likewise.
274         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
275         Likewise.
276         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
277         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
278         Likewise.
279         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
280         Likewise.
281         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
282         Likewise.
283         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
284         Likewise.
285         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
286         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
287         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
288         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
289         version for {recv,send,recm,sendm}msg.
290         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
291         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
292         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
293         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
294         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
295         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
296         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
297         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
298         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
299         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
300         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
301         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
303         Likewise.
304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
305         Likewise.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
308         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
309         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
310         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
311         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
312         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
313         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
315         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
316         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
317         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
318         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
319
320 2016-06-10  Florian Weimer  <fweimer@redhat.com>
321
322         [BZ #19564]
323         Remove __malloc_initialize_hook from the API.
324         * malloc/malloc.h (__malloc_initialize_hook): Remove.
325         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
326         #pragma GCC poison.
327         * malloc/malloc-hooks.h: New file.
328         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
329         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
330         (old__malloc_initialize_hook): Rename from
331         __malloc_initialize_hook to evade poisoning.  Turn into compat
332         symbol.
333         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
334         __malloc_initialize_hook.
335         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
336         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
337         * manual/memory.texi (Hooks for Malloc): Remove
338         __malloc_initialize_hook.  Adjust hook example.
339
340 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
341
342         [BZ #20235]
343         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
344         itself.
345         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
346         * math/libm-test.inc (log2_test_data): Add sNaN tests.
347
348         [BZ #20234]
349         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
350         infinity or NaN input to itself.
351
352         [BZ #20233]
353         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
354         to itself.
355
356         [BZ #20232]
357         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
358         itself.
359
360 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
361
362         * sysdeps/x86_64/start.S (_start): Always indirect branch to
363         __libc_start_main via GOT.
364
365 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
366
367         * sysdeps/x86_64/memcopy.h: New file.
368         * sysdeps/x86_64/wordcopy.c: Likewise.
369
370 2016-06-09  Florian Weimer  <fweimer@redhat.com>
371
372         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
373         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
374         <cstdlib>.
375         (optimization_barrier): New.
376         (do_test): Use it.  Call quick_exit in the global namespace.
377         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
378         instead of <cstdlib>, <thread>.
379         (optimization_barrier): New.
380         (non_main_thread): Adjust declaration.  Call optimization_barrier.
381         Call quick_exit in the global namespace.
382         (do_test): Call optimization_barrier.  Use pthread_create,
383         pthread_join instead of std::thread.
384
385 2016-06-09  Andreas Schwab  <schwab@suse.de>
386
387         [BZ #19755]
388         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
389         new entries in auto-propagate mode.
390         * nscd/grpcache.c (cache_addgr): Likewise.
391
392 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
393
394         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
395         New functions.
396         (add_temp_file): Use them.
397
398 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
399
400         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
401
402 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
403
404         [BZ #20229]
405         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
406         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
407         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
408
409         [BZ #20228]
410         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
411         itself.
412         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
413         * math/libm-test.inc (log10_test_data): Add sNaN tests.
414
415         [BZ #20227]
416         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
417         itself.
418         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
419         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
420         * math/libm-test.inc (log_test_data): Add sNaN tests.
421
422         [BZ #20226]
423         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
424         itself.
425         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
426         * math/libm-test.inc (exp_test_data): Add sNaN tests.
427         (exp10_test_data): Likewise.
428         (expm1_test_data): Likewise.
429
430         [BZ #20225]
431         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
432         itself.
433         * math/s_ldexpf.c (__ldexpf): Likewise.
434         * math/s_ldexpl.c (__ldexpl): Likewise.
435         * math/w_scalbln.c (__w_scalbln): Likewise.
436         * math/w_scalblnf.c (__w_scalblnf): Likewise.
437         * math/w_scalblnl.c (__w_scalblnl): Likewise.
438         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
439         (scalbln_test_data): Likewise.
440
441         [BZ #20224]
442         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
443         argument to itself.
444         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
445
446 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
447
448         [BZ #19776]
449         * sysdeps/x86_64/memcpy.S: Make it dummy.
450         * sysdeps/x86_64/mempcpy.S: Likewise.
451         * sysdeps/x86_64/memmove.S: New file.
452         * sysdeps/x86_64/memmove_chk.S: Likewise.
453         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
454         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
455         * sysdeps/x86_64/memmove.c: Removed.
456         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
457         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
458         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
459         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
460         Likewise.
461         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
462         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
463         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
464         memcpy-sse2-unaligned, memmove-avx-unaligned,
465         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
466         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
467         (__libc_ifunc_impl_list): Replace
468         __memmove_chk_avx512_unaligned_2 with
469         __memmove_chk_avx512_unaligned.  Remove
470         __memmove_chk_avx_unaligned_2.  Replace
471         __memmove_chk_sse2_unaligned_2 with
472         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
473         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
474         with __memmove_avx512_unaligned.  Replace
475         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
476         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
477         with __memcpy_chk_avx512_unaligned.  Remove
478         __memcpy_chk_avx_unaligned_2.  Replace
479         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
480         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
481         Replace __memcpy_avx512_unaligned_2 with
482         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
483         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
484         with __mempcpy_chk_avx512_unaligned.  Remove
485         __mempcpy_chk_avx_unaligned_2.  Replace
486         __mempcpy_chk_sse2_unaligned_2 with
487         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
488         Replace __mempcpy_avx512_unaligned_2 with
489         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
490         Replace __mempcpy_sse2_unaligned_2 with
491         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
492         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
493         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
494         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
495         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
496         (ENTRY): Removed.
497         (END): Likewise.
498         (ENTRY_CHK): Likewise.
499         (libc_hidden_builtin_def): Likewise.
500         Don't include ../memcpy.S.
501         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
502         __memcpy_chk_avx512_unaligned_erms and
503         __memcpy_chk_avx512_unaligned.  Use
504         __memcpy_chk_avx_unaligned_erms and
505         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
506         Default to __memcpy_chk_sse2_unaligned.
507         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
508         Change function suffix from unaligned_2 to unaligned.
509         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
510         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
511         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
512         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
513         (ENTRY): Removed.
514         (END): Likewise.
515         (ENTRY_CHK): Likewise.
516         (libc_hidden_builtin_def): Likewise.
517         Don't include ../mempcpy.S.
518         (mempcpy): New.  Add a weak alias.
519         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
520         __mempcpy_chk_avx512_unaligned_erms and
521         __mempcpy_chk_avx512_unaligned.  Use
522         __mempcpy_chk_avx_unaligned_erms and
523         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
524         Default to __mempcpy_chk_sse2_unaligned.
525
526 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
527
528         [BZ #19881]
529         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
530         into ...
531         * sysdeps/x86_64/memset.S: This.
532         (__bzero): Removed.
533         (__memset_tail): Likewise.
534         (__memset_chk): Likewise.
535         (memset): Likewise.
536         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
537         defined.
538         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
539         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
540         (__memset_zero_constant_len_parameter): Check SHARED instead of
541         PIC.
542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
543         memset-avx2 and memset-sse2-unaligned-erms.
544         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
545         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
546         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
547         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
548         (__bzero): Enabled.
549         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
550         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
551         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
552         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
553         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
554         (memset): Removed.
555         (__memset_chk): Likewise.
556         (MEMSET_SYMBOL): New.
557         (libc_hidden_builtin_def): Replace __memset_sse2 with
558         __memset_sse2_unaligned.
559         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
560         __memset_chk_sse2 and __memset_chk_avx2 with
561         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
562         Use __memset_chk_sse2_unaligned_erms or
563         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
564         __memset_chk_avx512_unaligned_erms and
565         __memset_chk_avx512_unaligned.
566
567 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
568
569         * math/gen-auto-libm-test.c (fp_format_desc): remove
570         suffix member.
571         (output_generic_value): Remove usage of suffix member,
572         and the resulting unuse of the fp_format argument.
573         (output_for_one_input_case): Remove unused fp_format
574         parameter.
575
576         * math/auto-libm-test-out: Regenerate.
577
578         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
579         usage with TEST_COND_ibm128.
580         (TEST_COND_flt_32): Remove.
581         (TEST_COND_dbl_64): Remove.
582         (TEST_COND_ldbl_96_intel): Remove.
583         (TEST_COND_ldbl_96_m68k): Remove.
584         (TEST_COND_ldbl_128): Remove.
585
586 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
587
588         * auto-libm-test-in:
589         Replace flt-32 usage with binary32.
590         Replace dbl-64 usage with binary64.
591         Replace ldbl-intel-96 usage with intel96.
592         Replace ldbl-m68k-96 usage with m68k96.
593         Replace ldbl-128ibm usage with ibm128.
594         Replace ldbl-128 usage with binary128.
595
596         * auto-libm-test-out: Regenerate.
597
598 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
599
600         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
601         (parse_ulps): Dynamically generate type name matching
602         string from all_floats.
603         (get_ulps): Generate the ulps as an array instead.
604         (output_ulps): Dynamically compose the type based
605         on the number of supported formats, and print
606         the indices as type specific helper macros.
607
608         * math/libm-test.inc: Remove comment about CHOOSE.
609         (ulp_data): Generate the type in libm-test-ulps.h.
610         (ULP_IDX): New macro.
611         (find_ulps): Update usage of max_ulp.
612
613         * math/test-double-vlen2.h (CHOOSE): Remove.
614         * math/test-double-vlen4.h (CHOOSE): Likewise.
615         * math/test-double-vlen8.h (CHOOSE): Likewise.
616         * math/test-float.c (CHOOSE): Likewise.
617         * math/test-float-finite.c (CHOOSE): Likewise.
618         * math/test-double.c (CHOOSE): Likewise.
619         * math/test-double-finite.c (CHOOSE): Likewise.
620         * math/test-idouble.c (CHOOSE): Likewise.
621         * math/test-ifloat.c (CHOOSE): Likewise.
622         * math/test-ildoubl.c (CHOOSE): Likewise.
623         * math/test-ldouble-finite.c (CHOOSE): Likewise.
624         * math/test-ldouble.c (CHOOSE): Likewise.
625
626         * math/test-float.h (TEST_FLOAT): Remove.
627         * math/test-double.h (TEST_DOUBLE): Likewise.
628         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
629
630 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
631
632         * math/gen-libm-test.pl: (apply_lit): New subroutine.
633         (parse_args): Strip C suffix from floating point literals
634         typed with 'f' and wrap them with LIT().
635
636         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
637         (test_ff_f_data_nexttoward): Rename to
638         (test_fj_f_data): New struct.
639         (nexttoward_test_data): Relabel tests as
640         TEST_fj_f instead of TEST_ff_f.
641
642 2016-06-08  Florian Weimer  <fweimer@redhat.com>
643
644         Emacs bug 23726.
645         * malloc/malloc.c (dumped_main_arena_start): Update comment.
646         (__libc_realloc): Correct size computation for dumped fake mmapped
647         chunks.
648
649 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
650
651         [BZ #20219]
652         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
653         to itself.
654         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
655
656         [BZ #20218]
657         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
658         to itself.
659         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
660
661 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
662
663         [BZ #20195]
664         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
665         check to ...
666         (init_cpu_features): Here.
667
668 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
669
670         [BZ #20214]
671         * sysdeps/unix/sysv/linux/bits/in.h
672         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
673          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
674         Define to 1.
675         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
676          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
677         Define to 0.
678         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
679         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
680
681 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
682
683         [BZ #20198]
684         * stdlib/Makefile (tests): Add tst-quick_exit, and
685         tst-thread-quick_exit.
686         [ifeq ($(have-cxx-thread_local),yes)]
687         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
688         (CFLAGS-tst-thread-quick_exit.o): Likewise.
689         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
690         (LDLIBS-tst-thread-quick_exit): Likewise.
691         [ifneq ($(have-cxx-thread_local),yes)]
692         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
693         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
694         If run_dtors is true call __call_tls_dtors.
695         (exit): Call __run_exit_handlers with run_dtors set to true.
696         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
697         definition.
698         * stdlib/quick_exit.c (quick_exit): Remove function.
699         (__new_quick_exit): New function.
700         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
701         function.
702         * stdlib/tst-quick_exit.cc: New file.
703         * stdlib/tst-thread-quick_exit.cc: New file.
704         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
705         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
706         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
707         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
708         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
709         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
710         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
711         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
712         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
713         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
714         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
715         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
716         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
717         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
718         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
719         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
724         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
725         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
726         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
727         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
728         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
730         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
731         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
732         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
733         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
734
735 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
736
737         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
738         a typo in comments.
739
740 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
741
742         [BZ #20213]
743         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
744         argument to itself.
745         * math/libm-test.inc (asin_test_data): Add sNaN tests.
746
747 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
748
749         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
750         required flags.
751         (CFLAGS-pwritev64.c): Likewise.
752         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
753         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
754         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
755         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
756         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
757         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
758         syscall from auto-generation.
759         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
760         [WORDSIZE == 64] (pwritev64): Remove macro.
761         [!PWRITEV] (PWRITEV): Likewise.
762         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
763         [!PWRITEV] (PWRITE): Likewise.
764         [!PWRITEV] (OFF_T): Likewise.
765         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
766         (LO_HI_LONG): Remove macro.
767         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
768         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
769         (PWRITEV): Remove macro.
770         (PWRITEV_REPLACEMENTE): Likewise.
771         (PWRITE): Likewise.
772         (OFF_T): Likewise.
773         (pwritev64): New function.
774         * nptl/tst-cancel4.c (tf_writev): Add test.
775
776         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
777         required flags.
778         (CFLAGS-preadv64.c): Likewise.
779         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
780         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
781         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
782         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
783         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
784         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
785         syscall from auto-generation.
786         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
787         [WORDSIZE == 64] (preadv64): Remove macro.
788         [!PREADV] (PREADV): Likewise.
789         [!PREADV] (PREADV_REPLACEMENT): Likewise.
790         [!PREADV] (PREAD): Likewise.
791         [!PREADV] (OFF_T): Likewise.
792         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
793         (LO_HI_LONG): Remove macro.
794         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
795         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
796         (PREADV): Remove macro.
797         (PREADV_REPLACEMENTE): Likewise.
798         (PREAD): Likewise.
799         (OFF_T): Likewise.
800         (preadv64): New function.
801         * nptl/tst-cancel4.c (tf_preadv): Add test.
802
803 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
804
805         [BZ #20212]
806         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
807         argument to itself.
808         * math/libm-test.inc (acos_test_data): Add sNaN tests.
809
810 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
811
812         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
813         New symbol defined as libc_hidden_def.
814         (strcasestr): Became a weak alias to __strcasestr.
815         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
816         according to multi-arch support.  Move __stpncpy hidden
817         definition from here to...
818         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
819         symbol stpncpy.
820         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
821         libc_hidden_builtin_def.
822         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
823         memset symbol to use when multi-arch support is available.
824
825 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
826
827         * dlfcn/tst-rec-dlopen.c: Include string.h.
828
829 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
830
831         * manual/install.texi: Remove mention of --without-tls
832         * INSTALL: Regenerate.
833
834 2016-06-05  Florian Weimer  <fweimer@redhat.com>
835
836         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
837         Remove.
838         (call_function, interposed_malloc_called): New variables.
839         (malloc): New function.
840         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
841         and clear call_function as needed.
842
843 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
844
845         * include/wchar.h (__wmemset): Use __typeof.
846
847 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
848
849         * include/wchar.h (__wmemset): Declare function without typeof.
850
851 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
852
853         [BZ #20205]
854         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
855         exponent when incrementing negative subnormal with low mantissa
856         word zero.
857         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
858         Add another test.
859
860 2016-06-03  Florian Weimer  <fweimer@redhat.com>
861
862         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
863         __wmemset instead of wmemset.
864
865 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
866
867         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
868         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
869         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
870         __USE_KERNEL_IPV6_DEFS to 0.
871         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
872         Update comment.
873
874 2016-06-01  Florian Weimer  <fweimer@redhat.com>
875
876         [BZ #19861]
877         Do not use IFUNC resolver with potentially unrelocated symbol.
878         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
879         (DEFINE_FORK): Remove macro and inline definition.
880         (fork_alias): Renamed from fork_ifunc.
881         (__fork_alias): Renamed from __fork_ifunc.
882
883 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
884
885         [BZ 19653]
886         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
887         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
888
889 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
890
891         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
892         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
893         i386-linux-gnu).
894         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
895         Set to no.
896         * sysdeps/mach/hurd/configure: Refresh.
897
898 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
899
900         [BZ #20178]
901         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
902         on failure instead of exit.
903
904 2016-05-30  Roland McGrath  <roland@hack.frob.com>
905
906         [BZ #3629]
907         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
908         of POSIX.1-2008.
909
910 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
911
912         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
913           Use PLT entry for calling _hurd_self_sigstate.
914
915 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
916
917         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
918         available logical processors with SMT level type sharing L2
919         cache for Intel processors.
920
921 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
922
923         [BZ #20160]
924         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
925         argument to itself before returning the result.
926         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
927         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
928         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
929         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
930         Likewise.
931         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
932         Likewise.
933         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
934         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
935         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
936         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
937         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
938         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
939
940         [BZ #20160]
941         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
942         argument to itself before returning the result.
943         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
944         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
945         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
946         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
947         Likewise.
948         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
949         Likewise.
950         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
951         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
952         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
953         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
954         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
955         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
956
957 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
958
959         * libm-test.inc: Replace usage of M_El with
960         (lit_e): New macro.
961
962 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
963
964         * libm-test.inc: Replace usage of M_PI_4l with
965         (lit_pi_4_d): New macro.
966
967 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
968
969         * libm-test.inc: Replace usage of M_PIl with
970         (lit_pi): New macro.
971
972 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
973
974         * libm-test.inc: Replace usage of M_PI2l with
975         (lit_pi_2_d): New macro.
976
977         * math/test-double.h (LITM): New macro.
978         * math/test-float.h (LITM): Likewise.
979         * math/test-ldouble.h (LITM): Likewise.
980
981 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
982
983         * libm-test.inc (M_PI_34l): Rename to
984         (lit_pi_3_m_4_d): New Macro.
985         (M_PI_34_LOG10El): Rename to
986         (lit_pi_3_m_4_ln10_m_d): New Macro.
987         (M_PI2_LOG10El): Rename to
988         (lit_pi_2_ln10_m_d):  New Macro.
989         (M_PI4_LOG10El): Rename to
990         (lit_pi_4_ln10_m_d):  New Macro.
991         (M_PI_LOG10El): Rename to
992         (lit_pi_ln10_d):  New Macro.
993
994 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
995
996         [BZ #20157]
997         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
998         determine whether to negate low half if [_ARCH_PPCGR], and integer
999         comparison otherwise.
1000         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1001         determine whether to negate low half.
1002
1003         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1004         (NO_TEST_INLINE_DOUBLE): Likewise.
1005         (TEST_COND_x86_64): Likewise.
1006         (TEST_COND_x86): Likewise.
1007         (M_PI_6l): Likewise.
1008
1009 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1010
1011         * math/libm-test.inc:
1012         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1013         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1014         (TEST_LDOUBLE): Update usage to evaluate as true if
1015         the guarded tests match the property being tested.
1016         (LDBL_MAX_EXP): Change to MAX_EXP.
1017         (LDBL_MIN_EXP): Change to MIN_EXP.
1018         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1019         nexttoward tests.
1020
1021 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1022
1023         * math/libm-test.inc:
1024         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1025         (TYPE_MIN): Likewise.
1026         (TYPE_TRUE_MIN): Likewise.
1027         (TYPE_MAX): Likewise.
1028         (MIN_EXP): Likewise.
1029         (MAX_EXP): Likewise.
1030         (MANT_DIG): Likewise.
1031
1032         (FSTR_MAX): New macro.
1033         (__CONCATX): Likewise.
1034         (QTYPE_STR): Likewise.
1035         (TEST_COND_binary32): Likewise.
1036         (TEST_COND_binary64): Likewise.
1037         (TEST_COND_binary128): Likewise.
1038         (TEST_COND_ibm128): Likewise.
1039         (TEST_COND_intel96): Likewise.
1040         (TEST_COND_m68k96): Likewise.
1041
1042         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1043         (TEST_COND_dbl_64): Likewise.
1044         (TEST_COND_ldbl_96_intel): Likewise.
1045         (TEST_COND_ldbl_96_m68k): Likewise.
1046         (TEST_COND_ldbl_128): Likewise.
1047         (TEST_COND_ldbl_128ibm): Likewise.
1048
1049         (plus_zero): Redefine using LIT macro.
1050         (minus_zero): Likewise.
1051         (plus_infty): Redefine as (INF).
1052         (minux_infty): Redefine as (-INF).
1053         (max_value): Redefine as TYPE_MAX.
1054         (min_value): Redefine as TYPE_MIN.
1055         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1056
1057         (print_float): Refactor to use snprintf to convert FLOAT values
1058         to string. This brings it closer to dropin replacement of strtof
1059         for the TS 18661 defined types.
1060         (update_stats): Likewise.
1061         (print_complex_function_ulps): Likewise.
1062         (print_max_error): Likewise.
1063         (print_complex_max_error): Likewise.
1064         (check_float_internal): Likewise.
1065
1066         * math/test-float.h (PREFIX): New macro.
1067         (LIT): Likewise.
1068         (TYPE_STR): Likewise.
1069         (FTOSTR): Likewise.
1070
1071         * math/test-double.h (PREFIX): New macro.
1072         (LIT): Likewise.
1073         (TYPE_STR): Likewise.
1074         (FTOSTR): Likewise.
1075
1076         * math/test-ldouble.h (PREFIX): New macro.
1077         (LIT): Likewise.
1078         (TYPE_STR): Likewise.
1079         (FTOSTR): Likewise.
1080
1081 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1082
1083         [BZ #20156]
1084         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1085         to itself when zero or not finite.
1086         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1087         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1088         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1089         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1090
1091 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1092
1093         [BZ #20153]
1094         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1095         x * x + x for infinities and NaNs.
1096
1097         [BZ #20151]
1098         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1099         argument to itself before returning result.
1100         (__ieee754_y0l): Likewise.
1101         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1102         (__ieee754_y1l).
1103
1104         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1105         (atan_test_data): Likewise.
1106         (ceil_test_data): Likewise.
1107         (cos_test_data): Likewise.
1108         (cosh_test_data): Likewise.
1109         (erf_test_data): Likewise.
1110         (exp2_test_data): Likewise.
1111         (fabs_test_data): Likewise.
1112         (floor_test_data): Likewise.
1113         (ilogb_test_data): Likewise.
1114         (j0_test_data): Likewise.
1115         (j1_test_data): Likewise.
1116         (jn_test_data): Likewise.
1117         (lgamma_test_data): Likewise.
1118         (lrint_test_data): Likewise.
1119         (llrint_test_data): Likewise.
1120         (logb_test_data): Likewise.
1121         (lround_test_data): Likewise.
1122         (llround_test_data): Likewise.
1123         (nearbyint_test_data): Likewise.
1124         (rint_test_data): Likewise.
1125         (round_test_data): Likewise.
1126         (sin_test_data): Likewise.
1127         (sincos_test_data): Likewise.
1128         (sinh_test_data): Likewise.
1129         (sqrt_test_data): Likewise.
1130         (tan_test_data): Likewise.
1131         (tanh_test_data): Likewise.
1132         (tgamma_test_data): Likewise.
1133         (trunc_test_data): Likewise.
1134         (y0_test_data): Likewise.
1135         (y1_test_data): Likewise.
1136         (yn_test_data): Likewise.
1137
1138         * math/libm-test.inc: Update comment about NaN testing.
1139         (TEST_SNAN): New macro.
1140         (snan_value): Likewise.
1141         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1142         (fpclassify_test_data): Add sNaN tests.
1143         (isfinite_test_data): Likewise.
1144         (isinf_test_data): Likewise.
1145         (isnan_test_data): Likewise.
1146         (isnormal_test_data): Likewise.
1147         (issignaling_test_data): Likewise.
1148         (signbit_test_data): Likewise.
1149         * math/gen-libm-test.pl (%beautify): Add snan_value.
1150         (show_exceptions): Add argument $test_snan.
1151         (parse_args): Handle snan_value as non-finite.  Update call to
1152         show_exceptions.
1153         * math/Makefile (libm-test-no-inline-cflags): Add
1154         -fsignaling-nans.
1155
1156 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1157
1158         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1159         (CFLAGS-oldsendmsg.c): Add rule.
1160         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1161         Correct recvmsg symbol name.
1162         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1163         Likewise.
1164
1165 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1166
1167         * sysdeps/unix/sysv/linux/Makefile
1168         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1169         oldsendmmsg.
1170         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1171         sendmmsg.
1172         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1173         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1174         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1175         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1177         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1178         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1180         Likewise.
1181         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1182         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1183         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1184         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1185         iovlen and controllen fields to adjust to POSIX specification.
1186         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1187
1188         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1189         and change to correct expected type.
1190         (msghdr.msg_controllen): Likewise.
1191         (cmsghdr.cmsg_len): Likewise.
1192         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1193         expected POSIX assumption about the size.
1194         (msghdr.msg_controllen): Likewise.
1195         (msghdr.__glibc_reserved1): Likewise.
1196         (msghdr.__glibc_reserved2): Likewise.
1197         (cmsghdr.cmsg_len): Likewise.
1198         (cmsghdr.__glibc_reserved1): Likewise.
1199         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1200         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1201         (CFLAGS-sendmsg.c): Remove rule.
1202         (CFLAGS-recvmsg.c): Likewise.
1203         (CFLAGS-oldsendmsg.c): Add rule.
1204         (CFLAGS-oldrecvmsg.c): Likewise.
1205         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1206         recvmsg and sendmsg.
1207         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1208         Likewise.
1209         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1210         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1211         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1212         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1213         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1214         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1215         Likewise.
1216         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1217         Likewise.
1218         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1219         Likewise.
1220         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1221         Likewise.
1222         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1223         Likewise.
1224         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1225         Likewise.
1226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1227         (GLIBC_2.24): Likewise.
1228         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1229         Likewise.
1230         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1231         Likewise.
1232         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1233         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1234         Likewise.
1235         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1236         Likewise.
1237         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1238         Likewise.
1239         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1240         (GLIBC_2.24): Likewise.
1241         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1242         Likewise.
1243         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1244         Likewise.
1245         * sysdeps/unix/sysv/linux/Makefile
1246         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1247         (CFLAGS-sendmsg.c): Add rule.
1248         (CFLAGS-recvmsg.c): Likewise.
1249         (CFLAGS-oldsendmsg.c): Likewise.
1250         (CFLAGS-oldrecvmsg.c): Likewise.
1251         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1252         initialization.
1253         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1254         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1255         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1256         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1257         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1258         iovlen and controllen fields to adjust to POSIX specification.
1259         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1260         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1261         added recvmsg and sendmsg.
1262         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1263         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1264         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1265         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1266         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1267         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1268         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1269         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1270         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1271         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1272         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1273         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1275         Likewise.
1276         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1278         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1279         Likewise.
1280         Likewise.
1281         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1282         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1283         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1284         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1285         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1286         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1288         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1290         Likewise.
1291         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1292         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1293
1294         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1295         from auto-generation.
1296         (sendmsg): Likewise.
1297         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1298         (sendmsg): Likewise.
1299         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1300         (sendmsg): Likewise.
1301         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1302         (sendmsg): Likewise.
1303         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1304         (sendmsg): Likewise.
1305         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1306         (sendmsg): Likewise.
1307         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1308         Likewise.
1309         (sendmsg): Likewise.
1310         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1311         (sendmsg): Likewise.
1312         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1313         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1314         Remove.
1315         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1316         Likewise.
1317         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1318         Undefine.
1319         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1320         Likewise.
1321         * sysdeps/unix/sysv/linux/kernel-features.h
1322         (__ASSUME_SENDMSG_SYSCALL): Define.
1323         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1324         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1325         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1326         Remove.
1327         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1328         Likewise.
1329         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1330         Undefine.
1331         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1332         Likewise.
1333         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1334         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1335         Remove.
1336         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1337         Likewise.
1338         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1339         Undefine.
1340         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1341         Likewise.
1342         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1343         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1344         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1345         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1346         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1347         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1348         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1349         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1350         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1351
1352 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1353
1354         * stdlib/gen-tst-strtod-round.c: Add backslash to
1355         compile command in comment.
1356         (printfp): Remove the literal suffix, and define an infinite
1357         value as INF to avoid expansion clash with INFINITY.
1358         (round_str): Remove the literal suffix.
1359         (round_for_all): Likewise, remove the now duplicate ldbl-64
1360         entry, and remove some magic constants.
1361
1362         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1363         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1364         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1365         (_CONCAT): New macro.
1366         (CONCAT): Likewise.
1367         (CHOOSE_ld): Likewise.
1368         (CHOOSE_f): Likewise.
1369         (CHOOSE_d): Likewise.
1370         (FTYPE_MEMBER): Likewise.
1371         (BOOL_MEMBER): Likewise.
1372         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1373         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1374         (_XNTRY): Likewise.
1375         (XNTRY): Likewise.
1376         (_ENTRY): Likewise.
1377         (ENTRY): Likewise.
1378         (test_exactness): Generate members via macro.
1379         (test_results): Likewise.
1380         (test): Update members.
1381         (TEST): Redefine using new macros.
1382         (INF): New macro.
1383         (fetestmodes): New structure.
1384         (do_test): Refactor to be type generic.
1385         (test_in_one_mode): Refactor duplicate code into
1386         (GEN_ONE_TEST): New macro.
1387
1388         * stdlib/tst-strtod-round-data.h: Regenerate.
1389
1390         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1391         Extend to pass additional arbitrary parameters to
1392         generators.
1393
1394 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1395
1396         [BZ #15479]
1397         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1398         floating-point state after first floating-point operation on
1399         input.  Restore full floating-point state instead of just rounding
1400         mode.
1401         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1402         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1403         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1404         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1405         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1406
1407         [BZ #15479]
1408         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1409         floating-point state after first floating-point operation on
1410         input.  Restore full floating-point state instead of just rounding
1411         mode.
1412         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1413         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1414         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1415         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1416         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1417
1418 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1419
1420         [BZ #19727]
1421         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1422         valid high surrogate.
1423         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1424         of an utf16 surrogate.
1425         * iconv/gconv_simple.c (BODY): Likewise.
1426         * iconvdata/bug-iconv12.c: New file.
1427         * iconvdata/Makefile (tests): Add bug-iconv12.
1428
1429 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1430
1431         [BZ #19726]
1432         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1433         outptrp in case of an illegal input.
1434         * iconv/tst-iconv6.c: New file.
1435         * iconv/Makefile (tests): Add tst-iconv6.
1436
1437 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1438
1439         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1440         an error in case of a value in range of an utf16 low surrogate.
1441
1442 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1443
1444         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1445         an error in case of a value in range of an utf16 low surrogate.
1446
1447 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1448
1449         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1450         Move to ...
1451         * sysdeps/s390/Makefile: ... here.
1452         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1453         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1454         (BRANCH_ON_COUNT): New define.
1455         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1456         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1457         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1458         run on s390-32, too.
1459         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1460         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1461         run on s390-32, too.
1462         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1463         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1464         run on s390-32, too.
1465
1466 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1467
1468         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1469         etf3eh or new vector loop-variant.
1470
1471 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1472
1473         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1474         etf3eh or new vector loop-variant.
1475
1476 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1477
1478         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1479         or new vector loop-variant.
1480
1481 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1482
1483         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1484         Rename to TR_LOOP and usage of tr instead of troo instruction.
1485
1486 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1487
1488         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1489         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1490
1491 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1492
1493         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1494         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1495         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1496         New override define.
1497         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1498
1499 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1500
1501         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1502         * sysdeps/s390/configure.ac: Add test for S390 vector register
1503         support in gcc.
1504         * sysdeps/s390/configure: Regenerated.
1505
1506 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1507
1508         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1509         Install file from $(objpfx)gconv-modules.
1510         ($(objpfx)gconv-modules): Concatenate architecture specific file
1511         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1512         * sysdeps/s390/gconv-modules: New file.
1513         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1514         Deleted.
1515         ($(objpfx)gconv-modules-s390): Deleted.
1516         (sysdeps-gconv-modules): New variable.
1517
1518 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1519
1520         [BZ #15479]
1521         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1522         of immediate operand to rounding instruction.
1523         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1524         Likewise.
1525         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1526         Likewise.
1527         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1528         Likewise.
1529
1530 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1531
1532         * math/libm-test.inc (MIN_EXP): Directly define as
1533         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1534
1535 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1536
1537         * math/libm-test.inc (MANT_DIG): Directly define as
1538         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1539
1540 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1541
1542         * stdlib/gen-tst-strtod-round.c (main):
1543           Change usage to more closely match the generated
1544           output.  Add usage and compilation instructions.
1545           (string_to_fp): Add and use FILE* parameter as
1546           output target.
1547           (print_fp): Likewise.
1548           (round_str): Likewise.
1549           (round_for_all): Likewise.
1550         * stdlib/tst-strtod-round.c (tests): Move into
1551         * stdlib/tst-strtod-round-data.h: New file.
1552
1553 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1554
1555         [BZ #15479]
1556         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1557         (__round): Do not force "inexact" exception.
1558         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1559         variable.
1560         (__round): Do not force "inexact" exception.
1561         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1562         (__roundf): Do not force "inexact" exception.
1563         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1564         (__roundl): Do not force "inexact" exception.
1565         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1566         (__roundl): Do not force "inexact" exception.
1567         * math/libm-test.inc (round_test_data): Do not allow spurious
1568         "inexact" exceptions.
1569
1570         [BZ #15479]
1571         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1572         exception in comment.
1573         (huge): Remove variable.
1574         (__floor): Do not force "inexact" exception.
1575         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1576         "inexact" exception in comment.
1577         (huge): Remove variable.
1578         (__floor): Do not force "inexact" exception.
1579         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1580         exception in comment.
1581         (huge): Remove variable.
1582         (__floorf): Do not force "inexact" exception.
1583         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1584         exception in comment.
1585         (huge): Remove variable.
1586         (__floorl): Do not force "inexact" exception.
1587
1588         [BZ #15479]
1589         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1590         exception in comment.
1591         (huge): Remove variable.
1592         (__ceil): Do not force "inexact" exception.
1593         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1594         "inexact" exception in comment.
1595         (huge): Remove variable.
1596         (__ceil): Do not force "inexact" exception.
1597         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1598         (__ceilf): Do not force "inexact" exception.
1599         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1600         exception in comment.
1601         (huge): Remove variable.
1602         (__ceill): Do not force "inexact" exception.
1603
1604 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1605
1606         * config.h.in (BIND_NOW): New.
1607         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1608         * configure: Regenerated.
1609         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1610         indirect branch via the GOT slot.
1611
1612 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1613
1614         [BZ #19765]
1615         * sysdeps/s390/mempcpy.S: New File.
1616         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1617         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1618         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1619         Add mempcpy variants.
1620         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1621         (memcpy): Adjust to be usable from mempcpy entry point.
1622         (__memcpy_mvcle): Likewise.
1623         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1624         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1625         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1626         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1627         (__memcpy_z10): Likewise.
1628         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1629
1630 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1631
1632         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1633         Remove __GI_ symbol.
1634         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1635         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1636         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1637         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1638         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1639         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1640
1641 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1642
1643         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1644         Use cghi instead of chi to compare 64bit value.
1645
1646 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1647
1648         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1649         Jump to 1MB check before executing mvc-loop.
1650
1651 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1652
1653         [BZ #6527]
1654         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1655         unconditionally.
1656         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1657
1658 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1659
1660         * stdlib/tst-strtod6.c (do_test): Use new type generic
1661         invocation of the test function.
1662         (test): Refactor into ...
1663         (TEST_STRTOD): New macro base function.
1664
1665 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1666
1667         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1668         (TEST_STRTOD): New macro.
1669         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1670
1671 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1672
1673         * stdlib/tst-strtod6.c (do_test): Use new type generic
1674         invocation of the test function.
1675         (test): Refactor into ...
1676         (TEST_STRTOD): New macro base function.
1677
1678 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1679
1680         CVE-2016-4429
1681         [BZ #20112]
1682         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1683         payload.
1684
1685 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1686
1687         [BZ #20111]
1688         * bits/sockaddr.h (_SS_SIZE): Define.
1689         * bits/socket.h (_SS_SIZE): Remove.
1690         (_SS_PADSIZE): Adjust to account for all padding.
1691         (struct sockaddr_storage): Update comment.  Avoid implicit
1692         padding.
1693         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1694         (_SS_PADSIZE): Adjust to account for all padding.
1695         (struct sockaddr_storage): Update comment.  Avoid implicit
1696         padding.
1697         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1698         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1699         (_SS_PADSIZE): Adjust to account for all padding.
1700         (struct sockaddr_storage): Update comment.  Avoid implicit
1701         padding.
1702         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1703         __SS_SIZE is 126 in this version.
1704         * inet/tst-sockaddr.c: New file.
1705         * inet/Makefile (tests): Add tst-sockaddr.c
1706         (tst-sockaddr.c): Compile with non-strict aliasing.
1707
1708 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1709
1710         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1711         [XPG3 || XPG4].
1712         (NL_ARGMAX): Also expect for [XPG3].
1713         (NL_LANGMAX): Likewise.
1714         (NL_MSGMAX): Likewise.
1715         (NL_NMAX): Likewise.
1716         (NL_SETMAX): Likewise.
1717         (NL_TEXTMAX): Likewise.
1718         (NZERO): Likewise.
1719         (TMP_MAX): Likewise.
1720         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1721         variable.
1722
1723         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1724         (PF_MAX): Update value.
1725         (AF_KCM): New macro.
1726         (SOL_NETBEUI): Likewise.
1727         (SOL_LLC): Likewise.
1728         (SOL_DCCP): Likewise.
1729         (SOL_NETLINK): Likewise.
1730         (SOL_TIPC): Likewise.
1731         (SOL_RXRPC): Likewise.
1732         (SOL_PPPOL2TP): Likewise.
1733         (SOL_BLUETOOTH): Likewise.
1734         (SOL_PNPIPE): Likewise.
1735         (SOL_RDS): Likewise.
1736         (SOL_IUCV): Likewise.
1737         (SOL_CAIF): Likewise.
1738         (SOL_ALG): Likewise.
1739         (SOL_NFC): Likewise.
1740         (SOL_KCM): Likewise.
1741         (MSG_BATCH): New enum value and macro.
1742
1743 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1744
1745         [BZ #18185]
1746         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1747         sharing L2 cache to 2 for Knights Landing.
1748
1749 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1750
1751         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1752         (FTW_DP): Do not expect for [XPG3 || XPG4].
1753         (FTW_SL): Do not expect for [XPG3].
1754         (FTW_SLN): Likewise.
1755         (FTW_PHYS): Likewise.
1756         (FTW_MOUNT): Likewise.
1757         (FTW_DEPTH): Likewise.
1758         (FTW_CHDIR): Likewise.
1759         (nftw): Likewise.
1760         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1761         variable.
1762
1763 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1764
1765         * manual/errno.texi: Fix various typos & grammar errors.
1766
1767 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1768
1769         * manual/intro.texi: Fix duplicated typo.
1770
1771 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1772
1773         [BZ #13304]
1774         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1775         <float.h>, <math_private.h> and <stdlib.h>.
1776         (add_split): New function.
1777         (mul_split): Likewise.
1778         (ext_val): New typedef.
1779         (store_ext_val): New function.
1780         (mul_ext_val): New function.
1781         (compare): New function.
1782         (add_split_ext): New function.
1783         (__fmal): After checking for Inf, NaN and zero, compute result as
1784         an exact sum of scaled double values in round-to-nearest before
1785         adding those up and adjusting for other rounding modes.
1786         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1787         tests of fma.
1788         * math/auto-libm-test-out: Regenerated.
1789
1790 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1791
1792         [BZ #20119]
1793         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1794         processor level type mask for CPUID with EAX == 11.
1795
1796 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1799         logical threads if the HTT bit is 0.
1800         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1801         (index_cpu_HTT): Likewise.
1802         (reg_HTT): Likewise.
1803
1804 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1805
1806         [BZ #20115]
1807         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1808         Remove alignments on jump targets.
1809
1810 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1811
1812         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1813         (getpwent): Likewise.
1814         (setpwent): Likewise.
1815         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1816         variable.
1817
1818         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1819         (remque): Likewise.
1820         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1821         variable.
1822
1823 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1824
1825         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1826         not being tested.
1827
1828 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1829
1830         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1831         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1832         call.
1833         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1834         (__condvar_cleanup1): Likewise.
1835
1836 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1837
1838         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1839         New
1840         (__pthread_unwind): Renamed to ...
1841         (PTHREAD_UNWIND): This.
1842         (__pthread_enable_asynccancel): Replace
1843         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1844
1845 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1846
1847         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1848         (CLONE_NEWCGROUP): New macro.
1849
1850         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
1851         (Q_GETNEXTQUOTA): New macro.
1852
1853 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1854
1855         [BZ #19907]
1856         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
1857         buffer updated by the previous run.
1858         * string/test-memcpy.c (do_one_test): Likewise.
1859         * benchtests/bench-memmove.c (do_one_test): Add a comment.
1860         * string/test-memmove.c (do_one_test): Likewise.
1861
1862 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
1863
1864         [BZ #20094]
1865         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
1866         not [__USE_XOPEN].
1867         (unlockpt): Likewise.
1868         (ptsname): Likewise.
1869         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
1870         variable.
1871
1872         [BZ #20076]
1873         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
1874         instead of [__USE_UNIX98].
1875         (S_ISSOCK): Likewise.
1876         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
1877         variable.
1878
1879         [BZ #20074]
1880         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
1881         [__USE_POSIX].
1882         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
1883         variable.
1884
1885         [BZ #20051]
1886         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
1887         (ttyslot): Do not declare.
1888         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
1889         (ttyslot): New prototype.
1890         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
1891         variable.
1892         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
1893
1894 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
1895
1896         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
1897
1898 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1899
1900         Fix race condition in tst-mallocfork2, use fewer resources.
1901         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
1902         to current process group.
1903         (signal_sender): Yield in the non-sleeping case.
1904
1905 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1906
1907         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
1908         (ecvt): Likewise.
1909         (fcvt): Likewise.
1910         (gcvt): Likewise.
1911         (getsubopt): Likewise.
1912         (grantpt): Likewise.
1913         (initstate): Likewise.
1914         (l64a): Likewise.
1915         (mktemp): Likewise.
1916         (mkstemp): Likewise.
1917         (ptsname): Likewise.
1918         (random): Likewise.
1919         (realpath): Likewise.
1920         (setstate): Likewise.
1921         (srandom): Likewise.
1922         (ttyslot): Likewise.
1923         (unlockpt): Likewise.
1924         (valloc): Likewise.
1925
1926         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
1927         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
1928         variable.
1929
1930 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1931
1932         [BZ #20072]
1933         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
1934         init_cpu_features only if SHARED is defined.
1935         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
1936
1937 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1938
1939         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
1940         non-inclusive caches on Intel processors.
1941
1942 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1943
1944         * malloc/malloc.c (dumped_main_arena_start)
1945         (dumped_main_arena_end): New variables.
1946         (DUMPED_MAIN_ARENA_CHUNK): New macro.
1947         (do_check_chunk): Skip dumped fake mmapped chunks.
1948         (munmap_chunk): Likewise.
1949         (__libc_free): Do not adjust statistics for fake mmapped chunks.
1950         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
1951         mmapped chunks.
1952         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
1953         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
1954         and dumped_main_arena_end to cover the dumped heap.
1955
1956 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
1957
1958         * conform/data/time.h-data (getdate_err): Do not expect for
1959         [XPG3].
1960         (getdate): Likewise.
1961         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
1962         variable.
1963
1964         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
1965         (F_ULOCK): Likewise.
1966         (F_TEST): Likewise.
1967         (F_TLOCK): Likewise.
1968         (useconds_t): Likewise.
1969         (intptr_t): Do not expect for [XPG3] or [XPG4].
1970         (brk): Do not expect for [XPG3]
1971         (fchown): Likewise.
1972         (fchdir): Likewise.
1973         (ftruncate): Likewise.
1974         (getdtablesize): Likewise.
1975         (gethostid): Likewise.
1976         (getpagesize): Likewise.
1977         (getpgid): Likewise.
1978         (getsid): Likewise.
1979         (getwd): Likewise.
1980         (lchown): Likewise.
1981         (lockf): Likewise.
1982         (readlink): Likewise.
1983         (sbrk): Likewise.
1984         (setpgrp): Likewise.
1985         (setregid): Likewise.
1986         (setreuid): Likewise.
1987         (symlink): Likewise.
1988         (sync): Likewise.
1989         (truncate): Likewise.
1990         (ualarm): Likewise.
1991         (usleep): Likewise.
1992         (vfork): Likewise.
1993         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
1994         variable.
1995
1996         [BZ #20054]
1997         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
1998         not [__USE_UNIX98].
1999         * conform/data/unistd.h-data (gethostname): Do not expect for
2000         [XPG3].
2001
2002         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2003         [!POSIX] (S_IFBLK): Likewise.
2004         [!POSIX] (S_IFCHR): Likewise.
2005         [!POSIX] (S_IFIFO): Likewise.
2006         [!POSIX] (S_IFREG): Likewise.
2007         [!POSIX] (S_IFDIR): Likewise.
2008         [!POSIX] (S_IFLNK): Likewise.
2009         [!POSIX] (S_IFSOCK): Likewise.
2010         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2011         variable.
2012         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2013
2014 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2015
2016         * sysdeps/aarch64/memset.S (__memset):
2017         Rewrite of optimized memset.
2018
2019 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2020
2021         [BZ #19703]
2022         Partially async-signal-safe fork for single-threaded processes.
2023         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2024         variable.  Do not acquire and reset/release malloc and libio locks
2025         in single-threaded processes.
2026         * malloc/tst-mallocfork2.c: New file.
2027         * malloc/Makefile (tests): Add it.
2028
2029 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2030
2031         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2032         argument.  Use scratch buffer instead of extend_alloca.
2033         (gethosts): Use scratch buffer instead of extend_alloca.
2034         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2035         extend_alloca.
2036         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2037
2038 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2039
2040         [BZ #20055]
2041         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2042         instead of [__USE_UNIX98].
2043         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2044         [__USE_UNIX98].
2045         * conform/data/termios.h-data (tcgetsid): Do not expect for
2046         [XPG3].
2047         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2048         variable.
2049         (test-xfail-XPG4/termios.h/conform): Likewise.
2050
2051 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2052
2053         Do not use mcheck in localedef.
2054         * locale/programs/localedef.c (turn_on_mcheck)
2055         (__malloc_initialize_hook): Remove.
2056
2057 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2058
2059         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2060         * sysdeps/s390/s390-64/Makefile: Likewise.
2061
2062 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2063
2064         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2065         Remove ifunc-defines.sym.
2066         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2067         Likewise.
2068         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2069         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2070         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2071         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2072         rtld-global-offsets.sym.
2073         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2074         * sysdeps/x86/cpu-features-offsets.sym: This.
2075         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2076         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2077
2078 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2079
2080         [BZ #20073]
2081         * io/sys/stat.h (fchmod): Declare for
2082         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2083         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2084         variable.
2085
2086         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2087         [XPG3] (S_IFSOCK): Likewise.
2088         [XPG3] (S_ISVTX): Likewise.
2089         [XPG3] (S_ISLNK): Likewise.
2090         [XPG3] (S_ISSOCK): Likewise.
2091         [XPG3] (fchmod): Likewise.
2092         [XPG3] (lstat): Likewise.
2093         [XPG3] (mknod): Likewise.
2094
2095         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2096         [XPG3].  Expect type long and XFAIL for [XPG4].
2097         (st_blocks): Likewise.
2098
2099         [BZ #20044]
2100         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2101         (pthread_atfork): New prototype.
2102         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2103         variable.
2104
2105         [BZ #20043]
2106         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2107         prototype.
2108
2109 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2110
2111         [BZ #20017]
2112         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2113         gmtime.
2114
2115 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2116
2117         [BZ #19994]
2118         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2119         flag in _res.options.
2120
2121 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2122
2123         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2124         [XPG3 || XPG4].
2125         (blksize_t): Likewise.
2126         (clockid_t): Likewise.
2127         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2128         variable.
2129         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2130
2131 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2132
2133         * sysdeps/unix/sysv/linux/s390/init-first.c:
2134         Add VDSO_SYMBOL(getcpu).
2135         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2136         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2137         Add VDSO_SYMBOL(getcpu).
2138         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2139         New define HAVE_GETCPU_VSYSCALL.
2140         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2141
2142 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2143
2144         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2145         instead of <sysdeps/x86_64/cacheinfo.c>.
2146         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2147         * sysdeps/x86/cacheinfo.c: Here.
2148
2149 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2150
2151         * malloc/malloc-internal.h: Adjust header file guard.
2152
2153 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2154
2155         [BZ #19787]
2156         * inet/getnameinfo.c (check_sprintf_result): New function.
2157         (CHECKED_SNPRINTF): New macro.
2158         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2159         to the host buffer.
2160         (gni_host_local): Use checked_copy to copy the host name.
2161         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2162         (gni_serv_local): Use checked_copy to copy the service name.
2163         (getnameinfo): Remove unnecessary truncation of result buffers.
2164
2165 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2166
2167         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2168         in case of inet_ntop failure.
2169
2170 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2171
2172         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2173         avoid long lines.
2174         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2175         variables.
2176         (gni_host_inet, gni_host_local): Add comment.
2177         (gni_host): Add comment.  Use temporary to avoid long lines.
2178
2179 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2180
2181         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2182         registers specifiers where general purpose registers specifiers should
2183         have been used.
2184
2185 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2186
2187         [BZ #19779]
2188         CVE-2016-1234
2189         Avoid copying names of directory entries.
2190         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2191         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2192         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2193         (struct readdir_result): New type.
2194         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2195         (GL_READDIR): New macros.
2196         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2197         (convert_dirent, convert_dirent64): New functions.
2198         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2199         convert_dirent64.  Adjust references to the readdir result.
2200         * sysdeps/unix/sysv/linux/i386/glob64.c:
2201         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2202         * posix/bug-glob2.c (LONG_NAME): Define.
2203         (filesystem): Add LONG_NAME.
2204         (my_DIR): Increase the size of room_for_dirent.
2205
2206 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2207
2208         [BZ #20041]
2209         * misc/sys/select.h (__need_timespec): Only define if
2210         [__USE_XOPEN2K].
2211         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2212         variable.
2213         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2214         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2215         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2216
2217 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2218             Segher Boessenkool  <segher@gcc.gnu.org>
2219
2220         [BZ #20004]
2221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2222         (__novec_swapcontext): Add missing load.
2223
2224 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2225
2226         [BZ #20023]
2227         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2228         <time.h>.
2229         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2230         variable.
2231         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2232
2233 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2234
2235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2236         flags CLONE_VM compare.
2237
2238 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2239
2240         [BZ #20031]
2241         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2242         completely empty.
2243
2244 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2245
2246         [BZ #19573]
2247         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2248         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2249         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2250         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2251         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2252         (hesiod_free_list): Mark as hidden.
2253         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2254         res_set, res_get.
2255         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2256         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2257         (hesiod_init): Remove obsolete res_ninit call.
2258         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2259         (hesiod_bind): Do not call init.
2260         (get_txt_records): Use res_mkquery, res_send instead of
2261         res_nmkquery, res_nsend.
2262         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2263         instead of _nss_hesiod_init.
2264         (_nss_hesiod_initgroups_dyn): Likewise.
2265         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2266         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2267         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2268
2269 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2270
2271         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2272         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2273
2274 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2275
2276         * hesiod/hesiod.h: Remove RCS keyword.
2277         * hesiod/hesiod_p.h: Likewise.
2278
2279         * hesiod/hesiod.c: Likewise.
2280
2281 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2282
2283         [BZ #12450]
2284         * locale/iso-639.def: Add Samogitian/sgs.
2285
2286 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2287
2288         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2289
2290         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2291
2292 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2293             Carlos O'Donell  <carlos@redhat.com>
2294
2295         [BZ #19072]
2296         * grp/Makefile (headers): Add grp-merge.h
2297         (routines): Add grp-merge.
2298         * grp/getgrgid_r.c: Include grp-merge.h.
2299         (DEEPCOPY_FN): Define.
2300         (MERGE_FN): Define.
2301         * grp/getgrname_r.c: Include grp-merge.h.
2302         (DEEPCOPY_FN): Define.
2303         (MERGE_FN): Define.
2304         * grp/grp-merge.c: New file.
2305         * grp/grp-merge.h: New file.
2306         * include/grp-merge.h: New file.
2307         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2308         __copy_grp@GLIBC_PRIVATE.
2309         * manual/nss.texi (Actions in the NSS configuration): Describe
2310         return, continue, and merge.
2311         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2312         (DEEPCOPY_FN): Define.
2313         (MERGE_FN): Define.
2314         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2315         (DEEPCOPY_FN): Define.
2316         (MERGE_FN): Define.
2317         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2318         [!MERGE_FN]: Define __merge_einval.
2319         (CHECK_MERGE): Define.
2320         (REENTRANT_NAME): Process merge if do_merge is true.
2321         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2322         (__nss_getent_r): Likewise.
2323         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2324         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2325
2326 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2327
2328         [BZ #20012]
2329         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2330         length to calculate the buffer to read.
2331         (fmemopen_write): Set the buffer position based on bytes written.
2332         (fmemopen_seek): Return EINVAL for invalid whence modes.
2333
2334         [BZ #19957]
2335         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2336         tst-getpid2.
2337         (test): Add tst-clone2.
2338         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2339         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2340         pid/tid fields for CLONE_VM.
2341         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2342         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2343         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2344         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2345         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2346         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2347         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2348         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2350         Likewise.
2351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2352         Likewise.
2353         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2354         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2355         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2356         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2357         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2358         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2359         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2360         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2361
2362 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2363
2364         [BZ #19642]
2365         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2366         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2367         (gni_serv_local, gni_serv): New functions extracted from
2368         getnameinfo.
2369         (getnameinfo): Call gni_host and gni_serv to perform the
2370         processing.  Always free scratch buffer.
2371
2372 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2373
2374         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2375         remaining bytes in the dest string, with zeros.
2376
2377 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2378
2379         [BZ #20010]
2380         CVE-2016-3706
2381         * sysdeps/posix/getaddrinfo.c
2382         (convert_hostent_to_gaih_addrtuple): New function.
2383         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2384         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2385         AF_INET data.
2386
2387 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2388
2389         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2390         callback function gl_readdir.
2391         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2392         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2393         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2394         memcpy to copy the name.
2395         * manual/pattern.texi (Calling Glob): Document requirements for
2396         implementations of the gl_readdir callback function.
2397         * manual/examples/mkdirent.c: New example.
2398         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2399         per the manual guidance.
2400         * posix/tst-gnuglob.c (my_readdir): Likewise.
2401
2402 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2403
2404         [BZ #20014]
2405         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2406         not [__USE_POSIX].
2407         (getchar_unlocked): Likewise.
2408         (putc_unlocked): Likewise.
2409         (putchar_unlocked): Likewise.
2410         (flockfile): Likewise.
2411         (ftrylockfile): Likewise.
2412         (funlockfile): Likewise.
2413         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2414         variable.
2415         (test-xfail-XPG4/stdio.h/conform): Likewise.
2416
2417         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2418         Expect constant.
2419         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2420         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2421         variable.
2422         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2423         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2424
2425         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2426         [__USE_LARGEFILE64] (off64_t): Likewise.
2427         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2428         variable.
2429
2430 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2431
2432         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2433
2434 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2435
2436         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2437         * resolv/res_init.c: Likewise.
2438         * resolv/res_mkquery.c: Likewise.
2439
2440 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2441
2442         * resolv/res_init.c (isascii): Do not define.  Use definition in
2443         <ctype.h>.
2444         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2445         (LOG_AUTH): Remove.
2446         (SPRINTF): Remove, adjust caller.
2447         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2448
2449 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2450
2451         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2452         SUNSECURITY conditional.
2453         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2454
2455 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2456
2457         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2458         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2459         Remove BSD-related preprocessor conditionals.
2460         * conf/portability.h: Remove.
2461
2462 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2463
2464         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2465         * resolv/res_data.c: Likewise.
2466
2467 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2468
2469         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2470         * resolv/res_data.c: Remove code conditional on ultrix.
2471
2472 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2473
2474         * resolv/res_init.c (RFC1535): Do not define.  Remove
2475         RFC1535 preprocessor conditionals.
2476         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2477         because there configuration options which make the resolver
2478         behavior different.
2479
2480 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2481
2482         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2483         RESOLVSORT preprocessor conditionals.
2484         * resolv/nss_dns/dns-host.c: Likewise.
2485         * resolv/res_init.c: Likewise.
2486
2487 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2488
2489         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2490         is never defined.
2491
2492 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2493
2494         * inet/inet_lnaof.c: Remove SCSS keyword.
2495         * inet/inet_mkadr.c: Likewise.
2496         * inet/inet_net.c: Likewise.
2497         * inet/inet_netof.c: Likewise.
2498         * inet/rcmd.c: Likewise.
2499         * inet/rexec.c: Likewise.
2500         * inet/ruserpass.c: Likewise.
2501
2502 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2503
2504         * resolv/inet_addr.c: Remove _LIBC conditionals.
2505         * resolv/res_data.c: Likewise.
2506         * resolv/res_init.c: Likewise.
2507         * resolv/res_mkquery.c: Likewise.
2508         * resolv/res_libc.c: Update comment.
2509         * resolv/README: Update.
2510
2511 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2512
2513         * resolv/gethnamaddr.c: Remove SCSS keyword.
2514         * resolv/herror.c: Likewise.
2515         * resolv/inet_addr.c: Likewise.
2516         * resolv/inet_net_ntop.c: Likewise.
2517         * resolv/inet_net_pton.c: Likewise.
2518         * resolv/inet_neta.c: Likewise.
2519         * resolv/inet_ntop.c: Likewise.
2520         * resolv/inet_pton.c: Likewise.
2521         * resolv/ns_date.c: Remove RCS keyword.
2522         * resolv/ns_name.c: Likewise.
2523         * resolv/ns_netint.c: Likewise.
2524         * resolv/ns_parse.c: Likewise.
2525         * resolv/ns_print.c: Likewise.
2526         * resolv/ns_samedomain.c: Likewise.
2527         * resolv/ns_ttl.c: Likewise.
2528         * resolv/nsap_addr.c: Likewise.
2529         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2530         * resolv/res_data.c: Remove RCS keyword.
2531         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2532         * resolv/res_init.c: Likewise.
2533         * resolv/res_mkquery.c: Likewise.
2534         * resolv/res_query.c: Likewise.
2535         * resolv/res_send.c: Likewise.
2536
2537 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2538
2539         * conform/data/stdio.h-data (fdopen): Expect also for
2540         [XPG3 || XPG4].
2541
2542         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2543         (fseeko): Likewise.
2544         (ftello): Likewise.
2545         (ftrylockfile): Likewise.
2546         (funlockfile): Likewise.
2547         (getc_unlocked): Likewise.
2548         (getchar_unlocked): Likewise.
2549         (putc_unlocked): Likewise.
2550         (putchar_unlocked): Likewise.
2551
2552 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2553
2554         [BZ #19868]
2555         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2556         DNS packet syntax checks (which were not needed before).  Skip
2557         over non-PTR records.
2558
2559 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2560
2561         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2562         definition.  Include <stddef.h> instead.
2563
2564 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2565
2566         [BZ #19831]
2567         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2568         function.
2569         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2570         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2571
2572 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2573
2574         [BZ #19862]
2575         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2576         (getanswer_r): Do not call syslog.
2577         (gaih_getanswer_slice): Likewise.
2578         * resolv/gethnamaddr.c (AskedForGot): Remove.
2579         (getanswer): Do not call syslog.
2580         (gethostbyaddr): Likewise.
2581
2582 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2583
2584         * conform/data/signal.h-data (union sigval): Expect also if
2585         [XOPEN2K].
2586         (struct sigevent): Likewise.
2587         (SIGEV_NONE): Likewise.
2588         (SIGEV_SIGNAL): Likewise.
2589         (SIGEV_THREAD): Likewise.
2590         (SIGRTMIN): Likewise.
2591         (SIGRTMAX): Likewise.
2592         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2593         variable.
2594         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2595
2596 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2597
2598         [BZ #19830]
2599         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2600         (gaih_getanswer_slice): Likewise.
2601         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2602         Also check for availability of RR metadata.
2603
2604 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2605
2606         [BZ #19825]
2607         * resolv/res_send.c (send_vc): Remove early *resplen2
2608         initialization.  Set *resplen2 on socket error.  Call
2609         close_and_return_error for other errors.
2610
2611 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2612
2613         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2614         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2615         (SCM_IUCV_TRGCLS): New define.
2616
2617 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2618
2619         [BZ #20005]
2620         * libio/fmemopen.c (fmemopen_write): Update internal position after
2621         write.
2622         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2623         * stdio-common/tst-fmemopen4.c: New file..
2624
2625 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2626
2627         [BZ #19996]
2628         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2629         not [__USE_XOPEN2K].
2630         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2631         variable.
2632
2633         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2634         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2635         variable.
2636
2637         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2638         [__USE_XOPEN2K8].
2639         [__USE_LARGEFILE64] (off64_t): Likewise.
2640         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2641         variable.
2642
2643 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2644
2645         [BZ #19989]
2646         * libio/stdio.h (cuserid): Do not declare if
2647         [__USE_XOPEN2K && !__USE_GNU].
2648         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2649         variable.
2650
2651 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2652
2653         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2654         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2655         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2656         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2657         ifunc'ed strcspn.
2658         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2659         [EALIGN]: Removed.
2660         [END]: Likewise
2661         [STRSPN]: Define instead of the above to control symbol name.
2662         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2663         New file.
2664         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2665         Likewise.
2666         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2667         Likewise.
2668         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2669         Likewise.
2670         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2671         [INITIAL_MASK]: New macro.
2672         [STRCSPN]: Likewise.
2673         [UPDATE_MASK]: Likewise.
2674         [USE_AS_STRCSPN]: Lisewise.
2675
2676 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2677
2678         [BZ #19931]
2679         * stdio-common/tst-vfprintf-width-prec.c: New file.
2680         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2681         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2682         (generated): Add mtrace-related files.
2683         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2684         (tst-%-mem.out): New pattern rule, replaces
2685         tst-printf-bz18872-mem.out.
2686         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2687         specifier, deallocate any previously allocated work buffer.
2688
2689 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2690
2691         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2692         Add nop before __startcontext, add explaining comments.
2693
2694 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2695
2696         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2697         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2698         completely different API.
2699
2700         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2701         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2702         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2703         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2704         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2705         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2706         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2707         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2708         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2709         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2710
2711 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2712
2713         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2714
2715 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2716
2717         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2718         when it is the default of 0.
2719
2720 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2721
2722         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2723         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2724         (sysdep_routines): Add new strcasestr targets.
2725         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2726         (__libc_ifunc_impl_list): Likewise.
2727         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2728         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2729         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2730         * sysdeps/powerpc/powerpc64/power8/Makefile:
2731         New file to add strcasestr-ppc64 to sysdep_routines.
2732         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2733         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2734
2735 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2736
2737         * benchtests/Makefile (wcsmbs-benchset): Include only for
2738         native builds and runs.
2739         (LOCALES): Likewise.
2740         (bench-build): Build timing-type here instead of the bench
2741         target.  Generate locale only for native builds.
2742         * benchtests/README: Add note for cross-building.
2743
2744         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2745
2746         * benchtests/README: Update README to include instructions on
2747         using bench-build.
2748
2749         * Makefile.in (bench-build): New target.
2750         * Rules (PHONY): Add bench-build target.
2751         * benchtests/Makefile (bench): Depend on bench-build.
2752         (bench-build): New target.
2753
2754 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2755
2756         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2757         profil_reply_port.
2758         (profile_waiter): Do not initialize profil_reply_port.
2759         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2760         frequency instead of tick length in us.
2761
2762 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2763
2764         [BZ #18712]
2765         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2766         (__old_mempcpy_small): Likewise.
2767         (__old_strcpy_small): Likewise.
2768         (__old_stpcpy_small): Likewise.
2769         (__old_strpbrk_c2): Fix compat symbol name.
2770         (__old_strpbrk_c3): Likewise.
2771         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2772         (__mempcpy_small): Remove.
2773         (__strcpy_small): Remove.
2774         (__stpcpy_small): Remove.
2775
2776 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2777
2778         [BZ #19400]
2779         * locale/iso-639.def: Add the Talossan/tzl language.
2780
2781 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2782
2783         [BZ #16983]
2784         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2785         comment.  Add "ln" to strchr check on postal_fmt.
2786
2787 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2788
2789         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2790         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2791         tel_dom_fmt.
2792
2793 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2794
2795         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2796         (sysdep_routines): Added __strlen_power8.
2797         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2798         __strlen_power8 entry.
2799         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2800         Implementation for POWER8.
2801         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2802         for __strlen_power8.
2803         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2804         Implementation for POWER8.
2805
2806 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2807
2808         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2809
2810 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2811
2812         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2813         Goldmont and Airmont processors.
2814
2815 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2816
2817         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2818         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2819         (__STRING2_SMALL_GET32): Remove.
2820         (memset): Remove.
2821         (__memset_1): Remove.
2822         (__memset_gc): Remove.
2823         (__mempcpy): Remove.
2824         (mempcpy): Remove.
2825         (__mempcpy_args): Remove.
2826         (strchr): Remove.
2827         (strcpy): Remove.
2828         (strcpy_args): Remove.
2829         (__stpcpy_args): Remove.
2830         (__strcmp_cc): Remove.
2831         (__strcmp_gc): Remove.
2832         (strstr): Remove.
2833
2834 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2835
2836         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2837         * nis/nis_call.c (nis_server_cache_add): Likewise.
2838
2839 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2840
2841         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2842
2843 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2844
2845         * malloc/arena.c (__malloc_fork_lock_parent)
2846         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2847         internal_function attribute.
2848
2849 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
2850
2851         * stdio-common/printf_fp.c (__printf_fp_l):
2852         Rename ___printf_fp_l to __printf_fp_l and
2853         remove strong alias. Use libc_hidden_def instead
2854         of ldbl_hidden_def macro.
2855
2856 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2857
2858         Remove malloc hooks from fork handler.  They are no longer needed
2859         because malloc runs right before fork, and no malloc calls from
2860         other fork handlers are not possible anymore.
2861         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
2862         declarations.
2863         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
2864         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
2865         (atfork_recursive_cntr): Remove.
2866         (__malloc_fork_lock_parent): Do not override malloc hooks and
2867         thread_arena.
2868         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
2869         thread_arena.
2870         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
2871         thread_arena instead of save_arena.
2872
2873 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2874
2875         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
2876         (thread_atfork, thread_atfork_static): Remove.
2877         * sysdeps/mach/hurd/malloc-machine.h:
2878         (thread_atfork, thread_atfork_static): Remove.
2879
2880 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2881
2882         [BZ #19431]
2883         Run the malloc fork handler as late as possible to avoid deadlocks.
2884         * malloc/malloc-internal.h: New file.
2885         * malloc/malloc.c: Include it.
2886         * malloc/arena.c (ATFORK_MEM): Remove.
2887         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
2888         Update comment.
2889         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
2890         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
2891         Remove outdated comment.
2892         (ptmalloc_init): Do not call thread_atfork.  Remove
2893         thread_atfork_static.
2894         * malloc/tst-malloc-fork-deadlock.c: New file.
2895         * Makefile (tests): Add tst-malloc-fork-deadlock.
2896         (tst-malloc-fork-deadlock): Link against libpthread.
2897         * manual/memory.texi (Aligned Memory Blocks): Update safety
2898         annotation comments.
2899         * sysdeps/nptl/fork.c (__libc_fork): Call
2900         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
2901         __malloc_fork_unlock_child.
2902         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2903
2904 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2905
2906         [BZ #19613]
2907         Remove union wait.
2908         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
2909         (w_stopsig, w_stopval): Remove.
2910         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
2911         stat_loc argument.
2912         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
2913         (__WAIT_STATUS_DEFN): Remove.
2914         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2915         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
2916         (wait, wait3, wait4): Use int * for the stat_loc argument.
2917         * posix/wait.c (__wait): Likewise.
2918         * posix/wait3.c (__wait3): Likewise.
2919         * posix/wait4.c (__wait4): Likewise.
2920         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
2921         (__WAIT_STATUS_DEFN): Remove.
2922         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2923         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
2924         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
2925         argument.
2926         * sysdeps/posix/wait.c (__libc_wait): Likewise.
2927         * sysdeps/posix/wait3.c (__wait3): Likewise.
2928         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
2929         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
2930         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
2931         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
2932         stat_loc argument.
2933         * manual/process.texi (BSD Wait Functions): Remove union wait.
2934
2935 2016-04-13  Andreas Schwab  <schwab@suse.de>
2936
2937         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
2938         (test-extras): Add tst-tlsalign-vars.
2939         * math/Makefile: Wrap long lines.
2940         (libm-vec-test-wrappers): Define.
2941         (test-extras): Add $(libm-vec-test-wrappers).
2942         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
2943         * nss/Makefile (extra-test-objs): Add nss_test1.os.
2944         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
2945         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
2946         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
2947         (extra-test-objs): Add corresponding objects.
2948
2949 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
2950
2951         [BZ #19928]
2952         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
2953         New.
2954         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
2955         times of shared cache size.
2956         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
2957         (VMOVNT): New.
2958         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
2959         (VMOVNT): Likewise.
2960         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2961         (VMOVNT): Likewise.
2962         (VMOVU): Changed to movups for smaller code sizes.
2963         (VMOVA): Changed to movaps for smaller code sizes.
2964         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
2965         comments.
2966         (PREFETCH): New.
2967         (PREFETCH_SIZE): Likewise.
2968         (PREFETCHED_LOAD_SIZE): Likewise.
2969         (PREFETCH_ONE_SET): Likewise.
2970         Rewrite to use forward and backward loops, which move 4 vector
2971         registers at a time, to support overlapping addresses and use
2972         non temporal store if size is above the threshold and there is
2973         no overlap between destination and source.
2974
2975 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
2976
2977         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
2978         Include dl-vdso.
2979         * sysdeps/unix/sysv/linux/mips/Versions: Add
2980         __vdso_clock_gettime.
2981         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
2982         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
2983         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
2984         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
2985         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
2986         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2987         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2988         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
2989         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2990
2991 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2992
2993         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
2994         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
2995         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
2996         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
2997         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2998         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3001         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3002         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3003         syscalls generation.
3004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3005         [__NR_pwrite64] (__NR_write): Remove define.
3006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3007         [__NR_pwrite64] (__NR_write): Remove define.
3008         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3009         Remove define.
3010         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3011         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3012         Remove define.
3013         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3014         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3015         Linux implementation as base.
3016         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3017
3018         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3019         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3020         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3021         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3024         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3025         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3026         syscall generation.
3027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3028         [__NR_pread64] (__NR_pread): Remove define.
3029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3030         [__NR_pread64] (__NR_pread): Likewise.
3031         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3032         define.
3033         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3034         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3035         Remove define.
3036         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3037         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3038         Linux implementation as base.
3039         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3040         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3041         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3042
3043         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3044         definition.
3045         (__ALIGNMENT_COUNT): Likewise.
3046         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3047         (__ALIGNMENT_COUNT): Likewise.
3048         (SYSCALL_LL): New define.
3049         (SYSCALL_LL64): Likewise.
3050         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3051         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3052         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3053         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3054
3055         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3056         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3057         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3058         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3059         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3060         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3061
3062 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3063
3064         [BZ #19865]
3065         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3066         original buffer before retry.
3067
3068 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3069
3070         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3071         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3072         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3073         GLRO(dl_auxv) list.
3074         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3075         including <ldsodefs.h>.
3076         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3077
3078 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3079
3080         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3081         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3082         $(CPPFLAGS).
3083
3084 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3085
3086         [BZ #17950]
3087         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3088         Add -mfpmath=387.
3089
3090 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3091
3092         * sysdeps/i386/configure.ac: Change == to = when calling test.
3093         * sysdeps/x86_64/configure.ac: Likewise.
3094         * sysdeps/i386/configure: Regenerated.
3095         * sysdeps/x86_64/configure: Likewise.
3096
3097 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3098
3099         [BZ #16137]
3100         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3101         * benchtests/bench-strcoll.c (input_files): Likewise.
3102         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3103         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3104         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3105
3106 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3107
3108         [BZ #19929]
3109         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3110         [__USE_XOPEN2K8 && !__USE_GNU].
3111         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3112         variable.
3113
3114         [BZ #19925]
3115         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3116         define if [!__USE_MISC && __USE_XOPEN2K].
3117         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3118         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3119         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3120         Likewise.
3121         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3122         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3123         variable.
3124         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3125
3126 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3127
3128         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3129         (sysdep_routines): Add new strspn targets.
3130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3131         (__libc_ifunc_impl_list): Add strspn.
3132         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3133         New file.
3134         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3135         Likewise.
3136         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3137         Likewise.
3138         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3139         Likewise.
3140
3141 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3142
3143         * misc/hsearch_r.c: Include <limits.h>.
3144
3145 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3146
3147         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3148
3149 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3150
3151         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3152         (MEMCPY_SYMBOL): New.
3153         (MEMPCPY_SYMBOL): Likewise.
3154         (MEMMOVE_CHK_SYMBOL): Likewise.
3155         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3156         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3157         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3158         Provide alias for memcpy in libc.a and ld.so.
3159
3160 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3161
3162         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3163         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3164         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3165         Disabled fro now.
3166         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3167         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3168
3169 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         * benchtests/Makefile (string-benchset): Add memcpy-large,
3172         memmove-large and memset-large.
3173         * benchtests/bench-memcpy-large.c: New file.
3174         * benchtests/bench-memmove-large.c: Likewise.
3175         * benchtests/bench-memmove-large.c: Likewise.
3176         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3177
3178 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3179
3180         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3181         32-bit displacement to avoid long nop between instructions.
3182
3183 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3184
3185         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3186         a comment on VMOVU and VMOVA.
3187
3188 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3189
3190         [BZ #19633]
3191         Use specified locale for number formatting in strfmon_l.
3192         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3193         (__nl_lookup_word): New inline functions.
3194         * include/printf.h (__print_fp_l): Declare.
3195         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3196         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3197         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3198         (___printf_fp): New function.
3199         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3200         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3201         * stdlib/tst-strfmon_l.c (do_test): New test.
3202         * stdlib/Makefile (tests): Add kt.
3203         (LOCALES): Build additional locales.
3204         (tst-strfmon_l.out): Require locales.
3205
3206 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3207
3208         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3209         if not in libc.
3210         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3211         Likewise.
3212         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3213         Likewise.
3214         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3215         Likewise.
3216
3217 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3218
3219         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3220         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3221         with unaligned_erms.
3222         (__memmove_erms): Skip if source == destination.
3223         (__memmove_unaligned_erms): Don't check source == destination
3224         first.
3225
3226 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3227
3228         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3229         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3230
3231 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3232
3233         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3234         * string/strspn.c (strspn): Likewise.
3235
3236 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3237
3238         * benchtests/bench-memset.c (do_test): Support 64-byte
3239         alignment.
3240         (test_main): Test 64-byte alignment.
3241
3242 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3243
3244         * benchtests/bench-memmove.c (test_main): Test 64-byte
3245         alignment.
3246
3247 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3248
3249         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3250
3251 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3252
3253         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3254         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3255         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3256
3257         * string/strpbrk.c (strpbrk): Rewrite function.
3258         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3259         (__strpbrk_c2): Likewise.
3260         (__strpbrk_c3): Likewise.
3261         * string/string-inlines.c
3262         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3263         Likewise.
3264         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3265         Likewise.
3266
3267         * string/strspn.c (strcspn): Rewrite function.
3268         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3269         (__strspn_c1): Remove inline function.
3270         (__strspn_c2): Likewise.
3271         (__strspn_c3): Likewise.
3272         * string/string-inlines.c
3273         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3274         compatibility symbol.
3275         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3276         Likewise.
3277         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3278         Likewise.
3279         * string/string-inlines.c: Include generic version.
3280
3281 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3282             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3283
3284         * string/Version (libc): Add GLIBC_2.24.
3285         * string/strcspn.c (strcspn): Rewrite function.
3286         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3287         (__strcspn_c1): Remove inline function.
3288         (__strcspn_c2): Likewise.
3289         (__strcspn_c3): Likewise.
3290         * string/string-inline.c
3291         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3292         compatibility symbol.
3293         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3294         Likewise.
3295         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3296         Likewise.
3297         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3298
3299 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3300
3301         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3302         Use ahi instead of aghi to adjust stack pointer.
3303
3304 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3305
3306         [BZ #19853]
3307         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3308         TEST to take significant digits as second parameter.
3309         [TEST]: Redefine in terms of TEST_N taking 30
3310         significant digits.
3311         (do_test): Add test case to demonstrate precision
3312         failure in the ldbl-128ibm printf.
3313         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3314         (__mpn_extract_long_double): Carry 7 extra intermediate
3315         bits of precision to aide computing difference when
3316         signs differ.
3317
3318 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3319
3320         [BZ #19881]
3321         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3322         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3323         memset-avx512-unaligned-erms.
3324         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3325         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3326         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3327         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3328         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3329         __memset_sse2_unaligned_erms, __memset_erms,
3330         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3331         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3332         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3333         file.
3334         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3335         Likewise.
3336         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3337         Likewise.
3338         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3339         Likewise.
3340
3341 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3342
3343         [BZ #19776]
3344         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3345         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3346         memmove-avx512-unaligned-erms.
3347         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3348         (__libc_ifunc_impl_list): Test
3349         __memmove_chk_avx512_unaligned_2,
3350         __memmove_chk_avx512_unaligned_erms,
3351         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3352         __memmove_chk_sse2_unaligned_2,
3353         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3354         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3355         __memmove_avx512_unaligned_erms, __memmove_erms,
3356         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3357         __memcpy_chk_avx512_unaligned_2,
3358         __memcpy_chk_avx512_unaligned_erms,
3359         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3360         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3361         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3362         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3363         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3364         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3365         __mempcpy_chk_avx512_unaligned_erms,
3366         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3367         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3368         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3369         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3370         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3371         __mempcpy_erms.
3372         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3373         file.
3374         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3375         Likwise.
3376         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3377         Likwise.
3378         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3379         Likwise.
3380
3381 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3382
3383         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3384         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3385         (La_s390_64_regs): Likewise.
3386         (La_s390_32_retval): Append vector register lrv_v24.
3387         (La_s390_64_retval): Likeweise.
3388         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3389         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3390         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3391         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3392
3393 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3394
3395         [BZ #19916]
3396         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3397         to create a non-vector/vector version for _dl_runtime_resolve and
3398         _dl_runtime_profile. Move implementation to ...
3399         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3400         (_dl_runtime_resolve) Save and restore fpr/vrs.
3401         (_dl_runtime_profile) Save and restore vrs and fix some issues
3402         if _dl_call_pltexit is called.
3403         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3404         Choose the correct resolver function if running on a machine with vx.
3405         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3406         to create a non-vector/vector version for _dl_runtime_resolve and
3407         _dl_runtime_profile. Move implementation to ...
3408         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3409         (_dl_runtime_resolve) Save and restore fpr/vrs.
3410         (_dl_runtime_profile) Save and restore vrs and fix some issues
3411         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3412         Choose the correct resolver function if running on a machine with vx.
3413
3414 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3415
3416         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3417
3418 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3419
3420         [BZ #19509]
3421         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3422         skip_map != NULL.
3423         * elf/tst-dlsym-error.c: New file.
3424         * elf/Makefile (tests): Add tst-dlsym-error.
3425         (tst-dlsym-error): Link against libdl.
3426
3427 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3428
3429         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3430         (__ASSUME_FUTIMESAT): Remove macro.
3431         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3432
3433 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3434
3435         [BZ #19879]
3436         CVE-2016-3075
3437         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3438         copy name.
3439
3440 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3441
3442         [BZ #19837]
3443         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3444         error if parse_line fails.
3445
3446 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3447
3448         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3449         (index_cpu_ERMS): Likewise.
3450         (reg_ERMS): Likewise.
3451
3452 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3453
3454         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3455         PER_LINUX_FDPIC): Add.
3456
3457 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3458
3459         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3460         memcpy-avx512-no-vzeroupper.
3461         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3462         to ...
3463         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3464         (MEMCPY): Don't define.
3465         (MEMCPY_CHK): Likewise.
3466         (MEMPCPY): Likewise.
3467         (MEMPCPY_CHK): Likewise.
3468         (MEMPCPY_CHK): Renamed to ...
3469         (__mempcpy_chk_avx512_no_vzeroupper): This.
3470         (MEMPCPY_CHK): Renamed to ...
3471         (__mempcpy_chk_avx512_no_vzeroupper): This.
3472         (MEMCPY_CHK): Renamed to ...
3473         (__memmove_chk_avx512_no_vzeroupper): This.
3474         (MEMCPY): Renamed to ...
3475         (__memmove_avx512_no_vzeroupper): This.
3476         (__memcpy_avx512_no_vzeroupper): New alias.
3477         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3478
3479 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3480
3481         [BZ #18858]
3482         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3483         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3484         and mempcpy-avx512-no-vzeroupper.
3485         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3486         New.
3487         (MEMPCPY): Likewise.
3488         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3489         (MEMPCPY_CHK): New.
3490         (MEMPCPY): Likewise.
3491         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3492         (MEMPCPY): Likewise.
3493         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3494         (MEMPCPY): Likewise.
3495         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3496         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3497         Likewise.
3498         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3499         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3500
3501 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3502              Amit Pawar  <Amit.Pawar@amd.com>
3503
3504         [BZ #19583]
3505         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3506         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3507         processors.  Set Fast_Copy_Backward for AMD Excavator
3508         processors.
3509         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3510         New.
3511         (index_arch_Fast_Unaligned_Copy): Likewise.
3512         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3513         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3514
3515 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3516
3517         [BZ #19791]
3518         * resolv/res_send.c (close_and_return_error): New function.
3519         (send_dg): Initialize *resplen2 after reopen failure.  Call
3520         close_and_return_error for error returns.  On error paths without
3521         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3522         successful return.
3523
3524 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3525
3526         [BZ# 19860]
3527         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3528         zero if the compiler does not provide the AVX512F bit.
3529
3530 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3531
3532         [BZ #19848]
3533         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3534         from 8 to 4.
3535         (__ieee754_powl): Compare integer exponent against 4 not 8.
3536         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3537         from 8 to 4.
3538         (__ieee754_powl): Compare integer exponent against 4 not 8.
3539         * math/auto-libm-test-in: Add more tests of pow.
3540         * math/auto-libm-test-out: Regenerated.
3541         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3543
3544 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3545
3546         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3547         Make code unconditional.
3548         [!__NR_utimensat]: Remove conditional code.
3549         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3550         Make code unconditional.
3551         [!__NR_utimensat]: Remove conditional code.
3552         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3553         Make code unconditional.
3554         [!__NR_utimensat]: Remove conditional code.
3555
3556 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3557
3558         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3559         Make code unconditional.
3560
3561 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3562
3563         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3564         call-clobbered %eax on retry path.
3565         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3566
3567 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3568
3569         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3570         Don't set %rcx twice before "rep movsb".
3571
3572 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3573
3574         [BZ #19583]
3575         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3576         inline.  Check family before setting family, model and
3577         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3578         bits here.
3579         (init_cpu_features): Replace HAS_CPU_FEATURE and
3580         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3581         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3582         for Intel processors with usable AVX2.  Call get_common_indeces
3583         for other processors with family == NULL.
3584         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3585         (CPU_FEATURES_ARCH_P): Likewise.
3586         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3587         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3588
3589 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3590
3591         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3592         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3593         $(shared-thread-library) instead of hardcoding the path to libpthread.
3594
3595 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3596
3597         * sysdeps/unix/sysv/linux/kernel-features.h
3598         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3599         * sysdeps/unix/sysv/linux/getdents.c
3600         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3601         [!have_no_getdents64_defined]: Likewise.
3602         (__GETDENTS): Remove __have_no_getdents64 conditional.
3603
3604 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3605
3606         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3607         Remove macro.
3608         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3609         <kernel-features.h>.
3610         (signalfd) [__NR_signalfd4]: Make code unconditional.
3611         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3612
3613 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3614
3615         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3616         style.
3617
3618 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3619
3620         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3621         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3622         __pthread_unwind.
3623         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3624         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3625         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3626         (__condvar_cleanup1): Likewise.
3627
3628 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3629
3630         [BZ #19822]
3631         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3632         move it to the final $@ location.
3633
3634 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3635
3636         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3637         access where posix_spawn success and pid argument is null.
3638         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3639         success case.
3640
3641 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3642
3643         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3644
3645         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3646
3647         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3648         and __fcntl.
3649         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3650         __fcntl only.
3651         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3652         adding attribute_hidden to __open and __fcntl.
3653
3654         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3655         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3656         depend on libc-modules.h,
3657         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3658
3659 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3660
3661         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3662         Remove macro.
3663         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3664         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3665         entry.
3666
3667         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3668         Remove macro.
3669         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3670         include <kernel-features.h>.
3671         [!__ASSUME_FALLOCATE]: Remove conditional code.
3672         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3673
3674 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3675
3676         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3677         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3678         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3679         (_ZGVdN4v_cos_avx2): Likewise.
3680         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3681         (_ZGVdN4v_cos): Likewise.
3682         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3683         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3684         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3685         (_ZGVdN4v_exp_avx2): Likewise.
3686         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3687         (_ZGVdN4v_exp): Likewise.
3688         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3689         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3690         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3691         (_ZGVdN4v_log_avx2): Likewise.
3692         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3693         (_ZGVdN4v_log): Likewise.
3694         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3695         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3696         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3697         (_ZGVdN4vv_pow_avx2): Likewise.
3698         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3699         (_ZGVdN4vv_pow): Likewise.
3700         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3701         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3702         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3703         (_ZGVdN4v_sin_avx2): Likewise.
3704         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3705         (_ZGVdN4v_sin): Likewise.
3706         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3707         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3708         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3709         (_ZGVdN4vvv_sincos_avx2): Likewise.
3710         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3711         (_ZGVdN4vvv_sincos): Likewise.
3712         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3713         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3714         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3715         (_ZGVbN4v_cosf_sse4): Likewise.
3716         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3717         (_ZGVdN8v_cosf_avx2): Likewise.
3718         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3719         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3720         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3721         (_ZGVbN4v_expf_sse4): Likewise.
3722         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3723         (_ZGVdN8v_expf_avx2): Likewise.
3724         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3725         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3726         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3727         (_ZGVbN4v_logf_sse4): Likewise.
3728         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3729         (_ZGVdN8v_logf_avx2): Likewise.
3730         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3731         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3732         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3733         (_ZGVbN4vv_powf_sse4): Likewise.
3734         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3735         (_ZGVdN8vv_powf_avx2): Likewise.
3736         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3737         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3738         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3739         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3740         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3741         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3742         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3743         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3744         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3745         (_ZGVbN4v_sinf_sse4): Likewise.
3746         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3747         (_ZGVdN8v_sinf_avx2): Likewise.
3748         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3749         Use JUMPTARGET to call callee.
3750         (WRAPPER_IMPL_SSE2_ff): Likewise.
3751         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3752         (WRAPPER_IMPL_AVX): Likewise.
3753         (WRAPPER_IMPL_AVX_ff): Likewise.
3754         (WRAPPER_IMPL_AVX_fFF): Likewise.
3755         (WRAPPER_IMPL_AVX512): Likewise.
3756         (WRAPPER_IMPL_AVX512_ff): Likewise.
3757         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3758         Likewise.
3759         (WRAPPER_IMPL_SSE2_ff): Likewise.
3760         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3761         (WRAPPER_IMPL_AVX): Likewise.
3762         (WRAPPER_IMPL_AVX_ff): Likewise.
3763         (WRAPPER_IMPL_AVX_fFF): Likewise.
3764         (WRAPPER_IMPL_AVX512): Likewise.
3765         (WRAPPER_IMPL_AVX512_ff): Likewise.
3766         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3767
3768 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3769
3770         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3771         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3772         qualifier.
3773         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3774         internal_function qualifiers.
3775
3776 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3777
3778         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3779         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3780         * math/atest-exp.c (exp_mpn): Mark chk unused.
3781         * math/atest-exp2.c (exp_mpn): Likwise.
3782         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3783         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3784
3785 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3786
3787         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3788         Remove macro.
3789         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3790         <kernel-features.h>.
3791         [__NR_ppoll]: Make code unconditional.
3792         [!__ASSUME_PPOLL]: Remove conditional code.
3793
3794         * sysdeps/unix/sysv/linux/kernel-features.h
3795         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3796         (__ASSUME_ACCEPT4): Likewise.
3797         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3798         Define.
3799         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3800         Likewise.
3801         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3802         Likewise.
3803         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3804         Likewise.
3805         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3806         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3807         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3808         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3809         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3810         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3811         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3812         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3813         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3814         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3815         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3816         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3817         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3818         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3819         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3820         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3821         Likewise.
3822         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3823         Likewise.
3824         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3825         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3826         0x040300].
3827         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3828         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3829         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3830         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3831         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3832         0x030300].
3833         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3834         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3835         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3836         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3837         0x040300].
3838         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3839         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3840         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3841         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3842         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3843         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3844         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3845         0x030300].
3846         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3847         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3848         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3849         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3850         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3851         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3852         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3853         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3854         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3855         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3856         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3857         0x040300].
3858         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3859         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3860         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3861         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3862         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3863         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3864         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3865         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3866         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3867         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3868         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3869         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3870         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3871         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3872         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
3873         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3874         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3875         Likewise.
3876         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3877         Likewise.
3878
3879 2016-03-15  Andreas Schwab  <schwab@suse.de>
3880
3881         [BZ #19257]
3882         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
3883         statp->_u._ext.nscount as loop count.
3884
3885 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
3886
3887         * math/test-signgam-finite-c99.c: Also #undef
3888         __LIBC_INTERNAL_MATH_INLINES.
3889         * math/test-signgam-main.c: Likewise.
3890
3891 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
3892
3893         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
3894         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3895         (MADV_FREE): Likewise.
3896         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
3897         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
3898         EPOLLEXCLUSIVE.
3899
3900 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
3901
3902         * timezone/README: Remove mention of checktab.awk. Mention wiki
3903         SharedSourceFiles.
3904
3905 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
3906
3907         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
3908         WUNTRACED.
3909
3910 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3911
3912         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
3913         order to match the type of p when calling atomic_exchange_acq().
3914
3915 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3916
3917         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
3918         cfi_offset calls.
3919         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3920         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
3921         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
3922         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
3923         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
3924
3925 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
3926
3927         * timezone/checktab.awk: Removed.
3928
3929 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
3930
3931         * manual/math.texi (Errors in Math Functions): Document relaxed
3932         accuracy goals for IBM long double.
3933         * math/libm-test.inc (test_exceptions): Always allow spurious
3934         "underflow" and "inexact" exceptions for IBM long double.
3935
3936 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3937
3938         [BZ #19762]
3939         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
3940         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
3941         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3942         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
3943         (bit_arch_*): This for feature array.
3944         (bit_*): Renamed to ...
3945         (bit_cpu_*): This for cpu array.
3946         (index_*): Renamed to ...
3947         (index_arch_*): This for feature array.
3948         (index_*): Renamed to ...
3949         (index_cpu_*): This for cpu array.
3950         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
3951         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
3952         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
3953         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
3954         bit_##name with index_cpu_##name and bit_cpu_##name.
3955         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
3956         bit_##name with index_arch_##name and bit_arch_##name.
3957
3958 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
3959
3960         [BZ #19792]
3961         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
3962         Terminate FDE before return label.
3963
3964 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
3965
3966         [BZ #19790]
3967         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
3968         (rintl): Define as macro.
3969         [USE_AS_NEARBYINTL] (__rintl): Likewise.
3970         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
3971         of fesetround.  Ensure results are evaluated before end of scope.
3972         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
3973         USE_AS_NEARBYINTL and include s_rintl.c.
3974         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
3975         Disable exception traps in new environment.
3976         (libc_feholdsetround_ppc_ctx): Likewise.
3977
3978 2016-03-08  Roland McGrath  <roland@hack.frob.com>
3979
3980         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
3981         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
3982         (tst_audit10_aux) [__AVX512F__]: ... here.
3983
3984 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
3985
3986         * include/sys/auxv.h: New file.
3987
3988 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3989
3990         [BZ #19759]
3991         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
3992
3993 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3994
3995         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
3996         operand modifier.
3997         (feclearexcept): Likewise.
3998
3999 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4000
4001         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4002         to reflect the entire 32-bit HWCAP.
4003         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4004         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4005
4006 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4007
4008         [BZ #19783]
4009         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4010         $(test-via-rtld-prefix).
4011         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4012
4013 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4014
4015         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4016         union wait.  Report any non-zero exit status as error.
4017
4018 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4019
4020         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4021         configured with --enable-hardcoded-path-in-tests.
4022
4023 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4024
4025         [BZ #19677]
4026         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4027         (__ieee754_remainderl): Put zero low parts in canonical form.
4028         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4029         file.  Based on
4030         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4031         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4032         with wrapper round test-fmodrem-ldbl-128ibm.c.
4033         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4034         file.
4035         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4036         Likewise.
4037         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4038         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4039
4040 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4041
4042         [BZ #19610]
4043         * elf/ldconfig.c (opt_link): Update comment.
4044         (options): Update help string for option -X.
4045         (search_dir): Unlink stale symbolic link only if updating symbolic
4046         links.
4047         * elf/tst-ldconfig-X.sh: New file.
4048         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4049         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4050
4051 2016-03-07  Andreas Schwab  <schwab@suse.de>
4052
4053         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4054         needed arguments.
4055
4056 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4057
4058         [BZ #15333]
4059         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4060         to lstat64.
4061
4062 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4063
4064         * libio/filedoalloc.c (isatty): Remove.
4065         (local_isatty): Add comment.  Call __isatty directly.
4066         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4067         * libio/wfiledoalloc.c (isatty): Remove.
4068         (_IO_wfile_doallocate): Update comment.
4069
4070 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4071
4072         [BZ #19269]
4073         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4074         tst-audit4-aux.o.
4075         (tst-audit10): Depend on tst-audit10-aux.o.
4076         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4077         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4078         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4079         instead of inline AVX code.
4080         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4081         instead of inline AVX512 code.
4082         * sysdeps/x86_64/tst-audit4-aux.c: New file
4083         * sysdeps/x86_64/tst-audit10-aux.c: New file
4084
4085         [BZ #19648]
4086         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4087
4088 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4089
4090         [BZ #14750]
4091         [BZ #10354]
4092         [BZ #18433]
4093         * include/sched.h (__clone): Add hidden prototype.
4094         (__clone2): Likewise.
4095         * include/unistd.h (__dup): Likewise.
4096         * posix/Makefile (tests): Add tst-spawn2.
4097         * posix/tst-spawn2.c: New file.
4098         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4099         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4100         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4101         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4102         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4103         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4104         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4105         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4106         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4107         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4108         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4110         Likewise.
4111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4112         Likewise.
4113         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4114         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4115         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4116         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4117         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4118         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4119         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4120         * sysdeps/unix/sysv/linux/nptl-signals.h
4121         (____nptl_is_internal_signal): New function.
4122         * sysdeps/unix/sysv/linux/spawni.c: New file.
4123
4124         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4125         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4126         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4127         * posix/tst-execvp2.c (do_test): Likewise.
4128         * posix/tst-execvp3.c (do_test): Likewise.
4129         * posix/tst-execvp4.c (do_test): Likewise.
4130         * posix/tst-execvpe1.c: New file.
4131         * posix/tst-execvpe2.c: Likewise.
4132         * posix/tst-execvpe3.c: Likewise.
4133         * posix/tst-execvpe4.c: Likewise.
4134         * posix/tst-execvpe5.c: Likewise.
4135         * posix/tst-execvpe6.c: Likewise.
4136
4137         [BZ #19534]
4138         * posix/execl.c (execl): Remove dynamic memory allocation.
4139         * posix/execle.c (execle): Likewise.
4140         * posix/execlp.c (execlp): Likewise.
4141
4142 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4143
4144         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4145         Replace .text with .text.avx512.
4146         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4147         Likewise.
4148
4149 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4150
4151         * sysdeps/generic/libnsl.abilist: New file.
4152         * sysdeps/generic/libutil.abilist: New file.
4153
4154 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4155
4156         [BZ #19762]
4157         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4158         HAS_ARCH_FEATURE with Fast_Rep_String.
4159         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4160         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4161         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4162         Likewise.
4163         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4164         Likewise.
4165         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4166         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4167         Likewise.
4168         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4169         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4170         Likewise.
4171
4172 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4173
4174         [BZ #19745]
4175         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4176         with *%rax in call.
4177
4178 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4179
4180         [BZ #19745]
4181         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4182         with *__libc_start_main@GOTPCREL(%rip) in call.
4183
4184 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4185
4186         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4187         inside conditional for nonempty $(CXX).
4188
4189         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4190         nonempty.
4191
4192         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4193         to test for empty $(CXX) rather than $(CXX) of "no".
4194
4195 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4196
4197         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4198
4199 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4200             H.J. Lu  <hongjiu.lu@intel.com>
4201
4202         [BZ #18880]
4203         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4204         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4205         enable __memcpy_ssse3_back.
4206
4207 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4208
4209         [BZ #19758]
4210         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4211         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4212
4213 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4214
4215         [BZ #19490]
4216         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4217         (__fentry__): Likewise.
4218
4219 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4220
4221         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4222         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4223
4224 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4225
4226         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4227         __mcount_internal directly.
4228         (C_LABEL(__fentry__)): Likewise.
4229         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4230         directly.
4231
4232 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4233
4234         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4235         (__start_context): Call __setcontext directly.
4236
4237 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4238
4239         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4240         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4241         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4242         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4243         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4244         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4245         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4246         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4247         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4248         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4249         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4250         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4251         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4252         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4253         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4254         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4255         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4256         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4257         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4258         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4259         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4260         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4261         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4262         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4263         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4264         Remove conditional code.
4265         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4266         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4267         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4268         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4269         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4270         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4271         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4272         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4273         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4274         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4275         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4276         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4277
4278 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4279
4280         * NEWS (2.23): Fix typo in bug 19048 text.
4281
4282 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4283
4284         [BZ #14259]
4285         * Makeconfig: Rename msgcatdir to localedir.
4286         Rename inst_msgcatdir to inst_localedir.
4287         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4288         * config.make.in: Add localedir.
4289         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4290         (ldd-rewrite): Likewise.
4291         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4292         (install-others): Use inst_localedir.
4293         (CPPFLAGS): Use localedir.
4294         * locale/Makefile (locale-CPPFLAGS): Likewise.
4295         * po/Makefile (mo-installed): Use inst_localedir.
4296
4297         [BZ #19575]
4298         * localedata/charmaps/GB18030: Update comments regarding PAU to
4299         non-PUA mappings.
4300
4301 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4302
4303         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4304         test for header.
4305         * sysdeps/unix/sysv/linux/configure: Regenerated.
4306         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4307         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4308         Remove conditional code.
4309         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4310
4311         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4312         Define to 3.2.0.
4313         (arch_minimum_kernel): Likewise.
4314         * sysdeps/unix/sysv/linux/configure: Regenerated.
4315         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4316         Define to 2.6.32.
4317         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4318         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4319         (arch_minimum_kernel): Define to 2.6.32.
4320         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4321         * README: Document Linux 3.2 requirement.
4322         * manual/install.texi (Linux): Document Linux 3.2 headers
4323         requirement.
4324         * INSTALL: Regenerated.
4325
4326 2016-02-24  Andreas Schwab  <schwab@suse.de>
4327
4328         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4329         if !NO_LONG_DOUBLE.
4330
4331 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4332
4333         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4334         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4335
4336 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4337
4338         [BZ #19512]
4339         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4340
4341 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4342
4343         * posix/tst-dir.c: Include libc-internal.h.
4344
4345 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4346
4347         [BZ #19056]
4348         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4349         * manual/filesys.texi (Reading/Closing Directory): Mention
4350         deprecaion.
4351         * posix/tst-dir.c (main): Disable deprecation warning in test.
4352
4353 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4354
4355         [BZ #19679]
4356         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4357         Renamed to ...
4358         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4359         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4360         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4361         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4362         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4363         * sysdeps/x86_64/dl-trampoline.h
4364         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4365         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4366
4367 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4368
4369         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4370
4371 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4372
4373         * elf/elf.h (R_386_GOT32X): New.
4374         (R_386_NUM): Update.
4375         (R_X86_64_GOTPCRELX: New.
4376         (R_X86_64_REX_GOTPCRELX): New.
4377         (R_X86_64_NUM): Update.
4378
4379 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4380
4381         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4382
4383 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4384
4385         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4386         assign attr->stackaddr to it, and adjust it down when
4387         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4388         [_STACK_GROWS_UP]: Delete assert.
4389         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4390         Implement stack grows up logic.
4391         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4392         stack grows up logic.
4393
4394 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4395
4396         * NEWS: Update with 2.24 template.
4397
4398 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4399
4400         [BZ #19678]
4401         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4402         Ensure +0.0 is returned when taking the next value below the least
4403         positive value.
4404
4405 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4406
4407         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4408         available.  Do not define NO_THREADS.
4409         * malloc/malloc.c: Do not check NO_THREADS.
4410         * malloc/arena.c: Likewise.
4411
4412 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4413
4414         * malloc/malloc.c (__libc_mallinfo): Update comment.
4415         (struct malloc_par): Remove max_total_mem member, it was always 0.
4416         (int_mallinfo): Store 0 into usmblks (no functional change).
4417         * malloc/hooks.c (struct malloc_state): Document that
4418         max_total_mem is always 0.
4419         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4420         always 0.
4421         * manual/memory.texi (Statistics of Malloc): Likewise.
4422
4423 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4424
4425         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4426         * malloc/arena.c (arena_max): Remove.
4427         (heap_trim, _int_new_arena): Do not update arena_max.
4428
4429 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4430
4431         * resolv/res_init.c (res_ninit): Update comment.
4432
4433 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4434
4435         [BZ #19505]
4436         * posix/spawn_int.h: Add headers and include guard.
4437         (__spawn_valid_fd): New function.
4438         * posix/spawn_faction_addopen.c
4439         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4440         * posix/spawn_faction_addclose.c
4441         (posix_spawn_file_actions_addclose): Likewise.
4442         * posix/spawn_faction_adddup2.c
4443         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4444         second file descriptor.
4445         * posix/spawn_valid_fd.c: New file.
4446         * posix/tst-posix_spawn-fd.c: New file.
4447         * posix/Makefile (routines): Add spawn_valid_fd.
4448         (tests): Add tst-posix_spawn-fd.
4449
4450 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4451
4452         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4453         (do_test): Limit the number of arenas, so that we can use fewer
4454         outer threads.  Limit timeout to 3 seconds, in preparation for a
4455         larger TIMEOUT value.
4456
4457 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4458
4459         [BZ #19674]
4460         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4461         sign in overflowing and underflowing results when overflow or
4462         underflow is detected early.  Include sign in result before rather
4463         than after scaling.
4464
4465         [BZ #19603]
4466         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4467         (__ieee754_remainderl): Adjust sign of integer version of low part
4468         when taking absolute value of high part.
4469         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4470         * math/libm-test.inc (remainder_test_data): Add another test.
4471         (remquo_test_data): Likewise.
4472
4473 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4474
4475         [BZ #19602]
4476         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4477         equal high parts and both low parts zero specially.
4478         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4479         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4480         Add test-fmodl-ldbl-128ibm.
4481
4482         [BZ #19595]
4483         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4484         common logic for all cases of shifting subnormal results.  Do not
4485         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4486         exponent to ldbl_insert_mantissa in subnormal case.
4487
4488         [BZ #19594]
4489         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4490         on high and low parts then adjust result and use
4491         ldbl_canonicalize_int if needed.
4492
4493         [BZ #19593]
4494         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4495         on high part and __floor or __ceil on low part then use
4496         ldbl_canonicalize_int if needed.
4497
4498         [BZ #19592]
4499         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4500         high and low parts then use ldbl_canonicalize_int if needed.
4501
4502         [BZ #17899]
4503         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4504         New function.
4505         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4506         on high and low parts then use ldbl_canonicalize_int if needed.
4507
4508 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4509
4510         * configure: Regenerated.
4511
4512         * po/libc.pot: Regenerated.
4513
4514         * po/be.po: Updated translation.
4515         * po/bg.po: Likewise.
4516         * po/ca.po: Likewise.
4517         * po/cs.po: Likewise.
4518         * po/da.po: Likewise.
4519         * po/el.po: Likewise.
4520         * po/eo.po: Likewise.
4521         * po/es.po: Likewise.
4522         * po/fi.po: Likewise.
4523         * po/fr.po: Likewise.
4524         * po/gl.po: Likewise.
4525         * po/hr.po: Likewise.
4526         * po/hu.po: Likewise.
4527         * po/ia.po: Likewise.
4528         * po/id.po: Likewise.
4529         * po/it.po: Likewise.
4530         * po/ja.po: Likewise.
4531         * po/lt.po: Likewise.
4532         * po/nb.po: Likewise.
4533         * po/nl.po: Likewise.
4534         * po/pt_BR.po: Likewise.
4535         * po/rw.po: Likewise.
4536         * po/sk.po: Likewise.
4537         * po/sl.po: Likewise.
4538         * po/sv.po: Likewise.
4539         * po/tr.po: Likewise.
4540         * po/zh_CN.po: Likewise.
4541         * po/zh_TW.po: Likewise.
4542
4543         * version.h (RELEAES): Set to "development".
4544         (VERSION): Set to 2.23.90.
4545
4546         * version.h (RELEASE): Set to "stable".
4547         (VERSION): Set to 2.23.
4548         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4549
4550         * NEWS: Updated fixed bugs.
4551
4552 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4553             Wilco Dijkstra  <wdijkstr@arm.com>
4554
4555         [BZ #19462]
4556         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4557         (_STRING_INLINE_unaligned): This.
4558         * include/string.h: Include <string_private.h>.
4559         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4560         _STRING_INLINE_unaligned.
4561         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4562         (_STRING_INLINE_unaligned): New.
4563         * sysdeps/aarch64/string_private.h: New file.
4564         * sysdeps/generic/string_private.h: Likewise.
4565         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4566         * sysdeps/s390/string_private.h: Likewise.
4567         * sysdeps/x86/string_private.h: Likewise.
4568         * sysdeps/m68k/m680x0/m68020/bits/string.h
4569         (_STRING_ARCH_unaligned): Renamed to ...
4570         (_STRING_INLINE_unaligned): This.
4571         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4572         to ...
4573         (_STRING_INLINE_unaligned): This.
4574         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4575         to ...
4576         (_STRING_INLINE_unaligned): This.
4577         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4578         to ...
4579         (_STRING_INLINE_unaligned): This.
4580
4581 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4582             H.J. Lu  <hongjiu.lu@intel.com>
4583
4584         [BZ #19590]
4585         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4586         relocation.
4587
4588 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4589
4590         [BZ #18665]
4591         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4592         *herrno_p.
4593         (gaih_getanswer): Document functional behviour. Return tryagain
4594         if any result is tryagain.
4595         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4596         when freed.
4597         * resolv/res_send.c: Add copyright text.
4598         (__libc_res_nsend): Document that MAXPACKET is expected.
4599         (send_vc): Document. Remove buffer reuse.
4600         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4601         size of the buffer. Add Dprint for truncated UDP buffer.
4602
4603 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4604
4605         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4606         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4607         * INSTALL: Regenerate.
4608
4609 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4610             Jonathan Wakely  <jwakely@redhat.com>
4611             Carlos O'Donell  <carlos@redhat.com>
4612
4613         [BZ 19439]
4614         * math/Makefile (tests): Add test-math-isinff.
4615         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4616         * math/bits/mathcalls.h [__USE_MISC]: Use
4617         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4618         functions not in C++11 and which don't conflict e.g. isinff,
4619         isinfl etc.
4620         * math/test-math-isinff.cc: New file.
4621
4622 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4623
4624         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4625
4626 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4627
4628         [BZ #19529]
4629         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4630
4631 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4632
4633         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4634
4635 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4636
4637         [BZ #19550]
4638         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4639         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4640         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4641         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4642         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4643         New syscall entry.
4644         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4645         New syscall entry.
4646         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4647         syscall entry.
4648
4649 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4650
4651         [BZ #18240]
4652         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4653         unsigned int wraparound.
4654
4655 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4656
4657         [BZ #18240]
4658         * misc/bug18240.c: New test.
4659         * misc/Makefile (tests): Add it.
4660
4661 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4662             Joseph Myers  <joseph@codesourcery.com>
4663
4664         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4665         load in branch delay slot when less than a word of input left.
4666
4667 2016-01-27  Andreas Schwab  <schwab@suse.de>
4668
4669         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4670         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4671         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4672         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4673
4674 2016-01-26  David S. Miller  <davem@davemloft.net>
4675
4676         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4677
4678 2016-01-25  David S. Miller  <davem@davemloft.net>
4679
4680         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4681         __sqrtl_finite.
4682         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4683         instead using versioned_symbol.
4684         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4685         of entries.
4686
4687         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4688         __sqrtl_finite to GLIBC_2.23
4689
4690 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4691
4692         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4693
4694 2016-01-25  Andreas Schwab  <schwab@suse.de>
4695
4696         [BZ #17514]
4697         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4698         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4699         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4700         * nptl/tst-mutex-errorcheck.c: New file.
4701
4702 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4703
4704         [BZ #18560]
4705         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4706         (IPCOP_semop): Likewise.
4707         (IPCOP_semget): Likewise.
4708         (IPCOP_semctl): Likewise.
4709         (IPCOP_msgsnd): Likewise.
4710         (IPCOP_msgrcv): Likewise.
4711         (IPCOP_msgget): Likewise.
4712         (IPCOP_msgctl): Likewise.
4713         (IPCOP_shmat): Likewise.
4714         (IPCOP_shmdt): Likewise.
4715         (IPCOP_shmget): Likewise.
4716         (IPCOP_shmctl): Likewise.
4717
4718 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4719
4720         * string/tst-endian.c: Include <libc-internal.h>.
4721         (do_test): Ignore tautological-compare warnings around
4722         "htobeXX (beXXtoh (i)) != i" and
4723         "htoleXX (leXXtoh (i)) != i" if-statements.
4724
4725 2016-01-24  David S. Miller  <davem@davemloft.net>
4726
4727         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4728         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4729         alias.
4730         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4731         __sqrtl_finite.
4732
4733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4734
4735 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4736
4737         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4738         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4739         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4740
4741 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4742
4743         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4744         (thread_func): Use new function to simplify barrier check.
4745         (do_test): Use new function to simplify checking barrier exit
4746         code, and actually join the child thread.
4747
4748 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4749
4750         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4751         semicolon.
4752         (__libc_tend): Likewise.
4753         (__libc_tabort): Likewise.
4754
4755 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4756
4757         * sysdeps/nios2/libm-test-ulps: Update.
4758         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4759         (__gtsf2): Likewise.
4760         (__unorddf2): Likewise.
4761         (__unordsf2): Likewise.
4762         (__ledf2): Likewise.
4763
4764 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4765
4766         * nis/nis_table.c (__follow_path): Disable diagnostic for
4767         uninitialized variable that is a false positive for gcc 4.7.
4768         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4769
4770 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4771
4772         * sysdeps/nacl/lowlevellock-futex.h
4773         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4774         Always evaluate PRIVATE argument.
4775
4776 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4777
4778         [BZ #19490]
4779         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4780         (pthread_cond_broadcast): Use ENTRY/END
4781         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4782         (pthread_cond_signal): Likewise.
4783         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4784         Likewise.
4785         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4786         Likewise.
4787         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4788         Likewise.
4789
4790 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4791
4792         * sysdeps/ieee754/dbl-64/s_finite.c
4793         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4794         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4795         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4796         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4797         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4798
4799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4800         (__gtsf2): Add as optional for libc.so.
4801         (__unordsf2): Likewise.
4802         (__signbit): Remove for libc.so.
4803         (__signbitl): Likewise.
4804
4805 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4806
4807         * iconvdata/bug-iconv11.c (test_ibm93x):
4808         Use %zu printf format specifier for size_t argument.
4809
4810 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4811
4812         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4813         already-recorded ulps.
4814         * sysdeps/arm/libm-test-ulps: Regenerated.
4815         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4816         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4817         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4818
4819 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4820             Paul Pluzhnikov  <ppluzhnikov@google.com>
4821
4822         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4823         assembler not supporting AVX-512.
4824
4825 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4826
4827         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4828
4829 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4832         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4833
4834         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4835
4836         * sysdeps/arm/libm-test-ulps: Regenerated.
4837
4838 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4839
4840         [BZ #19451]
4841         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4842
4843 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4844
4845         [BZ #19486]
4846         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4847         * sysdeps/generic/fix-fp-int-convert-overflow.h
4848         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
4849         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
4850         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
4851         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
4852         Likewise.
4853         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
4854         Avoid conversions to long int where inexact exceptions
4855         could be raised.
4856         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
4857         Likewise.
4858         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
4859         Avoid conversions to long long int where inexact exceptions
4860         could be raised.
4861         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
4862         Likewise.
4863
4864 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
4865
4866         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
4867         * configure: Regenerated.
4868
4869 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4870
4871         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
4872
4873 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
4874
4875         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
4876         outside of comment.
4877
4878 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4879
4880         * nptl/tst-barrier1.c: Add description on first line.
4881         * nptl/tst-barrier2.c: Likewise.
4882         * nptl/tst-barrier3.c: Likewise.
4883         * nptl/tst-barrier4.c: Likewise.
4884         * nptl/tst-barrier5.c: Likewise.
4885
4886 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4887
4888         [BZ #18868]
4889         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
4890
4891 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4892
4893         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
4894         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
4895         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
4896         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
4897         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
4898         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
4899         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4900         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4901         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4902         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4903         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4904
4905 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4906
4907         [BZ #13065]
4908         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
4909         new implementation.
4910         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
4911         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
4912         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
4913         (BARRIER_IN_THRESHOLD): New macro.
4914         * nptl/pthread_barrierattr_setpshared.c
4915         (pthread_barrierattr_setpshared): Clean up.
4916         * nptl/tst-barrier4.c: Correct comment.
4917         * nptl/tst-barrier5.c: New file.
4918         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
4919         (gen-as-const-headers): Remove lowlevelbarrier.sym.
4920         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
4921         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
4922         * nptl/lowlevelbarrier.sym: Remove.
4923         * nptl/DESIGN-barrier.txt: Remove.
4924         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
4925         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
4926         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
4927         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
4928         error.
4929         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
4930         implementation.
4931
4932 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4933
4934         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
4935         (do_child): Mask SIGRTMIN while thr is running.
4936
4937 2016-01-15  Martin Sebor  <msebor@redhat.com>
4938
4939         [BZ #19432]
4940         * iconvdata/Makefile: Add bug-iconv11.
4941         * iconvdata/bug-iconv11.c: New test.
4942         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
4943         * iconvdata/ibm933.c: Same.
4944         * iconvdata/ibm935.c: Same.
4945         * iconvdata/ibm937.c: Same.
4946         * iconvdata/ibm939.c: Same.
4947
4948 2016-01-15  Martin Sebor  <msebor@redhat.com>
4949
4950         [BZ #19443]
4951         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
4952         [DEBUG] (_ufc_set_bits): Declare used.
4953         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
4954         [DEBUG] (print_all): Declare used.
4955         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
4956         operands of the ternary ?: expression to target type.
4957         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
4958         calling the undeclared abort.
4959         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
4960
4961 2016-01-15  Martin Sebor  <msebor@redhat.com>
4962
4963         [BZ #18755]
4964         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
4965         warnings.
4966         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
4967         (__gai_create_helper_thread): Same.
4968         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
4969         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
4970         to suppress -Wmaybe-uninitialized warnings.
4971
4972 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
4973
4974         [BZ #19465]
4975         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
4976         inside if.
4977         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4978         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4979         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4980
4981 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
4982
4983         [BZ #19466]
4984         * time/tst-mktime2.c (time_t_max): Removed.
4985         (time_t_min): Likewise.
4986         (TYPE_SIGNED): New.
4987         (TYPE_MINIMUM): Likewise.
4988         (TYPE_MAXIMUM): Likewise.
4989         (TIME_T_MIN): Likewise.
4990         (TIME_T_MAX): Likewise.
4991         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
4992         and TIME_T_MIN.
4993         (do_test): Likewise.
4994
4995 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
4996
4997         [BZ #19467]
4998         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4999         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5000
5001 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5002
5003         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5004
5005 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5006
5007         * benchtests/Makefile (PYTHON): Define.
5008         (bench-func): Use $(PYTHON) to run python scripts.
5009         ($(objpfx)bench-%.c): Likewise.
5010
5011 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5012
5013         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5014         leading slash when `file_name' is "/".
5015
5016 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5017
5018         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5019         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5020         Likewise.
5021         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5022         Likewise.
5023         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5024         Likewise.
5025         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5026         enum constant and macro.
5027         (PTRACE_SETSIGMASK): Likewise.
5028         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5029         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5030         (PTRACE_GETSIGMASK): Likewise.
5031         (PTRACE_SETSIGMASK): Likewise.
5032         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5033         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5034         Likewise.
5035         (PTRACE_SETSIGMASK): Likewise.
5036         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5037         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5038         (PTRACE_GETSIGMASK): Likewise.
5039         (PTRACE_SETSIGMASK): Likewise.
5040         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5041         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5042         Likewise.
5043         (PTRACE_SETSIGMASK): Likewise.
5044         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5045         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5046         Likewise.
5047         (PTRACE_SETSIGMASK): Likewise.
5048         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5049         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5050         Likewise.
5051         (PTRACE_SETSIGMASK): Likewise.
5052         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5053
5054 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5055             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5056
5057         [BZ #19439]
5058         * math/bits/mathcalls.h
5059         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5060         prototype.
5061         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5062
5063 2016-01-11  Andreas Schwab  <schwab@suse.de>
5064
5065         [BZ #19253]
5066         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5067         cache when TZDEFRULES was used.
5068         * time/tst-tzname.c: New file.
5069         * time/Makefile (test): Add tst-tzname.
5070         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5071         * timezone/Makefile (test-zones): Add $(posixrules-file).
5072         ($(testdata)/$(posixrules-file)): New rule.
5073
5074 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         Fix doc quoting problems with Texinfo 5
5077         Without this change, in the info file output, Texinfo 5 quotes code
5078         in text with undirected single quotes 'like this' and generates
5079         code examples that with many PDF readers cannot be cut out of PDFs
5080         and pasted into code.
5081         * manual/libc.texinfo: Configure the libc manual like the GNU
5082         Emacs manual, by using @documentencoding and setting
5083         txicodequoteundirected and txicodequotebacktick.  This way,
5084         Texinfo 5 quotes code in text with directed single quotes ‘like
5085         this’ and produces examples that can be cut out of PDFs.  This
5086         change causes Texinfo 5 to generate info files that contain UTF-8
5087         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5088         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5089
5090 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5091
5092         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5093         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5094         barriers to their respective compiler built-ins.
5095         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5096         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5097         * sysdeps/powerpc/sysdep.h: Likewise.
5098         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5099         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5100         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5101
5102 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5103
5104         * scripts/config.guess: Revert previous shebang change.
5105         * scripts/config.sub: Likewise.
5106         * scripts/mkinstalldirs: Likewise.
5107
5108 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5109
5110         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5111         PPC_FEATURE2_HAS_IEEE128.
5112         * sysdeps/powerpc/dl-procinfo.c:
5113         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5114
5115 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5116
5117         [BZ #19415]
5118         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5119         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5120         (_dl_lookup_address): Rewrite using function resolver trampoline.
5121         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5122         two bits in address.
5123
5124 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5125
5126         * longlong.h: Change !__SHMEDIA__ to
5127         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5128         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5129
5130 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5131             Joseph Myers  <joseph@codesourcery.com>
5132             Mark Shinwell  <shinwell@codesourcery.com>
5133             Andrew Stubbs  <ams@codesourcery.com>
5134             Rich Felker <dalias@libc.org>
5135
5136         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5137
5138 2016-01-07  Richard Henderson  <rth@redhat.com>
5139
5140         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5141
5142 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5143
5144         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5145         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5146         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5147         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5148         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5149
5150 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5151             Joseph Myers  <joseph@codesourcery.com>
5152
5153         * timezone/private.h: Update from tzcode 2015g.
5154         * timezone/tzfile.h: Likewise.
5155         * timezone/tzselect.ksh: Likewise.
5156         * timezone/zdump.c: Likewise.
5157         * timezone/zic.c: Likewise.
5158         * timezone/ialloc.c: Remove file.
5159         * timezone/scheck.c: Likewise.
5160         * timezone/Makefile (extra-objs): Remove variable.
5161         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5162         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5163         -Wno-maybe-uninitialized.
5164         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5165         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5166         (CFLAGS-ialloc.c): Remove variable.
5167         (CFLAGS-scheck.c): Likewise.
5168         * timezone/README: Update list of files from tzcode.
5169
5170 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5171
5172         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5173         instead of __fxprintf when _LIBC is undefined.
5174
5175 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5176
5177         * catgets/test-gencat.sh: Remove space after shebang.
5178         * conform/GlibcConform.pm: Likewise.
5179         * conform/check-header-lists.sh: Likewise.
5180         * conform/conformtest.pl: Likewise.
5181         * conform/linknamespace.pl: Likewise.
5182         * conform/list-header-symbols.pl: Likewise.
5183         * debug/catchsegv.sh: Likewise.
5184         * elf/genrtldtbl.awk: Likewise.
5185         * elf/tst-pathopt.sh: Likewise.
5186         * elf/tst-rtld-load-self.sh: Likewise.
5187         * grp/tst_fgetgrent.sh: Likewise.
5188         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5189         * iconvdata/gen-8bit-gap.sh: Likewise.
5190         * iconvdata/gen-8bit.sh: Likewise.
5191         * iconvdata/run-iconv-test.sh: Likewise.
5192         * intl/tst-gettext.sh: Likewise.
5193         * intl/tst-gettext2.sh: Likewise.
5194         * intl/tst-gettext4.sh: Likewise.
5195         * intl/tst-gettext6.sh: Likewise.
5196         * intl/tst-translit.sh: Likewise.
5197         * io/ftwtest-sh: Likewise.
5198         * libio/test-freopen.sh: Likewise.
5199         * locale/gen-translit.pl: Likewise.
5200         * malloc/tst-mtrace.sh: Likewise.
5201         * manual/check-safety.sh: Likewise.
5202         * manual/libc-texinfo.sh: Likewise.
5203         * manual/tsort.awk: Likewise.
5204         * manual/xtract-typefun.awk: Likewise.
5205         * nptl/tst-cancel-wrappers.sh: Likewise.
5206         * nptl/tst-tls6.sh: Likewise.
5207         * posix/globtest.sh: Likewise.
5208         * posix/tst-getconf.sh: Likewise.
5209         * posix/wordexp-tst.sh: Likewise.
5210         * scripts/check-c++-types.sh: Likewise.
5211         * scripts/check-local-headers.sh: Likewise.
5212         * scripts/config.guess: Likewise.
5213         * scripts/config.sub: Likewise.
5214         * scripts/cpp: Likewise.
5215         * scripts/cross-test-ssh.sh: Likewise.
5216         * scripts/documented.sh: Likewise.
5217         * scripts/evaluate-test.sh: Likewise.
5218         * scripts/gen-libc-abis: Likewise.
5219         * scripts/gen-sorted.awk: Likewise.
5220         * scripts/list-fixed-bugs.py: Likewise.
5221         * scripts/merge-test-results.sh: Likewise.
5222         * scripts/mkinstalldirs: Likewise.
5223         * scripts/rellns-sh: Likewise.
5224         * scripts/test-installation.pl: Likewise.
5225         * scripts/update-copyrights: Likewise.
5226         * stdio-common/tst-printf.sh: Likewise.
5227         * stdio-common/tst-unbputc.sh: Likewise.
5228         * stdlib/tst-fmtmsg.sh: Likewise.
5229         * stdlib/tst-setcontext3.sh: Likewise.
5230         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5231         * sysdeps/unix/make-syscalls.sh: Likewise.
5232
5233 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5234
5235         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5236         asm stw with atomic_exchange_rel.  Add explanatory comment.
5237         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5238         Likewise.
5239
5240 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5241
5242         [BZ #19122]
5243         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5244         * sysdeps/generic/dl-unistd.h: New file.
5245         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5246
5247 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5248
5249          [BZ #19122]
5250          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5251          * sysdeps/generic/dl-mman.h: New file.
5252          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5253
5254 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5255
5256         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5257         trailing whitespace removed.
5258         * scripts/config.guess: Update to version 2016-01-01.
5259         * scripts/config.sub: Update to version 2016-01-01.
5260         * scripts/move-if-change: Update from gnulib.
5261
5262 2016-01-04  Anton Blanchard  <anton@samba.org>
5263
5264         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5265         for array indices.
5266         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5267
5268 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5269
5270         * NEWS: Update copyright dates.
5271         * catgets/gencat.c (print_version): Likewise.
5272         * csu/version.c (banner): Likewise.
5273         * debug/catchsegv.sh: Likewise.
5274         * debug/pcprofiledump.c (print_version): Likewise.
5275         * debug/xtrace.sh (do_version): Likewise.
5276         * elf/ldconfig.c (print_version): Likewise.
5277         * elf/ldd.bash.in: Likewise.
5278         * elf/pldd.c (print_version): Likewise.
5279         * elf/sotruss.sh: Likewise.
5280         * elf/sprof.c (print_version): Likewise.
5281         * iconv/iconv_prog.c (print_version): Likewise.
5282         * iconv/iconvconfig.c (print_version): Likewise.
5283         * locale/programs/locale.c (print_version): Likewise.
5284         * locale/programs/localedef.c (print_version): Likewise.
5285         * login/programs/pt_chown.c (print_version): Likewise.
5286         * malloc/memusage.sh (do_version): Likewise.
5287         * malloc/memusagestat.c (print_version): Likewise.
5288         * malloc/mtrace.pl: Likewise.
5289         * manual/libc.texinfo: Likewise.
5290         * nptl/version.c (banner): Likewise.
5291         * nscd/nscd.c (print_version): Likewise.
5292         * nss/getent.c (print_version): Likewise.
5293         * nss/makedb.c (print_version): Likewise.
5294         * posix/getconf.c (main): Likewise.
5295         * scripts/test-installation.pl: Likewise.
5296         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5297
5298         * All files with FSF copyright notices: Update copyright dates
5299         using scripts/update-copyrights.
5300         * intl/plural.c: Regenerated.
5301         * locale/programs/charmap-kw.h: Likewise.
5302         * locale/programs/locfile-kw.h: Likewise.
5303
5304 2016-01-02  Helge Deller  <deller@gmx.de>
5305
5306         [BZ #19285]
5307         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5308         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5309         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5310         (MADV_xxK_PAGES): Remove.
5311
5312 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5313
5314         [BZ #15421]
5315         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5316         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5317         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5318         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5319
5320 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5321
5322         [BZ #19408]
5323         * sysdeps/unix/sysv/linux/personality.c: New file.
5324         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5325         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5326         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5327         (sysdep_routines): Add personality.
5328         (tests): Add tst-personality.
5329         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5330         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5331         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5332         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5333         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5334         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5335         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5336         Likewise.
5337         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5338         Likewise.
5339         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5340         Likewise.
5341         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5342         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5343         Likewise.
5344
5345 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5346
5347         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5348         (PATH_ARM_SYSTYPE): Remove.
5349         (PATH_CPUINFO): Likewise.
5350         (IO_BASE_FOOTBRIDGE): Likewise.
5351         (IO_SHIFT_FOOTBRIDGE): Likewise.
5352         (struct platform): Likewise.
5353         (init_iosys): Remove compatibility code for 2.4 kernels.
5354         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5355
5356 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5357
5358         * malloc/tst-malloc-thread-fail.c: New file.
5359         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5360         (tst-malloc-thread-fail): Link against libpthread.
5361
5362 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5363
5364         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5365         (get_parser): New function.
5366         (main): New function.
5367
5368 2015-12-29  Rob Wu  <rob@robwu.nl>
5369
5370         [BZ #19369]
5371         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5372
5373 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5374
5375         [BZ #19270]
5376         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5377
5378 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5379
5380         [BZ #15421]
5381         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5382
5383 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5384
5385         [BZ #13690]
5386         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5387         after releasing it.
5388         (__lll_robust_unlock): Likewise.
5389         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5390         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5391         (lll_robust_unlock): Likewise.
5392         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5393         Prevent warnings in callers.
5394
5395 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5396
5397         * malloc/arena.c (list_lock): Update comment.
5398
5399 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5400
5401         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5402         __parse_hwcap_and_convert_at_platform to libc.a.
5403
5404 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5405
5406         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5407         platform and feature support for POWER9.
5408         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5409         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5410         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5411         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5412         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5413         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5414         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5415         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5416
5417 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5418
5419         Harmonize generic stdio-lock support with nptl
5420
5421         This fixes build when _IO_funlockfile is a macro, fixes build where
5422         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5423         stack unwind.
5424
5425         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5426         _IO_release_lock ): Use cleanup attribute on new
5427         _IO_acquire_lock_file variable instead of assuming that
5428         _IO_release_lock will be called.
5429         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5430         _IO_acquire_lock_needs_exceptions_enabled.
5431         (_IO_acquire_lock_clear_flags2): New macro.
5432
5433 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5434
5435         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5436
5437 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5438
5439         [BZ #19182]
5440         * malloc/arena.c (list_lock): Document lock ordering requirements.
5441         (free_list_lock): New lock.
5442         (ptmalloc_lock_all): Comment on free_list_lock.
5443         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5444         (detach_arena): Update comment.  free_list_lock is now needed.
5445         (_int_new_arena): Use free_list_lock around detach_arena call.
5446         Acquire arena lock after list_lock.  Add comment, including FIXME
5447         about incorrect synchronization.
5448         (get_free_list): Switch to free_list_lock.
5449         (reused_arena): Acquire free_list_lock around detach_arena call
5450         and attached threads counter update.  Add two FIXMEs about
5451         incorrect synchronization.
5452         (arena_thread_freeres): Switch to free_list_lock.
5453         * malloc/malloc.c (struct malloc_state): Update comments to
5454         mention free_list_lock.
5455
5456 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5457
5458         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5459         Remove functions.
5460         (sloww, sloww1): Accept argument to offset quadrant.
5461         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5462         quadrant.
5463         (__sin, __cos): Consolidate common code into new functions.
5464         (reduce_sincos_1, do_sincos_1): New functions.
5465         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5466
5467         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5468         code to new functions.
5469         (reduce_sincos_2, do_sincos_2): New functions.
5470         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5471
5472         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5473         common code for sincos.
5474         (__cos) [!IN_SINCOS]: Likewise.
5475         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5476         New function.
5477         (__sincos): Use it.
5478
5479 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5480
5481         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5482         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5483         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5484
5485 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5486
5487         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5488         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5489         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5490         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5491         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5492         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5493         index_Prefer_No_VZEROUPPER): New feature.
5494         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5495         Prefer_No_VZEROUPPER for Knights Landing.
5496
5497 015-12-18  Torvald Riegel  <triegel@redhat.com>
5498
5499         * math/atest-exp2.c (mp_exp_m1): Remove.
5500
5501 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5502
5503         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5504         syscalls.
5505         (__SYSCALL0): New macro.
5506         (__SYSCALL1): Likewise.
5507         (__SYSCALL2): Likewise.
5508         (__SYSCALL3): Likewise.
5509         (__SYSCALL4): Likewise.
5510         (__SYSCALL5): Likewise.
5511         (__SYSCALL6): Likewise.
5512         (__SYSCALL_CONCAT_X): Likewise.
5513         (__SYSCALL_CONCAT): Likewise.
5514         (__SYSCALL_DIST): Likewise.
5515         (__SYSCALL_CALL): Likewise.
5516
5517 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5518
5519         [BZ #19363]
5520         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5521
5522 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5523
5524         [BZ #19375]
5525         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5526         negative subnormals.
5527
5528 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5529
5530         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5531         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5532         (INTERNAL_SYSCALL_NCS): Use it.
5533         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5534
5535 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5536
5537         [BZ #19243]
5538         * malloc/arena.c (get_free_list): Remove assert and adjust
5539         reference count handling.  Add comment about reused_arena
5540         interaction.
5541         (reused_arena): Add comments abount get_free_list interaction.
5542         * malloc/tst-malloc-thread-exit.c: New file.
5543         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5544         (tst-malloc-thread-exit): Link against libpthread.
5545
5546 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5547
5548         [BZ #19367]
5549         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5550         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5551         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5552         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5553         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5554
5555 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5556
5557         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5558         Silvermont optimizations for Knights Landing.
5559
5560 2015-12-15  Andreas Schwab  <schwab@suse.de>
5561
5562         [BZ #17197]
5563         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5564         immediately after emitting SI.
5565         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5566         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5567         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5568         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5569         * iconvdata/bug-iconv10.c: New file.
5570         * iconvdata/Makefile (tests): Add bug-iconv10.
5571         ($(objpfx)bug-iconv10.out): New rule.
5572
5573 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5574
5575         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5576         aliasing violation.
5577
5578 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5579
5580         [BZ #18472]
5581         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5582         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5583         conditionals for them.
5584         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5585         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5586         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5587         sys/kdaemon.h.
5588         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5589         compat-only syscall, obsoleted in glibc 2.23.
5590         (create_module): Likewise.
5591         (get_kernel_syms): Likewise.
5592         (query_module): Likewise.
5593         (uselib): Likewise.
5594         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5595
5596 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5597
5598         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5599         <linux/version.h>.
5600         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5601         conditional code.
5602         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5603         and ioshift_name initialization.
5604
5605 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5606
5607         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5608         Fix indentation.
5609
5610 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5611
5612         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5613
5614 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5615
5616         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5617
5618 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5619             Jakub Wilk  <jwilk@debian.org>
5620
5621         [BZ #19347]
5622         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5623         to change the group of the device to the tty group.
5624
5625 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         Split large string section; add truncation advice
5628         * manual/examples/strncat.c: Remove.
5629         This example was misleading, as the code would have undefined
5630         behavior if "hello" was longer than SIZE.  Anyway, the manual
5631         shouldn't encourage strncpy+strncat for this sort of thing.
5632         * manual/string.texi (Copying Strings and Arrays): Split into
5633         three sections Copying Strings and Arrays, Concatenating Strings,
5634         and Truncating Strings, as this section was way too long.  All
5635         cross-referenced changed.  Add advice about string-truncation
5636         functions.  Remove misleading strncat example.
5637
5638 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5639
5640         * manual/nss.texi (NSS Modules Interface): Document
5641         NSS_STATUS_NOTFOUND and SUCCESS.
5642
5643 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5644
5645         [BZ 18568]
5646         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5647         201505L, for Unicode 8.
5648
5649 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5650
5651         * locale/C-translit.h: Regenerate.
5652
5653 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5654
5655         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5656         and U+0153.
5657
5658 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5659
5660         [BZ #19351]
5661         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5662         expanding log(1+z), compare z rather than its square with epsilon
5663         to determine when to avoid evaluating the expansion.
5664
5665         [BZ #19350]
5666         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5667         Increase overflow threshold.
5668
5669         [BZ #19349]
5670         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5671         when small.
5672
5673         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5674         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5675         New macro.
5676         [__LINUX_KERNEL_VERSION >= 0x040300]
5677         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5678         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5679         Likewise.
5680         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5681         Likewise.
5682         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5683         Likewise.
5684         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5685         Likewise.
5686         [__LINUX_KERNEL_VERSION >= 0x040300]
5687         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5688         [__LINUX_KERNEL_VERSION >= 0x040300]
5689         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5690         [__LINUX_KERNEL_VERSION >= 0x040300]
5691         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5692         [__LINUX_KERNEL_VERSION >= 0x040300]
5693         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5694         [__LINUX_KERNEL_VERSION >= 0x040300]
5695         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5696         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5697         Likewise.
5698         [__LINUX_KERNEL_VERSION >= 0x040300]
5699         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5700         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5701         Likewise.
5702         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5703         Likewise.
5704         [__LINUX_KERNEL_VERSION >= 0x040300]
5705         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5706         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5707         Likewise.
5708         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5709         Likewise.
5710         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5711         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5712         Likewise.
5713         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5714         Likewise.
5715         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5716         Likewise.
5717         [__LINUX_KERNEL_VERSION >= 0x040300]
5718         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5719         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5720         Likewise.
5721         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5722         Likewise.
5723         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5724         Likewise.
5725         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5726         Likewise.
5727         [__LINUX_KERNEL_VERSION >= 0x040300]
5728         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5729         [__LINUX_KERNEL_VERSION >= 0x040300]
5730         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5731         [__LINUX_KERNEL_VERSION >= 0x040300]
5732         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5733         [__LINUX_KERNEL_VERSION >= 0x040300]
5734         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5735         [__LINUX_KERNEL_VERSION >= 0x040300]
5736         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5737         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5738         Likewise.
5739         [__LINUX_KERNEL_VERSION >= 0x040300]
5740         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5741         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5742         Likewise.
5743         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5744         Likewise.
5745         [__LINUX_KERNEL_VERSION >= 0x040300]
5746         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5747         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5748         Likewise.
5749         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5750         Likewise.
5751         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5752         (__ASSUME_SOCKET_SYSCALL): Likewise.
5753         (__ASSUME_BIND_SYSCALL): Likewise.
5754         (__ASSUME_CONNECT_SYSCALL): Likewise.
5755         (__ASSUME_LISTEN_SYSCALL): Likewise.
5756         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5757         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5758         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5759         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5760         (__ASSUME_SEND_SYSCALL): Likewise.
5761         (__ASSUME_SENDTO_SYSCALL): Likewise.
5762         (__ASSUME_RECV_SYSCALL): Likewise.
5763         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5764         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5765         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5766         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5767         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5768         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5769         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5770         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5771         Likewise.
5772         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5773         Likewise.
5774         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5775         Likewise.
5776         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5777         Likewise.
5778         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5779         Likewise.
5780         [__LINUX_KERNEL_VERSION >= 0x020625]
5781         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5782         [__LINUX_KERNEL_VERSION >= 0x020625]
5783         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5784         [__LINUX_KERNEL_VERSION >= 0x020625]
5785         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5786         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5787         Likewise.
5788         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5789         Likewise.
5790         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5791         Likewise.
5792         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5793         Likewise.
5794         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5795         Likewise.
5796         [__LINUX_KERNEL_VERSION >= 0x020625]
5797         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5798         [__LINUX_KERNEL_VERSION >= 0x020625]
5799         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5800         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5801         Likewise.
5802         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5803         Likewise.
5804
5805 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5806
5807         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5808         record the current if the current ABI and CPU support the FP64
5809         extension.
5810         (has-modd-spreg): Define to record the current if the current ABI and
5811         CPU support 32-bit floating point values in odd FPU registers.
5812         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5813         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5814         $(has-modd-spreg) equals yes.
5815         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5816         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5817         $(has-modd-spreg) equal yes.
5818
5819 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5820
5821         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5822         basename.
5823
5824 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5825
5826         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5827         (bench-string): ... here.
5828         (bench): Add bench-string.
5829         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5830         to *-benchset to reflect what they are.
5831         (benchset): Adjust.
5832
5833         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5834         cos-inputs.
5835
5836 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5837
5838         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5839         __attribute__ ((__simd__)) for vector math function declarations.
5840
5841 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5842
5843         Fix typo in strncat, wcsncat manual entries
5844         * manual/string.texi (Copying and Concatenation): Fix typos in
5845         sample implementations of strncat and wcsncat, by having them use
5846         the old value of the destination length, not the new one.
5847
5848 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
5849
5850         [BZ #16961]
5851         [BZ #16962]
5852         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
5853         string on the stack for strtod.
5854         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
5855         a string on the stack for strtof.
5856         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
5857         constructing a string on the stack for strtold.
5858         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
5859         __strtold_nan to GLIBC_PRIVATE.
5860         * math/test-nan-overflow.c: New file.
5861         * math/test-nan-payload.c: Likewise.
5862         * math/Makefile (tests): Add test-nan-overflow and
5863         test-nan-payload.
5864
5865 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5866
5867         Consistency about byte vs character in string.texi
5868         * manual/string.texi (String and Array Utilities):
5869         Distinguish more carefully among bytes, multibyte characters,
5870         and wide characters.  Use "byte" when talking about C 'char',
5871         to distinguish it more clearly from multibyte characters.
5872         Say "wide character" or "multibyte character" instead of
5873         "character", when a wide or multibyte character is intended.
5874         Similarly for "multibyte string" versus "string".
5875         Define these terms more carefully.
5876
5877 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
5878
5879         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
5880         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
5881         Likewise.
5882         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5883         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5884         * sysdeps/sh/math_private.h: New file.
5885         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
5886         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
5887         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
5888         long double function name.
5889         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5890         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5891         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5892         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5893         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5895         Remove __finitel, __isinfl, and __isnanl.
5896         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5897         Likewise.
5898         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5900         Remove __finitel.
5901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5902         Likewise.
5903         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5904
5905 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
5906
5907         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
5908         installed libmvec_nonshared.a.
5909
5910 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5911
5912         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
5913         (sysdep_routines): Likewise.
5914         (sysdep-rtld-routines): Likewise.
5915         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
5916         [$(subdir) = nptl](tests-static): test-get_hwcap-static
5917         * sysdeps/powerpc/Versions: Added new
5918         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
5919         * sysdeps/powerpc/hwcapinfo.c: New file.
5920         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
5921         and parse hwcap, hwcap2 and platform number information.
5922         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
5923         to store HWCAP+HWCAP2 and platform number.
5924         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
5925         for HWCAP+HWCAP2 and platform number in the TCB.
5926         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
5927         the HWCAP, HWCAP2 and platform number in the TCB.
5928         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
5929         (TLS_INIT_TP): Included calls to add the hwcap and
5930         at_platform values in the TCB in TP initialization.
5931         (TLS_DEFINE_INIT_TP): Likewise.
5932         (THREAD_GET_HWCAP): New macro.
5933         (THREAD_SET_HWCAP): Likewise.
5934         (THREAD_GET_AT_PLATFORM): Likewise.
5935         (THREAD_SET_AT_PLATFORM): Likewise.
5936         * sysdeps/powerpc/powerpc32/dl-machine.h:
5937         (dl_platform_init): New function that calls
5938         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
5939         powerpc32.
5940         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
5941         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
5942         this functionality, static linking case.
5943         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
5944         linking case.
5945         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
5946         __parse_hwcap_and_convert_at_platform for the static linking case.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
5948         Included the new __parse_hwcap_and_convert_at_platform symbol in the
5949         ABI list for GLIBC 2.23.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
5951         Likewise.
5952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
5953         Likewise.
5954
5955 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
5956
5957         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
5958         * configure: Regenerate.
5959         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
5960         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
5961
5962 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
5963
5964         * iconvdata/ibm930.c: Add comment explaining encoding uses.
5965         * iconvdata/ibm933.c: Likewise.
5966         * iconvdata/ibm935.c: Likewise.
5967         * iconvdata/ibm937.c: Likewise.
5968         * iconvdata/ibm939.c: Likewise.
5969
5970 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5971
5972         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
5973         pthread_join.
5974         * nptl/tst-cancel21.c (tf): Likewise.
5975
5976 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
5977
5978         [BZ #19313]
5979         * bits/typesizes.h (__CPU_MASK_TYPE): New.
5980         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5981         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5982         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
5983         Likewise.
5984         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
5985         Likewise.
5986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
5987         Likewise.
5988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
5989         Likewise.
5990         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
5991         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
5992         unsigned long int with __CPU_MASK_TYPE.
5993
5994 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5995
5996         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5997
5998 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
5999
6000         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6001         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6002         t512.x.
6003         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6004
6005 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6006
6007         [BZ #19214]
6008         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6009         argument to return extended model.  Update family and model
6010         with extended family and model when family == 0x0f.
6011         (init_cpu_features): Updated.
6012
6013 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6014
6015         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6016         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6017
6018         * sysdeps/mach/hurd/mmap64.c: New file.
6019
6020 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6021
6022         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6023         rights for its main user thread in NEWTASK.
6024
6025 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6026
6027         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6028         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6029
6030 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6031
6032         [BZ #14259]
6033         * Makeconfig: Rename localedir to complocaledir.
6034         Rename inst_localedir to inst_complocaledir.
6035         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6036         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6037         * configure.ac: Use libc_cv_complocaledir.
6038         * configure: Regenerate.
6039         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6040         -DCOMPLOCALEDIR.
6041         * locale/findlocale.c: Use COMPLOCALEDIR.
6042         * locale/loadarchive.c: Likewise.
6043         * locale/programs/locale.c: Likewise.
6044         * locale/programs/localedef.c: Likewise.
6045         * locale/programs/locarchive.c: Likewise.
6046         * localedata/Makefile: Use inst_complocaledir.
6047         * sysdeps/gnu/configure: Regenerate.
6048         * sysdeps/hppa/configure: Regenerate.
6049         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6050         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6052         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6053         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6054         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6055         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6056
6057 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6058
6059         [BZ #19058]
6060         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6061         AS_NEEDED.
6062         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6063         workaround.
6064         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6065         libmvec-static-only-routines): Added new file.
6066         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6067
6068 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6069
6070         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6071         of interrupted RPC instead of restoring it.
6072
6073         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6074         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6075         libc_hidden_def.
6076         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6077         into initialized data instead of common. Define rtld_hidden_data_def.
6078         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6079         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6080         libc_hidden_def.
6081         (if_freenameindex): Add libc_hidden_weak.
6082         (if_nameindex): Add libc_hidden_weak.
6083         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6084         __open64.
6085         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6086         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6087         * sysdeps/mach/nanosleep.c: Include <time.h>
6088         (__nanosleep): Rename to __libc_nanosleep.
6089         (__nanosleep): Add weak_alias.
6090         (nanosleep): Update alias.
6091
6092 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6093
6094         * stdlib/strtod_nan.c: New file.
6095         * stdlib/strtod_nan_double.h: Likewise.
6096         * stdlib/strtod_nan_float.h: Likewise.
6097         * stdlib/strtod_nan_main.c: Likewise.
6098         * stdlib/strtod_nan_narrow.h: Likewise.
6099         * stdlib/strtod_nan_wide.h: Likewise.
6100         * stdlib/strtof_nan.c: Likewise.
6101         * stdlib/strtold_nan.c: Likewise.
6102         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6103         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6104         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6105         * wcsmbs/wcstod_nan.c: Likewise.
6106         * wcsmbs/wcstof_nan.c: Likewise.
6107         * wcsmbs/wcstold_nan.c: Likewise.
6108         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6109         strtold_nan.
6110         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6111         wcstof_nan.
6112         * include/stdlib.h (__strtof_nan): Declare and use
6113         libc_hidden_proto.
6114         (__strtod_nan): Likewise.
6115         (__strtold_nan): Likewise.
6116         (__wcstof_nan): Likewise.
6117         (__wcstod_nan): Likewise.
6118         (__wcstold_nan): Likewise.
6119         * include/wchar.h (____wcstoull_l_internal): Declare.
6120         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6121         (____strtoull_l_internal): Remove declaration.
6122         (STRTOF_NAN): Define macro.
6123         (SET_MANTISSA): Remove macro.
6124         (STRTOULL): Likewise.
6125         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6126         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6127         (STRTOF_NAN): Define macro.
6128         (SET_MANTISSA): Remove macro.
6129         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6130         (SET_MANTISSA): Remove macro.
6131         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6132         macro.
6133         (SET_MANTISSA): Remove macro.
6134         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6135         macro.
6136         (SET_MANTISSA): Remove macro.
6137         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6138         (SET_MANTISSA): Remove macro.
6139         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6140         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6141         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6142
6143         [BZ #19266]
6144         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6145         upper case and lower case letters inside NAN(), not using TOLOWER.
6146         * stdlib/tst-strtod-nan-locale-main.c: New file.
6147         * stdlib/tst-strtod-nan-locale.c: Likewise.
6148         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6149         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6150         Depend on $(gen-locales).
6151         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6152         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6153         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6154         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6155         Depend on $(gen-locales).
6156         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6157
6158 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6159
6160         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6161
6162         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6163         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6164         __finitel, __isinfl, and __isnanl.
6165         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6166         Likewise.
6167         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6168         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6169         __finitel.
6170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6171         Likewise.
6172         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6173
6174 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6175
6176         * malloc/memusage.c (me): Remove redundant getenv call.
6177
6178 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6179
6180         [BZ #19143]
6181         [BZ #19164]
6182         * nptl/check-cpuset.h: Remove.
6183         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6184         Remove CPU set size check.
6185         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6186         Likewise.
6187         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6188         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6189         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6190         (__pthread_setaffinity_new): Remove CPU set size check.
6191         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6192         (__kernel_cpumask_size): Remove.
6193         (__sched_setaffinity_new): Remove CPU set size check.
6194         * manual/threads.texi (Default Thread Attributes): Remove stale
6195         reference to check_cpuset_attr, determine_cpumask_size in comment.
6196         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6197         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6198         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6199         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6200         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6201         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6202         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6203         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6204         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6205         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6206         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6207         skeleton test file.
6208         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6209         tst-affinity-pid.
6210
6211 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6212
6213         * scripts/update-abilist.sh: New file.
6214         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6215         * Makerules (update-all-abi-%, update-all-abi)
6216         (subdir_update-all-abi): New targets.
6217         * elf/Makefile (update-all-abi): New target.
6218
6219 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6220
6221         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6222         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6223         (__libc_lock_define_initialized): Use it.
6224         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6225         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6226         * malloc/malloc.c (main_arena): Likewise.
6227         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6228         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6229
6230 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6231
6232         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6233         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6234         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6235         (PTRACE_O_MASK): Update value.
6236         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6237         New value in enum __ptrace_setoptions.
6238         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6239         (PTRACE_O_MASK): Update value.
6240         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6241         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6242         (PTRACE_O_MASK): Update value.
6243         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6244         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6245         (PTRACE_O_MASK): Update value.
6246         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6247         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6248         (PTRACE_O_MASK): Update value.
6249         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6250         New value in enum __ptrace_setoptions.
6251         (PTRACE_O_MASK): Update value.
6252         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6253         New value in enum __ptrace_setoptions.
6254         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6255         (PTRACE_O_MASK): Update value.
6256
6257         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6258         New macro.
6259         (PACKET_AUXDATA): Likewise.
6260         (PACKET_ORIGDEV): Likewise.
6261         (PACKET_VERSION): Likewise.
6262         (PACKET_HDRLEN): Likewise.
6263         (PACKET_RESERVE): Likewise.
6264         (PACKET_TX_RING): Likewise.
6265         (PACKET_LOSS): Likewise.
6266         (PACKET_VNET_HDR): Likewise.
6267         (PACKET_TX_TIMESTAMP): Likewise.
6268         (PACKET_TIMESTAMP): Likewise.
6269         (PACKET_FANOUT): Likewise.
6270         (PACKET_TX_HAS_OFF): Likewise.
6271         (PACKET_QDISC_BYPASS): Likewise.
6272         (PACKET_ROLLOVER_STATS): Likewise.
6273         (PACKET_FANOUT_DATA): Likewise.
6274         (PACKET_MR_UNICAST): Likewise.
6275
6276         [BZ #19242]
6277         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6278         (TOUPPER): Likewise.
6279         * stdlib/tst-strtol-locale-main.c: New file.
6280         * stdlib/tst-strtol-locale.c: Likewise.
6281         * stdlib/Makefile (tests): Add tst-strtol-locale.
6282         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6283         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6284         Depend on $(gen-locales).
6285         * wcsmbs/tst-wcstol-locale.c: New file.
6286         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6287         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6288         tr_TR.ISO-8859-9.
6289         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6290         Depend on $(gen-locales).
6291
6292 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6293
6294         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6295         __glibc_likely instead of __builtin_expect.  After falling back to
6296         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6297         system interface to register the code pages as occupied.
6298
6299 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6300
6301         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6302         [!ARM_MATH_PRIVATE_H].
6303         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6304         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6305         [!HPPA_MATH_PRIVATE_H].
6306         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6307         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6308         to [!I386_MATH_PRIVATE_H].
6309         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6310         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6311         Change guard to [!M68K_MATH_PRIVATE_H].
6312         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6313         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6314         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6315         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6316         macro.
6317         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6318         [!MIPS_MATH_PRIVATE_H].
6319         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6320         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6321         [!NIO2_MATH_PRIVATE_H].
6322         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6323         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6324         [!TILE_MATH_PRIVATE_H].
6325         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6326
6327         [BZ #15421]
6328         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6329         initialize with 0 and define as weak alias of __signgam.
6330         * include/math.h [!_ISOMAC] (__signgam): Declare.
6331         * math/Makefile (libm-calls): Add w_lgamma_compat.
6332         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6333         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6334         test-signgam-ullong-init.
6335         (tests-static): Add test-signgam-uchar-static,
6336         test-signgam-uchar-init-static, test-signgam-uint-static,
6337         test-signgam-uint-init-static, test-signgam-ullong-static and
6338         test-signgam-ullong-init-static.
6339         (CFLAGS-test-signgam-uchar.c): New variable.
6340         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6341         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6342         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6343         (CFLAGS-test-signgam-uint.c): Likewise.
6344         (CFLAGS-test-signgam-uint-init.c): Likewise.
6345         (CFLAGS-test-signgam-uint-static.c): Likewise.
6346         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6347         (CFLAGS-test-signgam-ullong.c): Likewise.
6348         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6349         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6350         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6351         * math/Versions (libm): Add GLIBC_2.23.
6352         * math/lgamma-compat.h: New file.
6353         * math/test-signgam-main.c: Likewise.
6354         * math/test-signgam-uchar-init-static.c: Likewise.
6355         * math/test-signgam-uchar-init.c: Likewise.
6356         * math/test-signgam-uchar-static.c: Likewise.
6357         * math/test-signgam-uchar.c: Likewise.
6358         * math/test-signgam-uint-init-static.c: Likewise.
6359         * math/test-signgam-uint-init.c: Likewise.
6360         * math/test-signgam-uint-static.c: Likewise.
6361         * math/test-signgam-uint.c: Likewise.
6362         * math/test-signgam-ullong-init-static.c: Likewise.
6363         * math/test-signgam-ullong-init.c: Likewise.
6364         * math/test-signgam-ullong-static.c: Likewise.
6365         * math/test-signgam-ullong.c: Likewise.
6366         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6367         wrapper of w_lgamma_main.c.
6368         * math/w_lgamma_compat.c: New file.
6369         * math/w_lgamma_compatf.c: Likewise.
6370         * math/w_lgamma_compatl.c: Likewise.
6371         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6372         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6373         defining compatibility symbols.
6374         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6375         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6376         wrapper of w_lgammaf_main.c.
6377         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6378         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6379         defining compatibility symbols.
6380         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6381         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6382         wrapper of w_lgammal_main.c.
6383         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6384         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6385         defining compatibility symbols.
6386         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6387         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6388         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6389         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6390         <lgamma-compat.h>.
6391         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6392         (__ieee754_gamma): Define as alias.
6393         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6394         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6395         <lgamma-compat.h>.
6396         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6397         (__ieee754_gammaf): Define as alias.
6398         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6399         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6400         <lgamma-compat.h>.
6401         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6402         (__ieee754_gammal): Define as alias.
6403         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6404         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6405         <math/w_lgamma_compat.c>.
6406         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6407         Define as alias of __lgamma_compat and use in defining lgammal.
6408         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6409         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6410         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6411         (USE_AS_COMPAT): New macro.
6412         (LGAMMA_OLD_VER): Undefine and redefine.
6413         (lgammal): Do not define here.
6414         (gammal): Only define here if [GAMMA_ALIAS].
6415         * conform/linknamespace.pl (@whitelist): Remove signgam.
6416         * sysdeps/nacl/libm.abilist: Update.
6417         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6418         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6419         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6420         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6421         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6422         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6423         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6424         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6425         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6426         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6427         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6428         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6430         Likewise.
6431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6432         Likewise.
6433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6434         Likewise.
6435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6436         Likewise.
6437         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6438         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6439         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6440         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6441         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6442         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6443         Likewise.
6444         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6445         Likewise.
6446         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6447         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6448         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6449
6450 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6451
6452         [BZ #16364]
6453         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6454         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6455
6456 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6457
6458         * sysdeps/s390/fpu/bits/mathinline.h:
6459         Use __asm__ [__volatile__] instead of asm [volatile].
6460         * sysdeps/s390/abort-instr.h: Likewise.
6461         * sysdeps/s390/atomic-machine.h: Likewise.
6462         * sysdeps/s390/bits/string.h: Likewise.
6463         * sysdeps/s390/dl-tls.h: Likewise.
6464         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6465         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6466         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6467         * sysdeps/s390/fpu/fesetround.c: Likewise.
6468         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6469         * sysdeps/s390/fpu/s_fma.c: Likewise.
6470         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6471         * sysdeps/s390/memusage.h: Likewise.
6472         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6473         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6474         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6475         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6476         * sysdeps/s390/nptl/tls.h: Likewise.
6477         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6478         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6479         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6480         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6481         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6482         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6483         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6484         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6485         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6486         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6487         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6488         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6489         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6490         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6491         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6492         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6493         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6494         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6495         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6496         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6497         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6498         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6499         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6500
6501 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6502             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6503
6504         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6505         Add lwarx hint, and use macro for acquire instruction.
6506         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6507         Likewise.
6508         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6509         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6510         update to use new atomic macros.
6511
6512 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6513
6514         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6515         (__lll_trylock_elision): Fix setting of adapt_count.
6516         * sysdeps/unix/sysv/linux/powerpc/htm.h
6517         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6518         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6519         (_ABORT_SYSCALL): Renumber, and clarify definition.
6520         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6521
6522 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6523
6524         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6525         after system headers to prevent MIN/MAX redefinition.  Define
6526         HAVE_ALLOCA to preserve builtin alloca usage.
6527
6528 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6529
6530         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6531         static and don't set or restore rounding.
6532         (__cos)[IN_SINCOS]: Likewise.
6533         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6534         (__sincos): Set and restore rounding mode.  Remove check for infinite
6535         or NaN input.
6536
6537         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6538
6539         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6540         as used.
6541
6542 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6543
6544         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6545
6546 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6547
6548         * config.make.in (have-glob-dat-reloc): New.
6549         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6550         target supports GLOB_DAT relocaton. AC_SUBST.
6551         * configure: Regenerated.
6552         * elf/Makefile (tests): Add tst-prelink.
6553         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6554         (tst-prelink-ENV): New.
6555         ($(objpfx)tst-prelink-conflict.out): Likewise.
6556         ($(objpfx)tst-prelink-cmp.out): Likewise.
6557         * sysdeps/x86/tst-prelink.c: Moved to ...
6558         * elf/tst-prelink.c: Here.
6559         * sysdeps/x86/tst-prelink.exp: Moved to ...
6560         * elf/tst-prelink.exp: Here.
6561         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6562         (tst-prelink-ENV): Removed.
6563         ($(objpfx)tst-prelink-conflict.out): Likewise.
6564         ($(objpfx)tst-prelink-cmp.out): Likewise.
6565         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6566
6567 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6568
6569         [BZ #14551]
6570         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6571         (__mpn_construct_long_double): If high part overflows to infinity,
6572         set errno and recompute overflowed result of the correct sign.
6573         * sysdeps/ieee754/ldbl-128ibm/Makefile
6574         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6575         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6576         $(libm).
6577         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6578
6579 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6580
6581         [BZ #15479]
6582         [BZ #19238]
6583         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6584         floating-point state after first operation on input.  Restore full
6585         state rather than just rounding mode.
6586         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6587         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6588         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6589
6590         [BZ #19235]
6591         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6592         add 0.5 to integer arguments.
6593         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6594         Likewise.
6595         (.LC2): New object.
6596
6597 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6598
6599         * scripts/pylintrc (reports): Set to no.
6600
6601 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6602
6603         * elf/dl-load.c (open_verify): Take new argument FD.
6604         Skip __open call if passed FD is not -1.
6605         (_dl_map_object, open_path): Update callers.
6606         * elf/dl-sysdep-open.h: New file.
6607         * elf/dl-load.c: Include it.
6608         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6609         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6610         * sysdeps/nacl/dl-sysdep-open.h: New file.
6611         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6612         from libc to rtld.
6613
6614 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6615
6616         [BZ #19228]
6617         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6618         and restore full floating-point state.
6619         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6620         Likewise.
6621         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6622         Likewise.
6623         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6624         Likewise.
6625         * math/test-nearbyint-except-2.c: New file.
6626         * math/Makefile (tests): Add test-nearbyint-except-2.
6627
6628 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6629
6630         [BZ #19178]
6631         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6632         (tst-prelink-ENV): New.
6633         ($(objpfx)tst-prelink-conflict.out): Likewise.
6634         ($(objpfx)tst-prelink-cmp.out): Likewise.
6635         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6636         * sysdeps/x86/tst-prelink.c: New file.
6637         * sysdeps/x86/tst-prelink.exp: Likewise.
6638
6639 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6640
6641         * math/auto-libm-test-in: Add another test of pow.
6642         * math/auto-libm-test-out: Regenerated.
6643         * math/libm-test.inc (pow_test_data): Add another test.
6644
6645 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6646
6647         [BZ #19219]
6648         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6649         weak_alias to nearbyintl.
6650
6651 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6652
6653         * sysdeps/aarch64/bits/string.h: New file.
6654         (_STRING_ARCH_unaligned): Define.
6655
6656 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6657
6658         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6659         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6660         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6661         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6663
6664 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6665
6666         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6667         for original name of the DSO.  Add it to the name list of the DSO
6668         if it is actually given.
6669         (_dl_map_object): Keep track of whether an audit module rewrote
6670         the file name.  If yes, pass the original name to
6671         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6672         debugging is enabled, log the change of the file name.
6673         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6674         _dl_map_object_from_fd.
6675         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6676         * elf/tst-audit11.c: New file
6677         * elf/tst-auditmod11.c: New file.
6678         * elf/tst-audit11mod1.c: New file.
6679         * elf/tst-audit11mod2.c: New file.
6680         * elf/tst-audit11mod2.map: New file.
6681         * elf/tst-audit12.c: New file
6682         * elf/tst-auditmod12.c: New file.
6683         * elf/tst-audit12mod1.c: New file.
6684         * elf/tst-audit12mod2.c: New file.
6685         * elf/tst-audit12mod2.map: New file.
6686         * elf/tst-audit12mod3.c: New file.
6687
6688 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6689
6690         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6691         Don't create weak aliases,
6692         because versioned symbols are created later.
6693         * sysdeps/s390/s390-32/setjmp.S
6694         (setjmp, _setjmp): Remove weak and rename to an unique name
6695         in SHARED case due to existing versioned symbols.
6696         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6697         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6698         (getcontext): Create weak alias only in non SHARED case.
6699         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6700
6701 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6702
6703         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6704         (__ASSUME_*_SYSCALL) Define new macros.
6705         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6706         Remove socketcall syscalls.
6707         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6708         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6709         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6710         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6711         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6712         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6713
6714 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6715
6716         [BZ #12926]
6717         Terminate process on invalid netlink response.
6718         * sysdeps/unix/sysv/linux/netlinkaccess.h
6719         (__netlink_assert_response): Declare.
6720         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6721         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6722         (sysdep_routines): Add netlink_assert_response.
6723         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6724         __netlink_assert_response.
6725         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6726         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6727         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6728         __netlink_assert_response.
6729
6730 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         [BZ #19178]
6733         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6734         (RTYPE_CLASS_PLT): Likewise.
6735         (RTYPE_CLASS_COPY): Likewise.
6736         (RTYPE_CLASS_TLS): Likewise.
6737         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6738         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6739         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6740         DL_DEBUG_PRELINK.
6741
6742 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6743
6744         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6745         calls with argument -0.5.
6746         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6747
6748         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6749         (libc_cv_z_nodlopen): Likewise.
6750         (libc_cv_z_initfirst): Likewise.
6751         * configure: Regenerated.
6752
6753 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6754
6755         Simplify abilist format to be line-based.
6756         * scripts/abilist.awk: Collect descriptors in the descs variable.
6757         (emit): Write descs variable and sort it
6758         externally, with sort.
6759         * sysdeps/**/*.abilist: Convert to new format.
6760
6761 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6762
6763         [BZ #11460]
6764         * io/Makefile (routines): Add fts64.
6765         (tests): Add tst-fts and tst-fts-lfs.
6766         (CFLAGS-fts64.c): New.
6767         * io/Versions (GLIBC_2.23): New.
6768         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6769         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6770         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6771         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6772         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6773         (FTSENT64): Likewise.
6774         (fts64_children): Likewise.
6775         (fts64_close): Likewise.
6776         (fts64_open): Likewise.
6777         (fts64_read): Likewise.
6778         (fts64_set): Likewise.
6779         * io/fts64.c: New file.
6780         * io/tst-fts.c: New test.
6781         * io/tst-fts-lfs.c: Likewise.
6782         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6783         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6784         fts64_set.
6785         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6786         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6787         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6788         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6789         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6790         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6791         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6792         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6793         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6794         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6797         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6799         Likewise.
6800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6801         Likewise.
6802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6806         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6807         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6808         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6809         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6810         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6811         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6812         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6813         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6814         * sysdeps/wordsize-64/fts.c: New file.
6815         * sysdeps/wordsize-64/fts64.c: Likewise.
6816         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6817         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6818         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6819         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6820
6821 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6822
6823         * math/libm-test.inc (NON_FINITE): New macro.
6824         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6825         * math/gen-libm-test.pl (show_exceptions): Add argument
6826         $non_finite.
6827         (parse_args): Update call to show_exceptions.
6828         * math/test-math-finite.h: New file.
6829         * math/test-math-no-finite.h: Likewise.
6830         * math/test-double-finite.c: Likewise.
6831         * math/test-float-finite.c: Likewise.
6832         * math/test-ldouble-finite.c: Likewise.
6833         * math/test-double.c: Include "test-math-no-finite.h".
6834         * math/test-float.c: Include "test-math-no-finite.h".
6835         * math/test-ldouble.c: Include "test-math-no-finite.h".
6836         * math/test-math-inline.h (TEST_FINITE): New macro.
6837         * math/test-math-vector.h (TEST_FINITE): Likewise.
6838         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6839         (libm-tests): Add test-float-finite and test-double-finite.
6840         ($(objpfx)test-float-finite.o): New dependency on
6841         $(objpfx)libm-test.stmp.
6842         ($(objpfx)test-double-finite.o): Likewise.
6843         ($(objpfx)test-ldouble-finite.o): Likewise.
6844         (libm-test-no-inline-cflags): New variable.
6845         (libm-test-finite-cflags): Likewise.
6846         (CFLAGS-test-float-finite.c): Likewise.
6847         (CFLAGS-test-double-finite.c): Likewise.
6848         (CFLAGS-test-ldouble-finite.c): Likewise.
6849         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
6850         (CFLAGS-test-double.c): Likewise.
6851         (CFLAGS-test-ldouble.c): Likewise.
6852
6853 2015-11-05  Roland McGrath  <roland@hack.frob.com>
6854
6855         * io/fcntl.c (__fcntl): Add ... to prototype.
6856         * misc/ioctl.c (__ioctl): Likewise.
6857         * misc/syscall.c (syscall): Likewise.
6858
6859 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6860
6861         * scripts/list-fixed-bugs.py: New file.
6862
6863         [BZ #19213]
6864         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
6865         returned for argument 1.
6866         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
6867         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
6868         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
6869         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
6870         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
6871         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
6872
6873         [BZ #19211]
6874         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
6875         __USE_XOPEN], not if [!__USE_ISOC99].
6876         (lgammaf): Likewise.
6877         (lgammal): Likewise.
6878         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
6879         (gammaf): Likewise.
6880         (gammal): Likewise.
6881         * math/test-signgam-finite-c11.c: New file.
6882         * math/test-signgam-finite-c99.c: Likewise.
6883         * math/test-signgam-finite.c: Likewise.
6884         * math/Makefile (tests): Add test-signgam-finite,
6885         test-signgam-finite-c99 and test-signgam-finite-c11.
6886         (CFLAGS-test-signgam-finite.c): New variable.
6887         (CFLAGS-test-signgam-finite-c99.c): Likewise.
6888         (CFLAGS-test-signgam-finite-c11.c): Likewise.
6889
6890         [BZ #19212]
6891         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
6892         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
6893         500].
6894         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
6895         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
6896         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
6897         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
6898         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
6899         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
6900         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
6901         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
6902         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
6903         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
6904
6905         [BZ #19209]
6906         * math/bits/math-finite.h (ldexp): Remove declaration.
6907         (ldexpf): Likewise.
6908         (ldexpl): Likewise.
6909
6910         [BZ #19205]
6911         * math/bits/math-finite.h (acosf): Condition declaration on
6912         [__USE_ISOC99].
6913         (acosl): Likewise.
6914         (acoshf): Likewise.
6915         (acoshl): Likewise.
6916         (asinf): Likewise.
6917         (asinl): Likewise.
6918         (atan2f): Likewise.
6919         (atan2l): Likewise.
6920         (atanhf): Likewise.
6921         (atanhl): Likewise.
6922         (coshf): Likewise.
6923         (coshl): Likewise.
6924         (expf): Likewise.
6925         (expl): Likewise.
6926         (fmodf): Likewise.
6927         (fmodl): Likewise.
6928         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
6929         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
6930         (j0l): Likewise.
6931         (y0f): Likewise.
6932         (y0l): Likewise.
6933         (j1f): Likewise.
6934         (j1l): Likewise.
6935         (y1f): Likewise.
6936         (y1l): Likewise.
6937         (jnf): Likewise.
6938         (jnl): Likewise.
6939         (ynf): Likewise.
6940         (ynl): Likewise.
6941         (lgammaf_r): Condition declaration on [__USE_ISOC99].
6942         (lgammal_r): Likewise.
6943         (__lgamma_r_finite): New declaration.
6944         (__lgammaf_r_finite): Likewise.
6945         (__lgammal_r_finite): Likewise.
6946         (lgamma): Use __lgamma_r_finite.
6947         (lgammaf): Condition definition on [__USE_ISOC99].  Use
6948         __lgammaf_r_finite.
6949         (lgammal): Condition definition on [__USE_ISOC99].  Use
6950         __lgammal_r_finite.
6951         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
6952         __lgamma_r_finite.
6953         (gammaf): Condition definition on [__USE_ISOC99].  Use
6954         __lgammaf_r_finite.
6955         (gammal): Condition definition on [__USE_ISOC99].  Use
6956         __lgammal_r_finite.
6957         (logf): Condition declaration on [__USE_ISOC99].
6958         (logl): Likewise.
6959         (log10f): Likewise.
6960         (log10l): Likewise.
6961         (ldexpf): Likewise.
6962         (ldexpl): Likewise.
6963         (powf): Likewise.
6964         (powl): Likewise.
6965         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
6966         __USE_ISOC99].
6967         (remainderf): Condition declaration on [__USE_ISOC99].
6968         (remainderl): Likewise.
6969         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
6970         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
6971         (scalbl): Likewise.
6972         (sinhf): Condition declaration on [__USE_ISOC99].
6973         (sinhl): Likewise.
6974         (sqrtf): Likewise.
6975         (sqrtl): Likewise.
6976
6977 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
6978
6979         * sysdeps/arm/atomic-machine.h
6980         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6981         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6982         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
6983         Remove conditional code.
6984         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6985         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6986         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
6987         Change conditional to [__ASSEMBLER__].
6988         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
6989         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
6990         [!__ASSEMBLER__].
6991         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
6992         code.
6993         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
6994         conditional macro definitions.
6995         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
6996         (__arch_compare_and_exchange_val_16_acq): Likewise.
6997         (__arch_compare_and_exchange_val_32_acq): Likewise.
6998         (atomic_exchange_and_add): Likewise.
6999         (atomic_add): Likewise.
7000         (atomic_add_negative): Likewise.
7001         (atomic_add_zero): Likewise.
7002         (atomic_bit_set): Likewise.
7003         (atomic_bit_test_set): Likewise.
7004         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7005         code unconditional.
7006         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7007
7008         * math/test-math-errno.h: New file.
7009         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7010         empty.
7011         (TEST_ERRNO): New macro.
7012         (TEST_EXCEPTIONS): Likewise.
7013         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7014         (TEST_EXCEPTIONS): Likewise.
7015         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7016         * math/test-double.c: Include "test-math-errno.h".
7017         * math/test-float.c: Likewise.
7018         * math/test-ldouble.c: Likewise.
7019         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7020         code unconditional.
7021         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7022         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7023         unconditional.
7024         (test_errno): Only run code if TEST_ERRNO.
7025         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7026
7027 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7028
7029         * nptl/tst-once5.cc: Remove attribution.
7030
7031 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7032
7033         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7034         sqrt, tan, tanh, y0, y1 and yn.
7035         * math/auto-libm-test-out: Regenerated.
7036         * math/libm-test.inc (scalb_test_data): Add more tests.
7037         (scalbn_test_data): Likewise.
7038         (scalbln_test_data): Likewise.
7039         (signbit_test_data): Likewise.
7040         (sin_test_data): Likewise.
7041         (sincos_test_data): Likewise.
7042         (sinh_test_data): Likewise.
7043         (sqrt_test_data): Likewise.
7044         (tan_test_data): Likewise.
7045         (tanh_test_data): Likewise.
7046         (tgamma_test_data): Likewise.
7047         (y0_test_data): Likewise.
7048         (y1_test_data): Likewise.
7049         (yn_test_data): Likewise.
7050         (significand_test_data): Likewise.
7051         * sysdeps/i386/fpu/libm-test-ulps: Update.
7052
7053 2015-11-03  David Kastrup  <dak@gnu.org>
7054
7055         [BZ #18604]
7056         * assert/assert.h (assert): Don't macro-expand failed assertion
7057         expression in error message.
7058         * malloc/malloc.c (assert): Likewise.
7059
7060 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7061
7062         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7063         test.
7064         * configure: Regenerated.
7065
7066 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7067
7068         * math/libm-test.inc (modf_test_data): Add more tests.
7069         (nearbyint_test_data): Likewise.
7070         (nextafter_test_data): Likewise.
7071         (nexttoward_test_data): Likewise.
7072         (pow_test_data): Likewise.
7073         (remainder_test_data): Likewise.
7074         (remquo_test_data): Likewise.
7075         (rint_test_data): Likewise.
7076
7077         [BZ #19201]
7078         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7079         Check for zero remainder in case of large exponents and ensure
7080         correct sign of result in that case.
7081         * math/libm-test.inc (remainder_test_data): Add more tests.
7082
7083         [BZ #6799]
7084         * math/s_nextafter.c: Include <errno.h>.
7085         (__nextafter): Set errno on overflow and underflow.
7086         * math/s_nexttowardf.c: Include <errno.h>.
7087         (__nexttowardf): Set errno on overflow and underflow.
7088         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7089         (__nextafterl): Set errno on overflow and underflow.
7090         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7091         (__nexttoward): Set errno on overflow and underflow.
7092         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7093         (__nexttowardf): Set errno on overflow and underflow.
7094         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7095         (__nextafterf): Set errno on overflow and underflow.
7096         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7097         (__nextafterl): Set errno on overflow and underflow.
7098         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7099         (__nexttoward): Set errno on overflow and underflow.
7100         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7101         (__nexttowardf): Set errno on overflow and underflow.
7102         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7103         (__nextafterl): Set errno on overflow and underflow.
7104         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7105         (__nexttoward): Set errno on overflow and underflow.
7106         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7107         (__nexttowardf): Set errno on overflow and underflow.
7108         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7109         (__nexttoward): Set errno on overflow and underflow.
7110         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7111         (__nexttowardf): Set errno on overflow and underflow.
7112         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7113         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7114         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7115         (__nextafterl): Set errno on overflow and underflow.
7116         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7117         setting to be missing on overflow.  Add more tests.
7118         (nexttoward_test_data): Likewise.
7119
7120         * configure.ac (libc_cv_initfini_array): Remove configure test.
7121         * configure: Regenerated.
7122
7123 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7124
7125         [BZ #19189]
7126         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7127         non-finite argument handle arguments with negative sign.
7128
7129         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7130         result from infinite argument.
7131         (j1_test_data): Likewise.
7132         (jn_test_data): Likewise.
7133         (y0_test_data): Likewise.
7134         (y1_test_data): Likewise.
7135         (yn_test_data): Likewise.
7136
7137         [BZ #16171]
7138         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7139         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7140         * math/w_remainderf.c (dremf): Define as weak alias of
7141         __remainderf.
7142         * math/w_remainderl.c (dreml): Define as weak alias of
7143         __remainderl.
7144         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7145         __remainder.
7146         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7147         __remainderf.
7148         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7149         __remainderl.
7150         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7151         weak alias of remainderl.
7152         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7153         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7154         alias of __remainder.
7155         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7156         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7157         strong alias of __remainderl.
7158         (dreml): Use long_double_symbol.
7159         * math/Makefile (libm-calls): Remove w_drem.
7160         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7161         (CFLAGS-nldbl-drem.c): Remove variable.
7162         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7163         * math/w_drem.c: Remove file.
7164         * math/w_dremf.c: Likewise.
7165         * math/w_dreml.c: Likewise.
7166         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7167         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7168         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7169
7170         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7171         * sysdeps/i386/configure: Regenerated.
7172         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7173         * sysdeps/x86_64/configure: Regenerated.
7174
7175         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7176         test.
7177         (libc_cv_visibility_attribute): Likewise.
7178         (libc_cv_protected_data): Test unconditionally.
7179         (libc_cv_broken_visibility_attribute): Remove configure test.
7180         (libc_cv_have_sdata_section): Test unconditionally.
7181         * configure: Regenerated.
7182
7183         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7184         * include/scratch_buffer.h: Include <stddef.h> instead of
7185         <libc-internal.h>.
7186         (struct scratch_buffer): Use max_align_t instead of
7187         libc_max_align_t.
7188
7189 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7190
7191         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7192         instead of extend_alloca.  Change control flow to avoid a goto.
7193         Remove assert which is trivially always true.
7194
7195 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7196
7197         [BZ #16068]
7198         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7199         (FE_ALL_EXCEPT_X86): New macro.
7200         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7201         FE_ALL_EXCEPT.  Ensure precision control is included in
7202         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7203         handle "denormal operand exception" and clear FZ and DAZ bits.
7204         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7205         (FE_ALL_EXCEPT_X86): New macro.
7206         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7207         FE_ALL_EXCEPT.  Ensure precision control is included in
7208         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7209         handle "denormal operand exception" and clear FZ and DAZ bits.
7210         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7211         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7212         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7213         test-fenv-x87 and test-fenv-sse-2.
7214         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7215
7216         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7217         * math/test-double.h (BUILD_COMPLEX): New macro.
7218         * math/test-float.h (BUILD_COMPLEX): Likewise.
7219         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7220
7221         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7222         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7223         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7224         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7225         instead of DBL_DENORM_MIN in comment.
7226         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7227         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7228         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7229         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7231         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7232
7233 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7234
7235         [BZ# 19048]
7236         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7237         attached_threads member.
7238         (main_arena): Initialize attached_threads.
7239         * malloc/arena.c (list_lock): Update comment.
7240         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7241         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7242         (deattach_arena): New function.
7243         (_int_new_arena): Initialize arena reference count and deattach
7244         replaced arena.
7245         (get_free_list, reused_arena): Update reference count and deattach
7246         replaced arena.
7247         (arena_thread_freeres): Update arena reference count and only put
7248         unreferenced arenas on the free list.
7249
7250 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7251
7252         [BZ #19181]
7253         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7254         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7255         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7256         * math/test-fenv-clear-main.c: New file.
7257         * math/test-fenv-clear.c: Likewise.
7258         * math/Makefile (tests): Add test-fenv-clear.
7259         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7260         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7261         test-fenv-clear-sse.
7262         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7263
7264         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7265         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7266         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7267
7268 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7269
7270         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7271         static libc.
7272
7273 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7274
7275         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7276         test.
7277         * sysdeps/i386/configure: Regenerated.
7278         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7279         test.
7280         * sysdeps/x86_64/configure: Regenerated.
7281         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7282         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7283         memset-avx2 unconditionally instead of conditionally on
7284         [$(config-cflags-avx2) = yes].
7285         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7286         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7287         unconditional.
7288         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7289         * sysdeps/x86_64/multiarch/memset_chk.S
7290         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7291         to [IS_IN (libc) && SHARED].
7292
7293 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7294
7295         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7296         configure test.
7297         * sysdeps/arm/configure: Regenerated.
7298         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7299         Define variable if not already defined.
7300
7301         [BZ #17404]
7302         * sysdeps/mips/atomic-machine.h
7303         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7304         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7305         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7306
7307         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7308         unconditional.
7309         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7310         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7311         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7312         unconditional.
7313         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7314         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7315         unconditional.
7316         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7317         * stdlib/setenv.c
7318         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7319         code unconditional.
7320         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7321         Remove conditional code.
7322         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7323         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7324         unconditional.
7325         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7326         code.
7327         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7328         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7329         unconditional.
7330         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7331         code.
7332         * sysdeps/ieee754/ldbl-128/k_tanl.c
7333         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7334         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7335         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7336         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7337         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7338         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7339         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7340         unconditional.
7341         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7342         code.
7343         * sysdeps/ieee754/ldbl-96/k_tanl.c
7344         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7345         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7346
7347         * nptl/tst-initializers1-c11.c: New file.
7348         * nptl/tst-initializers1-gnu11.c: Likewise.
7349         * nptl/Makefile (tests): Add these new tests.
7350         (CFLAGS-tst-initializers1-c11.c): New variable.
7351         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7352
7353         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7354         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7355         instead of -std=gnu99.
7356         * configure.ac (systemtap): Test with -std=gnu11 instead of
7357         -std=gnu99.
7358         * configure: Regenerated.
7359         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7360         in compilation command in comment.
7361
7362         * sysdeps/nptl/configure.ac: Remove file.
7363         * sysdeps/nptl/configure: Remove generated file.
7364         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7365         * configure: Regenerated.
7366         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7367         * config.make.in (have-forced-unwind): Remove variable.
7368         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7369         unconditional.
7370         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7371         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7372         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7373         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7374         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7375         unconditional.
7376
7377 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7378
7379         [BZ #19174]
7380         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7381         .skip_lock_out_of_tbegin_retries.
7382         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7383         (__lll_lock_elision): Likewise, and respect a value of
7384         try_tbegin <= 0.
7385
7386 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7387
7388         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7389         statement.
7390
7391 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7392
7393         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7394         variable.
7395         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7396         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7397
7398         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7399         of -std=c1x -D_ISOC11_SOURCE.
7400
7401         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7402         * configure: Regenerated.
7403         * manual/install.texi (Tools for Compilation): Document
7404         requirement for GCC 4.7 or later.
7405         * INSTALL: Regenerated.
7406
7407 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7408
7409         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7410         on CNT to a conditional jump to 'puntdata'.
7411
7412 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7413
7414         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7415         (libc_cv_gcc_tls_model_attr): Likewise.
7416         * configure: Regenerated.
7417
7418         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7419         * configure: Regenerated.
7420         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7421
7422 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7423
7424         * configure.ac (old_glibc_headers): Remove configure test.
7425         * configure: Regenerated.
7426         * config.make.in (old-glibc-headers): Remove variable.
7427         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7428         (install): Remove dependency on remove-old-headers.
7429         (headers2_0): Remove variable.
7430         (remove-old-headers): Remove rule.
7431
7432         * configure.ac (libc_cv_dot_text): Remove configure test.
7433         (libc_cv_asm_set_directive): Use .text instead of
7434         ${libc_cv_dot_text} in configure test.
7435         * configure: Regenerated.
7436
7437 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7438
7439         [BZ #19168]
7440         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7441
7442 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7443
7444         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7445         not support static linking.
7446         * configure: Regenerate.
7447
7448 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7449
7450         * math/libm-test.inc (check_float_internal): Do not special-case
7451         errors up to 0.5 ulp.
7452
7453         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7454         log2.
7455         * math/auto-libm-test-out: Regenerated.
7456         * math/libm-test.inc (MAX_EXP): New macro.
7457         (ilogb_test_data): Add more tests.
7458         (isfinite_test_data): Likewise.
7459         (isgreater_test_data): Likewise.
7460         (isgreaterequal_test_data): Likewise.
7461         (isinf_test_data): Likewise.
7462         (isless_test_data): Likewise.
7463         (islessequal_test_data): Likewise.
7464         (islessgreater_test_data): Likewise.
7465         (isnan_test_data): Likewise.
7466         (isnormal_test_data): Likewise.
7467         (issignaling_test_data): Likewise.
7468         (isunordered_test_data): Likewise.
7469         (j0_test_data): Likewise.
7470         (j1_test_data): Likewise.
7471         (jn_test_data): Likewise.
7472         (lgamma_test_data): Likewise.
7473         (log_test_data): Likewise.
7474         (log10_test_data): Likewise.
7475         (log1p_test_data): Likewise.
7476         (log2_test_data): Likewise.
7477         (logb_test_data): Likewise.
7478         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7479
7480         [BZ #18611]
7481         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7482         avoid excess range and precision on underflow.
7483         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7484         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7485         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7486         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7487         underflow.
7488         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7489         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7490         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7491         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7492         * math/auto-libm-test-in: Do not allow missing errno setting for
7493         tests of j1 and jn.
7494         * math/auto-libm-test-out: Regenerated.
7495
7496 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7497
7498         [BZ #15491]
7499         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7500         floating-point environment instead of clearing all exceptions.
7501         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7502         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7503         merging in "invalid" exceptions from frndint.
7504         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7505         * math/test-nearbyint-except.c: New file.
7506         * math/Makefile (tests): Add test-nearbyint-except.
7507
7508 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7509
7510         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7511
7512         * sysdeps/tile/libm-test-ulps: Regenerated.
7513
7514 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7515
7516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7517         (__NR_sync_file_range2): Assume it is always defined.
7518         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7519         (__NR_sync_file_range): Assume it is always defined.
7520
7521 2015-10-22  Andreas Schwab  <schwab@suse.de>
7522
7523         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7524         INTERNAL_SYSCALL_ERRNO.
7525         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7526         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7527         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7528         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7529         Likewise.
7530         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7531
7532 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7533
7534         * io/tst-fcntl.c (fd): New static variable.
7535         (do_prepare): Open temporary file here....
7536         (do_test): ...not here.
7537
7538         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7539
7540 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7541
7542         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7543         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7544         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7545         Moved before "#ifdef __ASSEMBLER__".
7546
7547 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7548
7549         [BZ #19156]
7550         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7551         arguments very close to 0.
7552
7553 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7554
7555         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7556         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7557
7558 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7559
7560         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7561         New.  Defined for GCC 5 and above when not compiling for
7562         profiling.
7563         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7564
7565         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7566         Renamed to ...
7567         (CFLAGS-epoll_pwait.o): This.
7568         (CFLAGS-mmap.c): Renamed to ...
7569         (CFLAGS-mmap.o): This.
7570         (CFLAGS-mmap64.c): Renamed to ...
7571         (CFLAGS-mmap64.o): This.
7572         (CFLAGS-epoll_pwait.os): New.
7573         (CFLAGS-mmap.os): Likewise.
7574         (CFLAGS-mmap64.os): Likewise.
7575         (CFLAGS-semtimedop.os): Likewise.
7576         (CFLAGS-semtimedop.c): Renamed to ...
7577         (CFLAGS-semtimedop.o): This.
7578
7579 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7580
7581         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7582         warning message.
7583
7584 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7585
7586         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7587         * Makefile ($(objpfx)c++-types-check.out): Filter out
7588         $(+gccwarn-c) instead of -Wstrict-prototypes.
7589
7590         * io/fts.c (fts_open): Convert to prototype-style function
7591         definition.
7592         * malloc/mcheck.c (mcheck): Likewise.
7593         (mcheck_pedantic): Likewise.
7594         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7595         internal_function.
7596         (re_search_internal): Likewise.
7597         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7598         prototype-style function definition.
7599         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7600         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7601         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7602         (xdr_utmpptr): Likewise.
7603         (xdr_utmparr): Likewise.
7604         (xdr_utmpidle): Likewise.
7605         (xdr_utmpidleptr): Likewise.
7606         (xdr_utmpidlearr): Likewise.
7607
7608         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7609         log, log10 and log2.
7610         * math/auto-libm-test-out: Regenerated.
7611         * math/libm-test.inc (fmod_test_data): Add more tests.
7612         (fpclassify_test_data): Likewise.
7613         (frexp_test_data): Likewise.
7614         (hypot_test_data): Likewise.
7615         (ilogb_test_data): Likewise.
7616
7617 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7618
7619         * debug/fortify_fail.c (__fortify_fail): Convert to
7620         prototype-style function definition.  Use internal_function.
7621         * libio/genops.c (save_for_backup): Convert to prototype-style
7622         function definition.
7623         * libio/wgenops.c (save_for_wbackup): Likewise.
7624         * login/grantpt.c (grantpt): Likewise.
7625         * login/ptsname.c (ptsname): Likewise.
7626         (__ptsname_r): Likewise.
7627         * login/unlockpt.c (unlockpt): Likewise.
7628         * mach/msgserver.c (__mach_msg_server): Likewise.
7629         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7630         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7631         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7632         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7633         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7634         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7635         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7636         Likewise.
7637         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7638         internal_function.
7639         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7640         prototype-style function definition.
7641         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7642         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7643         (__pthread_create_2_0): Likewise.
7644         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7645         * nptl/register-atfork.c (__register_atfork): Likewise.
7646         * posix/glob.c (glob): Likewise.
7647         * posix/regcomp.c (re_comp): Likewise.
7648         * posix/regexec.c (re_exec): Likewise.
7649         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7650         [!__STDC__]: Remove conditional code.
7651         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7652         [!__STDC__]: Remove conditional code.
7653         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7654         [!__STDC__]: Remove conditional code.
7655         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7656         [!__STDC__]: Remove conditional code.
7657         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7658         [!__STDC__]: Remove conditional code.
7659         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7660         [!__STDC__]: Remove conditional code.
7661         * stdlib/mul.c [__STDC__]: Make code unconditional.
7662         [!__STDC__]: Remove conditional code.
7663         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7664         [!__STDC__]: Remove conditional code.
7665         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7666         [!__STDC__]: Remove conditional code.
7667         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7668         function definition.
7669         (STRTOF): Likewise.
7670         * stdlib/strtod_l.c (__STRTOF): Likewise.
7671         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7672         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7673         (__strtol_l): Likewise.
7674         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7675         [!__STDC__]: Remove conditional code.
7676         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7677         definition.
7678         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7679         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7680         type.
7681         (__strcasecmp): Convert to prototype-style function definition.
7682         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7683         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7684         type.
7685         (__strncasecmp): Convert to prototype-style function definition.
7686         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7687         * sunrpc/xdr.c (xdr_union): Likewise.
7688         * sunrpc/xdr_array.c (xdr_array): Likewise.
7689         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7690         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7691         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7692         Likewise.
7693         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7694         Likewise.
7695         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7696         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7697         Likewise.
7698         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7699         (LOCALE_PARAM_PROTO): Likewise.
7700         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7701         argument type.
7702         (ut_argument_spec): Remove macro.
7703         (ut_argument_spec_iso): Rename to ut_argument_spec.
7704         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7705         prototype-style function definition.
7706         (memcpy_uppcase): Likewise.
7707         (__strftime_internal): Likewise.
7708         (my_strftime): Likewise.
7709         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7710         (LOCALE_PARAM_DECL): Likewise.
7711         [_LIBC] (LOCALE_PARAM): Include argument type.
7712         (__strptime_internal): Convert to prototype-style function
7713         definition.
7714         (strptime): Likewise.
7715         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7716         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7717         type.
7718         (__wcscasecmp): Convert to prototype-style function definition.
7719         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7720         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7721         type.
7722         (__wcsncasecmp): Convert to prototype-style function definition.
7723
7724         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7725         function definition.
7726         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7727         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7728         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7729         * elf/dl-minimal.c (_itoa): Likewise.
7730         * hurd/hurdmalloc.c (malloc): Likewise.
7731         (free): Likewise.
7732         (realloc): Likewise.
7733         * inet/inet6_option.c (inet6_option_space): Likewise.
7734         (inet6_option_init): Likewise.
7735         (inet6_option_append): Likewise.
7736         (inet6_option_alloc): Likewise.
7737         (inet6_option_next): Likewise.
7738         (inet6_option_find): Likewise.
7739         * io/ftw.c (FTW_NAME): Likewise.
7740         (NFTW_NAME): Likewise.
7741         (NFTW_NEW_NAME): Likewise.
7742         (NFTW_OLD_NAME): Likewise.
7743         * libio/iofwide.c (_IO_fwide): Likewise.
7744         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7745         (_IO_str_init_static): Likewise.
7746         (_IO_str_init_readonly): Likewise.
7747         (_IO_str_overflow): Likewise.
7748         (_IO_str_underflow): Likewise.
7749         (_IO_str_count): Likewise.
7750         (_IO_str_seekoff): Likewise.
7751         (_IO_str_pbackfail): Likewise.
7752         (_IO_str_finish): Likewise.
7753         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7754         (_IO_wstr_overflow): Likewise.
7755         (_IO_wstr_underflow): Likewise.
7756         (_IO_wstr_count): Likewise.
7757         (_IO_wstr_seekoff): Likewise.
7758         (_IO_wstr_pbackfail): Likewise.
7759         (_IO_wstr_finish): Likewise.
7760         * locale/programs/localedef.c (normalize_codeset): Likewise.
7761         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7762         (add_locales_to_archive): Likewise.
7763         (delete_locales_from_archive): Likewise.
7764         * malloc/malloc.c (__libc_mallinfo): Likewise.
7765         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7766         * misc/tsearch.c (__tfind): Likewise.
7767         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7768         * nptl/pthread_attr_getdetachstate.c
7769         (__pthread_attr_getdetachstate): Likewise.
7770         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7771         Likewise.
7772         * nptl/pthread_attr_getinheritsched.c
7773         (__pthread_attr_getinheritsched): Likewise.
7774         * nptl/pthread_attr_getschedparam.c
7775         (__pthread_attr_getschedparam): Likewise.
7776         * nptl/pthread_attr_getschedpolicy.c
7777         (__pthread_attr_getschedpolicy): Likewise.
7778         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7779         Likewise.
7780         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7781         Likewise.
7782         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7783         Likewise.
7784         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7785         Likewise.
7786         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7787         (__pthread_attr_init_2_0): Likewise.
7788         * nptl/pthread_attr_setdetachstate.c
7789         (__pthread_attr_setdetachstate): Likewise.
7790         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7791         Likewise.
7792         * nptl/pthread_attr_setinheritsched.c
7793         (__pthread_attr_setinheritsched): Likewise.
7794         * nptl/pthread_attr_setschedparam.c
7795         (__pthread_attr_setschedparam): Likewise.
7796         * nptl/pthread_attr_setschedpolicy.c
7797         (__pthread_attr_setschedpolicy): Likewise.
7798         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7799         Likewise.
7800         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7801         Likewise.
7802         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7803         Likewise.
7804         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7805         Likewise.
7806         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7807         Likewise.
7808         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7809         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7810         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7811         use internal_function.
7812         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7813         prototype-style function definition.
7814         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7815         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7816         internal_function.
7817         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7818         Convert to prototype-style function definition.
7819         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7820         Likewise.
7821         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7822         Likewise.
7823         (__pthread_mutex_unlock): Likewise.
7824         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7825         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7826         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7827         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7828         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7829         * nss/makedb.c (process_input): Likewise.
7830         * posix/fnmatch.c (__strchrnul): Likewise.
7831         (__wcschrnul): Likewise.
7832         (fnmatch): Likewise.
7833         * posix/fnmatch_loop.c (FCT): Likewise.
7834         * posix/glob.c (globfree): Likewise.
7835         (__glob_pattern_type): Likewise.
7836         (__glob_pattern_p): Likewise.
7837         * posix/regcomp.c (re_compile_pattern): Likewise.
7838         (re_set_syntax): Likewise.
7839         (re_compile_fastmap): Likewise.
7840         (regcomp): Likewise.
7841         (regerror): Likewise.
7842         (regfree): Likewise.
7843         * posix/regexec.c (regexec): Likewise.
7844         (re_match): Likewise.
7845         (re_search): Likewise.
7846         (re_match_2): Likewise.
7847         (re_search_2): Likewise.
7848         (re_search_stub): Likewise.  Use internal_function
7849         (re_copy_regs): Likewise.
7850         (re_set_registers): Convert to prototype-style function
7851         definition.
7852         (prune_impossible_nodes): Likewise.  Use internal_function.
7853         * resolv/inet_net_pton.c (inet_net_pton): Convert to
7854         prototype-style function definition.
7855         (inet_net_pton_ipv4): Likewise.
7856         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7857         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
7858         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7859         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
7860         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
7861         Make variadic.
7862         * time/strptime_l.c (localtime_r): Convert to prototype-style
7863         function definition.
7864         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
7865         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
7866         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
7867         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
7868
7869         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
7870         definition.
7871         (_ufc_doit_r): Likewise.
7872         * crypt/crypt_util.c (_ufc_copymem): Likewise.
7873         (_ufc_output_conversion_r): Likewise.
7874         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
7875         * inet/rcmd.c (rcmd_af): Likewise.
7876         (rcmd): Likewise.
7877         (ruserok_af): Likewise.
7878         (ruserok): Likewise.
7879         (ruserok2_sa): Likewise.
7880         (ruserok_sa): Likewise.
7881         (iruserok_af): Likewise.
7882         (iruserok): Likewise.
7883         (__ivaliduser): Likewise.
7884         (__validuser2_sa): Likewise.
7885         * inet/rexec.c (rexec_af): Likewise.
7886         (rexec): Likewise.
7887         * inet/ruserpass.c (ruserpass): Likewise.
7888         * locale/programs/xmalloc.c (xcalloc): Likewise.
7889         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
7890         * math/w_drem.c (__drem): Likewise.
7891         * math/w_dremf.c (__dremf): Likewise.
7892         * math/w_dreml.c (__dreml): Likewise.
7893         * misc/daemon.c (daemon): Likewise.
7894         * resolv/res_debug.c (p_fqnname): Likewise.
7895         * stdlib/div.c (div): Likewise.
7896         * string/memcmp.c (memcmp_bytes): Likewise.
7897         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
7898         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7899
7900         * crypt/cert.c (main): Convert to prototype-style function
7901         definition.
7902         * io/pipe.c (__pipe): Likewise.
7903         * io/pipe2.c (__pipe2): Likewise.
7904         * misc/futimesat.c (futimesat): Likewise.
7905         * misc/utimes.c (__utimes): Likewise.
7906         * posix/execve.c (__execve): Likewise.
7907         * posix/execvp.c (execvp): Likewise.
7908         * posix/execvpe.c (__execvpe): Likewise.
7909         * posix/fexecve.c (fexecve): Likewise.
7910         * socket/socketpair.c (socketpair): Likewise.
7911         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7912         * stdlib/erand48.c (erand48): Likewise.
7913         * stdlib/erand48_r.c (__erand48_r): Likewise.
7914         * stdlib/jrand48.c (jrand48): Likewise.
7915         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
7916         * stdlib/lcong48.c (lcong48): Likewise.
7917         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
7918         * stdlib/nrand48.c (nrand48): Likewise.
7919         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
7920         * stdlib/seed48.c (seed48): Likewise.
7921         * stdlib/seed48_r.c (__seed48_r): Likewise.
7922         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
7923         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
7924         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
7925
7926 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
7927
7928         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
7929         * configure: Regenerated.
7930         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
7931         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
7932         unconditional.
7933         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7934         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7935         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7936         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
7937         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
7938         unconditional.
7939         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7940
7941         * posix/Makefile (CFLAGS-regex.c): Remove variable.
7942         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
7943
7944         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
7945         function definition.
7946         * crypt/crypt_util.c (__encrypt_r): Likewise.
7947         * libio/genops.c (_IO_no_init): Likewise.
7948         * libio/iofopncook.c (_IO_fopencookie): Likewise.
7949         (_IO_old_fopencookie): Likewise.
7950         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7951         * libio/iogetline.c (_IO_getline): Likewise.
7952         (_IO_getline_info): Likewise.
7953         * libio/iogetwline.c (_IO_getwline): Likewise.
7954         (_IO_getwline_info): Likewise.
7955         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7956         * libio/vswprintf.c (_IO_vswprintf): Likewise.
7957         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
7958         (find_entry): Likewise.
7959         (iterate_table): Likewise.
7960         (lookup): Likewise.
7961         * login/forkpty.c (forkpty): Likewise.
7962         * misc/hsearch_r.c (__hsearch_r): Likewise.
7963         * misc/select.c (__select): Likewise.
7964         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
7965         Likewise.
7966         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
7967         Likewise.
7968         * nptl/old_pthread_cond_timedwait.c
7969         (__pthread_cond_timedwait_2_0): Likewise.
7970         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
7971         * nptl/pthread_barrierattr_getpshared.c
7972         (pthread_barrierattr_getpshared): Likewise.
7973         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
7974         Likewise.
7975         * nptl/pthread_mutex_setprioceiling.c
7976         (pthread_mutex_setprioceiling): Likewise.
7977         * nptl/pthread_mutexattr_getprioceiling.c
7978         (pthread_mutexattr_getprioceiling): Likewise.
7979         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
7980         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
7981         Likewise.
7982         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
7983         Likewise.
7984         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
7985         Likewise.
7986         * socket/recvfrom.c (__recvfrom): Likewise.
7987         * socket/sendto.c (__sendto): Likewise.
7988         * socket/setsockopt.c (__setsockopt): Likewise.
7989         * stdio-common/_itoa.c (_itoa): Likewise.
7990         * stdio-common/_itowa.c (_itowa): Likewise.
7991         * stdio-common/reg-printf.c (__register_printf_specifier):
7992         Likewise.
7993         (__register_printf_function): Likewise.
7994         * stdio-common/tempname.c (__path_search): Likewise.
7995         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
7996         * stdlib/mul_1.c (mpn_mul_1): Likewise.
7997         * stdlib/random_r.c (__initstate_r): Likewise.
7998         * stdlib/setenv.c (__add_to_environ): Likewise.
7999         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8000         * streams/getpmsg.c (getpmsg): Likewise.
8001         * streams/putmsg.c (putmsg): Likewise.
8002         * streams/putpmsg.c (putpmsg): Likewise.
8003         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8004         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8005         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8006         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8007         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8008         * sunrpc/svc_udp.c (cache_get): Likewise.
8009         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8010         * sysdeps/mach/hurd/getcwd.c
8011         (__canonicalize_directory_name_internal): Likewise.
8012         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8013         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8014         * sysdeps/mach/hurd/select.c (__select): Likewise.
8015         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8016         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8017         * sysdeps/sparc/nptl/pthread_barrier_init.c
8018         (__pthread_barrier_init): Likewise.
8019         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8020         (__pthread_cond_timedwait): Likewise.
8021         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8022         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8023         Likewise.
8024         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8025         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8026         Likewise.
8027         * sysvipc/semtimedop.c (semtimedop): Likewise.
8028         * time/setitimer.c (__setitimer): Likewise.
8029         * time/strftime_l.c (emacs_strftime): Likewise.
8030
8031 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8032
8033         * config.make.in (have-ssp): Delete.
8034         (stack-protector): New variable.
8035         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8036         cache test for -fstack-protector-strong.  Export stack_protector to
8037         the best ssp flag.
8038         * configure: Regenerated.
8039         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8040         * nscd/Makefile (CFLAGS-nscd): Likewise.
8041         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8042
8043 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8044
8045         [BZ #19122]
8046         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8047         attribute_hidden.
8048
8049 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8050
8051         [BZ #18743]
8052         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8053         code to...
8054         (ELIDE_LOCK): ...here.
8055         (__get_new_count): New function with part of the code from
8056         __elide_lock that updates the value of adapt_count after a
8057         transaction abort.
8058         (__elided_trylock): Moved this code to...
8059         (ELIDE_TRYLOCK): ...here.
8060
8061 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8062
8063         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8064         * configure: Regenerate.
8065         * INSTALL: Regenerate.
8066         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8067         and tweak grammar.
8068
8069 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8070
8071         * login/programs/pt_chown.c: Include signal.h
8072         (main): Clear any signal mask from the parent process.
8073
8074 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8075
8076         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8077         * configure: Regenerated.
8078         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8079         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8080         $(gnu89-inline-CFLAGS).
8081
8082         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8083         test.
8084         (libc_cv_asm_weakext_directive): Likewise.
8085         * configure: Regenerated.
8086         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8087         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8088         * include/libc-symbols.h
8089         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8090         #error.
8091         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8092         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8093
8094         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8095         prototype-style function definition.
8096         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8097         * sysdeps/i386/ffs.c (__ffs): Likewise.
8098         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8099         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8100         Likewise.
8101         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8102         Likewise.
8103         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8104         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8105         Likewise.
8106         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8107         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8108         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8109         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8110         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8111         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8112         * sysdeps/mach/hurd/access.c (__access): Likewise.
8113         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8114         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8115         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8116         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8117         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8118         (cthread_getspecific): Likewise.
8119         (cthread_setspecific): Likewise.
8120         (__libc_getspecific): Likewise.
8121         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8122         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8123         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8124         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8125         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8126         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8127         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8128         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8129         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8130         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8131         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8132         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8133         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8134         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8135         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8136         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8137         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8138         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8139         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8140         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8141         * sysdeps/mach/hurd/link.c (__link): Likewise.
8142         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8143         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8144         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8145         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8146         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8147         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8148         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8149         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8150         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8151         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8152         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8153         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8154         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8155         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8156         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8157         * sysdeps/mach/hurd/send.c (__send): Likewise.
8158         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8159         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8160         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8161         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8162         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8163         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8164         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8165         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8166         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8167         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8168         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8169         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8170         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8171         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8172         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8173         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8174         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8175         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8176         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8177         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8178         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8179         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8180         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8181         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8182         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8183         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8184         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8185         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8186         * sysdeps/posix/alarm.c (alarm): Likewise.
8187         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8188         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8189         * sysdeps/posix/dup.c (__dup): Likewise.
8190         * sysdeps/posix/dup2.c (__dup2): Likewise.
8191         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8192         (main): Likewise.
8193         * sysdeps/posix/flock.c (__flock): Likewise.
8194         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8195         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8196         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8197         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8198         * sysdeps/posix/isatty.c (__isatty): Likewise.
8199         * sysdeps/posix/killpg.c (killpg): Likewise.
8200         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8201         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8202         * sysdeps/posix/raise.c (raise): Likewise.
8203         * sysdeps/posix/remove.c (remove): Likewise.
8204         * sysdeps/posix/rename.c (rename): Likewise.
8205         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8206         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8207         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8208         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8209         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8210         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8211         * sysdeps/posix/sigset.c (sigset): Likewise.
8212         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8213         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8214         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8215         * sysdeps/posix/time.c (time): Likewise.
8216         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8217         (ttyname): Likewise.
8218         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8219         * sysdeps/posix/utime.c (utime): Likewise.
8220         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8221         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8222         Likewise.
8223         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8224         (pthread_spin_trylock): Likewise.
8225         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8226         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8227         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8228         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8229         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8230         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8231         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8232         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8233         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8234         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8235         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8236         * sysdeps/s390/ffs.c (__ffs): Likewise.
8237         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8238         Likewise.
8239         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8240         Likewise.
8241         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8242         Likewise.
8243         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8244         (pthread_barrier_destroy): Likewise.
8245         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8246         (__pthread_barrier_wait): Likewise.
8247         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8248         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8249         (__pthread_barrier_wait): Likewise.
8250         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8251         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8252         (memcmp_not_common_alignment): Likewise.
8253         (MEMCMP): Likewise.
8254         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8255         (_wordcopy_fwd_dest_aligned): Likewise.
8256         (_wordcopy_bwd_aligned): Likewise.
8257         (_wordcopy_bwd_dest_aligned): Likewise.
8258         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8259         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8260         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8261         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8262         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8263         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8264         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8265         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8266         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8267         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8268         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8269         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8270         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8271         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8272         * sysdeps/unix/stime.c (stime): Likewise.
8273         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8274         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8275         Likewise.  Use internal_function.
8276         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8277         Convert to prototype-style function definition.
8278         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8279         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8280         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8281         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8282         Likewise.  Use internal_function.
8283         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8284         prototype-style function definition
8285         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8286         Likewise.
8287         (__getlogin_r): Likewise.
8288         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8289         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8290         (__pthread_cond_broadcast): Likewise.
8291         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8292         (__pthread_cond_destroy): Likewise.
8293         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8294         (__pthread_cond_init): Likewise.
8295         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8296         (__pthread_cond_signal): Likewise.
8297         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8298         (__pthread_cond_wait): Likewise.
8299         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8300         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8301         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8302         Likewise.
8303         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8304         Likewise.
8305         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8306         Likewise.
8307         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8308         Likewise.
8309         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8311         (__ftruncate64): Likewise.
8312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8313         (truncate64): Likewise.
8314         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8315         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8316         (pthread_getcpuclockid): Likewise.
8317         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8318         Likewise.
8319         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8320         Likewise.
8321         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8322         Likewise.
8323         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8324         Likewise.
8325         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8326         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8327         (__libc_sigaction): Likewise.
8328         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8329         Likewise.
8330         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8331         (__sigprocmask): Likewise.
8332         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8333         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8334         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8335         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8336         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8337         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8338         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8339         Likewise.
8340         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8341         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8342         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8343         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8344         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8345         Likewise.
8346         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8347         (__sigprocmask): Likewise.
8348         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8349         (cfgetispeed): Likewise.
8350         (cfsetospeed): Likewise.
8351         (cfsetispeed): Likewise.
8352         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8353         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8354         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8355         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8356         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8357         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8358         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8359         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8360         Likewise.
8361         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8362         Likewise.
8363         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8364         Likewise.
8365         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8366         Likewise.
8367         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8368
8369 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8370
8371         sunrpc: Rewrite with explicit TLS access using __thread.
8372         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8373         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8374         directly.
8375         (__rpc_thread_variables): Access thread_rpc_vars directly.
8376         Eliminate redundant assignment of the tvp variable.
8377
8378 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8379
8380         malloc: Rewrite with explicit TLS access using __thread.
8381         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8382         (tsd_setspecific, tsd_getspecific): Remove.
8383         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8384         (tsd_setspecific, tsd_getspecific): Likewise.
8385         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8386         (tsd_setspecific, tsd_getspecific): Likewise.
8387         * malloc/arena.c (thread_arena): New TLS variable.
8388         (arena_key): Remove variable.
8389         (arena_get): Use thread_arena.
8390         (arena_lookup): Remove macro.
8391         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8392         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8393         (_int_new_arena, get_free_list, reused_arena)
8394         (arena_thread_freeres): Use thread_arena.
8395         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8396         tsd_getspecific, tsd_setspecific from safety annotations.
8397         (Allocating Cleared Space): Remove arena_lookup from safety
8398         annotations.
8399
8400 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8401
8402         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8403         struct scratch_buffer instead of extend_alloca.
8404
8405 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8406
8407         * sysdeps/unix/sysv/linux/kernel-features.h
8408         (__ASSUME_SOCK_CLOEXEC): Remove.
8409         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8410         (__have_paccept): Remove unused macro.
8411         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8412         * misc/syslog.c (openlog_internal): Remove fallback code for
8413         !__ASSUME_SOCK_CLOEXEC.
8414         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8415         missing SOCK_CLOEXEC.
8416         * nscd/connections.c (have_sock_cloexec): Remove definition.
8417         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8418         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8419         !__ASSUME_SOCK_CLOEXEC.
8420         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8421         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8422         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8423         definition.
8424         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8425         code for !__ASSUME_SOCK_CLOEXEC.
8426
8427 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8428
8429         [BZ #18982]
8430         * manual/stdio.texi (Variable Arguments Output): Add portability
8431         note, explaining that vfprintf clobbers the va_list pointer.
8432
8433 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8434
8435         * math/libm-test.inc (fabs_test_data): Add more tests.
8436         (fdim_test_data): Likewise.
8437         (fma_test_data): Likewise.
8438         (fmax_test_data): Likewise.
8439         (fmin_test_data): Likewise.
8440         (fmod_test_data): Likewise.
8441
8442 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8443
8444         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8445         data.
8446
8447 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8448
8449         * math/libm-test.inc (ceil_test_data): Add more tests and more
8450         expectations for "inexact".
8451         (floor_test_data): Add more tests.
8452         (round_test_data): Likewise.
8453         (trunc_test_data): Likewise.
8454
8455         * crypt/cert.c (good_bye): Convert to prototype-style function
8456         definition.
8457         (get8): Likewise.
8458         (put8): Likewise.
8459         * crypt/crypt-entry.c (crypt): Likewise.
8460         (__fcrypt): Likewise.
8461         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8462         (_ufc_set_bits): Likewise.
8463         (_ufc_clearmem): Likewise.
8464         (__init_des_r): Likewise.
8465         (shuffle_sb): Likewise.
8466         (shuffle_sb): Likewise.
8467         (_ufc_setup_salt_r): Likewise.
8468         (_ufc_mk_keytab_r): Likewise.
8469         (_ufc_dofinalperm_r): Likewise.
8470         (encrypt): Likewise.
8471         (__setkey_r): Likewise.
8472         (setkey): Likewise.
8473         * crypt/md5.c (md5_init_ctx): Likewise.
8474         (md5_read_ctx): Likewise.
8475         (md5_finish_ctx): Likewise.
8476         (md5_stream): Likewise.
8477         (md5_buffer): Likewise.
8478         (md5_process_bytes): Likewise.
8479         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8480         (__sha256_finish_ctx): Likewise.
8481         (__sha256_process_bytes): Likewise.
8482         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8483         (__sha512_finish_ctx): Likewise.
8484         (__sha512_process_bytes): Likewise.
8485         * ctype/isctype.c (__isctype): Likewise.
8486         * debug/backtrace.c (__backtrace): Likewise.
8487         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8488         * debug/fgets_chk.c (__fgets_chk): Likewise.
8489         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8490         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8491         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8492         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8493         * debug/memset_chk.c (__memset_chk): Likewise.
8494         * debug/strcat_chk.c (__strcat_chk): Likewise.
8495         * debug/strncat_chk.c (__strncat_chk): Likewise.
8496         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8497         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8498         * dirent/dirfd.c (dirfd): Likewise.
8499         * dirent/getdents.c (__getdirentries): Likewise.
8500         * dirent/getdents64.c (getdirentries64): Likewise.
8501         * dirent/rewinddir.c (__rewinddir): Likewise.
8502         * dirent/seekdir.c (seekdir): Likewise.
8503         * dirent/telldir.c (telldir): Likewise.
8504         * elf/sln.c (makesymlinks): Likewise.
8505         (makesymlink): Likewise.
8506         * gmon/gmon.c (__moncontrol): Likewise.
8507         (__monstartup): Likewise.
8508         (write_hist): Likewise.
8509         (write_call_graph): Likewise.
8510         (write_bb_counts): Likewise.
8511         * grp/setgroups.c (setgroups): Likewise.
8512         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8513         * inet/inet_net.c (inet_network): Likewise.
8514         * inet/inet_netof.c (inet_netof): Likewise.
8515         * inet/rcmd.c (rresvport_af): Likewise.
8516         (rresvport): Likewise.
8517         * io/access.c (__access): Likewise.
8518         * io/chdir.c (__chdir): Likewise.
8519         * io/chmod.c (__chmod): Likewise.
8520         * io/chown.c (__chown): Likewise.
8521         * io/close.c (__close): Likewise.
8522         * io/creat.c (creat): Likewise.
8523         * io/creat64.c (creat64): Likewise.
8524         * io/dup.c (__dup): Likewise.
8525         * io/dup2.c (__dup2): Likewise.
8526         * io/dup3.c (__dup3): Likewise.
8527         * io/euidaccess.c (__euidaccess): Likewise.
8528         * io/faccessat.c (faccessat): Likewise.
8529         * io/fchmod.c (__fchmod): Likewise.
8530         * io/fchmodat.c (fchmodat): Likewise.
8531         * io/fchown.c (__fchown): Likewise.
8532         * io/fchownat.c (fchownat): Likewise.
8533         * io/fcntl.c (__fcntl): Likewise.
8534         * io/flock.c (__flock): Likewise.
8535         * io/fts.c (fts_load): Likewise.
8536         (fts_close): Likewise.
8537         (fts_read): Likewise.
8538         (fts_set): Likewise.
8539         (fts_children): Likewise.
8540         (fts_build): Likewise.
8541         (fts_stat): Likewise.
8542         (fts_sort): Likewise.
8543         (fts_alloc): Likewise.
8544         (fts_lfree): Likewise.
8545         (fts_palloc): Likewise.
8546         (fts_padjust): Likewise.
8547         (fts_maxarglen): Likewise.
8548         (fts_safe_changedir): Likewise.
8549         * io/getwd.c (getwd): Likewise.
8550         * io/isatty.c (__isatty): Likewise.
8551         * io/lchown.c (__lchown): Likewise.
8552         * io/link.c (__link): Likewise.
8553         * io/linkat.c (linkat): Likewise.
8554         * io/lseek.c (__libc_lseek): Likewise.
8555         * io/mkdir.c (__mkdir): Likewise.
8556         * io/mkdirat.c (mkdirat): Likewise.
8557         * io/mkfifo.c (mkfifo): Likewise.
8558         * io/mkfifoat.c (mkfifoat): Likewise.
8559         * io/open.c (__libc_open): Likewise.
8560         * io/open64.c (__libc_open64): Likewise.
8561         * io/readlink.c (__readlink): Likewise.
8562         * io/readlinkat.c (readlinkat): Likewise.
8563         * io/rmdir.c (__rmdir): Likewise.
8564         * io/symlink.c (__symlink): Likewise.
8565         * io/symlinkat.c (symlinkat): Likewise.
8566         * io/ttyname.c (ttyname): Likewise.
8567         * io/ttyname_r.c (__ttyname_r): Likewise.
8568         * io/umask.c (__umask): Likewise.
8569         * io/unlink.c (__unlink): Likewise.
8570         * io/unlinkat.c (unlinkat): Likewise.
8571         * io/utime.c (utime): Likewise.
8572         * libio/clearerr.c (clearerr): Likewise.
8573         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8574         * libio/feof.c (_IO_feof): Likewise.
8575         * libio/feof_u.c (feof_unlocked): Likewise.
8576         * libio/ferror.c (_IO_ferror): Likewise.
8577         * libio/ferror_u.c (ferror_unlocked): Likewise.
8578         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8579         * libio/fileno.c (__fileno): Likewise.
8580         * libio/fputc.c (fputc): Likewise.
8581         * libio/fputc_u.c (fputc_unlocked): Likewise.
8582         * libio/fputwc.c (fputwc): Likewise.
8583         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8584         * libio/freopen.c (freopen): Likewise.
8585         * libio/freopen64.c (freopen64): Likewise.
8586         * libio/fseek.c (fseek): Likewise.
8587         * libio/fseeko.c (fseeko): Likewise.
8588         * libio/fseeko64.c (fseeko64): Likewise.
8589         * libio/ftello.c (__ftello): Likewise.
8590         * libio/ftello64.c (ftello64): Likewise.
8591         * libio/fwide.c (fwide): Likewise.
8592         * libio/genops.c (_IO_un_link): Likewise.
8593         (_IO_link_in): Likewise.
8594         (_IO_least_marker): Likewise.
8595         (_IO_switch_to_main_get_area): Likewise.
8596         (_IO_switch_to_backup_area): Likewise.
8597         (_IO_switch_to_get_mode): Likewise.
8598         (_IO_free_backup_area): Likewise.
8599         (_IO_switch_to_put_mode): Likewise.
8600         (__overflow): Likewise.
8601         (__underflow): Likewise.
8602         (__uflow): Likewise.
8603         (_IO_setb): Likewise.
8604         (_IO_doallocbuf): Likewise.
8605         (_IO_default_underflow): Likewise.
8606         (_IO_default_uflow): Likewise.
8607         (_IO_default_xsputn): Likewise.
8608         (_IO_sgetn): Likewise.
8609         (_IO_default_xsgetn): Likewise.
8610         (_IO_sync): Likewise.
8611         (_IO_default_setbuf): Likewise.
8612         (_IO_default_seekpos): Likewise.
8613         (_IO_default_doallocate): Likewise.
8614         (_IO_init): Likewise.
8615         (_IO_old_init): Likewise.
8616         (_IO_default_sync): Likewise.
8617         (_IO_default_finish): Likewise.
8618         (_IO_default_seekoff): Likewise.
8619         (_IO_sputbackc): Likewise.
8620         (_IO_sungetc): Likewise.
8621         (_IO_set_column): Likewise.
8622         (_IO_set_column): Likewise.
8623         (_IO_adjust_column): Likewise.
8624         (_IO_get_column): Likewise.
8625         (_IO_init_marker): Likewise.
8626         (_IO_remove_marker): Likewise.
8627         (_IO_marker_difference): Likewise.
8628         (_IO_marker_delta): Likewise.
8629         (_IO_seekmark): Likewise.
8630         (_IO_unsave_markers): Likewise.
8631         (_IO_nobackup_pbackfail): Likewise.
8632         (_IO_default_pbackfail): Likewise.
8633         (_IO_default_seek): Likewise.
8634         (_IO_default_stat): Likewise.
8635         (_IO_default_read): Likewise.
8636         (_IO_default_write): Likewise.
8637         (_IO_default_showmanyc): Likewise.
8638         (_IO_default_imbue): Likewise.
8639         (_IO_iter_next): Likewise.
8640         (_IO_iter_file): Likewise.
8641         * libio/getc.c (_IO_getc): Likewise.
8642         * libio/getwc.c (_IO_getwc): Likewise.
8643         * libio/iofclose.c (_IO_new_fclose): Likewise.
8644         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8645         * libio/iofflush.c (_IO_fflush): Likewise.
8646         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8647         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8648         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8649         * libio/iofgets.c (_IO_fgets): Likewise.
8650         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8651         * libio/iofgetws.c (fgetws): Likewise.
8652         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8653         * libio/iofopen64.c (_IO_fopen64): Likewise.
8654         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8655         (_IO_cookie_write): Likewise.
8656         (_IO_cookie_seek): Likewise.
8657         (_IO_cookie_close): Likewise.
8658         (_IO_cookie_seekoff): Likewise.
8659         (_IO_old_cookie_seek): Likewise.
8660         * libio/iofputs.c (_IO_fputs): Likewise.
8661         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8662         * libio/iofputws.c (fputws): Likewise.
8663         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8664         * libio/iofread.c (_IO_fread): Likewise.
8665         * libio/iofread_u.c (__fread_unlocked): Likewise.
8666         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8667         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8668         * libio/ioftell.c (_IO_ftell): Likewise.
8669         * libio/iofwrite.c (_IO_fwrite): Likewise.
8670         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8671         * libio/iogets.c (_IO_gets): Likewise.
8672         * libio/iopadn.c (_IO_padn): Likewise.
8673         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8674         (_IO_new_popen): Likewise.
8675         (_IO_new_proc_close): Likewise.
8676         * libio/ioputs.c (_IO_puts): Likewise.
8677         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8678         (_IO_seekoff): Likewise.
8679         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8680         (_IO_seekpos): Likewise.
8681         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8682         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8683         * libio/ioungetc.c (_IO_ungetc): Likewise.
8684         * libio/ioungetwc.c (ungetwc): Likewise.
8685         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8686         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8687         * libio/iowpadn.c (_IO_wpadn): Likewise.
8688         * libio/libc_fatal.c (__libc_fatal): Likewise.
8689         * libio/memstream.c (__open_memstream): Likewise.
8690         (_IO_mem_sync): Likewise.
8691         (_IO_mem_finish): Likewise.
8692         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8693         (_IO_old_file_close_it): Likewise.
8694         (_IO_old_file_finish): Likewise.
8695         (_IO_old_file_fopen): Likewise.
8696         (_IO_old_file_attach): Likewise.
8697         (_IO_old_file_setbuf): Likewise.
8698         (_IO_old_do_write): Likewise.
8699         (old_do_write): Likewise.
8700         (_IO_old_file_underflow): Likewise.
8701         (_IO_old_file_overflow): Likewise.
8702         (_IO_old_file_sync): Likewise.
8703         (_IO_old_file_seekoff): Likewise.
8704         (_IO_old_file_write): Likewise.
8705         (_IO_old_file_xsputn): Likewise.
8706         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8707         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8708         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8709         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8710         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8711         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8712         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8713         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8714         (_IO_old_popen): Likewise.
8715         (_IO_old_proc_close): Likewise.
8716         * libio/oldpclose.c (__old_pclose): Likewise.
8717         * libio/pclose.c (__new_pclose): Likewise.
8718         * libio/peekc.c (_IO_peekc_locked): Likewise.
8719         * libio/putc.c (_IO_putc): Likewise.
8720         * libio/putc_u.c (putc_unlocked): Likewise.
8721         * libio/putchar.c (putchar): Likewise.
8722         * libio/putchar_u.c (putchar_unlocked): Likewise.
8723         * libio/putwc.c (putwc): Likewise.
8724         * libio/putwc_u.c (putwc_unlocked): Likewise.
8725         * libio/putwchar.c (putwchar): Likewise.
8726         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8727         * libio/rewind.c (rewind): Likewise.
8728         * libio/setbuf.c (setbuf): Likewise.
8729         * libio/setlinebuf.c (setlinebuf): Likewise.
8730         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8731         * libio/vscanf.c (_IO_vscanf): Likewise.
8732         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8733         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8734         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8735         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8736         (_IO_switch_to_main_wget_area): Likewise.
8737         (_IO_switch_to_wbackup_area): Likewise.
8738         (_IO_wsetb): Likewise.
8739         (_IO_wdefault_pbackfail): Likewise.
8740         (_IO_wdefault_finish): Likewise.
8741         (_IO_wdefault_uflow): Likewise.
8742         (__woverflow): Likewise.
8743         (__wuflow): Likewise.
8744         (__wunderflow): Likewise.
8745         (_IO_wdefault_xsputn): Likewise.
8746         (_IO_wdefault_xsgetn): Likewise.
8747         (_IO_wdoallocbuf): Likewise.
8748         (_IO_wdefault_doallocate): Likewise.
8749         (_IO_switch_to_wget_mode): Likewise.
8750         (_IO_free_wbackup_area): Likewise.
8751         (_IO_switch_to_wput_mode): Likewise.
8752         (_IO_sputbackwc): Likewise.
8753         (_IO_sungetwc): Likewise.
8754         (_IO_adjust_wcolumn): Likewise.
8755         (_IO_init_wmarker): Likewise.
8756         (_IO_wmarker_delta): Likewise.
8757         (_IO_seekwmark): Likewise.
8758         (_IO_unsave_wmarkers): Likewise.
8759         * libio/wmemstream.c (open_wmemstream): Likewise.
8760         (_IO_wmem_sync): Likewise.
8761         (_IO_wmem_finish): Likewise.
8762         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8763         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8764         * locale/programs/simple-hash.c (init_hash): Likewise.
8765         (delete_hash): Likewise.
8766         (insert_entry): Likewise.
8767         (set_entry): Likewise.
8768         (next_prime): Likewise.
8769         (is_prime): Likewise.
8770         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8771         (xmalloc): Likewise.
8772         (xrealloc): Likewise.
8773         * locale/programs/xstrdup.c (xstrdup): Likewise.
8774         * localedata/collate-test.c (xstrcoll): Likewise.
8775         * localedata/xfrm-test.c (xstrcmp): Likewise.
8776         * login/getlogin_r.c (__getlogin_r): Likewise.
8777         * login/getpt.c (__posix_openpt): Likewise.
8778         * login/login_tty.c (login_tty): Likewise.
8779         * login/setlogin.c (setlogin): Likewise.
8780         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8781         (mach_msg_destroy_port): Likewise.
8782         (mach_msg_destroy_memory): Likewise.
8783         * malloc/mcheck.c (flood): Likewise.
8784         * misc/acct.c (acct): Likewise.
8785         * misc/brk.c (__brk): Likewise.
8786         * misc/chflags.c (chflags): Likewise.
8787         * misc/chroot.c (chroot): Likewise.
8788         * misc/fchflags.c (fchflags): Likewise.
8789         * misc/fstab.c (getfsspec): Likewise.
8790         (getfsfile): Likewise.
8791         * misc/fsync.c (fsync): Likewise.
8792         * misc/ftruncate.c (__ftruncate): Likewise.
8793         * misc/ftruncate64.c (__ftruncate64): Likewise.
8794         * misc/getdomain.c (getdomainname): Likewise.
8795         (getdomainname): Likewise.
8796         * misc/gethostname.c (__gethostname): Likewise.
8797         * misc/getpass.c (getpass): Likewise.
8798         * misc/getttyent.c (skip): Likewise.
8799         (value): Likewise.
8800         * misc/gtty.c (gtty): Likewise.
8801         * misc/hsearch.c (hsearch): Likewise.
8802         (hcreate): Likewise.
8803         * misc/hsearch_r.c (__hcreate_r): Likewise.
8804         (__hdestroy_r): Likewise.
8805         * misc/ioctl.c (__ioctl): Likewise.
8806         * misc/mkdtemp.c (mkdtemp): Likewise.
8807         * misc/mkostemp.c (mkostemp): Likewise.
8808         * misc/mkostemp64.c (mkostemp64): Likewise.
8809         * misc/mkostemps.c (mkostemps): Likewise.
8810         * misc/mkostemps64.c (mkostemps64): Likewise.
8811         * misc/mkstemp.c (mkstemp): Likewise.
8812         * misc/mkstemp64.c (mkstemp64): Likewise.
8813         * misc/mkstemps.c (mkstemps): Likewise.
8814         * misc/mkstemps64.c (mkstemps64): Likewise.
8815         * misc/mktemp.c (__mktemp): Likewise.
8816         * misc/preadv.c (preadv): Likewise.
8817         * misc/preadv64.c (preadv64): Likewise.
8818         * misc/pwritev.c (pwritev): Likewise.
8819         * misc/pwritev64.c (pwritev64): Likewise.
8820         * misc/readv.c (__readv): Likewise.
8821         * misc/revoke.c (revoke): Likewise.
8822         * misc/setdomain.c (setdomainname): Likewise.
8823         * misc/setegid.c (setegid): Likewise.
8824         * misc/seteuid.c (seteuid): Likewise.
8825         * misc/sethostid.c (sethostid): Likewise.
8826         * misc/sethostname.c (sethostname): Likewise.
8827         * misc/setregid.c (__setregid): Likewise.
8828         * misc/setreuid.c (__setreuid): Likewise.
8829         * misc/sstk.c (sstk): Likewise.
8830         * misc/stty.c (stty): Likewise.
8831         * misc/syscall.c (syscall): Likewise.
8832         * misc/syslog.c (setlogmask): Likewise.
8833         * misc/truncate.c (__truncate): Likewise.
8834         * misc/truncate64.c (truncate64): Likewise.
8835         * misc/ualarm.c (ualarm): Likewise.
8836         * misc/usleep.c (usleep): Likewise.
8837         * misc/ustat.c (ustat): Likewise.
8838         * misc/writev.c (__writev): Likewise.
8839         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8840         * nptl/old_pthread_cond_broadcast.c
8841         (__pthread_cond_broadcast_2_0): Likewise.
8842         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8843         Likewise.
8844         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8845         Likewise.
8846         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8847         Likewise.
8848         * nptl/pt-raise.c (raise): Likewise.
8849         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
8850         Likewise.
8851         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
8852         * nptl/pthread_barrierattr_destroy.c
8853         (pthread_barrierattr_destroy): Likewise.
8854         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8855         Likewise.
8856         * nptl/pthread_barrierattr_setpshared.c
8857         (pthread_barrierattr_setpshared): Likewise.
8858         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
8859         Likewise.
8860         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
8861         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
8862         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
8863         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
8864         Likewise.
8865         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
8866         Likewise.
8867         * nptl/pthread_condattr_getpshared.c
8868         (pthread_condattr_getpshared): Likewise.
8869         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
8870         Likewise.
8871         * nptl/pthread_condattr_setpshared.c
8872         (pthread_condattr_setpshared): Likewise.
8873         * nptl/pthread_detach.c (pthread_detach): Likewise.
8874         * nptl/pthread_equal.c (__pthread_equal): Likewise.
8875         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
8876         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
8877         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
8878         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
8879         Likewise.
8880         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8881         Likewise.
8882         * nptl/pthread_mutex_getprioceiling.c
8883         (pthread_mutex_getprioceiling): Likewise.
8884         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
8885         Likewise.
8886         * nptl/pthread_mutexattr_getprotocol.c
8887         (pthread_mutexattr_getprotocol): Likewise.
8888         * nptl/pthread_mutexattr_getpshared.c
8889         (pthread_mutexattr_getpshared): Likewise.
8890         * nptl/pthread_mutexattr_getrobust.c
8891         (pthread_mutexattr_getrobust): Likewise.
8892         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
8893         Likewise.
8894         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
8895         Likewise.
8896         * nptl/pthread_mutexattr_setprioceiling.c
8897         (pthread_mutexattr_setprioceiling): Likewise.
8898         * nptl/pthread_mutexattr_setprotocol.c
8899         (pthread_mutexattr_setprotocol): Likewise.
8900         * nptl/pthread_mutexattr_setpshared.c
8901         (pthread_mutexattr_setpshared): Likewise.
8902         * nptl/pthread_mutexattr_setrobust.c
8903         (pthread_mutexattr_setrobust): Likewise.
8904         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
8905         Likewise.
8906         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
8907         Likewise.
8908         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
8909         Likewise.
8910         * nptl/pthread_rwlockattr_getkind_np.c
8911         (pthread_rwlockattr_getkind_np): Likewise.
8912         * nptl/pthread_rwlockattr_getpshared.c
8913         (pthread_rwlockattr_getpshared): Likewise.
8914         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
8915         Likewise.
8916         * nptl/pthread_rwlockattr_setkind_np.c
8917         (pthread_rwlockattr_setkind_np): Likewise.
8918         * nptl/pthread_rwlockattr_setpshared.c
8919         (pthread_rwlockattr_setpshared): Likewise.
8920         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
8921         Likewise.
8922         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
8923         Likewise.
8924         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
8925         Likewise.
8926         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
8927         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
8928         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
8929         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
8930         * nptl/sem_close.c (sem_close): Likewise.
8931         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
8932         * nptl/sem_init.c (__old_sem_init): Likewise.
8933         * nptl/sigaction.c (__sigaction): Likewise.
8934         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
8935         * posix/_exit.c (_exit): Likewise.
8936         * posix/alarm.c (alarm): Likewise.
8937         * posix/confstr.c (confstr): Likewise.
8938         * posix/fpathconf.c (__fpathconf): Likewise.
8939         * posix/getgroups.c (__getgroups): Likewise.
8940         * posix/getpgid.c (__getpgid): Likewise.
8941         * posix/group_member.c (__group_member): Likewise.
8942         * posix/pathconf.c (__pathconf): Likewise.
8943         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
8944         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
8945         * posix/setgid.c (__setgid): Likewise.
8946         * posix/setpgid.c (__setpgid): Likewise.
8947         * posix/setuid.c (__setuid): Likewise.
8948         * posix/sleep.c (__sleep): Likewise.
8949         * posix/sysconf.c (__sysconf): Likewise.
8950         * posix/times.c (__times): Likewise.
8951         * posix/uname.c (__uname): Likewise.
8952         * posix/waitid.c (__waitid): Likewise.
8953         * pwd/getpw.c (__getpw): Likewise.
8954         * resolv/base64.c (b64_pton): Likewise.
8955         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
8956         * resolv/gethnamaddr.c (Dprintf): Likewise.
8957         (gethostbyname): Likewise.
8958         (gethostbyname2): Likewise.
8959         (gethostbyaddr): Likewise.
8960         (_sethtent): Likewise.
8961         (_gethtbyname): Likewise.
8962         (_gethtbyname2): Likewise.
8963         (_gethtbyaddr): Likewise.
8964         (map_v4v6_address): Likewise.
8965         (map_v4v6_hostent): Likewise.
8966         (addrsort): Likewise.
8967         (ht_sethostent): Likewise.
8968         (ht_gethostbyname): Likewise.
8969         (ht_gethostbyaddr): Likewise.
8970         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
8971         (inet_net_ntop_ipv4): Likewise.
8972         * resolv/inet_neta.c (inet_neta): Likewise.
8973         * resolv/inet_ntop.c (inet_ntop): Likewise.
8974         (inet_ntop4): Likewise.
8975         (inet_ntop6): Likewise.
8976         * resolv/inet_pton.c (__inet_pton): Likewise.
8977         (inet_pton4): Likewise.
8978         (inet_pton6): Likewise.
8979         * resolv/res_debug.c (loc_aton): Likewise.
8980         (loc_ntoa): Likewise.
8981         * resource/getpriority.c (__getpriority): Likewise.
8982         * resource/getrusage.c (__getrusage): Likewise.
8983         * resource/nice.c (nice): Likewise.
8984         * resource/setpriority.c (__setpriority): Likewise.
8985         * resource/setrlimit64.c (setrlimit64): Likewise.
8986         * resource/vlimit.c (vlimit): Likewise.
8987         * resource/vtimes.c (vtimes): Likewise.
8988         * rt/aio_error.c (aio_error): Likewise.
8989         * rt/aio_return.c (aio_return): Likewise.
8990         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
8991         * signal/kill.c (__kill): Likewise.
8992         * signal/killpg.c (killpg): Likewise.
8993         * signal/raise.c (raise): Likewise.
8994         * signal/sigaction.c (__sigaction): Likewise.
8995         * signal/sigaddset.c (sigaddset): Likewise.
8996         * signal/sigaltstack.c (sigaltstack): Likewise.
8997         * signal/sigandset.c (sigandset): Likewise.
8998         * signal/sigblock.c (__sigblock): Likewise.
8999         * signal/sigdelset.c (sigdelset): Likewise.
9000         * signal/sigempty.c (sigemptyset): Likewise.
9001         * signal/sigfillset.c (sigfillset): Likewise.
9002         * signal/sighold.c (sighold): Likewise.
9003         * signal/sigignore.c (sigignore): Likewise.
9004         * signal/sigintr.c (siginterrupt): Likewise.
9005         * signal/sigisempty.c (sigisemptyset): Likewise.
9006         * signal/sigismem.c (sigismember): Likewise.
9007         * signal/signal.c (signal): Likewise.
9008         * signal/sigorset.c (sigorset): Likewise.
9009         * signal/sigpause.c (__sigpause): Likewise.
9010         * signal/sigpending.c (sigpending): Likewise.
9011         * signal/sigprocmask.c (__sigprocmask): Likewise.
9012         * signal/sigrelse.c (sigrelse): Likewise.
9013         * signal/sigreturn.c (__sigreturn): Likewise.
9014         * signal/sigset.c (sigset): Likewise.
9015         * signal/sigsetmask.c (__sigsetmask): Likewise.
9016         * signal/sigstack.c (sigstack): Likewise.
9017         * signal/sigsuspend.c (__sigsuspend): Likewise.
9018         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9019         * signal/sysv_signal.c (__sysv_signal): Likewise.
9020         * socket/accept.c (accept): Likewise.
9021         * socket/accept4.c (__libc_accept4): Likewise.
9022         * socket/bind.c (__bind): Likewise.
9023         * socket/connect.c (__connect): Likewise.
9024         * socket/getpeername.c (getpeername): Likewise.
9025         * socket/getsockname.c (__getsockname): Likewise.
9026         * socket/getsockopt.c (getsockopt): Likewise.
9027         * socket/listen.c (__listen): Likewise.
9028         * socket/recv.c (__recv): Likewise.
9029         * socket/recvmsg.c (__recvmsg): Likewise.
9030         * socket/send.c (__send): Likewise.
9031         * socket/sendmsg.c (__sendmsg): Likewise.
9032         * socket/shutdown.c (shutdown): Likewise.
9033         * socket/sockatmark.c (sockatmark): Likewise.
9034         * socket/socket.c (__socket): Likewise.
9035         * stdio-common/ctermid.c (ctermid): Likewise.
9036         * stdio-common/cuserid.c (cuserid): Likewise.
9037         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9038         * stdio-common/remove.c (remove): Likewise.
9039         * stdio-common/rename.c (rename): Likewise.
9040         * stdio-common/renameat.c (renameat): Likewise.
9041         * stdio-common/tempname.c (__gen_tempname): Likewise.
9042         * stdio-common/xbug.c (InitBuffer): Likewise.
9043         (AppendToBuffer): Likewise.
9044         (ReadFile): Likewise.
9045         * stdlib/a64l.c (a64l): Likewise.
9046         * stdlib/drand48_r.c (drand48_r): Likewise.
9047         * stdlib/getcontext.c (getcontext): Likewise.
9048         * stdlib/getenv.c (getenv): Likewise.
9049         * stdlib/l64a.c (l64a): Likewise.
9050         * stdlib/llabs.c (llabs): Likewise.
9051         * stdlib/lldiv.c (lldiv): Likewise.
9052         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9053         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9054         * stdlib/putenv.c (putenv): Likewise.
9055         * stdlib/random.c (__srandom): Likewise.
9056         (__initstate): Likewise.
9057         (__setstate): Likewise.
9058         * stdlib/random_r.c (__srandom_r): Likewise.
9059         (__setstate_r): Likewise.
9060         (__random_r): Likewise.
9061         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9062         * stdlib/setcontext.c (setcontext): Likewise.
9063         * stdlib/setenv.c (setenv): Likewise.
9064         (unsetenv): Likewise.
9065         * stdlib/srand48.c (srand48): Likewise.
9066         * stdlib/srand48_r.c (__srand48_r): Likewise.
9067         * stdlib/swapcontext.c (swapcontext): Likewise.
9068         * stdlib/system.c (__libc_system): Likewise.
9069         * stdlib/tst-strtod.c (expand): Likewise.
9070         * stdlib/tst-strtol.c (expand): Likewise.
9071         * stdlib/tst-strtoll.c (expand): Likewise.
9072         * streams/fattach.c (fattach): Likewise.
9073         * streams/fdetach.c (fdetach): Likewise.
9074         * streams/getmsg.c (getmsg): Likewise.
9075         * streams/isastream.c (isastream): Likewise.
9076         * string/ffs.c (__ffs): Likewise.
9077         * string/ffsll.c (ffsll): Likewise.
9078         * string/memcmp.c (memcmp_common_alignment): Likewise.
9079         (memcmp_not_common_alignment): Likewise.
9080         (MEMCMP): Likewise.
9081         * string/memcpy.c (memcpy): Likewise.
9082         * string/memmove.c (MEMMOVE): Likewise.
9083         * string/memset.c (memset): Likewise.
9084         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9085         * string/strchrnul.c (STRCHRNUL): Likewise.
9086         * string/strerror.c (strerror): Likewise.
9087         * string/strndup.c (__strndup): Likewise.
9088         * string/strverscmp.c (__strverscmp): Likewise.
9089         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9090         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9091         (clnttcp_freeres): Likewise.
9092         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9093         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9094         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9095         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9096         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9097         (xdr_callhdr): Likewise.
9098         * sunrpc/rpcinfo.c (udpping): Likewise.
9099         (tcpping): Likewise.
9100         (pstatus): Likewise.
9101         (pmapdump): Likewise.
9102         (brdcst): Likewise.
9103         (deletereg): Likewise.
9104         (getprognum): Likewise.
9105         (getvers): Likewise.
9106         (get_inet_address): Likewise.
9107         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9108         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9109         (svcudp_stat): Likewise.
9110         (svcudp_recv): Likewise.
9111         (svcudp_reply): Likewise.
9112         (svcudp_getargs): Likewise.
9113         (svcudp_freeargs): Likewise.
9114         (svcudp_destroy): Likewise.
9115         * sunrpc/xdr.c (xdr_bytes): Likewise.
9116         (xdr_netobj): Likewise.
9117         (xdr_string): Likewise.
9118         (xdr_wrapstring): Likewise.
9119         * sunrpc/xdr_float.c (xdr_float): Likewise.
9120         (xdr_double): Likewise.
9121         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9122         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9123         * sysvipc/ftok.c (ftok): Likewise.
9124         * sysvipc/msgctl.c (msgctl): Likewise.
9125         * sysvipc/msgget.c (msgget): Likewise.
9126         * sysvipc/msgrcv.c (msgrcv): Likewise.
9127         * sysvipc/msgsnd.c (msgsnd): Likewise.
9128         * sysvipc/semget.c (semget): Likewise.
9129         * sysvipc/semop.c (semop): Likewise.
9130         * sysvipc/shmat.c (shmat): Likewise.
9131         * sysvipc/shmctl.c (shmctl): Likewise.
9132         * sysvipc/shmdt.c (shmdt): Likewise.
9133         * sysvipc/shmget.c (shmget): Likewise.
9134         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9135         * termios/speed.c (cfgetospeed): Likewise.
9136         (cfgetispeed): Likewise.
9137         (cfsetospeed): Likewise.
9138         (cfsetispeed): Likewise.
9139         * termios/tcflow.c (tcflow): Likewise.
9140         * termios/tcflush.c (tcflush): Likewise.
9141         * termios/tcgetattr.c (__tcgetattr): Likewise.
9142         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9143         * termios/tcgetsid.c (tcgetsid): Likewise.
9144         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9145         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9146         * time/adjtime.c (__adjtime): Likewise.
9147         * time/dysize.c (dysize): Likewise.
9148         * time/ftime.c (ftime): Likewise.
9149         * time/getitimer.c (__getitimer): Likewise.
9150         * time/gettimeofday.c (__gettimeofday): Likewise.
9151         * time/gmtime.c (__gmtime_r): Likewise.
9152         (gmtime): Likewise.
9153         * time/localtime.c (__localtime_r): Likewise.
9154         (localtime): Likewise.
9155         * time/offtime.c (__offtime): Likewise.
9156         * time/settimeofday.c (__settimeofday): Likewise.
9157         * time/stime.c (stime): Likewise.
9158         * time/strftime_l.c (tm_diff): Likewise.
9159         (iso_week_days): Likewise.
9160         * time/strptime.c (strptime): Likewise.
9161         * time/time.c (time): Likewise.
9162         * time/timespec_get.c (timespec_get): Likewise.
9163         * time/tzset.c (tzset_internal): Likewise.
9164         (compute_change): Likewise.
9165         (__tz_compute): Likewise.
9166         * wcsmbs/btowc.c (__btowc): Likewise.
9167         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9168         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9169         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9170         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9171         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9172         * wcsmbs/wcscat.c (__wcscat): Likewise.
9173         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9174         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9175         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9176         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9177         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9178         * wcsmbs/wcslen.c (__wcslen): Likewise.
9179         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9180         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9181         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9182         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9183         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9184         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9185         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9186         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9187         * wcsmbs/wcstok.c (wcstok): Likewise.
9188         * wcsmbs/wctob.c (wctob): Likewise.
9189         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9190         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9191         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9192         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9193         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9194         * wcsmbs/wmemset.c (__wmemset): Likewise.
9195         * wctype/wcfuncs.c (__towlower): Likewise.
9196         (__towupper): Likewise.
9197
9198         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9199         (lll_unlock_elision): Add adapt_count parameter.
9200
9201 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9202
9203         * sysdeps/nptl/configure.ac: Do not give errors based on the
9204         results of top-level configure tests.
9205         * sysdeps/nptl/configure: Regenerated.
9206
9207         * configure.ac (libc_cv_Bgroup): Remove configure test.
9208         * configure: Regenerated.
9209         * config.make.in (have-Bgroup): Remove variable.
9210
9211         * configure.ac (sizeof_long_double): Remove configure test.
9212         * configure: Regenerated.
9213         * config.make.in (sizeof-long-double): Remove variable.
9214
9215         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9216         * configure: Regenerated.
9217         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9218         variable.
9219         (exceptions): Likewise.
9220         * sysdeps/arm/configure: Regenerated.
9221         * config.make.in (exceptions): Remove variable.
9222         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9223         $(exceptions).
9224         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9225         (CFLAGS-vdprintf_chk.c): Likewise.
9226         (CFLAGS-printf_chk.c): Likewise.
9227         (CFLAGS-fprintf_chk.c): Likewise.
9228         (CFLAGS-vprintf_chk.c): Likewise.
9229         (CFLAGS-vfprintf_chk.c): Likewise.
9230         (CFLAGS-gets_chk.c): Likewise.
9231         (CFLAGS-fgets_chk.c): Likewise.
9232         (CFLAGS-fgets_u_chk.c): Likewise.
9233         (CFLAGS-fread_chk.c): Likewise.
9234         (CFLAGS-fread_u_chk.c): Likewise.
9235         (CFLAGS-wprintf_chk.c): Likewise.
9236         (CFLAGS-fwprintf_chk.c): Likewise.
9237         (CFLAGS-vwprintf_chk.c): Likewise.
9238         (CFLAGS-vfwprintf_chk.c): Likewise.
9239         (CFLAGS-fgetws_chk.c): Likewise.
9240         (CFLAGS-fgetws_u_chk.c): Likewise.
9241         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9242         (CFLAGS-fputc.c): Likewise.
9243         (CFLAGS-fputwc.c): Likewise.
9244         (CFLAGS-freopen64.c): Likewise.
9245         (CFLAGS-freopen.c): Likewise.
9246         (CFLAGS-fseek.c): Likewise.
9247         (CFLAGS-fseeko64.c): Likewise.
9248         (CFLAGS-fseeko.c): Likewise.
9249         (CFLAGS-ftello64.c): Likewise.
9250         (CFLAGS-ftello.c): Likewise.
9251         (CFLAGS-fwide.c): Likewise.
9252         (CFLAGS-genops.c): Likewise.
9253         (CFLAGS-getc.c): Likewise.
9254         (CFLAGS-getchar.c): Likewise.
9255         (CFLAGS-getwc.c): Likewise.
9256         (CFLAGS-getwchar.c): Likewise.
9257         (CFLAGS-iofclose.c): Likewise.
9258         (CFLAGS-iofflush.c): Likewise.
9259         (CFLAGS-iofgetpos64.c): Likewise.
9260         (CFLAGS-iofgetpos.c): Likewise.
9261         (CFLAGS-iofgets.c): Likewise.
9262         (CFLAGS-iofgetws.c): Likewise.
9263         (CFLAGS-iofputs.c): Likewise.
9264         (CFLAGS-iofputws.c): Likewise.
9265         (CFLAGS-iofread.c): Likewise.
9266         (CFLAGS-iofsetpos64.c): Likewise.
9267         (CFLAGS-iofsetpos.c): Likewise.
9268         (CFLAGS-ioftell.c): Likewise.
9269         (CFLAGS-iofwrite.c): Likewise.
9270         (CFLAGS-iogetdelim.c): Likewise.
9271         (CFLAGS-iogetline.c): Likewise.
9272         (CFLAGS-iogets.c): Likewise.
9273         (CFLAGS-iogetwline.c): Likewise.
9274         (CFLAGS-ioputs.c): Likewise.
9275         (CFLAGS-ioseekoff.c): Likewise.
9276         (CFLAGS-ioseekpos.c): Likewise.
9277         (CFLAGS-iosetbuffer.c): Likewise.
9278         (CFLAGS-iosetvbuf.c): Likewise.
9279         (CFLAGS-ioungetc.c): Likewise.
9280         (CFLAGS-ioungetwc.c): Likewise.
9281         (CFLAGS-oldfileops.c): Likewise.
9282         (CFLAGS-oldiofclose.c): Likewise.
9283         (CFLAGS-oldiofgetpos64.c): Likewise.
9284         (CFLAGS-oldiofgetpos.c): Likewise.
9285         (CFLAGS-oldiofsetpos64.c): Likewise.
9286         (CFLAGS-oldiofsetpos.c): Likewise.
9287         (CFLAGS-peekc.c): Likewise.
9288         (CFLAGS-putc.c): Likewise.
9289         (CFLAGS-putchar.c): Likewise.
9290         (CFLAGS-putwc.c): Likewise.
9291         (CFLAGS-putwchar.c): Likewise.
9292         (CFLAGS-rewind.c): Likewise.
9293         (CFLAGS-wfileops.c): Likewise.
9294         (CFLAGS-wgenops.c): Likewise.
9295         (CFLAGS-oldiofopen.c): Likewise.
9296         (CFLAGS-iofopen.c): Likewise.
9297         (CFLAGS-iofopen64.c): Likewise.
9298         (CFLAGS-oldtmpfile.c): Likewise.
9299         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9300         (CFLAGS-fprintf.c): Likewise.
9301         (CFLAGS-printf.c): Likewise.
9302         (CFLAGS-vfwprintf.c): Likewise.
9303         (CFLAGS-vfscanf.c): Likewise.
9304         (CFLAGS-vfwscanf.c): Likewise.
9305         (CFLAGS-fscanf.c): Likewise.
9306         (CFLAGS-scanf.c): Likewise.
9307         (CFLAGS-isoc99_vfscanf.c): Likewise.
9308         (CFLAGS-isoc99_vscanf.c): Likewise.
9309         (CFLAGS-isoc99_fscanf.c): Likewise.
9310         (CFLAGS-isoc99_scanf.c): Likewise.
9311         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9312         (CFLAGS-isoc99_fwscanf.c): Likewise.
9313         (CFLAGS-isoc99_vwscanf.c): Likewise.
9314         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9315
9316         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9317         after mkstemp64.
9318         * login/tst-utmp.c (do_prepare): Likewise.
9319         * rt/tst-aio.c (do_prepare): Likewise.
9320         * rt/tst-aio64.c (do_prepare): Likewise.
9321
9322 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9323
9324         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9325         (__lll_lock_elision): Remove adapt_count decrement...
9326         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9327         (__lll_trylock_elision): Likewise.
9328         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9329         (__lll_unlock_elision): ... to here. And utilize
9330         new adapt_count parameter.
9331         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9332         (__lll_unlock_elision): Update to include adapt_count
9333         parameter.
9334         (lll_unlock_elision): Pass pointer to adapt_count
9335         variable.
9336
9337 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9338
9339         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9340         Add elision adapt_count parameter to list of arguments.
9341         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9342         (lll_unlock_elision): Update with new parameter list
9343         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9344         (lll_unlock_elision): Likewise.
9345         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9346         (lll_unlock_elision): Likewise.
9347
9348 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9349
9350         [BZ #19122]
9351         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9352         attribute_hidden.
9353
9354         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9355         attribute_hidden.
9356         [IS_IN (rtld)] (__strdup): Likewise.
9357         [IS_IN (rtld)] (__strerror_r): Likewise.
9358         [IS_IN (rtld)] (__strsep_g): Likewise.
9359         [IS_IN (rtld)] (memchr): Likewise.
9360         [IS_IN (rtld)] (memcmp): Likewise.
9361         [IS_IN (rtld)] (memcpy): Likewise.
9362         [IS_IN (rtld)] (memmove): Likewise.
9363         [IS_IN (rtld)] (memset): Likewise.
9364         [IS_IN (rtld)] (rawmemchr): Likewise.
9365         [IS_IN (rtld)] (stpcpy): Likewise.
9366         [IS_IN (rtld)] (strchr): Likewise.
9367         [IS_IN (rtld)] (strcmp): Likewise.
9368         [IS_IN (rtld)] (strlen): Likewise.
9369         [IS_IN (rtld)] (strnlen): Likewise.
9370         [IS_IN (rtld)] (strsep): Likewise.
9371
9372         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9373         attribute_hidden.
9374         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9375
9376         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9377         attribute_hidden.
9378         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9379
9380         * include/setjmp.h (__longjmp): Add attribute_hidden.
9381         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9382
9383         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9384         Add attribute_hidden.
9385
9386         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9387         [IS_IN (rtld)] (__open): Likewise.
9388         [IS_IN (rtld)] (__fcntl): Likewise.
9389
9390         * include/dirent.h (__opendirat): Add attribute_hidden.
9391         (__getdents): Likewise.
9392         (__getdents64): Likewise.
9393         (__alloc_dir): Likewise.
9394         [IS_IN (rtld)] (__closedir): Likewise.
9395         [IS_IN (rtld)] (__fdopendir): Likewise.
9396         [IS_IN (rtld)] (__readdir): Likewise.
9397         [IS_IN (rtld)] (__readdir64): Likewise.
9398         [IS_IN (rtld)] (__rewinddir): Likewise.
9399
9400         * include/dlfcn.h (_dl_catch_error): Moved to ...
9401         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9402         attribute_hidden.
9403
9404         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9405         (_itoa_word): Likewise.
9406
9407         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9408         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9409         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9410         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9411         (_dl_higher_prime_number): Likewise.
9412         (_dl_debug_printf_c): Likewise.
9413         (_dl_signal_cerror): Likewise.
9414         (_dl_receive_error): Likewise.
9415         (_dl_reloc_bad_type): Likewise.
9416         (_dl_resolve_conflicts): Likewise.
9417         (_dl_check_all_versions): Likewise.
9418         (_dl_check_map_versions): Likewise.
9419         (_dl_sort_fini): Likewise.
9420         (_dl_debug_initialize): Likewise.
9421         (_dl_init_paths): Likewise.
9422         (_dl_show_auxv): Likewise.
9423         (_dl_next_ld_env_entry): Likewise.
9424         (_dl_important_hwcaps): Likewise.
9425         (_dl_load_cache_lookup): Likewise.
9426         (_dl_update_slotinfo): Likewise.
9427         (_dl_show_scope): Likewise.
9428
9429         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9430         attribute_hidden.
9431         (_wordcopy_fwd_dest_aligned): Likewise.
9432         (_wordcopy_bwd_aligned): Likewise.
9433         (_wordcopy_bwd_dest_aligned): Likewise.
9434
9435         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9436         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9437         Likewise.
9438         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9439         Likewise.
9440         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9441
9442 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9443
9444         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9445         GCC 5 requirement.
9446
9447 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9448
9449         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9450         test.
9451         * sysdeps/i386/configure: Regenerated.
9452         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9453         code unconditional.
9454
9455         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9456         test.
9457         (libc_cv_asm_popsection_directive): Likewise.
9458         * configure: Regenerated.
9459         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9460         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9461         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9462         (__make_section_unallocated): Make definition unconditional.
9463         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9464         Remove conditional definition.
9465         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9466         (__make_section_unallocated): Likewise.
9467
9468         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9469         * configure: Regenerated.
9470         * config.make.in (static-libgcc): Remove variable.
9471         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9472         $(static-libgcc).
9473         (build-module-helper): Likewise.
9474
9475         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9476         * configure: Regenerated.
9477
9478 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9479
9480         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9481         (struct char_buffer): New type.
9482         (char_buffer_start, char_buffer_size, char_buffer_error)
9483         (char_buffer_rewind, char_buffer_add): New functions.
9484         (ADDW): Remove macro, replaced by the char_buffer_add function.
9485         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9486         of extend_alloca.  Make control flow more explicit.
9487
9488 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9489
9490         [BZ #19137]
9491         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9492         Add -fomit-frame-pointer.
9493         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9494
9495 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9496
9497         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9498         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9499         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9500         only if !__GNUC_PREREQ (5,0).
9501         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9502         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9503         (INTERNAL_SYSCALL_NCS): Likewise.
9504         (LOADREGS_0): New macro for GCC 5.
9505         (ASMARGS_0): Likewise.
9506         (LOADREGS_1): Likewise.
9507         (ASMARGS_1): Likewise.
9508         (LOADREGS_2): Likewise.
9509         (ASMARGS_2): Likewise.
9510         (LOADREGS_3): Likewise.
9511         (ASMARGS_3): Likewise.
9512         (LOADREGS_4): Likewise.
9513         (ASMARGS_4): Likewise.
9514         (LOADREGS_5): Likewise.
9515         (ASMARGS_5): Likewise.
9516         (LOADREGS_6): Likewise.
9517         (ASMARGS_6): Likewise.
9518
9519 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9520
9521         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9522         -fomit-frame-pointer.
9523         (CFLAGS-mmap64.c): Likewise.
9524         (CFLAGS-semtimedop.c): Likewise.
9525         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9526         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9527         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9528         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9529
9530 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9531
9532         [BZ #18928]
9533         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9534         _dl_pointer_guard member.
9535         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9536         initializer.
9537         (security_init): Always set up pointer guard.
9538         (process_envvars): Do not process LD_POINTER_GUARD.
9539
9540 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9541
9542         [BZ #19134]
9543         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9544         (.LC2): Likewise.
9545         (.LC3): Likewise.
9546         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9547
9548 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9549
9550         [BZ #19129]
9551         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9552         r0 and r1.
9553
9554 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9555
9556         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9557
9558 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9559
9560         * include/stap-probe.h: Fix macro definition formatting.
9561
9562 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9563
9564         [BZ #19074]
9565         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9566         load and store num_ifs.
9567
9568 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9569
9570         [BZ #18822]
9571         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9572         (__sched_getaffinity_new): Add libc_hidden_proto and
9573         libc_hidden_def.
9574
9575 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9576
9577         [BZ #19007]
9578         * scripts/localplt.awk: Also allow GOT references.
9579         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9580         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9581         with "+ REL R_386_GLOB_DAT".
9582         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9583         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9584
9585 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9586
9587         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9588         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9589         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9590         Likewise.
9591         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9592         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9593         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9594         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9595         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9596         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9597         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9598         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9599         Likewise.
9600         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9601
9602 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9603
9604         [BZ #19125]
9605         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9606         <math_private.h> and <stdint.h>.
9607         (__llround): Avoid conversions to and from long long int, and
9608         subtractions, where those might raise spurious exceptions.
9609         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9610         <math_private.h> and <stdint.h>.
9611         (__llroundf): Avoid conversions to and from long long int, and
9612         subtractions, where those might raise spurious exceptions.
9613
9614 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9615
9616         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9617         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9618         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9619         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9620         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9621         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9622         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9623         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9624         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9625         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9626         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9627         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9628         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9629         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9630         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9631         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9632         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9633         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9634         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9635         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9636         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9637         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9638         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9639         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9640         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9641         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9642         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9643         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9644         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9645         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9646         (__xstat64_conv): Likewise.
9647         (__xstat32_conv): Likewise.
9648
9649 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9650
9651         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9652         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9653         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9654         <sysdeps/unix/sysv/linux/sysdep.h>.
9655         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9656         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9657         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9658         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9659         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9660         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9661         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9662         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9663         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9666         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9667         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9668         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9669         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9670         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9671         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9672         (sysdep-dl-routines): Add sysdep.
9673         [$(subdir) == nptl] (libpthread-routines): Likewise.
9674         [$(subdir) == rt] (librt-routines): Likewise.
9675         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9676         PIC when branching to SYSCALL_ERROR_LABEL.
9677         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9679         <sysdeps/unix/sysv/linux/sysdep.h>.
9680         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9681         (SYSCALL_ERROR_ERRNO): Removed.
9682         (SYSCALL_ERROR_HANDLER): Changed to empty.
9683         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9684         (__syscall_error): New prototype.
9685         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9686         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9687
9688 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9689
9690         [BZ #19124]
9691         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9692         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9693         _dl_runtime_resolve_avx.
9694         (_dl_runtime_profile_avx512): Make it a hidden alias of
9695         _dl_runtime_profile_avx.
9696
9697 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9698
9699         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9700         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9701         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9702         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9703
9704         [BZ #16422]
9705         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9706         New configure test.
9707         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9708         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9709         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9710         <math_private.h> and <stdint.h>.
9711         (__llrint): Avoid conversions to long long int where those might
9712         raise spurious exceptions.
9713         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9714         <math_private.h> and <stdint.h>.
9715         (__llrintf): Avoid conversions to long long int where those might
9716         raise spurious exceptions.
9717
9718 2015-10-12  Andreas Schwab  <schwab@suse.de>
9719
9720         [BZ #18969]
9721         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9722         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9723         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9724         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9725         $(gen-locales).
9726         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9727         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9728         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9729         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9730         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9731         $(gen-locales).
9732         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9733         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9734         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9735         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9736         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9737         ($(objpfx)tst-ftell-active-handler.out)
9738         ($(objpfx)tst-ftell-append.out)
9739         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9740         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9741         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9742         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9743         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9744         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9745         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9746         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9747         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9748         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9749         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9750         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9751         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9752         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9753         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9754         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9755         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9756         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9757         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9758         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9759         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9760         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9761         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9762         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9763         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9764         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9765         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9766         $(gen-locales).
9767         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9768         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9769         $(gen-locales).
9770         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9771         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9772         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9773         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9774         $(gen-locales).
9775         * libio/tst_wprintf2.c (main): Use explicit locale.
9776         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9777
9778 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9779
9780         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9781         __msg_sig_post.
9782         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9783
9784 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9785
9786         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9787         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9788
9789         * sysdeps/arm/libm-test-ulps: Regenerated.
9790
9791         [BZ #15470]
9792         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9793
9794         [BZ #16399]
9795         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9796         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9797         and <fix-fp-int-convert-overflow.h>.
9798         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9799         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9800         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9801         and <fix-fp-int-convert-overflow.h>.
9802         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9803         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9804         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9805         <fix-fp-int-convert-overflow.h>.
9806         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9807         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9808         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9809         <fix-fp-int-convert-overflow.h>.
9810         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9811         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9812         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9813         and <fix-fp-int-convert-overflow.h>.
9814         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9815         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9816         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9817         <limits.h> and <fix-fp-int-convert-overflow.h>.
9818         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9819         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9820         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9821         and <fix-fp-int-convert-overflow.h>.
9822         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9823         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9824         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9825         and <fix-fp-int-convert-overflow.h>.
9826         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9827         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9828         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9829
9830 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9831
9832         [BZ #18589]
9833         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9834         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9835         $(gen-locales).
9836
9837 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9838             Phil Blundell <pb@pbcl.net>
9839
9840         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9841         * nptl/tst-cancel26.c: New file.
9842         * nptl/tst-cancel27.c: Likewise.
9843
9844 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9845
9846         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9847         __ILP32__ isn't defined.
9848         (lrint): Likewise.
9849         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
9850         (lrintf): Likewise.
9851         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
9852         (lrintl): Likewise.
9853         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
9854         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
9855         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
9856
9857 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9858
9859         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9860         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9861
9862         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
9863         file.
9864         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
9865         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
9866
9867 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9868
9869         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
9870         configure test.
9871         * sysdeps/i386/configure: Regenerated.
9872         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
9873         configure test.
9874         * sysdeps/x86_64/configure: Regenerated.
9875         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
9876         Make code unconditional.
9877
9878         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
9879         test.
9880         * sysdeps/i386/configure: Regenerated.
9881         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
9882         test.
9883         * sysdeps/x86_64/configure: Regenerated.
9884         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
9885         Make code unconditional.
9886         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
9887         Likewise.
9888         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
9889         Likewise.
9890         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9891         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
9892         code unconditional.
9893         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9894         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
9895         code unconditional.
9896         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9897         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
9898         code unconditional.
9899         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
9900         code unconditional.
9901         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9902         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
9903         code unconditional.
9904         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9905         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
9906         code unconditional.
9907         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9908         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
9909         code unconditional.
9910         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9911         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
9912         code unconditional.
9913         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9914         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
9915
9916         [BZ #19095]
9917         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
9918         mantissa to long int before shifting left.
9919
9920 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9921
9922         [BZ #19094]
9923         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
9924         <limits.h>.
9925         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9926         when result overflows but exception would not result from cast.
9927         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
9928         <limits.h>.
9929         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9930         when result overflows but exception would not result from cast.
9931         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
9932         <limits.h>.
9933         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9934         when result overflows but exception would not result from cast.
9935         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
9936         <limits.h>.
9937         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9938         when result overflows but exception would not result from cast.
9939         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
9940         <limits.h>.
9941         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9942         when result overflows but exception would not result from cast.
9943         * math/libm-test.inc (lrint_test_data): Add more tests.
9944         (llrint_test_data): Likewise.
9945
9946 2015-10-08  Roland McGrath  <roland@hack.frob.com>
9947
9948         [BZ #18872]
9949         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
9950         Move out from under [$(run-built-tests) = yes] conditional.
9951         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
9952         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
9953
9954 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
9955
9956         [BZ #18589]
9957         * string/Makefile (tests): Add bug-strcoll2.
9958         (LOCALES): Add cs_CZ.UTF-8.
9959         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
9960
9961         [BZ #18589]
9962         * string/bug-strcoll2.c: New file.
9963         * locale/categories.def: Revert commit
9964         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
9965         * locale/langinfo.h: Likewise.
9966         * locale/localeinfo.h: Likewise.
9967         * locale/C-collate.c: Likewise.
9968         * locale/programs/ld-collate.c (collate_output): Likewise.
9969         * string/strcoll_l.c (STRDIFF): Likewise.
9970         (STRCOLL): Likewise.
9971         * wcsmbs/wcscoll_l.c: Likewise.
9972
9973 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9974
9975         * math/libm-test.inc (lround_test_data): Do not expect the absence
9976         of "inexact" for some tests with non-integer arguments.
9977         (llround_test_data): Likewise.
9978
9979         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
9980         test.
9981         (libc_cv_cc_sse2avx): Likewise.
9982         * sysdeps/i386/configure: Regenerated.
9983         * sysdeps/i386/i686/multiarch/Makefile
9984         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
9985         [$(subdir) = math].
9986         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
9987         code unconditional.
9988         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
9989         Likewise.
9990         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
9991         Likewise.
9992         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
9993         Likewise.
9994         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
9995         test.
9996         (libc_cv_cc_sse2avx): Likewise.
9997         * sysdeps/x86_64/configure: Regenerated.
9998         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
9999         unconditional.
10000         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10001         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10002         unconditional.
10003         (_dl_runtime_profile)
10004         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10005         conditional code.
10006         * sysdeps/x86_64/fpu/multiarch/Makefile
10007         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10008         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10009         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10010         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10011         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10012         * sysdeps/x86_64/fpu/multiarch/e_log.c
10013         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10014         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10015         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10016         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10017         Likewise.
10018         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10019         Likewise.
10020         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10021         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10022         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10023         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10024         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10025         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10026         (HAVE_SSE2AVX_SUPPORT): Likewise.
10027
10028 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10029
10030         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10031         instead of #pragma optimize.
10032
10033 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10034
10035         [BZ #17195]
10036         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10037         as is similarly done in systrim and _int_free already.
10038
10039 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10040
10041         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10042
10043 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10044
10045         [BZ #19088]
10046         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10047         <limits.h>.
10048         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10049         overflows but exception would not result from cast.
10050         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10051         and <limits.h>.
10052         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10053         overflows but exception would not result from cast.
10054         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10055         <limits.h>.
10056         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10057         overflows but exception would not result from cast.
10058         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10059         <limits.h>.
10060         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10061         overflows but exception would not result from cast.
10062         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10063         <limits.h>.
10064         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10065         overflows but exception would not result from cast.
10066         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10067         <limits.h>.
10068         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10069         overflows but exception would not result from cast.
10070         * math/libm-test.inc (lround_test_data): Add more tests.
10071         (llround_test_data): Likewise.
10072
10073 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10074
10075         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10076         (CFLAGS-ialloc.c): Ditto.
10077         (CFLAGS-scheck.c): Ditto.
10078
10079 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10080
10081         [BZ #19086]
10082         * manual/filesys.texi (Storage Allocation): Fix argument order for
10083         posix_fallocate64.
10084
10085 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10086
10087         [BZ #19085]
10088         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10089         exponent below 48 inside case for non-overflowing exponent.
10090         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10091
10092 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10093
10094         * iconvdata/cp737.h (from_idx): Add const.
10095         * iconvdata/cp775.h (from_idx): Likewise.
10096
10097 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10098
10099         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10100         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10101         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10102
10103         [BZ #19079]
10104         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10105         file, conditioned on [!_LP64].
10106         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10107         [!_LP64] (__lround): Do not define as function or alias.
10108         [!_LP64] (lround): Likewise.
10109         [!_LP64] (__lroundl): Likewise.
10110         [!_LP64] (lroundl): Likewise.
10111         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10112         macro.
10113         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10114         Likewise.
10115
10116 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10117
10118         * math/libm-test.inc (lrint_test_data): Add more tests.
10119         (llrint_test_data): Likewise.
10120         (lround_test_data): Likewise.
10121         (llround_test_data): Likewise.
10122
10123         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10124         (llrint_test_data): Add tests used for lrint.
10125
10126         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10127         test.
10128         * sysdeps/i386/configure: Regenerated.
10129         * sysdeps/i386/i686/multiarch/Makefile
10130         [$(config-cflags-sse4) = yes]: Make code unconditional.
10131         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10132         Likewise.
10133         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10134         Likewise.
10135         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10136         test.
10137         * sysdeps/x86_64/configure: Regenerated.
10138         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10139         Make code unconditional.
10140         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10141         Likewise.
10142         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10143         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10144
10145         * scripts/rpm2dynsym.sh: Remove file.
10146
10147 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10148
10149         * configure.ac (libc_cv_cxx_thread_local): Define.
10150         * configure: Regenerate.
10151         * config.make.in (have-cxx-thread_local): Define.
10152         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10153         (LDLIBS-tst-thread_local1): Define.
10154         (tests): Add tst-thread_local1.
10155         [have-cxx-thread_local != yes] (tests-unsupported): Add
10156         tst-thread_local1.
10157         * nptl/tst-thread_local1.cc: New file.
10158
10159 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10160
10161         [BZ #19078]
10162         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10163         (u_thres): Likewise.
10164         (__expl): Determine whether to call __kernel_standard_l based on
10165         value of result, not argument.
10166
10167         * math/libm-test.inc (scalb_test_data): Add more expectations for
10168         the "inexact" exception.
10169
10170         [BZ #19077]
10171         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10172         0.0L for argument 1.0L.
10173
10174         [BZ #19076]
10175         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10176         constant 0.0L when computing infinite result.
10177
10178 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10179
10180         [BZ #10432]
10181         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10182         malloc_usable_size.
10183
10184 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10185
10186         [BZ #19018]
10187         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10188         Mangle function pointer before storing it.
10189         (__call_tls_dtors): Demangle function pointer before calling it.
10190
10191 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10192
10193         [BZ #19012]
10194         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10195         Clean up on failure.
10196
10197 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10198
10199         [BZ #19071]
10200         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10201         long int variable to store possibly incremented high part of
10202         mantissa.
10203         * math/libm-test.inc (lround_test_data): Add tests used for
10204         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10205         for tests requiring 64-bit long.  Do not condition tests on
10206         [TEST_FLOAT] unnecessarily.
10207         (llround_test_data): Add tests used for lround.  Add another
10208         expectation for the "inexact" exception.  Do not condition tests
10209         on [TEST_FLOAT] unnecessarily.
10210
10211         [BZ #887]
10212         [BZ #19049]
10213         [BZ #19050]
10214         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10215         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10216         <fix-int-fp-convert-zero.h>.
10217         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10218         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10219         <fix-int-fp-convert-zero.h>.
10220         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10221         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10222         <fix-int-fp-convert-zero.h>.
10223         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10224         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10225         <fix-int-fp-convert-zero.h>.
10226         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10227         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10228         <fix-int-fp-convert-zero.h>.
10229         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10230         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10231         <fix-int-fp-convert-zero.h>.
10232         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10233         * sysdeps/ieee754/flt-32/s_erff.c: Include
10234         <fix-int-fp-convert-zero.h>.
10235         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10236         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10237         <fix-int-fp-convert-zero.h>.
10238         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10239         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10240         <fix-int-fp-convert-zero.h>.
10241         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10242         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10243         <fix-int-fp-convert-zero.h>.
10244         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10245         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10246         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10247         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10248         file.
10249         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10250
10251 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10252
10253         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10254
10255 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10256
10257         [BZ #19059]
10258         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10259         overflowing computation.
10260         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10261         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10262         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10263         Likewise.
10264         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10265         Likewise.
10266         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10267         Likewise.
10268         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10269         Likewise.
10270         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10271         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10272         Likewise.
10273         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10274         Likewise.
10275         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10276
10277         * nss/rewrite_field.c (__nss_rewrite_field): Use
10278         internal_function.
10279         * nss/valid_field.c (__nss_valid_field): Likewise.
10280         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10281
10282 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10283
10284         [BZ #18724]
10285         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10286         (__nss_invalid_field_characters, __nss_valid_field)
10287         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10288         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10289         tst-field.c: New file.
10290         * nss/Makefile (routines): Add valid_field, rewrite_field.
10291         (tests-static): Define unconditionally.
10292         (tests): Include tests-static.
10293         [build-static-nss] (tests-static): Use append.
10294         [build-static-nss] (tests): Remove modification.
10295         * nss/getent.c (print_group): Call putgrent.  Report error.
10296         (print_gshadow): Call putsgent.  Report error.
10297         (print_passwd): Call putpwent.  Report error.
10298         (print_shadow): Call putspent.  Report error.
10299         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10300         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10301         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10302         name, password, directory, shell fields for valid syntax.  Rewrite
10303         GECOS field to match syntax.
10304         * pwd/Makefile (tests): Add tst-putpwent.
10305         * pwd/tst-putpwent.c: New file.
10306         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10307         Check grName, grpasswd, gr_mem fields for valid syntax.
10308         Change loop variable i to size_t.
10309         * grp/Makefile (tests): Add tst-putgrent.
10310         * grp/tst-putgrent.c: New file.
10311         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10312         valid syntax.
10313         * shadow/Makefile (tests): Add tst-putspent.
10314         * shadow/tst-putspent.c: New file.
10315         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10316         sg_mem fields for valid syntax.
10317         * gshadow/Makefile (tests): Add tst-putsgent.
10318         * gshadow/tst-putsgent.c: New file.
10319
10320 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10321
10322         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10323         assembly instructions.
10324
10325 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10326
10327         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10328         prefix from operands.
10329
10330 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10331
10332         [BZ #16347]
10333         [BZ #19046]
10334         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10335         <libc-internal.h>.
10336         (MAXLGM): Do not use diagnostic control macros.
10337         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10338         threshold for ldbl-128ibm.
10339         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10340         instead of multiplying by log then subtracting.
10341         * math/auto-libm-test-in: Add more tests of lgamma.
10342         * math/auto-libm-test-out: Regenerated.
10343
10344         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10345         (TYPE_HEX_DIG): Likewise.
10346         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10347         precisions when printing floating-point numbers.
10348         (check_float_internal): Likewise.
10349
10350 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10351
10352         [BZ #16620]
10353         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10354         of log (10) rounded downward to 48 bits.
10355         (log10_low): Use corresponding low part of log (10).
10356
10357         [BZ #19032]
10358         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10359         compute result as (x - x) / (x - x) not as 0 / 0.
10360         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10361         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10362
10363         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10364         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10365         and expm1.
10366         * math/auto-libm-test-out: Regenerated.
10367         * math/libm-test.inc (acos_test_data): Add more tests.
10368         (asin_test_data): Likewise.
10369         (asinh_test_data): Likewise.
10370         (atan_test_data): Likewise.
10371         (atanh_test_data): Likewise.
10372         (atan2_test_data): Likewise.
10373         (cbrt_test_data): Likewise.
10374         (ceil_test_data): Likewise.
10375         (copysign_test_data): Likewise.
10376         (cos_test_data): Likewise.
10377         (cosh_test_data): Likewise.
10378         (erf_test_data): Likewise.
10379         (erfc_test_data): Likewise.
10380         (exp_test_data): Likewise.
10381         (exp10_test_data): Likewise.
10382         (exp2_test_data): Likewise.
10383         (expm1_test_data): Likewise.
10384         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10385
10386 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10387
10388         [BZ #19006]
10389         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10390         to ...
10391         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10392         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10393         to ...
10394         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10395         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10396         to ...
10397         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10398         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10399         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10400         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10401         to ...
10402         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10403         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10404         Moved to ...
10405         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10406         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10407         Moved to ...
10408         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10409         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10410         to ...
10411         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10412         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10413         Moved to ...
10414         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10415         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10416         to ...
10417         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10418         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10419         Removed.
10420         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10421         Likewise.
10422         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10423         Likewise.
10424         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10425         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10426         Likewise.
10427         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10428         Likewise.
10429         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10430         Likewise.
10431         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10432         Likewise.
10433         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10434         Likewise.
10435         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10436         Likewise.
10437         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10438         Likewise.
10439         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10440         Likewise.
10441         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10442         Likewise.
10443         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10444         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10445         Likewise.
10446         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10447         Likewise.
10448         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10449         Likewise.
10450         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10451         Likewise.
10452         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10453         Likewise.
10454         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10455         Replace ../i486/pthread_cond_timedwait.S with
10456         ../pthread_cond_timedwait.S.
10457
10458 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10459
10460         * math/libm-test.inc (acos_test_data): Refine expectations for
10461         errno and "inexact" exceptions.
10462         (acosh_test_data): Likewise.
10463         (asin_test_data): Likewise.
10464         (asinh_test_data): Likewise.
10465         (atan_test_data): Likewise.
10466         (atanh_test_data): Likewise.
10467         (atan2_test_data): Likewise.
10468         (cbrt_test_data): Likewise.
10469         (ceil_test_data): Likewise.
10470         (copysign_test_data): Likewise.
10471         (cosh_test_data): Likewise.
10472         (erf_test_data): Likewise.
10473         (erfc_test_data): Likewise.
10474         (exp_test_data): Likewise.
10475         (exp10_test_data): Likewise.
10476         (exp2_test_data): Likewise.
10477         (expm1_test_data): Likewise.
10478         (fabs_test_data): Likewise.
10479         (floor_test_data): Likewise.
10480         (fma_test_data): Likewise.
10481         (fmax_test_data): Likewise.
10482         (fmin_test_data): Likewise.
10483         (fmod_test_data): Likewise.
10484         (fpclassify_test_data): Likewise.
10485         (frexp_test_data): Likewise.
10486         (hypot_test_data): Likewise.
10487         (ilogb_test_data): Likewise.
10488         (isgreater_test_data): Likewise.
10489         (isgreaterequal_test_data): Likewise.
10490         (isinf_test_data): Likewise.
10491         (isless_test_data): Likewise.
10492         (islessequal_test_data): Likewise.
10493         (islessgreater_test_data): Likewise.
10494         (isnan_test_data): Likewise.
10495         (isnormal_test_data): Likewise.
10496         (issignaling_test_data): Likewise.
10497         (isunordered_test_data): Likewise.
10498         (j0_test_data): Likewise.
10499         (j1_test_data): Likewise.
10500         (jn_test_data): Likewise.
10501         (lgamma_test_data): Likewise.
10502         (lrint_test_data): Likewise.
10503         (llrint_test_data): Likewise.
10504         (log_test_data): Likewise.
10505         (log10_test_data): Likewise.
10506         (log1p_test_data): Likewise.
10507         (log2_test_data): Likewise.
10508         (logb_test_data): Likewise.
10509         (lround_test_data): Likewise.
10510         (llround_test_data): Likewise.
10511         (modf_test_data): Likewise.
10512         (nearbyint_test_data): Likewise.
10513         (nextafter_test_data): Likewise.
10514         (nexttoward_test_data): Likewise.
10515         (pow_test_data): Likewise.
10516         (remainder_test_data): Likewise.
10517         (remquo_test_data): Likewise.
10518         (rint_test_data): Likewise.
10519         (round_test_data): Likewise.
10520         (signbit_test_data): Likewise.
10521         (sinh_test_data): Likewise.
10522         (sqrt_test_data): Likewise.
10523         (tanh_test_data): Likewise.
10524         (tgamma_test_data): Likewise.
10525         (trunc_test_data): Likewise.
10526         (y0_test_data): Likewise.
10527         (y1_test_data): Likewise.
10528         (yn_test_data): Likewise.
10529         (significand_test_data): Likewise.
10530
10531 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10532
10533         * manual/filesys.texi (Storage Allocation): Document that
10534         posix_fallocate emulation fails when fd is open with O_WRONLY.
10535
10536 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10537
10538         [BZ #19016]
10539         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10540         allow more cases with X^2 + Y^2 >= 0.5.
10541         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10542         normal element in sum instead of special-casing based on values of
10543         arguments.
10544         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10545         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10546         -1 as normal element in sum instead of special-casing based on
10547         values of arguments.
10548         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10549         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10550         (__x2y2m1): Update comment.
10551         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10552         as normal element in sum instead of special-casing based on values
10553         of arguments.
10554         * math/s_clog.c (__clog): Handle more cases using log1p without
10555         hypot.
10556         * math/s_clog10.c (__clog10): Likewise.
10557         * math/s_clog10f.c (__clog10f): Likewise.
10558         * math/s_clog10l.c (__clog10l): Likewise.
10559         * math/s_clogf.c (__clogf): Likewise.
10560         * math/s_clogl.c (__clogl): Likewise.
10561         * math/auto-libm-test-in: Add more tests of clog and clog10.
10562         * math/auto-libm-test-out: Regenerated.
10563         * sysdeps/i386/fpu/libm-test-ulps: Update.
10564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10565
10566 2015-09-28  Martin Sebor  <msebor@redhat.com>
10567
10568         [BZ #18969]
10569         * string/Makefile (LOCALES): Define.
10570         (gen-locales.mk): Include.
10571         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10572         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10573         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10574         on setlocale failure.
10575
10576 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10577
10578         [BZ #18985]
10579         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10580         (__strftime_internal): Likewise.
10581         * time/tst-strftime.c (do_bz18985): New test.
10582         (do_test): Call it.
10583
10584 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10585
10586         [BZ #18956]
10587         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10588         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10589         extracting high part.
10590         * math/auto-libm-test-in: Add another test of pow.
10591         * math/auto-libm-test-out: Regenerated.
10592         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10593
10594 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10595
10596         [BZ #18825]
10597         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10598         New macro.
10599         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10600         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10601         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10602         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10603         DBL_NARROW_EVAL, reloading the PIC register as needed.
10604         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10605         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10606         FLT_NARROW_EVAL.  Use separate return path for case when first
10607         argument is NaN.
10608         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10609         DEFINE_LDBL_MIN.
10610         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10611         PIC register.
10612         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10613         math_check_force_underflow_nonneg.
10614         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10615         underflow for subnormal result.
10616         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10617         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10618         math_check_force_underflow_nonneg.
10619         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10620         math_check_force_underflow.
10621         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10622         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10623         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10624         DEFINE_LDBL_MIN.
10625         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10626         * math/auto-libm-test-in: Add more tests of pow.
10627         * math/auto-libm-test-out: Regenerated.
10628
10629 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10630
10631         * nss/bug17079.c (init_test_items): Add diagnostic for
10632         inconsistent entries.
10633         (test_buffer_size): Skip inconsistent entries.
10634
10635 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10636
10637         [BZ #13304]
10638         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10639         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10640         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10641
10642         [BZ #13304]
10643         * sysdeps/microblaze/s_fma.c: New file.
10644         * sysdeps/microblaze/s_fmaf.c: Likewise.
10645         * sysdeps/microblaze/sfp-machine.h: Likewise.
10646
10647 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10648
10649         [BZ #17250]
10650         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10651         member.
10652
10653 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10654
10655         [BZ #18803]
10656         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10657         (MO): New macro.
10658         (__ieee754_hypot) [PIC]: Load PIC register.
10659         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10660         DBL_NARROW_EVAL.
10661         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10662         math_check_force_underflow_nonneg in case where result might be
10663         tiny.
10664         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10665         Likewise.
10666         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10667         Likewise.
10668         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10669         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10670         * math/auto-libm-test-in: Add more tests of hypot.
10671         * math/auto-libm-test-out: Regenerated.
10672
10673 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10674
10675         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10676
10677 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10678
10679         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10680         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10681         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10682         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10683         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10684         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10685         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10686
10687         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10688         LOAD_PIC_REG.
10689
10690         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10691         (FLT_CHECK_FORCE_UFLOW): Likewise.
10692         (DBL_CHECK_FORCE_UFLOW): Likewise.
10693         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10694         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10695         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10696         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10697         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10698         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10699         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10700         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10701         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10702         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10703         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10704         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10705         (flt_min): Replace with use of DEFINE_FLT_MIN.
10706         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10707         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10708         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10709         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10710         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10711         (flt_min): Replace with use of DEFINE_FLT_MIN.
10712         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10713         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10714         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10715         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10716         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10717         (flt_min): Replace with use of DEFINE_FLT_MIN.
10718         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10719         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10720         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10721         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10722         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10723         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10724         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10725         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10726         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10727         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10728         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10729         (flt_min): Replace with use of DEFINE_FLT_MIN.
10730         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10731         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10732         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10733         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10734         main computation.
10735         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10736         (flt_min): Replace with use of DEFINE_FLT_MIN.
10737         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10738         main computation.
10739         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10740         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10741         (MO): New macro.
10742         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10743         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10744         (flt_min): Replace with use of DEFINE_FLT_MIN.
10745         (MO): New macro.
10746         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10747         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10748         (__log1pl): Use MO.
10749
10750         [BZ #19003]
10751         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10752         $(config-cflags-nofma).
10753
10754 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10755
10756         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10757
10758 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10759
10760         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10761         (TWO127): Likewise.
10762
10763         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10764         (min_of_type): Likewise.
10765         (math_check_force_underflow): Likewise.
10766         (math_check_force_underflow_nonneg): Likewise.
10767         (math_check_force_underflow_complex): Likewise.
10768         * math/e_exp2l.c (__ieee754_exp2l): Use
10769         math_check_force_underflow_nonneg.
10770         * math/k_casinh.c (__kernel_casinh): Likewise.
10771         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10772         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10773         * math/s_catan.c (__catan): Use
10774         math_check_force_underflow_complex.
10775         * math/s_catanf.c (__catanf): Likewise.
10776         * math/s_catanh.c (__catanh): Likewise.
10777         * math/s_catanhf.c (__catanhf): Likewise.
10778         * math/s_catanhl.c (__catanhl): Likewise.
10779         * math/s_catanl.c (__catanl): Likewise.
10780         * math/s_ccosh.c (__ccosh): Likewise.
10781         * math/s_ccoshf.c (__ccoshf): Likewise.
10782         * math/s_ccoshl.c (__ccoshl): Likewise.
10783         * math/s_cexp.c (__cexp): Likewise.
10784         * math/s_cexpf.c (__cexpf): Likewise.
10785         * math/s_cexpl.c (__cexpl): Likewise.
10786         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10787         * math/s_clog10.c (__clog10): Likewise.
10788         * math/s_clog10f.c (__clog10f): Likewise.
10789         * math/s_clog10l.c (__clog10l): Likewise.
10790         * math/s_clogf.c (__clogf): Likewise.
10791         * math/s_clogl.c (__clogl): Likewise.
10792         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10793         * math/s_csinf.c (__csinf): Likewise.
10794         * math/s_csinh.c (__csinh): Likewise.
10795         * math/s_csinhf.c (__csinhf): Likewise.
10796         * math/s_csinhl.c (__csinhl): Likewise.
10797         * math/s_csinl.c (__csinl): Likewise.
10798         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10799         * math/s_csqrtf.c (__csqrtf): Likewise.
10800         * math/s_csqrtl.c (__csqrtl): Likewise.
10801         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10802         * math/s_ctanf.c (__ctanf): Likewise.
10803         * math/s_ctanh.c (__ctanh): Likewise.
10804         * math/s_ctanhf.c (__ctanhf): Likewise.
10805         * math/s_ctanhl.c (__ctanhl): Likewise.
10806         * math/s_ctanl.c (__ctanl): Likewise.
10807         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10808         instead of volatile.
10809         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10810         math_check_force_underflow.
10811         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10812         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10813         volatile when forcing underflow.
10814         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10815         math_check_force_underflow_nonneg.
10816         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10817         Likewise.
10818         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10819         math_check_force_underflow.
10820         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10821         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10822         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10823         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10824         math_check_force_underflow_nonneg.
10825         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10826         math_check_force_underflow.
10827         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10829         instead of volatile.
10830         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10831         math_check_force_underflow.
10832         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10833         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10834         math_check_force_underflow_nonneg.
10835         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10836         math_check_force_underflow.
10837         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10838         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10839         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10840         math_check_force_underflow_nonneg.
10841         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10842         Likewise.
10843         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10844         math_check_force_underflow.
10845         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10846         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10847         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10848         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
10849         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10850         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
10851         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10852         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10853         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10854         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
10855         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10856         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10857         Likewise.
10858         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
10859         math_check_force_underflow_nonneg.
10860         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10861         Likewise.
10862         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
10863         math_check_force_underflow.
10864         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10865         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10866         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10867         Likewise.
10868         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10869         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
10870         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
10871         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
10872         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
10873         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10874         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
10875         instead of volatile.
10876         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
10877         math_check_force_underflow.
10878         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10879         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
10880         math_check_force_underflow.
10881         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
10882         Likewise.
10883         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10884         Use math_check_force_underflow_nonneg.
10885         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
10886         math_check_force_underflow.
10887         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
10888         Likewise.
10889         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10890         Likewise.
10891         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10892         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
10893         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
10894         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
10895         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
10896         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
10897         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10898         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10899         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
10900         math_check_force_underflow_nonneg.
10901         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
10902         math_check_force_underflow.
10903         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10904         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10905         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
10906         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
10907         math_check_force_underflow_nonneg.
10908         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
10909         math_check_force_underflow.
10910         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10911         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
10912         instead of volatile.
10913         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
10914         math_check_force_underflow.
10915
10916         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
10917         * stdlib/strtod_l.c: Include <math_private.h>.
10918         (overflow_value): Use math_narrow_eval.
10919         (underflow_value): Likewise.
10920         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10921         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10922         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10923         (__ieee754_gamma_r): Likewise.
10924         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
10925         Likewise.
10926         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10927         Likewise.
10928         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10929         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
10930         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10931         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10932         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10933         (__ieee754_gammaf_r): Likewise.
10934         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10935         Likewise.
10936         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10937         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
10938         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10939         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10940         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
10941         volatile.
10942         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10943         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
10944         math_narrow_eval.
10945         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10946         Likewise.
10947         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10948         Likewise.
10949         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
10950         Likewise.
10951         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
10952         volatile.
10953         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10954         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
10955         math_narrow_eval.
10956         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10957         Likewise.
10958         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10959         Likewise.
10960
10961 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
10962
10963         * nptl/Versions: Remove ignored symbols.
10964
10965 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10966
10967         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
10968         * nss/Makefile (tests): Update.
10969
10970 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10971
10972         * nss/bug18287.c: New file.
10973         * nss/Makefile (tests): Add bug18287.
10974
10975 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10976
10977         * mach/Versions (__mach_host_self_): Add symbol.
10978
10979 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10980
10981         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
10982         vm_page_size.
10983
10984 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10985
10986         Really fix sysdeps/i386/fpu/s_scalbn.S build
10987
10988         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
10989         (libc: GLIBC_2_22): Remove unused version set.
10990
10991 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
10992
10993         * config.make.in (enable-timezone-tools): New variable.
10994         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
10995         (enable_timezone_tools): Export to generated files.
10996         * configure: Regenerate.
10997         * INSTALL: Regenerate.
10998         * manual/install.texi (--disable-timezone-tools): Document new flag.
10999         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11000         ifeq ($(enable-timezone-tools),yes) check.
11001
11002 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11003
11004         * timezone/Makefile: Revert previous change.
11005
11006         [BZ #18980]
11007         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11008         (DEFINE_DBL_MIN): Likewise.
11009         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11010         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11011         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11012         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11013         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11014         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11015         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11016         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11017         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11018         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11019         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11020         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11021         (flt_min): Replace with use of DEFINE_FLT_MIN.
11022         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11023         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11024         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11025         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11026         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11027         (flt_min): Replace with use of DEFINE_FLT_MIN.
11028         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11029         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11030         (flt_min): Replace with use of DEFINE_FLT_MIN.
11031         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11032         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11033         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11034         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11035         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11036         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11037         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11038         (__ieee754_pow): Use DBL_NARROW_EVAL.
11039         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11040         (__ieee754_powf): Use FLT_NARROW_EVAL.
11041         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11042         (__ieee754_expf_sse2): Convert double-precision result to single
11043         precision.
11044         * sysdeps/i386/fpu/libm-test-ulps: Update.
11045
11046 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11047
11048         * timezone/Makefile: Ignore unused variable errors due to private.h
11049         (time_t_min) and (time_t_max).
11050         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11051         Likewise.
11052
11053 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11054
11055         [BZ #18981]
11056         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11057         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11058         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11059         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11060         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11061         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11062         (__scalbn): Use DBL_NARROW_EVAL.
11063         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11064         (__scalbnf): Use FLT_NARROW_EVAL.
11065
11066 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11067
11068         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11069         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11070         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11071         * stdio-common/printf_fp.c (___printf_fp):
11072         Use signbit to get the sign. Use isinf macro to allow inlining.
11073         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11074         * stdio-common/printf_size.c (__printf_size): Likewise.
11075
11076 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11077
11078         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11079
11080 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11081
11082         [BZ #18980]
11083         * sysdeps/generic/math_private.h: Include <float.h>.
11084         (math_narrow_eval): New macro.
11085         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11086         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11087         math_narrow_eval on overflowing return value.
11088         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11089         Likewise.
11090         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11091         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11092         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11093         Likewise.
11094         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11095
11096 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11097
11098         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11099         * math/Makefile: Remove isinf_ns.c.
11100         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11101         * math/multc3.c (__multc3): Likewise.
11102         * math/s_casin.c (__casin): Likewise.
11103         * math/s_casinf.c (__casinf): Likewise.
11104         * math/s_casinl.c (__casinl): Likewise.
11105         * math/s_cproj.c (__cproj): Likewise.
11106         * math/s_cprojf.c (__cprojf): Likewise.
11107         * math/s_cprojl.c (__cprofl): Likewise.
11108         * math/s_ctan.c (__ctan): Likewise.
11109         * math/s_ctanf.c (__ctanf): Likewise.
11110         * math/s_ctanh.c (__ctanh): Likewise.
11111         * math/s_ctanhf.c (__ctanhf): Likewise.
11112         * math/s_ctanhl.c (__ctanhl): Likewise.
11113         * math/s_ctanl.c (__ctanl): Likewise.
11114         * math/w_fmod.c (__fmod): Likewise.
11115         * math/w_fmodf.c (__fmodf): Likewise.
11116         * math/w_fmodl.c (_fmodl): Likewise.
11117         * math/w_remainder.c (__remainder): Likewise.
11118         * math/w_remainderf.c (__remainderf): Likewise.
11119         * math/w_remainderl.c (__remainderl): Likewise.
11120         * math/w_scalb.c (__scalb): Likewise.
11121         * math/w_scalbf.c (__scalbf): Likewise.
11122         * math/w_scalbl.c (__scalbl): Likewise.
11123         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11124         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11125         with isinf.
11126         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11127         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11128         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11129         __isinf_nsf with isinf.
11130         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11131         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11132         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11133         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11134         with isinf.
11135         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11136         __isinf_nsl with isinf.
11137         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11138         with isinf.
11139         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11140         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11141         __isinf_nsl with isinf.
11142         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11143         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11144         with isinf.
11145
11146 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11147
11148         * resolv/base64.c (rcsid): Remove unused static.
11149         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11150         static.  (tqpi1): Likewise.
11151         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11152         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11153         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11154         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11155         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11156         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11157         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11158         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11159         Likewise.
11160
11161 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11162
11163         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11164         <nptl/pthreadP.h>.
11165         (_longjmp_unwind): Use __libc_ptf_call.
11166         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11167
11168 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11169
11170         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11171         * sysdeps/arm/__longjmp.S: Likewise.
11172
11173 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11174
11175         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11176         Use __builtin_signbit.
11177         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11178         Use __builtin_signbitf.
11179         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11180         Use __builtin_signbitl.
11181         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11182         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11183
11184 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11185
11186         [BZ #15367]
11187         [BZ #17441]
11188
11189         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11190         * math/math.h (fpclassify): Use __builtin_fpclassify when
11191         available.  (signbit): Use __builtin_signbit(f/l).
11192         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11193         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11194         (isinf): Use __builtin_isinf_sign.
11195
11196 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11197
11198         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11199         * benchtests/bench-math-inlines.c: New benchmark.
11200         * benchtests/bench-util.h: New file.
11201         * benchtests/bench-util.c: New file.
11202         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11203
11204 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11205
11206         * elf/tst-dlmopen1.c: Define TEST_SO.
11207         (do_test): Use TEST_SO.
11208
11209         * elf/dl-load.c: Include libc-internal.h.
11210         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11211
11212 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11213
11214         [BZ #17887]
11215         * time/strptime_l.c (__strptime_internal): Make %z accept
11216         [+-]HH:MM time zones.
11217
11218 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11219
11220         [BZ #17886]
11221         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11222         valid time zone.
11223
11224 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11225
11226         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11227         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11228         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11229         (__ASSUME_FDATASYNC): Delete.
11230
11231 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11232
11233         * conform/linknamespace.pl: Require weak undefined symbols to be
11234         in the standard namespace.
11235         (%strong_syms): Rename to %seen_syms.
11236         (%strong_seen): Rename to %seen_where.
11237
11238 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11239
11240         [BZ #18970]
11241         * misc/error.c (error): Replace pthread_setcancelstate with
11242         __pthread_setcancelstate.
11243         (error_at_line): Likewise.
11244         * posix/wordexp.c (parse_comm): Likewise.
11245         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11246         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11247         (__pthread_setcancelstate): This.
11248         (pthread_setcancelstate): Add an alias.
11249         * nptl/nptl-init.c (pthread_functions): Replace
11250         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11251         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11252         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11253         hidden_proto.
11254         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11255         it with hidden_def.
11256         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11257         (pthread_setcancelstate): Renamed to ...
11258         (__pthread_setcancelstate): This.
11259         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11260         __libc_ptf_call with __pthread_setcancelstate.
11261
11262 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11263             Andreas Schwab  <schwab@suse.de>
11264
11265         [BZ #17118]
11266         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11267         result when imaginary part of argument is infinite using sine and
11268         cosine.
11269         * math/s_ctanf.c (__ctanf): Likewise.
11270         * math/s_ctanl.c (__ctanl): Likewise.
11271         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11272         of result when real part of argument is infinite using sine and
11273         cosine.
11274         * math/s_ctanhf.c (__ctanhf): Likewise.
11275         * math/s_ctanhl.c (__ctanhl): Likewise.
11276         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11277         (ctanh_test_data): Add more tests of ctanh.
11278
11279 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11280
11281         [BZ #15384]
11282         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11283         bit-mask as in subtraction.
11284         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11285         Likewise.
11286         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11287         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11288         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11289
11290         [BZ #18951]
11291         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11292         underflow exception for small results.
11293         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11294         Likewise.
11295         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11296         Likewise.
11297         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11298         Likewise.
11299         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11300         Likewise.
11301         * math/auto-libm-test-in: Add more tests of tgamma.
11302         * math/auto-libm-test-out: Regenerated.
11303
11304 2015-09-17  Andreas Schwab  <schwab@suse.de>
11305
11306         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11307
11308 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11309
11310         [BZ #18977]
11311         * math/bits/mathcalls.h
11312         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11313         not declare.
11314         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11315         Likewise.
11316         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11317         Likewise.
11318         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11319         Likewise.
11320         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11321         Likewise.
11322         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11323         Likewise.
11324         * conform/data/math.h-data
11325         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11326         function.
11327         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11328         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11329         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11330         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11331         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11332         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11333         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11334         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11335         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11336         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11337         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11338
11339         [BZ #6803]
11340         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11341         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11342         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11343         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11344         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11345         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11346         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11347         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11348         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11349         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11350         Likewise.
11351         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11352         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11353         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11354         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11355         long_double_symbol calls.
11356         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11357         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11358         strong alias of __ldexpl.
11359         (scalbnl): Define using long_double_symbol.
11360         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11361         Remove alias.
11362         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11363         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11364         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11365         (scalbln_test_data): Add more errno expectations.
11366
11367 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11368
11369         Cache the host port like we cache the task port.  This way we do not
11370         need to call the kernel just to get the port.  Furthermore, we no
11371         longer increase the reference count on every invocation of
11372         `mach_host_self'.
11373
11374         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11375         Protect declarations against the macro expansion.
11376         * mach/mach_init.c (__mach_host_self_): New variable.
11377         (mach_init): Initialize `__mach_host_self_'.
11378         * mach/mach_init.h (__mach_host_self_): New declaration.
11379         (__mach_host_self, mach_host_self): New macros.
11380         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11381         Release reference.
11382
11383 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11384
11385         [BZ #4404]
11386         * po/de.po: Update from Translation Project.
11387
11388         [BZ #16415]
11389         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11390         (__expm1l): Remove code to handle positive infinity and overflow.
11391         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11392         variable.
11393         (__expm1l): Remove code to handle positive infinity and overflow.
11394
11395 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11396             Paul Pluzhnikov  <ppluzhnikov@google.com>
11397
11398         [BZ #18872]
11399         * stdio-common/Makefile (tst-printf-bz18872): New test.
11400         (tst-printf-bz18872-mem.out): Likewise.
11401         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11402         * stdio-common/vfprintf.c: Fix memory leaks.
11403
11404 2015-09-16  Andreas Schwab  <schwab@suse.de>
11405
11406         [BZ #17244]
11407         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11408         Remove extra va_start/va_end calls.
11409
11410         [BZ #17243]
11411         * posix/execl.c (execl): Add missing va_end.
11412         * posix/execle.c (execle): Likewise.
11413         * posix/execlp.c (execlp): Likewise.
11414
11415 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11416
11417         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11418         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11419
11420 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11421
11422         [BZ #18967]
11423         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11424         undefine around includes of <bits/mathcalls.h>.
11425         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11426         not declare function.
11427         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11428         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11429         (scalb): Likewise.
11430         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11431         not define macro.
11432         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11433         variable.
11434         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11435         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11436         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11437
11438         [BZ #18857]
11439         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11440         return non-finite argument without doing ordered comparisons on
11441         it.
11442
11443         [BZ #16296]
11444         * math/fenv.h (fegetround): Use __attribute_pure__.
11445         * include/fenv.h (__fegetround): Likewise.
11446
11447         [BZ #18595]
11448         * math/s_ctan.c (__ctan): Force underflow exception for results
11449         whose real or imaginary part has small absolute value.
11450         * math/s_ctanf.c (__ctanf): Likewise.
11451         * math/s_ctanh.c (__ctanh): Likewise.
11452         * math/s_ctanhf.c (__ctanhf): Likewise.
11453         * math/s_ctanhl.c (__ctanhl): Likewise.
11454         * math/s_ctanl.c (__ctanl): Likewise.
11455         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11456         and ctanh.  Add more tests of ctan and ctanh.
11457
11458         [BZ #15918]
11459         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11460         handling of cases where one argument is an infinity.
11461
11462         [BZ #18875]
11463         [BZ #18966]
11464         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11465         (MO): New macro.
11466         (__ieee754_exp10): For small results, force underflow exception
11467         and remove excess range and precision from return value.
11468         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11469         (MO): New macro.
11470         (__ieee754_exp10f): For small results, force underflow exception
11471         and remove excess range and precision from return value.
11472         * math/auto-libm-test-in: Add more tests of exp10.
11473         * math/auto-libm-test-out: Regenerated.
11474
11475 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11476
11477         [BZ #18875]
11478         [BZ #18961]
11479         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11480         (MO): New macro.
11481         (__ieee754_exp): For small results, force underflow exception and
11482         remove excess range and precision from return value.
11483         (__exp_finite): Likewise.
11484         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11485         (MO): New macro.
11486         (__ieee754_expf): For small results, force underflow exception and
11487         remove excess range and precision from return value.
11488         (__expf_finite): Likewise.
11489         * math/auto-libm-test-in: Add more tests of exp.
11490         * math/auto-libm-test-out: Regenerated.
11491
11492         [BZ #16521]
11493         [BZ #18875]
11494         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11495         small results.
11496         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11497         (MO): New macro.
11498         (__ieee754_exp2): For small results, force underflow exception and
11499         remove excess range and precision from return value.
11500         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11501         (MO): New macro.
11502         (__ieee754_exp2f): For small results, force underflow exception
11503         and remove excess range and precision from return value.
11504         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11505         (MO): New macro.
11506         (__ieee754_exp2l): Force underflow exception for small results.
11507         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11508         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11509         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11510         (MO): New macro.
11511         (__ieee754_exp2l): Force underflow exception for small results.
11512         * math/auto-libm-test-in: Add more tests or exp2.
11513         * math/auto-libm-test-out: Regenerated.
11514
11515 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11516
11517         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11518
11519         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11520         /dev/null.
11521
11522 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11523
11524         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11525         io fs process)): Drop spurious backslash.
11526
11527 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11528
11529         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11530         Use sysinfo system call instead of parsing /proc/meminfo.
11531         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11532         Likewise.
11533
11534 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11535
11536         [BZ #16985]
11537         * programs/localedef.c (main): Display argv[remaining] when
11538         output_path is NULL.
11539
11540 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11543         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11544         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11545         tanh.
11546         * math/auto-libm-test-out: Regenerated.
11547         * sysdeps/i386/fpu/libm-test-ulps: Update.
11548         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11549         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11551
11552 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11553
11554         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11555         Use 'override' keyword to freeze the value here, preventing
11556         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11557
11558 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11559
11560         [BZ #14912]
11561         * sysdeps/aarch64/bits/atomic.h: Move to ...
11562         * sysdeps/aarch64/atomic-machine.h: ...here.
11563         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11564         _AARCH64_ATOMIC_MACHINE_H.
11565         * sysdeps/alpha/bits/atomic.h: Move to ...
11566         * sysdeps/alpha/atomic-machine.h: ...here.
11567         * sysdeps/arm/bits/atomic.h: Move to ...
11568         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11569         * bits/atomic.h: Move to ...
11570         * sysdeps/generic/atomic-machine.h: ...here.
11571         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11572         * sysdeps/i386/bits/atomic.h: Move to ...
11573         * sysdeps/i386/atomic-machine.h: ...here.
11574         * sysdeps/ia64/bits/atomic.h: Move to ...
11575         * sysdeps/ia64/atomic-machine.h: ...here.
11576         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11577         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11578         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11579         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11580         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11581         * sysdeps/microblaze/bits/atomic.h: Move to ...
11582         * sysdeps/microblaze/atomic-machine.h: ...here.
11583         * sysdeps/mips/bits/atomic.h: Move to ...
11584         * sysdeps/mips/atomic-machine.h: ...here.
11585         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11586         * sysdeps/powerpc/bits/atomic.h: Move to ...
11587         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11588         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11589         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11590         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11591         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11592         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11593         <atomic-machine.h> instead of <bits/atomic.h>.
11594         * sysdeps/s390/bits/atomic.h: Move to ...
11595         * sysdeps/s390/atomic-machine.h: ...here.
11596         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11597         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11598         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11599         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11600         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11601         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11602         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11603         * sysdeps/tile/bits/atomic.h: Move to ...
11604         * sysdeps/tile/atomic-machine.h: ...here.
11605         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11606         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11607         <sysdeps/tile/atomic-machine.h> instead of
11608         <sysdeps/tile/bits/atomic.h>.
11609         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11610         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11611         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11612         <sysdeps/tile/atomic-machine.h> instead of
11613         <sysdeps/tile/bits/atomic.h>.
11614         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11615         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11616         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11617         <sysdeps/arm/atomic-machine.h> instead of
11618         <sysdeps/arm/bits/atomic.h>.
11619         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11620         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11621         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11622         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11623         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11624         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11625         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11626         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11627         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11628         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11629         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11630         * sysdeps/x86_64/bits/atomic.h: Move to ...
11631         * sysdeps/x86_64/atomic-machine.h: ...here.
11632         * include/atomic.h: Include <atomic-machine.h> instead of
11633         <bits/atomic.h>.
11634
11635         * sysdeps/mips/mips32/libm-test-ulps: Update.
11636         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11637
11638         [BZ #18952]
11639         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11640         not convert non-integer negative arguments to int to determine the
11641         value of signgam.
11642         * math/auto-libm-test-in: Add more tests of lgamma.
11643         * math/auto-libm-test-out: Regenerated.
11644
11645         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11646         cosh, csqrt, erfc, expm1 and lgamma.
11647         * math/auto-libm-test-out: Regenerated.
11648         * sysdeps/i386/fpu/libm-test-ulps: Update.
11649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11650
11651 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11652
11653         [BZ #2542]
11654         [BZ #2543]
11655         [BZ #2558]
11656         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11657         __lgamma_neg for arguments from -28.0 to -2.0.
11658         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11659         __lgamma_negf for arguments from -15.0 to -2.0.
11660         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11661         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11662         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11663         Call __lgamma_negl for arguments from -33.0 to -2.0.
11664         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11665         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11666         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11667         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11668         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11675         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11676         (__lgamma_neg): Likewise.
11677         (__lgamma_negl): Likewise.
11678         (__lgamma_product): Likewise.
11679         (__lgamma_productl): Likewise.
11680         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11681         * math/auto-libm-test-in: Add more tests of lgamma.
11682         * math/auto-libm-test-out: Regenerated.
11683         * sysdeps/i386/fpu/libm-test-ulps: Update.
11684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11685
11686 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11687
11688         [BZ #18675]
11689         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11690
11691 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11692
11693         [BZ #14912]
11694         * bits/libc-lock.h: Move to ...
11695         * sysdeps/generic/libc-lock.h: ...here.
11696         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11697         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11698         * sysdeps/mach/hurd/libc-lock.h: ...here.
11699         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11700         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11701         * sysdeps/mach/bits/libc-lock.h: Move to ...
11702         * sysdeps/mach/libc-lock.h: ...here.
11703         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11704         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11705         * sysdeps/nptl/libc-lock.h: ...here.
11706         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11707         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11708         * sysdeps/nptl/libc-lockP.h: ...here.
11709         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11710         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11711         <bits/libc-lock.h>.
11712         * dirent/scandir-tail.c: Likewise.
11713         * dlfcn/dlerror.c: Likewise.
11714         * elf/dl-close.c: Likewise.
11715         * elf/dl-iteratephdr.c: Likewise.
11716         * elf/dl-lookup.c: Likewise.
11717         * elf/dl-open.c: Likewise.
11718         * elf/dl-support.c: Likewise.
11719         * elf/dl-writev.h: Likewise.
11720         * elf/rtld.c: Likewise.
11721         * grp/fgetgrent.c: Likewise.
11722         * gshadow/fgetsgent.c: Likewise.
11723         * gshadow/sgetsgent.c: Likewise.
11724         * iconv/gconv_conf.c: Likewise.
11725         * iconv/gconv_db.c: Likewise.
11726         * iconv/gconv_dl.c: Likewise.
11727         * iconv/gconv_int.h: Likewise.
11728         * iconv/gconv_trans.c: Likewise.
11729         * include/link.h: Likewise.
11730         * inet/getnameinfo.c: Likewise.
11731         * inet/getnetgrent.c: Likewise.
11732         * inet/getnetgrent_r.c: Likewise.
11733         * intl/bindtextdom.c: Likewise.
11734         * intl/dcigettext.c: Likewise.
11735         * intl/finddomain.c: Likewise.
11736         * intl/gettextP.h: Likewise.
11737         * intl/loadmsgcat.c: Likewise.
11738         * intl/localealias.c: Likewise.
11739         * intl/textdomain.c: Likewise.
11740         * libidn/idn-stub.c: Likewise.
11741         * libio/libioP.h: Likewise.
11742         * locale/duplocale.c: Likewise.
11743         * locale/freelocale.c: Likewise.
11744         * locale/newlocale.c: Likewise.
11745         * locale/setlocale.c: Likewise.
11746         * login/getutent_r.c: Likewise.
11747         * login/getutid_r.c: Likewise.
11748         * login/getutline_r.c: Likewise.
11749         * login/utmp-private.h: Likewise.
11750         * login/utmpname.c: Likewise.
11751         * malloc/mtrace.c: Likewise.
11752         * misc/efgcvt.c: Likewise.
11753         * misc/error.c: Likewise.
11754         * misc/fstab.c: Likewise.
11755         * misc/getpass.c: Likewise.
11756         * misc/mntent.c: Likewise.
11757         * misc/syslog.c: Likewise.
11758         * nis/nis_call.c: Likewise.
11759         * nis/nis_callback.c: Likewise.
11760         * nis/nss-default.c: Likewise.
11761         * nis/nss_compat/compat-grp.c: Likewise.
11762         * nis/nss_compat/compat-initgroups.c: Likewise.
11763         * nis/nss_compat/compat-pwd.c: Likewise.
11764         * nis/nss_compat/compat-spwd.c: Likewise.
11765         * nis/nss_nis/nis-alias.c: Likewise.
11766         * nis/nss_nis/nis-ethers.c: Likewise.
11767         * nis/nss_nis/nis-grp.c: Likewise.
11768         * nis/nss_nis/nis-hosts.c: Likewise.
11769         * nis/nss_nis/nis-network.c: Likewise.
11770         * nis/nss_nis/nis-proto.c: Likewise.
11771         * nis/nss_nis/nis-pwd.c: Likewise.
11772         * nis/nss_nis/nis-rpc.c: Likewise.
11773         * nis/nss_nis/nis-service.c: Likewise.
11774         * nis/nss_nis/nis-spwd.c: Likewise.
11775         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11776         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11777         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11778         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11779         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11780         * nis/nss_nisplus/nisplus-network.c: Likewise.
11781         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11782         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11783         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11784         * nis/nss_nisplus/nisplus-service.c: Likewise.
11785         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11786         * nis/ypclnt.c: Likewise.
11787         * nptl/libc_pthread_init.c: Likewise.
11788         * nss/getXXbyYY.c: Likewise.
11789         * nss/getXXent.c: Likewise.
11790         * nss/getXXent_r.c: Likewise.
11791         * nss/nss_db/db-XXX.c: Likewise.
11792         * nss/nss_db/db-netgrp.c: Likewise.
11793         * nss/nss_db/nss_db.h: Likewise.
11794         * nss/nss_files/files-XXX.c: Likewise.
11795         * nss/nss_files/files-alias.c: Likewise.
11796         * nss/nsswitch.c: Likewise.
11797         * posix/regex_internal.h: Likewise.
11798         * posix/wordexp.c: Likewise.
11799         * pwd/fgetpwent.c: Likewise.
11800         * resolv/res_hconf.c: Likewise.
11801         * resolv/res_libc.c: Likewise.
11802         * shadow/fgetspent.c: Likewise.
11803         * shadow/lckpwdf.c: Likewise.
11804         * shadow/sgetspent.c: Likewise.
11805         * socket/opensock.c: Likewise.
11806         * stdio-common/reg-modifier.c: Likewise.
11807         * stdio-common/reg-printf.c: Likewise.
11808         * stdio-common/reg-type.c: Likewise.
11809         * stdio-common/vfprintf.c: Likewise.
11810         * stdio-common/vfscanf.c: Likewise.
11811         * stdlib/abort.c: Likewise.
11812         * stdlib/cxa_atexit.c: Likewise.
11813         * stdlib/fmtmsg.c: Likewise.
11814         * stdlib/random.c: Likewise.
11815         * stdlib/setenv.c: Likewise.
11816         * string/strsignal.c: Likewise.
11817         * sunrpc/auth_none.c: Likewise.
11818         * sunrpc/bindrsvprt.c: Likewise.
11819         * sunrpc/create_xid.c: Likewise.
11820         * sunrpc/key_call.c: Likewise.
11821         * sunrpc/rpc_thread.c: Likewise.
11822         * sysdeps/arm/backtrace.c: Likewise.
11823         * sysdeps/generic/ldsodefs.h: Likewise.
11824         * sysdeps/generic/stdio-lock.h: Likewise.
11825         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11826         * sysdeps/i386/backtrace.c: Likewise.
11827         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11828         * sysdeps/m68k/backtrace.c: Likewise.
11829         * sysdeps/mach/hurd/cthreads.c: Likewise.
11830         * sysdeps/mach/hurd/dirstream.h: Likewise.
11831         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11832         * sysdeps/nptl/malloc-machine.h: Likewise.
11833         * sysdeps/nptl/stdio-lock.h: Likewise.
11834         * sysdeps/posix/dirstream.h: Likewise.
11835         * sysdeps/posix/getaddrinfo.c: Likewise.
11836         * sysdeps/posix/system.c: Likewise.
11837         * sysdeps/pthread/aio_suspend.c: Likewise.
11838         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11839         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11840         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11841         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11842         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11843         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11844         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11845         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11846         * sysdeps/unix/sysv/linux/system.c: Likewise.
11847         * sysdeps/x86_64/backtrace.c: Likewise.
11848         * time/alt_digit.c: Likewise.
11849         * time/era.c: Likewise.
11850         * time/tzset.c: Likewise.
11851         * wcsmbs/wcsmbsload.c: Likewise.
11852         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
11853         instead of <bits/libc-lock.h> in comment.
11854
11855 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
11856
11857         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
11858         Only use .set mips2 if the current ISA is below mips2.
11859         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
11860         Likewise.
11861         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
11862         mips32r2 if the current ISA is below mips32r2.
11863         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
11864         (TLS_IE): Updated to use the TLD_RDHWR macro.
11865         (TLS_LE): Likewise.
11866         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
11867         __ASSEMBLER__ condition.
11868
11869 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11870
11871         Fix parallel build of before-compile targets.
11872
11873         * sysdeps/mach/Makefile ($(patsubst
11874         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
11875         mach-before-compile target.
11876         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11877         io fs process)): Move rule to dedicated hurd-before-compile target.
11878
11879 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11880
11881         Fix rules generating headers in hurd/ and mach/ when initial make call
11882         has subdir= explicitly set.
11883
11884         * sysdeps/mach/Makefile ($(patsubst
11885         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
11886         calling $(MAKE).
11887         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11888         io fs process)): Force subdir to hurd when calling $(MAKE).
11889         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
11890         subdir to mach when calling $(MAKE).
11891
11892 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
11893
11894         Check sysheaders when looking for Mach and Hurd headers
11895
11896         * sysdeps/mach/configure.ac: Add sysheaders check.
11897         * sysdeps/mach/configure: Regenerate.
11898         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
11899         * sysdeps/mach/hurd/configure: Regenerate.
11900
11901 2015-09-04  Roland McGrath  <roland@hack.frob.com>
11902
11903         [BZ #18921]
11904         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
11905         Fix inverted sense of test of 'o_directory_works' value.
11906         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
11907         Bernhard Voelker <mail@bernhard-voelker.de>.
11908
11909 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11910
11911         [BZ #14912]
11912         * bits/linkmap.h: Move to ...
11913         * sysdeps/generic/linkmap.h: ...here.
11914         * sysdeps/aarch64/bits/linkmap.h: Move to ...
11915         * sysdeps/aarch64/linkmap.h: ...here.
11916         * sysdeps/arm/bits/linkmap.h: Move to ...
11917         * sysdeps/arm/linkmap.h: ...here.
11918         * sysdeps/hppa/bits/linkmap.h: Move to ...
11919         * sysdeps/hppa/linkmap.h: ...here.
11920         * sysdeps/ia64/bits/linkmap.h: Move to ...
11921         * sysdeps/ia64/linkmap.h: ...here.
11922         * sysdeps/mips/bits/linkmap.h: Move to ...
11923         * sysdeps/mips/linkmap.h: ...here.
11924         * sysdeps/s390/bits/linkmap.h: Move to ...
11925         * sysdeps/s390/linkmap.h: ...here.
11926         * sysdeps/sh/bits/linkmap.h: Move to ...
11927         * sysdeps/sh/linkmap.h: ...here.
11928         * sysdeps/x86/bits/linkmap.h: Move to ...
11929         * sysdeps/x86/linkmap.h: ...here.
11930         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
11931
11932 2015-09-04  Andreas Schwab  <schwab@suse.de>
11933
11934         [BZ #18635]
11935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11936         (__makecontext): Terminate FDE before return label.
11937         (__novec_makecontext): Likewise.
11938
11939 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11940
11941         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
11942         first member of struct sv in syscall macro.
11943
11944 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11945
11946         [BZ #14912]
11947         * bits/stdio-lock.h: Move to ...
11948         * sysdeps/generic/stdio-lock.h: ...here.
11949         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11950         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
11951         * sysdeps/nptl/stdio-lock.h: ...here.
11952         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11953         * include/libio.h: Include <stdio-lock.h> instead of
11954         <bits/stdio-lock.h>.
11955         * sysdeps/nptl/fork.c: Likewise.
11956         * sysdeps/pthread/flockfile.c: Likewise.
11957         * sysdeps/pthread/ftrylockfile.c: Likewise.
11958         * sysdeps/pthread/funlockfile.c: Likewise.
11959
11960         [BZ #14912]
11961         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
11962         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
11963         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
11964         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
11965         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
11966         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
11967         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
11968
11969 2015-09-03  Roland McGrath  <roland@hack.frob.com>
11970
11971         * elf/Makefile (test-xfail-tst-protected1a): New variable.
11972         (test-xfail-tst-protected1b): New variable.
11973
11974 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
11975
11976         [BZ #14912]
11977         * bits/libc-tsd.h: Move to ...
11978         * sysdeps/generic/libc-tsd.h: ...here.
11979         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
11980         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
11981         * sysdeps/mach/hurd/libc-tsd.h: ...here.
11982         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
11983         * include/ctype.h: Include <libc-tsd.h> instead of
11984         <bits/libc-tsd.h>.
11985         * include/rpc/rpc.h: Likewise.
11986         * locale/localeinfo.h: Likewise.
11987         * sunrpc/rpc_thread.c: Likewise.
11988         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11989         * sysdeps/nptl/malloc-machine.h: Likewise.
11990
11991         * Makefile (headers): Remove bits/libc-lock.h.
11992         * libio/Makefile (headers): Remove bits/stdio-lock.h.
11993
11994         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
11995         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
11996         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
11997         <bits/stdio-lock.h>.
11998         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
11999         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12000
12001 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12002
12003         [BZ #18757]
12004         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12005         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12006         BZ #18757.
12007
12008 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12009
12010         * malloc/mtrace.pl: Filter out NULL entries.
12011
12012 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12013
12014         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12015         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12016         macro.
12017
12018         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12019         (TCP_CC_INFO): Likewise.
12020         (TCP_SAVE_SYN): Likewise.
12021         (TCP_SAVED_SYN): Likewise.
12022
12023 2015-08-31  Brett Neumeier <brett@neumeier.us>
12024
12025         [BZ #18870]
12026         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12027
12028 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12029
12030         [BZ #18873]
12031         Fix broken overflow check in posix_fallocate
12032         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12033         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12034         Fix parenthesization typo.
12035
12036 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12037
12038         [BZ #18887]
12039         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12040         tst-mntent-blank-passno.
12041         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12042         * misc/tst-mntent-blank-corrupt.c: New test.
12043         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12044         * misc/tst-mntent.c (do_test): ... here.
12045
12046 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12047
12048         [BZ #4404]
12049         * po/de.po: Fix SIGALRM typo.
12050
12051 2015-08-28  James Perkins  <james@loowit.net>
12052
12053         * time/tst-strptime2.c (tests): Replace short list of test
12054         strings for strptime %z specifier with code which exhaustively
12055         tests every combination of sign and 0 to 5 digits. Tests for
12056         rejection of invalid strings.
12057
12058 2015-08-28  James Perkins  <james@loowit.net>
12059
12060         [BZ #16141]
12061         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12062         calculation, removing incorrect decimal time rounding, so that
12063         all minute values result in a valid seconds value.
12064         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12065         offset range limits to UTC-99:59 through UTC+99:59 to parse
12066         current and historical use cases.
12067         * time/tst-strptime2.c (tests): Modify and add tests for the
12068         strptime %z input field descriptor, specifically conversion of
12069         minutes to seconds and validating an offset range of -9959 to
12070         +9959.
12071
12072 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12073             Dmitry V. Levin  <ldv@altlinux.org>
12074
12075         [BZ #18877]
12076         * posix/Makefile (tests): Add tst-mmap-offset.
12077         * posix/tst-mmap.c: New file.
12078         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12079         offset calculation for negative values.
12080
12081 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12082
12083         * sysdeps/i386/init-arch.h: New file.
12084         * sysdeps/i386/i586/init-arch.h: Likewise.
12085         * sysdeps/i386/i686/init-arch.h: Likewise.
12086         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12087         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12088         * sysdeps/x86/cpu-features.h (bit_I586): New.
12089         (bit_I686): Likewise.
12090         (bit_CX8): Likewise.
12091         (bit_CMOV): Likewise.
12092         (index_CX8): Likewise.
12093         (index_CMOV): Likewise.
12094         (index_I586): Likewise.
12095         (index_I686): Likewise.
12096         (reg_CX8): Likewise.
12097         (reg_CMOV): Likewise.
12098         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12099         available at compile-time.
12100         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12101         available at compile-time.
12102         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12103         (USE_I686): Likewise.
12104
12105 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12106
12107         * sysdeps/i386/bcopy.S: New file.
12108         * sysdeps/i386/bzero.S: Likewise.
12109         * sysdeps/i386/memcpy.S: Likewise.
12110         * sysdeps/i386/memmove.S: Likewise.
12111         * sysdeps/i386/mempcpy.S: Likewise.
12112         * sysdeps/i386/memset.S: Likewise.
12113         * sysdeps/i386/bzero.c: Removed.
12114         * sysdeps/i386/memset.c: Likewise.
12115         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12116         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12117         * sysdeps/i386/i586/memset_chk.S: Likewise.
12118         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12119         * sysdeps/i386/memcpy_chk.S: Here.
12120         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12121         * sysdeps/i386/memmove_chk.S: Here.
12122         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12123         * sysdeps/i386/mempcpy_chk.S: Likewise.
12124         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12125         * sysdeps/i386/memset_chk.S: Likewise.
12126
12127 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12128
12129         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12130         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12131         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12132         * soft-fp/fmadf4.c: Ditto.
12133         * soft-fp/fmatf4.c: Ditto.
12134
12135 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12136
12137         * sysdeps/i386/i586/Implies: Removed.
12138         * sysdeps/i386/i686/Implies: Likewise.
12139
12140 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12141
12142         * sysdeps/i386/i486/strlen.S: Moved to ...
12143         * sysdeps/i386/strlen.S: Here.
12144
12145 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12146
12147         * sysdeps/i386/i486/strcat.S: Moved to ...
12148         * sysdeps/i386/strcat.S: Here.
12149
12150 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12151
12152         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12153         * sysdeps/i386/pthread_spin_trylock.S: Here.
12154         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12155         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12156
12157 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12158
12159         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12160         * sysdeps/i386/string-inlines.c: Here.
12161
12162 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12163
12164         * sysdeps/i386/i486/htonl.S: Moved ...
12165         * sysdeps/i386/htonl.S: here.
12166
12167 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12168
12169         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12170         * sysdeps/i386/bits/atomic.h: Here.
12171
12172 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12173
12174         * sysdeps/i386/i486/Versions: Removed.
12175
12176 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12177
12178         [BZ #2898]
12179         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12180         Based on patch by Aurelien Jarno.
12181
12182 2015-08-26  Stan Shebs  <stanshebs@google.com>
12183
12184         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12185         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12186
12187 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12188
12189         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12190         * sysdeps/powerpc/dl-procinfo.c:
12191         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12192         feature so it shows when LD_SHOW_AUXV=1.
12193
12194 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12195
12196         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12197         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12198         definition.  ISA 2.07B no longer requires full sync.
12199
12200 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12201
12202         [BZ #18863]
12203         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12204         (si_call_addr): Define.
12205         (si_syscall): Define.
12206         (si_arch): Define.
12207
12208 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12209
12210         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12211         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12212         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12213         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12214         (__memset_zero_constant_len_parameter): New.
12215         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12216         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12217         (__memset_zero_constant_len_parameter): Don't define if
12218         __memset_chk or USE_AS_BZERO are defined.
12219
12220         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12221         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12222         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12223
12224         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12225         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12226         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12227         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12228         comments.
12229         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12230         -mno-mmx for $(all-rtld-routines).
12231         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12232         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12233         i386.
12234
12235 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12236
12237         * sysdeps/generic/unwind.h
12238         (_Unwind_Word): Use __mode__(__unwind_word__)
12239         instead of __mode__(__word__).
12240         (_Unwind_Sword): Likewise.
12241
12242         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12243         (MAX_NEEDED_INPUT): New define.
12244         (MAX_NEEDED_OUTPUT): New define.
12245
12246         * NEWS: New item for IBM z13 string optimizations.
12247
12248         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12249         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12250         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12251         * sysdeps/s390/multiarch/Makefile
12252         (sysdep_routines): Add memrchr functions.
12253         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12254         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12255
12256         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12257         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12258         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12259         * sysdeps/s390/multiarch/Makefile
12260         (sysdep_routines): Add wmemcmp functions.
12261         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12262         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12263         * benchtests/bench-wmemcmp.c: New File.
12264         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12265
12266         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12267         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12268         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12269         * sysdeps/s390/multiarch/Makefile
12270         (sysdep_routines): Add wmemset functions.
12271         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12272         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12273         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12274         * string/test-memset.c: Add wmemset support.
12275         * wcsmbs/test-wmemset.c: New File.
12276         * wcsmbs/Makefile (strop-tests): Add wmemset.
12277         * benchtests/bench-memset.c: Add wmemset support.
12278         * benchtests/bench-wmemset.c: New File.
12279         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12280
12281         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12282         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12283         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12284         * sysdeps/s390/multiarch/Makefile
12285         (sysdep_routines): Add memccpy functions.
12286         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12287         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12288         * string/memccpy.c: Use MEMCCPY if defined.
12289
12290         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12291         * sysdeps/s390/multiarch/memchr.c: Likewise.
12292         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12293         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12294         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12295         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12296         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12297         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12298         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12299         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12300         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12301         and rawmemchr functions.
12302         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12303         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12304         and wmemchr.
12305         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12306         * string/test-memchr.c: Add wmemchr support.
12307         * wcsmbs/test-wmemchr.c: New File.
12308         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12309         * benchtests/bench-memchr.c: Add wmemchr support.
12310         * benchtests/bench-wmemchr.c: New File.
12311         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12312
12313         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12314         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12315         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12316         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12317         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12318         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12319         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12320         wcscspn functions.
12321         * sysdeps/s390/multiarch/ifunc-impl-list.c
12322         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12323         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12324         * string/test-strcspn.c: Add wcscspn support.
12325         * wcsmbs/test-wcscspn.c: New File.
12326         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12327         * benchtests/bench-strcspn.c: Add wcscspn support.
12328         * benchtests/bench-wcscspn.c: New File.
12329         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12330
12331         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12332         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12333         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12334         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12335         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12336         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12337         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12338         wcspbrk functions.
12339         * sysdeps/s390/multiarch/ifunc-impl-list.c
12340         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12341         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12342         * string/test-strpbrk.c: Add wcspbrk support.
12343         * wcsmbs/test-wcspbrk.c: New File.
12344         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12345         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12346         * benchtests/bench-wcspbrk.c: New File.
12347         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12348
12349         * sysdeps/s390/multiarch/strspn-c.c: New File.
12350         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12351         * sysdeps/s390/multiarch/strspn.c: Likewise.
12352         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12353         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12354         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12355         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12356         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12357         wcsspn functions.
12358         * sysdeps/s390/multiarch/ifunc-impl-list.c
12359         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12360         * string/test-strspn.c: Add wcsspn support.
12361         * wcsmbs/test-wcsspn.c: New File.
12362         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12363         * benchtests/bench-strspn.c: Add wcsspn support.
12364         * benchtests/bench-wcsspn.c: New File.
12365         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12366
12367         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12368         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12369         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12370         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12371         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12372         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12373         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12374         wcsrchr functions.
12375         * sysdeps/s390/multiarch/ifunc-impl-list.c
12376         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12377         * benchtests/bench-wcsrchr.c: New File.
12378         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12379
12380         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12381         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12382         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12383         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12384         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12385         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12386         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12387         wcschrnul functions.
12388         * sysdeps/s390/multiarch/ifunc-impl-list.c
12389         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12390         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12391         * string/test-strchr.c: Add wcschrnul support.
12392         * wcsmbs/test-wcschrnul.c: New File.
12393         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12394         * benchtests/bench-strchr.c: Add wcschrnul support.
12395         * benchtests/bench-wcschrnul.c: New File.
12396         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12397
12398         * sysdeps/s390/multiarch/strchr-c.c: New File.
12399         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12400         * sysdeps/s390/multiarch/strchr.c: Likewise.
12401         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12402         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12403         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12404         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12405         wcschr functions.
12406         * sysdeps/s390/multiarch/ifunc-impl-list.c
12407         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12408         * string/strchr.c (STRCHR): Define and use macro.
12409         * benchtests/bench-wcschr.c: New File.
12410         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12411
12412         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12413         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12414         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12415         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12416         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12417         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12418         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12419         wcsncmp functions.
12420         * sysdeps/s390/multiarch/ifunc-impl-list.c
12421         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12422         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12423         * benchtests/bench-strncmp.c: Add wcsncmp support.
12424         * benchtests/bench-wcsncmp.c: New File.
12425         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12426
12427         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12428         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12429         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12430         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12431         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12432         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12433         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12434         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12435         wcscmp functions.
12436         * sysdeps/s390/multiarch/ifunc-impl-list.c
12437         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12438         * string/strcmp.c (STRCMP): Define and use macro.
12439         * benchtests/bench-wcscmp.c: New File.
12440         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12441         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12442         instead of _HAVE_STRING_ARCH_memchr.
12443
12444         * sysdeps/s390/multiarch/strncat-c.c: New File.
12445         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12446         * sysdeps/s390/multiarch/strncat.c: Likewise.
12447         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12448         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12449         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12450         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12451         wcsncat functions.
12452         * sysdeps/s390/multiarch/ifunc-impl-list.c
12453         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12454         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12455         * string/test-strncat.c: Add wcsncat support.
12456         * wcsmbs/test-wcsncat.c: New File.
12457         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12458         * benchtests/bench-strncat.c: Add wcsncat support.
12459         * benchtests/bench-wcsncat.c: New File.
12460         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12461
12462         * sysdeps/s390/multiarch/strcat-c.c: New File.
12463         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12464         * sysdeps/s390/multiarch/strcat.c: Likewise.
12465         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12466         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12467         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12468         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12469         wcscat functions.
12470         * sysdeps/s390/multiarch/ifunc-impl-list.c
12471         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12472         * string/strcat.c (STRCAT): Define and use macro.
12473         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12474         * string/test-strcat.c: Add wcscat support.
12475         * wcsmbs/test-wcscat.c: New File.
12476         * wcsmbs/Makefile (strop-tests): Add wcscat.
12477         * benchtests/bench-strcat.c: Add wcscat support.
12478         * benchtests/bench-wcscat.c: New File.
12479         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12480
12481         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12482         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12483         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12484         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12485         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12486         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12487         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12488         wcpncpy functions.
12489         * sysdeps/s390/multiarch/ifunc-impl-list.c
12490         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12491         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12492         * string/test-stpncpy.c: Add wcpncpy support.
12493         * wcsmbs/test-wcpncpy.c: New File.
12494         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12495         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12496         * benchtests/bench-wcpncpy.c: New File.
12497         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12498
12499         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12500         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12501         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12502         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12503         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12504         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12505         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12506         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12507         wcsncpy functions.
12508         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12509         * sysdeps/s390/multiarch/ifunc-impl-list.c
12510         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12511         * string/test-strncpy.c: Add wcsncpy support.
12512         * wcsmbs/test-wcsncpy.c: New File.
12513         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12514         * benchtests/bench-strncpy.c: Add wcsncpy support.
12515         * benchtests/bench-wcsncpy.c: New File.
12516         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12517
12518         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12519         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12520         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12521         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12522         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12523         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12524         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12525         wcpcpy functions.
12526         * string/stpcpy.c: Use STPCPY if defined.
12527         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12528         * sysdeps/s390/multiarch/ifunc-impl-list.c
12529         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12530         * string/test-stpcpy.c: Add wcpcpy support.
12531         * wcsmbs/test-wcpcpy.c: New File.
12532         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12533         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12534         * benchtests/bench-wcpcpy.c: New File.
12535         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12536
12537         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12538         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12539         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12540         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12541         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12542         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12543         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12544         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12545         wcscpy functions.
12546         * sysdeps/s390/multiarch/ifunc-impl-list.c
12547         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12548         * benchtests/bench-wcscpy.c: New File.
12549         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12550
12551         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12552         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12553         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12554         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12555         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12556         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12557         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12558         wcsnlen functions.
12559         * sysdeps/s390/multiarch/ifunc-impl-list.c
12560         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12561         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12562         * string/test-strnlen.c: Add wcsnlen support.
12563         * wcsmbs/test-wcsnlen.c: New File.
12564         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12565         * benchtests/bench-strnlen.c: Add wcsnlen support.
12566         * benchtests/bench-wcsnlen.c: New File.
12567         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12568
12569         * sysdeps/s390/multiarch/Makefile: New File.
12570         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12571         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12572         * sysdeps/s390/multiarch/strlen.c: Likewise.
12573         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12574         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12575         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12576         * string/strlen.c (STRLEN): Define and use macro.
12577         * sysdeps/s390/multiarch/ifunc-impl-list.c
12578         (IFUNC_VX_IMPL): New macro function.
12579         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12580         * benchtests/Makefile (wcsmbs-bench): New variable.
12581         (string-bench-all): Added wcsmbs-bench.
12582         * benchtests/bench-wcslen.c: New File.
12583
12584         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12585         s390_vx_libc_ifunc2): New macro function.
12586
12587         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12588         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12589         assembler support.
12590         * sysdeps/s390/configure: Regenerated.
12591
12592         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12593         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12594
12595         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12596         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12597         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12598
12599         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12600         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12601         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12602         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12603         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12604         (memcmp, bcmp): Use __memcmp_default as alias source.
12605         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12606         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12607         Rename to __memcmp_default.
12608         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12609         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12610         (memcpy): Use __memcpy_default as alias source.
12611         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12612         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12613         Rename to __memcpy_default.
12614         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12615         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12616         (memset): Use __memset_default as alias source.
12617         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12618         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12619         Rename to __memset_default.
12620         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12621         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12622         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12623         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12624         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12625         (memcmp, bcmp): Use __memcmp_default as alias source.
12626         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12627         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12628         Rename to __memcmp_default.
12629         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12630         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12631         (memcpy): Use __memcpy_default as alias source.
12632         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12633         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12634         Rename to __memcpy_default.
12635         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12636         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12637         (memset): Use __memset_default as alias source.
12638         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12639         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12640         Rename to __memset_default.
12641         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12642         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12643
12644         [BZ #18610]
12645         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12646         __ieee_instruction_pointer to __unused.
12647         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12648         __ieee_instruction_pointer.
12649         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12650         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12651         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12652         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12653         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12654         Mark dxc-field as reserved.
12655
12656 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12657
12658         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12659         if the weak reference is not null.
12660
12661 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12662
12663         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12664
12665         [BZ #11214]
12666         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12667
12668 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12669
12670         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12671         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12672         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12673         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12674         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12675         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12676         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12677         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12678         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12679         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12680         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12681         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12682         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12683         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12684         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12685         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12686         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12687         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12688
12689 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12690
12691         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12692         register other than r0 for tabort, it has special meaning.
12693         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12694         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12695         transaction before starting syscall.
12696
12697 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12698
12699         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12700
12701 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12702
12703         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12704
12705         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12706         * sysdeps/x86_64/rtld-memset.S: Likewise.
12707         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12708         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12709         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12710         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12711
12712         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12713
12714 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12715
12716         * debug/strcpy_chk.c: Improve performance.
12717         * debug/stpcpy_chk.c: Likewise.
12718         * sysdeps/x86_64/strcpy_chk.S: Remove.
12719         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12720
12721         [BZ #18240]
12722         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12723
12724 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12725
12726         [BZ #15128]
12727         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12728         ifuncmain8.
12729         (modules-names): Add ifuncmod8.
12730         ($(objpfx)ifuncmain8): New rule.
12731         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12732         <cpuid.h>.
12733         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12734         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12735         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12736         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12737         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12738         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12739         * sysdeps/x86_64/ifuncmain8.c: New file.
12740         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12741         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12742         Removed.
12743         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12744         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12745         Change rtld_savespace_sse to __glibc_unused2.
12746         (RTLD_CHECK_FOREIGN_CALL): Removed.
12747         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12748         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12749         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12750
12751 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12752
12753         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12754
12755 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12756
12757         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12758         Unconditionally set __fpcr to avoid uninialized warning.
12759         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12760
12761 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12762
12763         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12764         is corrupt.
12765
12766         * malloc/arena.c (arena_get2): Drop unused argument.
12767         (arena_lock): Adjust.
12768         (arena_get_retry): Likewise.
12769
12770 2015-08-24  Andreas Schwab  <schwab@suse.de>
12771
12772         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12773         Don't define.
12774         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12775         (__ASSUME_IPC64): Don't undef.
12776         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12777         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12778         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12779         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12780         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12781         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12782         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12783         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12784         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12785         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12786         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12787         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12788         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12789         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12790         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12791         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12792         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12793         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12794         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12795         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12796         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12797
12798 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12799
12800         * manual/Makefile (install): Only build manual when perl is available.
12801
12802 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12803
12804         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12805         '#undef memcpy' by '#undef memchr'.
12806
12807 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12808
12809         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12810         memchr not point to the internal __GI_memchr implementation.
12811
12812 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12813
12814         * timezone/Makefile (CFLAGS-zdump.c): Remove
12815         -Wno-strict-prototypes.
12816         (CFLAGS-zic.c): Likewise.
12817         (CFLAGS-ialloc.c): Likewise.
12818         (CFLAGS-scheck.c): Likewise.
12819
12820         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12821         -Wno-error=undef.
12822
12823 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12824
12825         * i386/i686/multiarch/strcasestr-c.c: Removed.
12826         * x86_64/multiarch/strcasestr.c: Likewise.
12827         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12828         Remove strcasestr.
12829
12830 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12831
12832         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12833
12834         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12835         variables for high and low parts before possibly modifying them.
12836
12837 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12838
12839         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12840         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12841         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12842         of "multiarch/init-arch.h".
12843         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12844         * sysdeps/x86/init-arch.h: This.
12845
12846 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12847
12848         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
12849         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
12850
12851 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
12852
12853         [BZ #17787]
12854         * manual/macros.texi: Add twoexp macro.
12855         * manual/filesys.texi: Fix exponents.
12856         * manual/llio.texi: Likewise.
12857         * manual/stdio.texi: Likewise.
12858
12859 2015-08-20  Florian Weimer  <fweimer@redhat.com>
12860
12861         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
12862         incorrect use.
12863
12864 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12865
12866         [BZ #18370]
12867         * math/s_csqrt.c (__csqrt): Force underflow exception for results
12868         whose real or imaginary part has small absolute value.
12869         * math/s_csqrtf.c (__csqrtf): Likewise.
12870         * math/s_csqrtl.c (__csqrtl): Likewise.
12871         * math/auto-libm-test-in: Add more tests of csqrt.
12872         * math/auto-libm-test-out: Regenerated.
12873         * sysdeps/i386/fpu/libm-test-ulps: Update.
12874
12875 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12876
12877         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
12878         __ppc_set_ppr_very_low): New functions.
12879         * manual/platform.texi: Add documentation about
12880         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
12881
12882 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
12883
12884         * string/stpncpy.c (stpncpy): Improve performance using
12885         __strnlen/memcpy/memset.
12886
12887 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12888
12889         [BZ #18796]
12890         * scripts/test-installation.pl: Don't add -lmvec to build options if
12891         libmvec wasn't built.
12892
12893 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12894
12895         [BZ #14341]
12896         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
12897         case when there is a gap between DT_REL and DT_JMPREL sections.
12898         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
12899         (LDFLAGS-tst-split-dynreloc): New.
12900         (tst-split-dynreloc-ENV): Likewise.
12901         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
12902         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
12903
12904 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12905
12906         [BZ #18822]
12907         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
12908         attribute_hidden.
12909         (__xstat64_conv): Likewise.
12910         (__xstat32_conv): Likewise.
12911
12912 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12913
12914         [BZ #18822]
12915         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
12916         Don't load %ebx when calling __setcontext.  Call __setcontext
12917         with HIDDEN_JUMPTARGET.
12918         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
12919         libc_hidden_def.
12920
12921 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12922
12923         * sysdeps/i386/i686/Makefile
12924         [$(subdir) == string] (sysdep_routines): Moved to ...
12925         * sysdeps/i386/Makefile: Here.
12926         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
12927         * sysdeps/i386/cacheinfo.c: Here.
12928         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
12929         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
12930         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
12931         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
12932
12933 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12934
12935         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
12936         __i586__ is defined.
12937         (HAS_I686): Defined to 1 if __i686__ is defined.
12938
12939 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12940
12941         * elf/Makefile [$(have-z-execstack) = yes]
12942         (CPPFLAGS-tst-execstack.c): New variable.
12943
12944         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
12945         conditional to [defined UTMPX || _HAVE_UT_TYPE].
12946         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
12947         UTMPX || _HAVE_UT_TV].
12948         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
12949         UTMPX || _HAVE_UT_TV - 0].
12950
12951 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
12952
12953         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
12954         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
12955         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
12956
12957 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12958
12959         * sysdeps/powerpc/dl-procinfo.c:
12960         (_dl_powerpc_cap_flags): Added missing strings for some
12961         hwcap features.
12962         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
12963
12964 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12965
12966         Port the 0x7efe...feff pattern to GCC 6.
12967         See Steve Ellcey's bug report in:
12968         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
12969         * string/memrchr.c (MEMRCHR):
12970         * string/rawmemchr.c (RAWMEMCHR):
12971         * string/strchr.c (strchr):
12972         * string/strchrnul.c (STRCHRNUL):
12973         Rewrite code to avoid issues with signed shift overflow.
12974
12975 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12976
12977         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
12978         whether cpuid is available only if HAS_CPUID is 0.
12979         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
12980         (HAS_I586): Likewise.
12981         (HAS_I686): Likewise.
12982
12983 2015-08-18  Zack Weinberg  <zackw@panix.com>
12984
12985         * misc/Versions (libc): Add GLIBC_2.23.
12986
12987 2015-08-18  Alan Modra  <amodra@gmail.com>
12988
12989         [BZ #18421]
12990         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
12991         .Lp__global.
12992         (_start): Load %dp via .Lp__global.
12993         [!SHARED]: Use .section .rodata.
12994
12995 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12996
12997         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
12998         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
12999
13000 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13001
13002         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13003         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13004
13005 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13006
13007         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13008         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13009
13010 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13011
13012         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13013         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13014
13015 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13016
13017         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13018         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13019
13020 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13021
13022         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13023         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13024
13025 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13026
13027         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13028
13029 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13030
13031         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13032         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13033         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13034         (__ASSUME_LWS_CAS): Delete.
13035
13036 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13037
13038         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13039         * sysdeps/hppa/configure: Regenerated.
13040         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13041         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13042         * sysdeps/hppa/nptl/tls.h: Likewise.
13043
13044 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13045
13046         [BZ #18823]
13047         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13048         for scaling up small arguments.
13049         * math/s_csqrtf.c (__csqrtf): Likewise.
13050         * math/s_csqrtl.c (__csqrtl): Likewise.
13051         * math/auto-libm-test-in: Add more tests of csqrt.
13052         * math/auto-libm-test-out: Regenerated.
13053
13054 2015-08-17  Andreas Schwab  <schwab@suse.de>
13055
13056         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13057         version set GLIBC_2.19.
13058
13059 2015-08-16  Zack Weinberg  <zackw@panix.com>
13060
13061         [BZ #18681]
13062         * misc/regexp.h: This interface is no longer supported.
13063         Remove all contents, leaving only an #error directive.
13064         * misc/regexp.c (loc1, loc2, locs, step, advance):
13065         Demote to compatibility symbols.
13066
13067 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13068
13069         [BZ #18084]
13070         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13071         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13072         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13073         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13074         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13075         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13076         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13077         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13078         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13079
13080 2015-08-15  Zack Weinberg  <zackw@panix.com>
13081
13082         [BZ #18795]
13083         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13084         buffer length is known to be too large, not if it's known to be
13085         small enough.
13086         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13087         overflow at runtime, involving a length parameter, twice: once
13088         with a compile-time constant length parameter, once without.
13089
13090 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13091
13092         [BZ #18824]
13093         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13094         scaling x * y up instead of down.
13095         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13096         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13097         * math/auto-libm-test-in: Add more tests of fma.
13098         * math/auto-libm-test-out: Regenerated.
13099
13100 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13101
13102         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13103
13104 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13105
13106         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13107         unnecessary movq.
13108         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13109         Likewise.
13110
13111 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13112
13113         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13114         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13115         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13116         and tgamma.
13117         * math/auto-libm-test-out: Regenerated.
13118         * sysdeps/i386/fpu/libm-test-ulps: Update.
13119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13120
13121         [BZ #16520]
13122         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13123         (__tanh): Force underflow exception for arguments with small
13124         absolute value.
13125         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13126         (__tanhf): Force underflow exception for arguments with small
13127         absolute value.
13128         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13129         (__tanhl): Force underflow exception for arguments with small
13130         absolute value.
13131         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13132         (__tanhl): Force underflow exception for arguments with small
13133         absolute value.
13134         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13135         (__tanhl): Force underflow exception for arguments with small
13136         absolute value.
13137         * math/auto-libm-test-in: Add more tests of tanh.
13138         * math/auto-libm-test-out: Regenerated.
13139         * sysdeps/i386/fpu/libm-test-ulps: Update.
13140
13141 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13142
13143         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13144         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13145
13146 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13147
13148         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13149         <cpuid.h>.
13150
13151 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13152
13153         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13154         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13155
13156 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13157
13158         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13159         Remove $(objpfx)init-arch.o.
13160         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13161         init-arch.
13162         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13163         (INIT_ARCH_EXT): Defined as empty.
13164         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13165         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13166         __init_cpu_features call.  Replace HAS_XXX with
13167         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13168         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13169         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13170         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13171         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13172         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13173         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13174         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13175         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13176         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13177         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13178         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13179         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13180         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13181         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13182         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13183         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13184         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13185         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13186         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13187         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13188         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13189         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13190         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13191         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13192         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13193         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13194         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13195         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13196         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13197         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13198         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13199         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13200         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13201         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13202         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13203
13204 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13205
13206         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13207         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13208         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13209         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13210         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13211         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13212         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13213         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13214         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13215         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13216         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13217         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13218         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13219         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13249
13250 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13251
13252         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13253         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13254         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13255         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13256         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13257         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13258         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13259         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13260         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13261         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13262         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13263         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13264         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13265         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13266         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13267         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13268         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13269         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13270         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13271         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13272         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13273         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13274         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13275         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13276         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13277         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13278         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13279         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13280         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13281         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13282         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13283         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13284         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13285         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13286         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13287         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13288         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13289         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13290         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13291         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13292         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13293         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13294         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13295
13296 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13297
13298         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13299         (dl_platform_init): Call init_cpu_features.
13300         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13301         * sysdeps/i386/i686/cacheinfo.c
13302         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13303         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13304         * sysdeps/i386/i686/multiarch/Versions: Removed.
13305         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13306         Removed.
13307         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13308         * sysdeps/unix/sysv/linux/x86/Makefile
13309         (libpthread-sysdep_routines): Remove init-arch.
13310         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13311         <sysdeps/x86_64/dl-procinfo.c> instead of
13312         sysdeps/generic/dl-procinfo.c>.
13313         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13314         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13315         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13316         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13317         [$(subdir) == elf] (tests-static): Add
13318         tst-get-cpu-features-static.
13319         * sysdeps/x86/Versions: New file.
13320         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13321         * sysdeps/x86/cpu-features.c: Likewise.
13322         * sysdeps/x86/cpu-features.h: Likewise.
13323         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13324         * sysdeps/x86/libc-start.c: Likewise.
13325         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13326         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13327         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13328         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13329         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13330         Assume USE_MULTIARCH is defined and don't check it.
13331         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13332         (is_amd): Likewise.
13333         (max_cpuid): Likewise.
13334         (intel_check_word): Likewise.
13335         (__cache_sysconf): Don't call __init_cpu_features.
13336         (__x86_preferred_memory_instruction): Removed.
13337         (init_cacheinfo): Don't call __init_cpu_features. Replace
13338         __cpu_features with GLRO(dl_x86_cpu_features).
13339         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13340         (dl_platform_init): Call init_cpu_features.
13341         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13342         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13343         * sysdeps/x86_64/multiarch/Versions: Removed.
13344         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13345         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13346         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13347         Removed.
13348         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13349
13350 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13351
13352         [BZ #18820]
13353         * libio/Makefile (test-fmemopen-mem): New test.
13354         * libio/test-fmemopen.c (do_bz18820): New test.
13355         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13356         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13357
13358 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13359
13360         [BZ #16734]
13361         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13362         (FREE_BUF): Delete.
13363         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13364         * libio/genops.c (_IO_setb): Use malloc and free directly.
13365         (_IO_default_doallocate, _IO_default_finish): Likewise.
13366         ( _IO_unbuffer_all): Likewise.
13367         ( libc_freeres_fn): Likewise.
13368         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13369         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13370         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13371         (_IO_wdefault_doallocate): Likewise.
13372
13373 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13374
13375         [BZ #18086]
13376         * sysdeps/posix/nice.c (nice): Restore old errno.
13377         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13378
13379 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13380
13381         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13382
13383 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13384
13385         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13386         __bcopy and add a weak_alias to bcopy.
13387         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13388         for static build.
13389
13390         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13391         cleanup macro usage.
13392         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13393         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13394         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13395         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13396         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13397         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13398         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13399         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13400         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13401         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13402         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13403         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13404         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13405         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13406         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13407         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13408         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13409         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13410         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13411
13412         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13413         libc_hidden_def.
13414         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13415
13416         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13417         (sysdep_routines): Add strstr-ppc64.
13418         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13419
13420 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13421
13422         [BZ #18778]
13423         * elf/Makefile (tests): Add Add tst-nodelete2.
13424         (modules-names): Add tst-nodelete2mod.
13425         (tst-nodelete2mod.so-no-z-defs): New.
13426         ($(objpfx)tst-nodelete2): Likewise.
13427         ($(objpfx)tst-nodelete2.out): Likewise.
13428         (LDFLAGS-tst-nodelete2): Likewise.
13429         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13430         out of loop through all loaded libraries.
13431         * elf/tst-nodelete2.c: New file.
13432         * elf/tst-nodelete2mod.c: Likewise.
13433         * elf/tst-znodelete-zlib.cc: Delete.
13434
13435 2015-08-11  Andreas Schwab  <schwab@suse.de>
13436
13437         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13438         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13439         (__openat64_nocancel): Likewise.
13440
13441 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13442
13443         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13444         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13445         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13446         * math/auto-libm-test-out: Regenerated.
13447         * sysdeps/i386/fpu/libm-test-ulps: Update.
13448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13449
13450 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13451
13452         [BZ #18790]
13453         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13454         threshold for returning +/- 1.
13455         * math/auto-libm-test-in: Add more tests of tanh.
13456         * math/auto-libm-test-out: Regenerated.
13457         * sysdeps/i386/fpu/libm-test-ulps: Update.
13458
13459 2015-08-10  Andreas Schwab  <schwab@suse.de>
13460
13461         [BZ #18781]
13462         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13463         MORE_OFLAGS to oflag.
13464         * io/test-lfs.c (do_test): Test openat64.
13465
13466 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13467
13468         [BZ #18789]
13469         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13470         smaller threshold for returning the argument.
13471         * math/auto-libm-test-in: Add more tests of sinh.
13472         * math/auto-libm-test-out: Regenerated.
13473         * sysdeps/i386/fpu/libm-test-ulps: Update.
13474
13475 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13476
13477         [BZ #18674]
13478         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13479         break.
13480
13481 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13482
13483         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13484         (generated): Don't add $(addprefix z.,$(tzfiles)).
13485
13486 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13487
13488         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13489         * scripts/sysd-rules.awk: Likewise.
13490
13491 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13492
13493         * iconvdata/tst-tables.sh: Change echo -n to printf.
13494         * nss/db-Makefile: Likewise.
13495         * posix/tst-getconf.sh: Likewise.
13496         * stdio-common/tst-unbputc.sh: Likewise.
13497
13498 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13499
13500         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13501         MADV_*_PAGES defines behind this feature check.
13502
13503 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13504
13505         [BZ #18480]
13506         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13507         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13508         Define.
13509         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13510         LOAD_REGS_5, LOAD_REGS_6): Update.
13511         (INTERNAL_SYSCALL): Update using new LOAD defines.
13512         (INTERNAL_SYSCALL_NCS): Likewise.
13513         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13514
13515 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13516
13517         [BZ #16734]
13518         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13519
13520 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13521
13522         [BZ #17905]
13523         * catgets/Makefile (tst-catgets-mem): New test.
13524         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13525         * catgets/open_catalog.c (__open_catalog): Likewise.
13526         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13527
13528 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13529
13530         [BZ #18787]
13531         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13532         clobber registers.
13533         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13534         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13535         Cast return to __typeof (oldval).
13536
13537 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13538
13539         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13540         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13541         and delete sys/syscall.h include.
13542
13543 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13544
13545         [BZ #16517]
13546         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13547         (tan): Force underflow exception for arguments with small absolute
13548         value.
13549         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13550         (__kernel_tanf): Force underflow exception for arguments with
13551         small absolute value.
13552         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13553         (__kernel_tanl): Force underflow exception for arguments with
13554         small absolute value.
13555         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13556         (__kernel_tanl): Force underflow exception for arguments with
13557         small absolute value.
13558         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13559         (__kernel_tanl): Force underflow exception for arguments with
13560         small absolute value.
13561         * math/auto-libm-test-in: Add more tests of tan.
13562         * math/auto-libm-test-out: Regenerated.
13563
13564 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13565
13566         Fix sysdeps/i386/fpu/s_scalbn.S build
13567
13568         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13569
13570 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13571
13572         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13573
13574 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13575
13576         Fix gcrt0.o compilation
13577
13578         When static-start-installed-name is different from
13579         start-installed-name, we must not use the shared objects.
13580
13581         * csu/Makefile
13582         (extra-objs): Add gmon-start.o when building shared library and
13583         $(static-start-installed-name) is different from
13584         $(start-installed-name).
13585         $(objpfx)g$(static-start-installed-name): When building shared
13586         library and $(static-start-installed-name) is different from
13587         $(static-start-installed-name), revert to non-shared rule,
13588         i.e. using $(objpfx)% and gmon-start.o.
13589
13590 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13591
13592         [BZ #16519]
13593         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13594         (__ieee754_sinh): Force underflow exception for arguments with
13595         small absolute value.
13596         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13597         (__ieee754_sinhf): Force underflow exception for arguments with
13598         small absolute value.
13599         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13600         (__ieee754_sinhl): Force underflow exception for arguments with
13601         small absolute value.
13602         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13603         (__ieee754_sinhl): Force underflow exception for arguments with
13604         small absolute value.
13605         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13606         (__ieee754_sinhl): Force underflow exception for arguments with
13607         small absolute value.
13608         * math/auto-libm-test-in: Add more tests of sinh.
13609         * math/auto-libm-test-out: Regenerated.
13610         * sysdeps/i386/fpu/libm-test-ulps: Update.
13611
13612 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13613
13614         * libio/oldfileops.c: Include unistd.h.
13615
13616 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13617
13618         * stdlib/isomac.c: Include ctype.h.
13619
13620 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13621
13622         * dirent/tst-seekdir.c (main): Converted to ...
13623         (do_test): ... this.
13624         (TEST_FUNCTION): New macro.
13625         Include test-skeleton.c.
13626         * elf/tst-dlmodcount.c (main): Converted to ...
13627         (do_test): ... this.
13628         (TEST_FUNCTION): New macro.
13629         Include test-skeleton.c.
13630         * elf/tst-order-main.c (main): Converted to ...
13631         (do_test): ... this.
13632         (TEST_FUNCTION): New macro.
13633         Include test-skeleton.c.
13634         * elf/tst-pie2.c (main): Converted to ...
13635         (do_test): ... this.
13636         (TEST_FUNCTION): New macro.
13637         Include test-skeleton.c.
13638         * inet/tst-ether_aton.c (main): Converted to ...
13639         (do_test): ... this.
13640         (TEST_FUNCTION): New macro.
13641         Include test-skeleton.c.
13642         * misc/tst-mntent.c (main): Converted to ...
13643         (do_test): ... this.
13644         (TEST_FUNCTION): New macro.
13645         Include test-skeleton.c.
13646         * misc/tst-tsearch.c (main): Converted to ...
13647         (do_test): ... this.
13648         (TEST_FUNCTION): New macro.
13649         Include test-skeleton.c.
13650         * posix/tst-regexloc.c (main): Converted to ...
13651         (do_test): ... this.
13652         (TEST_FUNCTION): New macro.
13653         Include test-skeleton.c.
13654         * resolv/tst-aton.c (main): Converted to ...
13655         (do_test): ... this.
13656         (TEST_FUNCTION): New macro.
13657         Include test-skeleton.c.
13658         * stdio-common/test-fwrite.c (main): Converted to ...
13659         (do_test): ... this.
13660         (TEST_FUNCTION): New macro.
13661         Include test-skeleton.c.
13662         * stdio-common/tst-ferror.c (main): Converted to ...
13663         (do_test): ... this.
13664         (TEST_FUNCTION): New macro.
13665         Include test-skeleton.c.
13666         * stdio-common/tst-printf.c (main): Converted to ...
13667         (do_test): ... this.
13668         (TEST_FUNCTION): New macro.
13669         Include test-skeleton.c.
13670         * stdio-common/tst-printfsz.c (main): Converted to ...
13671         (do_test): ... this.
13672         (TEST_FUNCTION): New macro.
13673         Include test-skeleton.c.
13674         * stdlib/tst-strtod.c (main): Converted to ...
13675         (do_test): ... this.
13676         (TEST_FUNCTION): New macro.
13677         Include test-skeleton.c.
13678         * string/tst-strlen.c (main): Converted to ...
13679         (do_test): ... this.
13680         (TEST_FUNCTION): New macro.
13681         Include test-skeleton.c.
13682         * string/tst-svc.c (main): Converted to ...
13683         (do_test): ... this.
13684         (TEST_FUNCTION): New macro.
13685         Include test-skeleton.c.
13686         * time/tst-strptime.c (main): Converted to ...
13687         (do_test): ... this.
13688         (TEST_FUNCTION): New macro.
13689         Include test-skeleton.c.
13690         * timezone/tst-timezone.c (main): Converted to ...
13691         (do_test): ... this.
13692         (TEST_FUNCTION): New macro.
13693         Include test-skeleton.c.
13694
13695 2015-08-05  Zack Weinberg  <zackw@panix.com>
13696
13697         * misc/regexp.h: Update comments.
13698
13699 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13700
13701         [BZ #18635]
13702         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13703         before return label.
13704
13705 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13706
13707         [BZ #18661]
13708         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13709         when calling __errno_location.
13710         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13711         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13712
13713 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13714
13715         [BZ #18661]
13716         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13717         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13718         __gettimeofday.
13719
13720 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13721
13722         [BZ #18661]
13723         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13724         (__start_context): Don't use pop to restore %rdi so that stack
13725         is aligned to 16 bytes when calling __setcontext.
13726
13727 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13728
13729         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13730         only for libc.
13731         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13732
13733 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13734
13735         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13736         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13737         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13738
13739 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13740
13741         * string/memccpy.c (memccpy):
13742         Improve performance by using memchr/memcpy/__mempcpy.
13743
13744 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13745
13746         * string/strncpy.c (strncpy):
13747         Improve performance by using __strnlen/memcpy.
13748
13749 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13750
13751         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13752         Optimize to avoid an unnecessary FPCR read.
13753
13754 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13755
13756         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13757         Optimize to reduce FPCR/FPSR accesses.
13758
13759 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13760
13761         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13762         dead->data[category] != NULL.
13763
13764 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13765
13766         [BZ #18647]
13767         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13768         and |x| close to 1, use absolute value of x when computing log.
13769         * math/auto-libm-test-in: Add more tests of pow.
13770         * math/auto-libm-test-out: Regenerated.
13771
13772 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13773
13774         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13775         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13776         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13777
13778 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13779
13780         [BZ #18525]
13781         * locales/km_KH: Remove timezone definition.
13782         * locales/lo_LA: Likewise.
13783         * locales/my_MM: Likewise.
13784         * locales/nan_TW@latin: Likewise.
13785         * locales/th_TH: Likewise.
13786         * locales/uk_UA: Likewise.
13787
13788 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13789
13790         [BZ #18265]
13791         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13792         (wcsncat): Likewise.
13793         (wcscmp): Likewise.
13794         (wcsncmp): Likewise.
13795
13796 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13797
13798         * test-skeleton.c (usage): New function.
13799         (main): Call usage when opt is '?'.
13800
13801 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13802
13803         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13804         before first use.
13805
13806 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13807
13808         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13809         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13810         in there too.
13811
13812 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13813
13814         * version.h (RELEASE): Set to "development".
13815         (VERSION): Set to "2.22.90"
13816
13817         * version.h (RELEASE): Set to "stable".
13818         (VERSION): Set to "2.22"
13819         * include/features.h (__GLIBC_MINOR__): Set to 22.
13820
13821 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13822
13823         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13824         Restructure macro to avoid "value computed is not used" warning.
13825         (atomic_compare_and_exchange_val_acq): Likewise.
13826
13827 2015-08-04  Andreas Schwab  <schwab@suse.de>
13828
13829         [BZ #18635]
13830         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13831         ret.
13832         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13833
13834 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13835
13836         * po/pl.po: Updated translation.
13837         * po/uk.po: Likewise.
13838         * po/fi.po: Likewise.
13839         * po/ko.po: Likewise.
13840         * po/ru.po: Likewise.
13841         * po/vi.po: Likewise.
13842
13843 2015-07-31  Zack Weinberg  <zackw@panix.com>
13844
13845         [BZ #18681]
13846         * regexp.h: Add unconditional #warning stating that this header
13847         will be removed soon.  Revise banner comment to match.
13848         (compile): Consistently use ERROR instead of RETURN to report
13849         errors (partial fix for bz#18681).
13850         * regexp.c: Don't include regexp.h. Remove some unnecessary
13851         declarations.
13852
13853 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
13854
13855         * po/libc.pot: Regenerated.
13856
13857 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
13858
13859         [BZ #18740]
13860         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
13861         float-vlen4-arch-ext-cflags): Removed.
13862         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
13863         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
13864
13865 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13866
13867         [BZ #14113]
13868         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
13869         aligned to __aligned__.
13870         (pthread_cond_t, pthread_rwlock_t): Likewise.
13871
13872 2015-07-30  Torvald Riegel  <triegel@redhat.com>
13873
13874         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
13875
13876 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13877
13878         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
13879         (struct sigaction): Change sa_flags from a long to an int, and add
13880         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
13881
13882 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13883
13884         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
13885         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
13886         sysdeps/generic/sysdep.h include.
13887         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
13888         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
13889         sysdeps/hppa/sysdep.h.
13890         (ENTRY, PSEUDO): Undefine before defining.
13891
13892 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13893
13894         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
13895         from scratch to use INTERNAL_SYSCALL.
13896
13897 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13898
13899         [BZ #18078]
13900         * scripts/check-localplt.awk: Support alternate relocations.
13901         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
13902         sections.
13903         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
13904         malloc entries with + REL R_386_GLOB_DAT.
13905         * sysdeps/x86_64/localplt.data: New file.
13906
13907 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
13908
13909         [BZ #18731]
13910         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
13911         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
13912         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
13913
13914 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13915
13916         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
13917
13918 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13919
13920         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
13921         directly in terms of __sync_fetch_and_add and delete (int) cast.
13922
13923 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13924
13925         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
13926         the -D_ASM_IA64_CURRENT_H flag.
13927
13928 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13929
13930         [BZ #18641]
13931         * pwd/pwd.h (putpwent): Delete __nonnull markings.
13932
13933 2015-07-27  Andreas Schwab  <schwab@suse.de>
13934
13935         * conform/conformtest.pl (checknamespace): Filter out string
13936         literals while tokenizing.
13937
13938 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13939
13940         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13941         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
13942         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13943
13944 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13945
13946         * nptl/tst-join7mod.c: Add #include <string.h>.
13947
13948 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13949
13950         * sysdeps/nios2/libm-test-ulps: Update.
13951
13952 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13953
13954         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
13955         Fix order of arguments to the rt_sigprocmask syscall.
13956         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
13957         Likewise.
13958
13959 2015-07-24  Roland McGrath  <roland@hack.frob.com>
13960
13961         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
13962
13963 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13964
13965         [BZ #18457]
13966         * nptl/Makefile (tests): New test case tst-join7.
13967         (modules-names): New test case module tst-join7mod.
13968         * nptl/tst-join7.c: New file.
13969         * nptl/tst-join7mod.c: New file.
13970         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
13971         all translation units in libc.so, libpthread.so and rtld.
13972
13973 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13974
13975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13976
13977 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
13978
13979         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
13980         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13981         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13982         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13983         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13985         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13986         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13987         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13988         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13989         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13990         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13991         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
13992         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
13993         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
13994         implementation.
13995
13996 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13997
13998         [BZ #17711]
13999         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14000         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14001         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14002         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14003         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14004         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14005
14006 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14007
14008         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14009         instead of just saying load lock in the comments.
14010
14011 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14012
14013         * sysdeps/unix/Subdirs: Moved ...
14014         * sysdeps/posix/Subdirs: ... here.
14015         * login/pty.h (struct termios, struct winsize): Add forward decls.
14016         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14017         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14018         * sysdeps/arm/nacl/libc.abilist: Updated.
14019         * sysdeps/nacl/libutil.abilist: New file.
14020
14021         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14022         (SIGWINCH): New macro.
14023
14024         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14025         * sysdeps/arm/nacl/libc.abilist: Add it.
14026
14027 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14028
14029         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14030
14031 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14032
14033         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14034         Swap __glibc_reserved0 and sa_flags order.
14035
14036 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14037
14038         [BZ #18657]
14039         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14040         are pending TLS destructor calls.
14041         * include/link.h (struct link_map): Add concurrency note for
14042         L_TLS_DTOR_COUNT.
14043         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14044         Don't touch the link map flag.  Atomically increment
14045         l_tls_dtor_count.
14046         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14047         Avoid taking the load lock and don't touch the link map flag.
14048         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14049         * stdlib/Makefile (tests): Use it.
14050         * stdlib/tst-tls-atexit.c (do_test): dlopen
14051         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14052         to allow tst-tls-atexit-nodelete test case to use it.
14053
14054 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14055
14056         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14057         to bits/types.h.
14058         (msgqnum_t): New typedef.
14059         (msglen_t): Likewise.
14060         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14061         and msg_qbytes type to msglen_t.
14062
14063 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14064
14065         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14066         pad0 to __glibc_reserved0.
14067         (struct stat64): Likewise.
14068
14069 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14070
14071         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14072         Change sa_flags from a long to an int and add __glibc_reserved0 before
14073         it for padding.
14074
14075 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14076
14077         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14078         anonymous by deleting "siginfo" name.
14079
14080 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14081
14082         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14083         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14084         rather than __nacl_irt_filename.
14085         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14086
14087         * NEWS: New item for arm-nacl port.
14088         * sysdeps/arm/nacl/libc.abilist: New file.
14089         * sysdeps/nacl/ld.abilist: New file.
14090         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14091         * sysdeps/nacl/libanl.abilist: New file.
14092         * sysdeps/nacl/libcrypt.abilist: New file.
14093         * sysdeps/nacl/libdl.abilist: New file.
14094         * sysdeps/nacl/libm.abilist: New file.
14095         * sysdeps/nacl/libpthread.abilist: New file.
14096         * sysdeps/nacl/libresolv.abilist: New file.
14097         * sysdeps/nacl/librt.abilist: New file.
14098
14099 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14100
14101         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14102         __startcontext to initialize the new context.
14103         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14104         up CFI directive to forbid further backtracing.
14105
14106 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14107
14108         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14109         reference.
14110         * charmaps/ANSI_X3.4-1968: Likewise.
14111         * charmaps/BS_4730: Likewise.
14112         * charmaps/BS_VIEWDATA: Likewise.
14113         * charmaps/CP1250: Likewise.
14114         * charmaps/CP1251: Likewise.
14115         * charmaps/CP1252: Likewise.
14116         * charmaps/CP1253: Likewise.
14117         * charmaps/CP1254: Likewise.
14118         * charmaps/CP1255: Likewise.
14119         * charmaps/CP1256: Likewise.
14120         * charmaps/CSN_369103: Likewise.
14121         * charmaps/EBCDIC-DK-NO: Likewise.
14122         * charmaps/GB_1988-80: Likewise.
14123         * charmaps/GREEK-CCITT: Likewise.
14124         * charmaps/GREEK7: Likewise.
14125         * charmaps/INIS-8: Likewise.
14126         * charmaps/ISIRI-3342: Likewise.
14127         * charmaps/ISO_2033-1983: Likewise.
14128         * charmaps/ISO_5427-EXT: Likewise.
14129         * locales/POSIX: Likewise.
14130         * locales/ar_SA: Likewise.
14131         * locales/be_BY: Likewise.
14132         * locales/be_BY@latin: Likewise.
14133         * locales/ca_ES: Likewise.
14134         * locales/cs_CZ: Likewise.
14135         * locales/da_DK: Likewise.
14136         * locales/de_BE: Likewise.
14137         * locales/de_CH: Likewise.
14138         * locales/de_LU: Likewise.
14139         * locales/en_AU: Likewise.
14140         * locales/en_BW: Likewise.
14141         * locales/en_CA: Likewise.
14142         * locales/en_DK: Likewise.
14143         * locales/en_GB: Likewise.
14144         * locales/en_IE: Likewise.
14145         * locales/en_NZ: Likewise.
14146         * locales/en_ZA: Likewise.
14147         * locales/en_ZW: Likewise.
14148         * locales/es_AR: Likewise.
14149         * locales/es_BO: Likewise.
14150         * locales/es_CL: Likewise.
14151         * locales/es_CO: Likewise.
14152         * locales/es_DO: Likewise.
14153         * locales/es_EC: Likewise.
14154         * locales/es_ES: Likewise.
14155         * locales/es_HN: Likewise.
14156         * locales/es_MX: Likewise.
14157         * locales/es_PA: Likewise.
14158         * locales/es_PE: Likewise.
14159         * locales/es_PY: Likewise.
14160         * locales/es_SV: Likewise.
14161         * locales/es_US: Likewise.
14162         * locales/es_UY: Likewise.
14163         * locales/es_VE: Likewise.
14164         * locales/et_EE: Likewise.
14165         * locales/fa_IR: Likewise.
14166         * locales/fo_FO: Likewise.
14167         * locales/fr_CA: Likewise.
14168         * locales/fr_CH: Likewise.
14169         * locales/gv_GB: Likewise.
14170         * locales/he_IL: Likewise.
14171         * locales/hr_HR: Likewise.
14172         * locales/id_ID: Likewise.
14173         * locales/is_IS: Likewise.
14174         * locales/it_CH: Likewise.
14175         * locales/iw_IL: Likewise.
14176         * locales/kl_GL: Likewise.
14177         * locales/ko_KR: Likewise.
14178         * locales/kw_GB: Likewise.
14179         * locales/lg_UG: Likewise.
14180         * locales/lt_LT: Likewise.
14181         * locales/lv_LV: Likewise.
14182         * locales/mi_NZ: Likewise.
14183         * locales/nhn_MX: Likewise.
14184         * locales/nl_BE: Likewise.
14185         * locales/pl_PL: Likewise.
14186         * locales/sk_SK: Likewise.
14187         * locales/sl_SI: Likewise.
14188         * locales/sv_FI: Likewise.
14189         * locales/tl_PH: Likewise.
14190         * locales/tr_TR: Likewise.
14191         * locales/vi_VN: Likewise.
14192
14193 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14194
14195         [BZ #17475]
14196         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14197         of tu_IN and bh_IN.
14198
14199 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14200
14201         [BZ #18694]
14202         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14203         bits/wordsize.h.
14204         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14205
14206 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14207
14208         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14209         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14210         (spawn_thread): New function.
14211         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14212         (do_test): ... here.  Use IS_LOADED to test for its
14213         availability.
14214
14215 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14216
14217         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14218
14219 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14220
14221         [BZ #18696]
14222         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14223         si_addr_bnd.
14224         (si_lower): New.
14225         (si_upper): Likewise.
14226
14227 2015-07-16  David S. Miller  <davem@davemloft.net>
14228
14229         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14230
14231 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14232
14233         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14234         buffer.
14235         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14236         fail output information.
14237
14238 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14239
14240         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14241         and strstr-ppc64..
14242         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14243         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14244         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14245         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14246         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14247
14248 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14249
14250         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14251         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14252         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14253         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14254
14255 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14256
14257         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14258         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14259         rtld_hidden_proto.
14260         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14261
14262 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14263
14264         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14265         the test can fail.
14266
14267         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14268
14269         [BZ #18676]
14270         * elf/tst-nodelete-opened.c: New test case.
14271         * elf/tst-nodelete-opened-lib.c: New test case module.
14272         * elf/Makefile (tests, modules-names): Use them.
14273         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14274         early.
14275
14276 2015-07-15  David S. Miller  <davem@davemloft.net>
14277
14278         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14279         futex-intenal.h
14280         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14281         * sysdeps/sparc/sparc64/Makefile: Likewise.
14282         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14283         Remove space from macro define.
14284         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14285
14286 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14287
14288         [BZ #17475]
14289         * locale/iso-639.def: Update Bhili and Tulu language codes as
14290         per iso639-3.
14291
14292 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14293
14294         * elf/tst-leaks1.c (main): Converted to ...
14295         (do_test): ... this.
14296         (TEST_FUNCTION): New macro.
14297         Include test-skeleton.c.
14298         * localedata/tst-langinfo.c (main): Converted to ...
14299         (do_test): ... this.
14300         (TEST_FUNCTION): New macro.
14301         Include test-skeleton.c.
14302         * math/test-fpucw.c (main): Converted to ...
14303         (do_test): ... this.
14304         (TEST_FUNCTION): New macro.
14305         Include test-skeleton.c.
14306         * math/test-tgmath.c (main): Converted to ...
14307         (do_test): ... this.
14308         (TEST_FUNCTION): New macro.
14309         Include test-skeleton.c.
14310         * math/test-tgmath2.c (main): Converted to ...
14311         (do_test): ... this.
14312         (TEST_FUNCTION): New macro.
14313         Include test-skeleton.c.
14314         * setjmp/tst-setjmp.c (main): Converted to ...
14315         (do_test): ... this.
14316         (TEST_FUNCTION): New macro.
14317         Include test-skeleton.c.
14318         * stdio-common/tst-sscanf.c (main): Converted to ...
14319         (do_test): ... this.
14320         (TEST_FUNCTION): New macro.
14321         Include test-skeleton.c.
14322         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14323         (do_test): ... this.
14324         (TEST_FUNCTION): New macro.
14325         Include test-skeleton.c.
14326
14327         * elf/tst-audit9.c (main): Converted to ...
14328         (do_test): ... this.
14329         (TEST_FUNCTION): New macro.
14330         Include test-skeleton.c.
14331
14332 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14333
14334         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14335
14336 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14337
14338         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14339         New variable.
14340
14341 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14342
14343         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14344
14345 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14346
14347         * sysdeps/generic/dl-fileid.h: New file.
14348         * sysdeps/posix/dl-fileid.h: New file.
14349         * sysdeps/nacl/dl-fileid.h: New file.
14350         * include/link.h: Include <dl-fileid.h>.
14351         (struct link_map): Replace l_dev and l_ino with l_file_id.
14352         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14353         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14354         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14355
14356 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14357
14358         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14359
14360 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14361
14362         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14363         Add iff $CXX is set.
14364         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14365         Likewise.
14366         (tst-nodelete-zmodiff): Likewise.
14367         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14368
14369 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14370
14371         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14372
14373 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14374
14375         * sysdeps/aarch64/fpu/math_private.h
14376         (define math_opt_barrier): Add AArch64 version.
14377         (math_force_eval): Likewise.
14378
14379 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14380
14381         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14382
14383 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14384
14385         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14386         %ld with %jd and cast to intmax_t.
14387         (do_test_length_zero): Likewise.
14388
14389 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14390
14391         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14392
14393 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14394
14395         * sysdeps/tile/libm-test-ulps: Regenerated.
14396
14397         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14398         Comment out the whole function, not just its body.
14399
14400 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14401
14402         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14403         locks.
14404
14405         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14406
14407 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14408
14409         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14410         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14411
14412 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14413
14414         * sysdeps/nptl/futex-internal.h: New file.
14415         * sysdeps/nacl/futex-internal.h: New file.
14416         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14417         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14418         error checking.
14419         (setxid_unmark_thread): Likewise.
14420         (__nptl_setxid): Likewise.
14421         (__wait_lookup_done): Likewise.
14422         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14423         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14424         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14425         * nptl/pthread_once.c (clear_once_control): Likewise.
14426         (__pthread_once_slow): Likewise.
14427         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14428         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14429         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14430         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14431         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14432         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14433         Likewise.
14434         (__pthread_rwlock_rdlock): Likewise.
14435         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14436         Likewise.
14437         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14438         Likewise.
14439         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14440         Likewise.
14441         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14442         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14443         Likewise.
14444         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14445         __ASSUME_PRIVATE_FUTEX check.
14446         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14447         Check that shared futexes are supported.
14448         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14449         wrappers with error checking.
14450         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14451         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14452         * nptl/pthread_barrierattr_setpshared.c
14453         (pthread_barrierattr_setpshared): Check that shared futexes are
14454         supported.
14455         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14456         Likewise.
14457         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14458         Likewise.
14459         * nptl/sem_init.c (futex_private_if_supported): Remove.
14460         (__new_sem_init): Adapt and check that shared futexes are supported.
14461         * nptl/sem_open.c (sem_open): Likewise.
14462         * nptl/sem_post.c (futex_wake): Remove.
14463         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14464         (do_futex_wait): Use futex wrappers with error checking.
14465         * nptl/sem_wait.c: Include lowlevellock.h.
14466         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14467         Use futex_supports_pshared.
14468         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14469         Use futex wrappers with error checking.
14470         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14471         Likewise.
14472         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14473         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14474         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14475         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14476         (futex_wake): Likewise.
14477         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14478         (do_futex_wait): Use futex wrappers with error checking.
14479         (__new_sem_wait_slow): Update EINTR handling.
14480         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14481
14482 2015-07-09  Martin Sebor  <msebor@redhat.com>
14483
14484         [BZ #18435]
14485         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14486         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14487         * nptl/Makefile (test-xfail-tst-once5): Define.
14488
14489 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14490
14491         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14492         * elf/dl-minimal.c: For readability, reorder some definitions and
14493         introduce more page breaks.  Include <stdio.h>.
14494         (__libc_fatal): New function.
14495
14496         * include/unistd.h: Add rtld_hidden_proto for _exit.
14497         * posix/_exit.c: Add rtld_hidden_def.
14498         * sysdeps/mach/hurd/_exit.c: Likewise.
14499         * sysdeps/nacl/_exit.c: Likewise.
14500         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14501         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14502
14503 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14504
14505         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14506         bndmov encoding with zero displacement.
14507
14508 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14509             H.J. Lu  <hongjiu.lu@intel.com>
14510
14511         [BZ #18134]
14512         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14513         * sysdeps/i386/configure: Regenerated.
14514         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14515         (_dl_runtime_profile): Save and restore Intel MPX return bound
14516         registers when calling _dl_call_pltexit.  Add
14517         PRESERVE_BND_REGS_PREFIX before return.
14518         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14519         (LRV_BND1_OFFSET): Likewise.
14520         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14521         lrv_bnd1.
14522         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14523         typo in bndmov encoding.
14524         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14525         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14526         branch instructions to preserve bounds.
14527
14528 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14529
14530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14531         [GLIBC_2.22]: Add fmemopen.
14532
14533 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14534
14535         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14536         returns an error, also try to use host port from __mach_host_self for
14537         the __vm_wire call.
14538         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14539
14540 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14541
14542         [BZ #18400]
14543         [BZ #18648]
14544         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14545         Fix pr_uid and pr_gid members.
14546         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14547         definition to elf_greg_t.
14548
14549 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14550
14551         [BZ #18383]
14552         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14553         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14554         * sysdeps/arm/configure: Regenerated.
14555         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14556         (test-xfail-tst-tlsalign-static): Variable removed.
14557
14558         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14559         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14560         rather than explicit 'ln -s'.
14561
14562         * resolv/rpc/netdb.h: New file.
14563         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14564
14565 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14566
14567         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14568         length buffers.
14569         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14570         test-skeleton.c.
14571
14572         [BZ #6544]
14573         [BZ #11216]
14574         [BZ #12836]
14575         [BZ #13151]
14576         [BZ #13152]
14577         [BZ #14292]
14578         * include/stdio.h (fmemopen): Remove hidden prototype.
14579         (__fmemopen): Add new hidden prototype.
14580         * libio/Makefile: Add oldfmemopen object.
14581         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14582         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14583         compliance.
14584         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14585         symbol compatibility.
14586         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14587         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14588         fmemopen.
14589         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14590         on append and read mode.
14591         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14592         fmemopen.
14593         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14594         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14595         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14596         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14597         Likewise.
14598         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14599         [GLIBC_2.22]: Likewise.
14600         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14601         Likewise.
14602         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14603         Likewise.
14604         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14605         [GLIBC_2.22]: Likewise.
14606         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14607         [GLIBC_2.22]: Likewise.
14608         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14609         [GLIBC_2.22]: Likewise.
14610         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14611         [GLIBC_2.22]: Likewise.
14612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14613         [GLIBC_2.22]: Likewise.
14614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14615         [GLIBC_2.22]: Likewise.
14616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14617         [GLIBC_2.22]: Likewise.
14618         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14619         Likewise.
14620         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14621         Likewise.
14622         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14623         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14624         [GLIBC_2.22]: Likewise.
14625         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14626         [GLIBC_2.22]: Likewise.
14627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14628         [GLIBC_2.22]: Likewise.
14629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14630         [GLIBC_2.22]: Likewise.
14631         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14632         Likewise.
14633         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14634         Likewise.
14635         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14636         Likewise.
14637         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14638         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14639
14640 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14641
14642         [BZ #18643]
14643         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14644         IPV6_PATHMTU, and IPV6_DONTFRAG.
14645
14646 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14647
14648         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14649         and _IO_UNBUFFERED.
14650         * libio/oldfileops.c: Likewise.
14651         * libio/wfileops.c: Likewise.
14652
14653 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14654
14655         * nscd/selinux.c: Delete selinux/flask.h include.
14656
14657 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14658
14659         [BZ #18641]
14660         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14661         (putpwent): Likewise.
14662         (getpwnam): Likewise.
14663         (getpwent_r): Likewise.
14664         (getpwuid_r): Likewise.
14665         (getpwnam_r): Likewise.
14666         (fgetpwent_r): Likewise.
14667
14668 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14669
14670         [BZ #18557]
14671         * inet/rcmd.c (__validuser2_sa): Check user first to
14672         short-circuit host check.
14673
14674 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14675             Mikhail Ilin  <m.ilin@samsung.com>
14676
14677         [BZ #17833]
14678         * elf/Makefile (tests): Add tst-nodelete.
14679         (modules-names): Add tst-nodelete-uniquemod.
14680         (tst-nodelete-uniquemod.so-no-z-defs): New.
14681         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14682         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14683         ($(objpfx)tst-nodelete): Likewise.
14684         ($(objpfx)tst-nodelete.out): Likewise.
14685         (LDFLAGS-tst-nodelete): Likewise.
14686         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14687         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14688         implement forced object deletion.
14689         (_dl_close): Pass false to _dl_close_worker.
14690         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14691         * elf/tst-nodelete.cc: New file.
14692         * elf/tst-nodeletelib.cc: Likewise.
14693         * elf/tst-znodeletelib.cc: Likewise.
14694         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14695
14696 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14697
14698         [BZ #18508]
14699         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14700         Depend on $(libdl).
14701         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14702         is not called infinitely times.
14703         (backtrace_helper): New function.
14704         (trace_arg): New struct.
14705         (st1): Enlarge stack size.
14706         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14707         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14708         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14709         Likewise.
14710
14711 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14712
14713         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14714
14715 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14716
14717         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14718         Include sys/types.h instead of bits/types.h.
14719         Remove inclusion of bits/wordsize.h.
14720
14721 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14722
14723         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14724         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14725         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14726         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14727         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14728         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14729
14730 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14731
14732         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14733         link-defines.sym.
14734         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14735         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14736         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14737         and LR_SIZE.
14738         * sysdeps/i386/link-defines.sym: New file.
14739
14740 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14741
14742         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14743         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14744         ($(objpfx)tst-audit3): New rule.
14745         ($(objpfx)tst-audit3.out): Likewise.
14746         * sysdeps/i386/tst-audit3.c: New file.
14747         * sysdeps/i386/tst-audit3.h: Likewise.
14748         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14749         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14750
14751 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14752
14753         [BZ #18633]
14754         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14755         pointer in C code.
14756         (__strcat_c): Likewise.
14757         (__strcat_g): Likewise.
14758
14759 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14760
14761         [BZ #18592]
14762         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14763
14764 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14765
14766         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14767         New function.  (__ieee754_sqrtf): New function.
14768         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14769         New function.
14770         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14771         New function.
14772
14773 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14774
14775         * sysdeps/ieee754/support.c: Remove unused file.
14776
14777 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14778
14779         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14780         registers instead of d ones so the layout is kernel abi compatible.
14781         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14782         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14783         Likewise.
14784
14785 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14786
14787         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14788
14789 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14790
14791         [BZ #18619]
14792         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14793         and return argument in case of subnormal argument.
14794
14795 2015-07-01  Martin Sebor  <msebor@redhat.com>
14796
14797         [BZ #18435]
14798         * nptl/Makefile: Add tst-once5.cc.
14799         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14800         Remove macro redefinitions.
14801         * nptl/tst-once5.cc: New test.
14802
14803 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14804
14805         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14806
14807         * sysdeps/arm/libm-test-ulps: Regenerated.
14808
14809         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14810         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14811
14812 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14813
14814         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14815         lll_lock_wait_private and lll_futex_wake probes.
14816
14817         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14818         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14819         Likewise.
14820         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14821         atomic_spin_nop.
14822         * sysdeps/x86_64/bits/atomic.h: Likewise.
14823         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14824         to atomic_spin_nop and move ...
14825         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14826         ... here and ...
14827         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14828         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14829         atomic_spin_nop instead of BUSY_WAIT_NOP.
14830         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14831         Likewise.
14832         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14833         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14834         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14835         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14836         instead of atomic_delay.
14837
14838 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14839
14840         [BZ #18613]
14841         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14842         X_ADJ not X when adjusting exponent.
14843         (__ieee754_gamma_r): Do intermediate computations in
14844         round-to-nearest then adjust overflowing and underflowing results
14845         as needed.
14846         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14847         of X_ADJ not X when adjusting exponent.
14848         (__ieee754_gammaf_r): Do intermediate computations in
14849         round-to-nearest then adjust overflowing and underflowing results
14850         as needed.
14851         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
14852         log of X_ADJ not X when adjusting exponent.
14853         (__ieee754_gammal_r): Do intermediate computations in
14854         round-to-nearest then adjust overflowing and underflowing results
14855         as needed.  Use 1.0L not 1.0f as numerator of division.
14856         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
14857         log of X_ADJ not X when adjusting exponent.
14858         (__ieee754_gammal_r): Do intermediate computations in
14859         round-to-nearest then adjust overflowing and underflowing results
14860         as needed.  Use 1.0L not 1.0f as numerator of division.
14861         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
14862         of X_ADJ not X when adjusting exponent.
14863         (__ieee754_gammal_r): Do intermediate computations in
14864         round-to-nearest then adjust overflowing and underflowing results
14865         as needed.  Use 1.0L not 1.0f as numerator of division.
14866         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
14867         to auto-libm-test-in.
14868         (tgamma_test): Use ALL_RM_TEST.
14869         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
14870         tests of tgamma with spurious-overflow.
14871         * math/auto-libm-test-out: Regenerated.
14872         * math/gen-libm-have-vector-test.sh: Do not check for START.
14873         * sysdeps/i386/fpu/libm-test-ulps: Update.
14874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14875
14876         [BZ #18612]
14877         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
14878         arguments, just return 0.5 times the argument, with underflow
14879         forced as needed.
14880         * math/auto-libm-test-in: Add more tests of j1.
14881         * math/auto-libm-test-out: Regenerated.
14882
14883         [BZ #16559]
14884         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
14885         (__ieee754_j1): Force underflow exception for small results.
14886         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14887         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
14888         (__ieee754_j1f): Force underflow exception for small results.
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_j1l.c: Include <float.h>.
14893         (__ieee754_j1l): Force underflow exception for small results.
14894         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14895         * math/auto-libm-test-in: Add more tests of j1 and jn.
14896         * math/auto-libm-test-out: Regenerated.
14897
14898         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
14899         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
14900         (PF_MPLS): Likewise.
14901         (AF_IB): Likewise.
14902         (AF_MPLS): Likewise.
14903         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
14904         value and macro.
14905         (MS_RMT_MASK): Include MS_LAZYTIME.
14906
14907 2015-06-26  Mel Gorman  <mgorman@suse.de>
14908
14909         [BZ #18502]
14910         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
14911         already minimal.
14912
14913 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
14914
14915         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
14916         (DT_MIPS_NUM): Update.
14917         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
14918         DT_MIPS_RLD_MAP_REL.
14919
14920 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
14921
14922         [BZ #16559]
14923         [BZ #18602]
14924         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
14925         round-to-nearest internally then recompute results that
14926         underflowed to zero in the original rounding mode.
14927         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14928         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14929         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14930         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14931         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
14932         * sysdeps/i386/fpu/libm-test-ulps: Update.
14933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14934
14935 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
14936
14937         * NEWS: Fixed description of link with vector math library.
14938
14939 2015-06-25  Andreas Schwab  <schwab@suse.de>
14940
14941         [BZ #18549]
14942         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
14943         * libio/test-fmemopen.c (do_test): Add test for it.
14944
14945 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14946
14947         [BZ #17841]
14948         * Makeconfig (no-pie-ldflag): New.
14949         (+link): Set to $(+link-pie) if default to PIE.
14950         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
14951         * config.make.in (build-pie-default): New.
14952         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
14953         is default.  AC_SUBST.
14954         * configure: Regenerated.
14955         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
14956
14957 2015-06-24  Roland McGrath  <roland@hack.frob.com>
14958
14959         * nptl/descr.h (struct pthread): Change type of field setxid_futex
14960         to 'unsigned int'.
14961
14962         * resolv/gai_misc.h (struct waitlist): Change type of field
14963         counterp to 'volatile unsigned int *'.
14964         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
14965         FUTEXADDR and OLDVAL.
14966         * resolv/getaddrinfo_a.c (getaddrinfo_a):
14967         Give local variable TOTAL type 'volatile unsigned int'.
14968         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14969         * resolv/gai_suspend.c (gai_suspend):
14970         Give local variable CNTR type 'unsigned int'.
14971
14972         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
14973         counterp to 'volatile unsigned int *'.
14974         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
14975         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
14976         (aio_suspend): Give local variable CNTR type 'unsigned int'.
14977         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
14978         Give local variable TOTAL type 'volatile unsigned int'.
14979         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14980
14981 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14982
14983         [BZ #18383]
14984         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
14985         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
14986         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
14987         comment for i386/x86-64.
14988         (test-xfail-tst-tlsalign-extern-static): Removed.
14989
14990 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * math/test-double.h: New file.
14993         * math/test-float.h: Likewise.
14994         * math/test-ldouble.h: Likewise.
14995         * math/test-math-inline.h: Likewise.
14996         * math/test-math-no-inline.h: Likewise.
14997         * math/test-math-scalar.h: Likewise.
14998         * math/test-math-vector.h: Likewise.
14999         * math/test-vec-loop.h: Remove file.  Contents moved into
15000         test-math-vector.h.
15001         * math/libm-test.inc (MATHCONST): Do not document macro.
15002         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15003         and test-math-scalar.h.
15004         (FUNC): Remove macro.
15005         (FUNC_TEST): Likewise.
15006         (FLOAT): Likewise.
15007         (MATHCONST): Likewise.
15008         (PRINTF_EXPR): Likewise.
15009         (PRINTF_XEXPR): Likewise.
15010         (PRINTF_NEXPR): Likewise.
15011         (TEST_DOUBLE): Likewise.
15012         (TEST_MATHVEC): Likewise.
15013         (__NO_MATH_INLINES): Likewise.
15014         * math/test-float.c: Include test-float.h, test-math-no-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_FLOAT): Likewise.
15024         (TEST_MATHVEC): Likewise.
15025         (__NO_MATH_INLINES): Likewise.
15026         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15027         and test-math-scalar.h.
15028         (FUNC): Remove macro.
15029         (FUNC_TEST): Likewise.
15030         (FLOAT): Likewise.
15031         (MATHCONST): Likewise.
15032         (PRINTF_EXPR): Likewise.
15033         (PRINTF_XEXPR): Likewise.
15034         (PRINTF_NEXPR): Likewise.
15035         (TEST_DOUBLE): Likewise.
15036         (TEST_MATHVEC): Likewise.
15037         (TEST_INLINE): Likewise.
15038         (__NO_MATH_INLINES): Likewise.
15039         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15040         test-math-scalar.h.
15041         (FUNC): Remove macro.
15042         (FUNC_TEST): Likewise.
15043         (FLOAT): Likewise.
15044         (MATHCONST): Likewise.
15045         (PRINTF_EXPR): Likewise.
15046         (PRINTF_XEXPR): Likewise.
15047         (PRINTF_NEXPR): Likewise.
15048         (TEST_FLOAT): Likewise.
15049         (TEST_MATHVEC): Likewise.
15050         (TEST_INLINE): Likewise.
15051         (__NO_MATH_INLINES): Likewise.
15052         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15053         and test-math-scalar.h.
15054         (FUNC): Remove macro.
15055         (FUNC_TEST): Likewise.
15056         (FLOAT): Likewise.
15057         (MATHCONST): Likewise.
15058         (PRINTF_EXPR): Likewise.
15059         (PRINTF_XEXPR): Likewise.
15060         (PRINTF_NEXPR): Likewise.
15061         (TEST_LDOUBLE): Likewise.
15062         (TEST_MATHVEC): Likewise.
15063         (TEST_INLINE): Likewise.
15064         (__NO_MATH_INLINES): Likewise.
15065         * math/test-ldouble.c: Include test-ldouble.h,
15066         test-math-no-inline.h and test-math-scalar.h.
15067         (FUNC): Remove macro.
15068         (FUNC_TEST): Likewise.
15069         (FLOAT): Likewise.
15070         (MATHCONST): Likewise.
15071         (PRINTF_EXPR): Likewise.
15072         (PRINTF_XEXPR): Likewise.
15073         (PRINTF_NEXPR): Likewise.
15074         (TEST_LDOUBLE): Likewise.
15075         (TEST_MATHVEC): Likewise.
15076         (__NO_MATH_INLINES): Likewise.
15077         * math/test-double-vlen2.h: Include test-double.h,
15078         test-math-no-inline.h and test-math-vector.h.
15079         (FLOAT): Remove macro.
15080         (FUNC): Likewise.
15081         (MATHCONST): Likewise.
15082         (PRINTF_EXPR): Likewise.
15083         (PRINTF_XEXPR): Likewise.
15084         (PRINTF_NEXPR): Likewise.
15085         (TEST_DOUBLE): Likewise.
15086         (TEST_MATHVEC): Likewise.
15087         (__NO_MATH_INLINES): Likewise.
15088         (CNCT): Likewise.
15089         (CONCAT): Likewise.
15090         (WRAPPER_NAME): Likewise.
15091         (WRAPPER_DECL): Likewise.
15092         (WRAPPER_DECL_ff): Likewise.
15093         (WRAPPER_DECL_fFF): Likewise.
15094         (VECTOR_WRAPPER): Likewise.
15095         (VECTOR_WRAPPER_ff): Likewise.
15096         (VECTOR_WRAPPER_fFF): Likewise.
15097         (VEC_LEN): New macro.
15098         * math/test-double-vlen4.h: Include test-double.h,
15099         test-math-no-inline.h and test-math-vector.h.
15100         (FLOAT): Remove macro.
15101         (FUNC): Likewise.
15102         (MATHCONST): Likewise.
15103         (PRINTF_EXPR): Likewise.
15104         (PRINTF_XEXPR): Likewise.
15105         (PRINTF_NEXPR): Likewise.
15106         (TEST_DOUBLE): Likewise.
15107         (TEST_MATHVEC): Likewise.
15108         (__NO_MATH_INLINES): Likewise.
15109         (CNCT): Likewise.
15110         (CONCAT): Likewise.
15111         (WRAPPER_NAME): Likewise.
15112         (WRAPPER_DECL): Likewise.
15113         (WRAPPER_DECL_ff): Likewise.
15114         (WRAPPER_DECL_fFF): Likewise.
15115         (VECTOR_WRAPPER): Likewise.
15116         (VECTOR_WRAPPER_ff): Likewise.
15117         (VECTOR_WRAPPER_fFF): Likewise.
15118         (VEC_LEN): New macro.
15119         * math/test-double-vlen8.h: Include test-double.h,
15120         test-math-no-inline.h and test-math-vector.h.
15121         (FLOAT): Remove macro.
15122         (FUNC): Likewise.
15123         (MATHCONST): Likewise.
15124         (PRINTF_EXPR): Likewise.
15125         (PRINTF_XEXPR): Likewise.
15126         (PRINTF_NEXPR): Likewise.
15127         (TEST_DOUBLE): Likewise.
15128         (TEST_MATHVEC): Likewise.
15129         (__NO_MATH_INLINES): Likewise.
15130         (CNCT): Likewise.
15131         (CONCAT): Likewise.
15132         (WRAPPER_NAME): Likewise.
15133         (WRAPPER_DECL): Likewise.
15134         (WRAPPER_DECL_ff): Likewise.
15135         (WRAPPER_DECL_fFF): Likewise.
15136         (VECTOR_WRAPPER): Likewise.
15137         (VECTOR_WRAPPER_ff): Likewise.
15138         (VECTOR_WRAPPER_fFF): Likewise.
15139         (VEC_LEN): New macro.
15140         * math/test-float-vlen4.h: Include test-float.h,
15141         test-math-no-inline.h and test-math-vector.h.
15142         (FLOAT): Remove macro.
15143         (FUNC): Likewise.
15144         (MATHCONST): Likewise.
15145         (PRINTF_EXPR): Likewise.
15146         (PRINTF_XEXPR): Likewise.
15147         (PRINTF_NEXPR): Likewise.
15148         (TEST_FLOAT): Likewise.
15149         (TEST_MATHVEC): Likewise.
15150         (__NO_MATH_INLINES): Likewise.
15151         (CNCT): Likewise.
15152         (CONCAT): Likewise.
15153         (WRAPPER_NAME): Likewise.
15154         (WRAPPER_DECL): Likewise.
15155         (WRAPPER_DECL_ff): Likewise.
15156         (WRAPPER_DECL_fFF): Likewise.
15157         (VECTOR_WRAPPER): Likewise.
15158         (VECTOR_WRAPPER_ff): Likewise.
15159         (VECTOR_WRAPPER_fFF): Likewise.
15160         (VEC_LEN): New macro.
15161         * math/test-float-vlen8.h: Include test-float.h,
15162         test-math-no-inline.h and test-math-vector.h.
15163         (FLOAT): Remove macro.
15164         (FUNC): Likewise.
15165         (MATHCONST): Likewise.
15166         (PRINTF_EXPR): Likewise.
15167         (PRINTF_XEXPR): Likewise.
15168         (PRINTF_NEXPR): Likewise.
15169         (TEST_FLOAT): Likewise.
15170         (TEST_MATHVEC): Likewise.
15171         (__NO_MATH_INLINES): Likewise.
15172         (CNCT): Likewise.
15173         (CONCAT): Likewise.
15174         (WRAPPER_NAME): Likewise.
15175         (WRAPPER_DECL): Likewise.
15176         (WRAPPER_DECL_ff): Likewise.
15177         (WRAPPER_DECL_fFF): Likewise.
15178         (VECTOR_WRAPPER): Likewise.
15179         (VECTOR_WRAPPER_ff): Likewise.
15180         (VECTOR_WRAPPER_fFF): Likewise.
15181         (VEC_LEN): New macro.
15182         * math/test-float-vlen16.h: Include test-float.h,
15183         test-math-no-inline.h and test-math-vector.h.
15184         (FLOAT): Remove macro.
15185         (FUNC): Likewise.
15186         (MATHCONST): Likewise.
15187         (PRINTF_EXPR): Likewise.
15188         (PRINTF_XEXPR): Likewise.
15189         (PRINTF_NEXPR): Likewise.
15190         (TEST_FLOAT): Likewise.
15191         (TEST_MATHVEC): Likewise.
15192         (__NO_MATH_INLINES): Likewise.
15193         (CNCT): Likewise.
15194         (CONCAT): Likewise.
15195         (WRAPPER_NAME): Likewise.
15196         (WRAPPER_DECL): Likewise.
15197         (WRAPPER_DECL_ff): Likewise.
15198         (WRAPPER_DECL_fFF): Likewise.
15199         (VECTOR_WRAPPER): Likewise.
15200         (VECTOR_WRAPPER_ff): Likewise.
15201         (VECTOR_WRAPPER_fFF): Likewise.
15202         (VEC_LEN): New macro.
15203         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15204         test-vec-loop.h.
15205         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15206         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15207         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15208         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15209         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15210         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15211         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15212
15213 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15214
15215         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15216         (__getlogin_r): ... this.
15217
15218 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15219
15220         [BZ #18594]
15221         * math/s_ccosh.c (__ccosh): Compare with least normal value
15222         instead of comparing class with FP_SUBNORMAL.
15223         * math/s_ccoshf.c (__ccoshf): Likewise.
15224         * math/s_ccoshl.c (__ccoshl): Likewise.
15225         * math/s_cexp.c (__cexp): Likewise.
15226         * math/s_cexpf.c (__cexpf): Likewise.
15227         * math/s_cexpl.c (__cexpl): Likewise.
15228         * math/s_csin.c (__csin): Likewise.
15229         * math/s_csinf.c (__csinf): Likewise.
15230         * math/s_csinh.c (__csinh): Likewise.
15231         * math/s_csinhf.c (__csinhf): Likewise.
15232         * math/s_csinhl.c (__csinhl): Likewise.
15233         * math/s_csinl.c (__csinl): Likewise.
15234         * math/s_ctan.c (__ctan): Likewise.
15235         * math/s_ctanf.c (__ctanf): Likewise.
15236         * math/s_ctanh.c (__ctanh): Likewise.
15237         * math/s_ctanhf.c (__ctanhf): Likewise.
15238         * math/s_ctanhl.c (__ctanhl): Likewise.
15239         * math/s_ctanl.c (__ctanl): Likewise.
15240         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15241         csin, csinh, ctan and ctanh.
15242         * math/auto-libm-test-out: Regenerated.
15243         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15244         * sysdeps/i386/fpu/libm-test-ulps: Update.
15245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15246
15247 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15248
15249         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15250         return value is wrong, print the expected value too.
15251
15252 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15253
15254         [BZ #18585]
15255         * elf/readlib.c (is_gdb_python_file): New.
15256         (process_file): Don't issue errors on filenames with -gdb.py
15257         suffix.
15258
15259 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15260
15261         * math/auto-libm-test-in: Add more tests of csin and csinh.
15262         * math/auto-libm-test-out: Regenerated.
15263         * math/libm-test.inc (csin_test_data): Remove tests moved to
15264         auto-libm-test-in.
15265         (csinh_test_data): Likewise.
15266
15267         [BZ #18593]
15268         * math/s_csin.c (__csin): Negate before rather than after possibly
15269         overflowing multiplication.
15270         * math/s_csinf.c (__csinf): Likewise.
15271         * math/s_csinh.c (__csinh): Likewise.
15272         * math/s_csinhf.c (__csinhf): Likewise.
15273         * math/s_csinhl.c (__csinhl): Likewise.
15274         * math/s_csinl.c (__csinl): Likewise.
15275         * math/auto-libm-test-in: Add some tests of csin and csinh.
15276         * math/auto-libm-test-out: Regenerated.
15277         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15278         (csinh_test_data): Likewise.
15279         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15280
15281         [BZ #18586]
15282         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15283         underflow exception for small results.
15284
15285 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15286
15287         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15288         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15289         variable and included header.
15290         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15291         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15292         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15293         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15294         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15295         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15296         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15297         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15298         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15299         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15300         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15301         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15302         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15303         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15304         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15305         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15306
15307 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15308
15309         [BZ #16526]
15310         [BZ #16538]
15311         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15312         (__sin): Force underflow exception for arguments with small
15313         absolute value.
15314         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15315         (__kernel_sinf): Force underflow exception for arguments with
15316         small absolute value.
15317         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15318         (__kernel_sincosl): Force underflow exception for arguments with
15319         small absolute value.
15320         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15321         (__kernel_sinl): Force underflow exception for arguments with
15322         small absolute value.
15323         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15324         (__kernel_sincosl): Force underflow exception for arguments with
15325         small absolute value.
15326         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15327         (__kernel_sinl): Force underflow exception for arguments with
15328         small absolute value.
15329         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15330         (__kernel_sinl): Force underflow exception for arguments with
15331         small absolute value.
15332         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15333         (__kernel_sinf): Force underflow exception for arguments with
15334         small absolute value.
15335         * math/auto-libm-test-in: Add more tests of sin and sincos.
15336         * math/auto-libm-test-out: Regenerated.
15337
15338         [BZ #18245]
15339         [BZ #18583]
15340         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15341         (__kernel_standard_l): Use feholdexcept and fesetenv around
15342         conversion to double instead of special-casing overflow and
15343         underflow.
15344         * math/libm-test.inc (fmod_test_data): Add more tests.
15345         (remainder_test_data): Likewise.
15346         (sqrt_test_data): Likewise.
15347
15348 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15349
15350         [BZ #17403]
15351         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15352         atomic_read_barrier, atomic_write_barrier): Define.
15353         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15354         atomic_read_barrier, atomic_write_barrier): Define.
15355
15356 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15357
15358         * math/Makefile [$(PERL) != no]
15359         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15360         dependency on libm-test.stmp below the inclusion of Rules.
15361
15362 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15363
15364         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15365         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15366         and included header.
15367         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15368         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15369         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15370         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15371         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15372         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15373         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15374         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15375         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15376         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15377         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15378         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15379         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15380         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15381         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15382         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15383         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15384         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15385         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15386
15387 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15388
15389         [BZ #18371]
15390         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15391         intermediate but not final result might underflow.
15392         * math/s_csqrtf.c (__csqrtf): Likewise.
15393         * math/s_csqrtl.c (__csqrtl): Likewise.
15394         * math/auto-libm-test-in: Add more tests of csqrt.
15395         * math/auto-libm-test-out: Regenerated.
15396         * sysdeps/i386/fpu/libm-test-ulps: Update.
15397
15398         [BZ #18219]
15399         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15400         threshold on absolute value of exponent for which scaling is used.
15401         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15402         * math/auto-libm-test-in: Add more tests of exp2.
15403         * math/auto-libm-test-out: Regenerated.
15404
15405 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15406
15407         [BZ #17977]
15408         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15409         when initializing interface list, based on the bug analysis
15410         and the patch proposed by Eric Newton.
15411         * resolv/tst-res_hconf_reorder.c: New test.
15412         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15413         tst-res_hconf_reorder.
15414         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15415         and $(shared-thread-library).
15416         (tst-res_hconf_reorder-ENV): New variable.
15417
15418         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15419         in comment.
15420
15421 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15422
15423         [BZ #16353]
15424         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15425         (__expm1): Force underflow exception for arguments with small
15426         absolute value.
15427         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15428         (__expm1f): Force underflow exception for arguments with small
15429         absolute value.
15430         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15431         (__expm1): Force underflow exception for arguments with small
15432         absolute value.
15433         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15434         (__expm1f): Force underflow exception for arguments with small
15435         absolute value.
15436         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15437         Check for small arguments before calling __expm1.
15438         * math/auto-libm-test-in: Do not mark underflow exceptions as
15439         possibly missing for bug 16353.
15440         * math/auto-libm-test-out: Regenerated.
15441
15442 2015-06-22  Andreas Schwab  <schwab@suse.de>
15443
15444         [BZ #18513]
15445         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15446         PTR queries.
15447
15448 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15449
15450         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15451
15452         * string/strcoll_l.c: Remove unused struct element idxnow.
15453
15454 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15455
15456         [BZ #18569]
15457         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15458         underflow and return argument in case of subnormal argument.
15459         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15460         Likewise.
15461         * math/auto-libm-test-in: Add more tests of expm1.
15462         * math/auto-libm-test-out: Regenerated.
15463
15464         [BZ #16361]
15465         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15466         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15467         tiny results.
15468         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15469         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15470         tiny results.
15471         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15472         mark underflow exceptions as possibly missing for bug 16361.
15473         * math/auto-libm-test-out: Regenerated.
15474
15475 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15476
15477         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15478         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15479         Remove variable.
15480         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15481         (test-xfail-XOPEN2K8/utmpx.h/conform).
15482
15483         * conform/conformtest.pl ($xerrors): New variable.
15484         (note_error): New function.
15485         (compiletest): New argument $xfail.  Use not_error.
15486         (runtest): Likewise.
15487         (top level): Handle xfail- lines.  Update calls to compiletest and
15488         runtest.  Handle xfail- and optional- in headers listed with
15489         allow-header.
15490         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15491         (O_EXEC): Likewise.
15492         (O_SEARCH): Likewise.
15493         * conform/data/stropts.h-data (ioctl): Likewise.
15494         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15495         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15496         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15497         (msghdr.msg_controllen): Likewise.
15498         (cmsghdr.cmsg_len): Likewise.
15499         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15500         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15501         variable.
15502         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15503         (test-xfail-XPG4/stropts.h/conform): Likewise.
15504         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15505         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15506         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15507         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15508         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15509         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15510         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15511         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15512         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15513         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15514         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15515         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15516         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15517         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15518         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15519         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15520         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15521         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15522         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15523
15524 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15525
15526         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15527         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15528         definitions for proper unfolding of __MATHDECL_VEC.
15529
15530 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15531
15532         * benchtests/bench-strcoll.c:
15533         Include string.h.
15534         (main): Remove unused variable res.
15535
15536 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15537
15538         * timezone/Makefile (%/UTC %/Universal):
15539         Generate test-result files for UTC and Universal.
15540
15541 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15542
15543         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15544
15545 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15546
15547         [BZ #16350]
15548         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15549         for arguments with small absolute value.
15550         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15551         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15552         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15553         (__asinh): Force underflow exception for arguments with small
15554         absolute value.
15555         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15556         (__asinhf): Force underflow exception for arguments with small
15557         absolute value.
15558         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15559         (__asinhl): Force underflow exception for arguments with small
15560         absolute value.
15561         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15562         (__asinhl): Force underflow exception for arguments with small
15563         absolute value.
15564         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15565         (__asinhl): Force underflow exception for arguments with small
15566         absolute value.
15567         * math/auto-libm-test-in: Do not mark underflow exceptions as
15568         possibly missing for bug 16350.
15569         * math/auto-libm-test-out: Regenerated.
15570
15571         * include/bits/ipc.h: Remove file.
15572         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15573         variable.
15574         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15575         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15576         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15577         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15578         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15579         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15580         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15581         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15582         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15583
15584         * math/auto-libm-test-in: Remove spurious underflow allowance for
15585         tests of cexp.
15586         * math/auto-libm-test-out: Regenerated.
15587
15588         [BZ #18558]
15589         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15590         unconditional definition.
15591         (MCAST_BLOCK_SOURCE): Likewise.
15592         (MCAST_UNBLOCK_SOURCE): Likewise.
15593         (MCAST_LEAVE_GROUP): Likewise.
15594         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15595         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15596         (MCAST_MSFILTER): Likewise.
15597         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15598         Remove variable.
15599         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15600         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15601         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15602         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15603         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15604
15605 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15606
15607         * NEWS: Mention addition of x86_64 vector sincosf.
15608         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15609         * math/test-float-vlen4.h: Likewise.
15610         * math/test-float-vlen8.h: Likewise.
15611         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15612         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15613         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15614         * sysdeps/x86_64/fpu/Versions: New versions added.
15615         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15616         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15617         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15618         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15619         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15620         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15621         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15622         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15623         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15624         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15625         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15626         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15627         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15628         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15629         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15630         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15631         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15632         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15633         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15634         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15635         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15636         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15637         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15638         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15639
15640         * NEWS: Mention addition of x86_64 vector sincos.
15641         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15642         * math/math.h (__MATHDECL_VEC): New macro.
15643         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15644         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15645         declaration under condition.
15646         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15647         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15648         TEST_VEC_LOOP change.
15649         * math/test-double-vlen4.h: Likewise.
15650         * math/test-double-vlen8.h: Likewise.
15651         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15652         * math/test-float-vlen4.h: Likewise.
15653         * math/test-float-vlen8.h: Likewise.
15654         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15655         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15656         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15657         * sysdeps/x86_64/fpu/Versions: New versions added.
15658         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15659         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15660         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15661         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15662         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15663         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15664         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15665         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15666         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15667         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15668         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15669         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15670         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15671         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15672         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15673         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15674         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15675         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15676         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15677         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15678         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15679         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15680         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15681         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15682
15683         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15684         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15685         redirections for powf.
15686         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15687         * sysdeps/x86_64/fpu/Versions: New versions added.
15688         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15689         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15690         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15691         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15692         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15693         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15694         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15695         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15696         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15697         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15698         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15699         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15700         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15701         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15702         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15703         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15704         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15705         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15706         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15707         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15708         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15709         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15710         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15711         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15712         * math/test-float-vlen16.h: Fixed 2 argument macro.
15713         * math/test-float-vlen4.h: Likewise.
15714         * math/test-float-vlen8.h: Likewise.
15715         * NEWS: Mention addition of x86_64 vector powf.
15716
15717 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15718
15719         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15720         and redefine.
15721         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15722         and redefine.
15723         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15724         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15725         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15726
15727         [BZ #18553]
15728         * resource/getpriority.c (getpriority): Rename to __getpriority
15729         and define as weak alias of __getpriority.
15730         * resource/setpriority.c (setpriority): Rename to __setpriority
15731         and define as weak alias of __setpriority.
15732         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15733         __getpriority and define as weak alias of __getpriority.
15734         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15735         __setpriority and define as weak alias of __setpriority.
15736         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15737         strong name.
15738         (setpriority): Use __setpriority as strong name.
15739         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15740         __getpriority and define as weak alias of __getpriority.
15741         * include/sys/resource.h (__getpriority): Declare.  Use
15742         libc_hidden_proto.
15743         (__setpriority): Likewise.
15744         (getpriority): Don't use libc_hidden_proto.
15745         (setpriority): Likewise.
15746         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15747         getpriority.  Call __setpriority instead of setpriority.
15748         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15749         Remove variable.
15750
15751         [BZ #18547]
15752         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15753         as weak alias of __getttynam.  Use prototype function definition.
15754         Call __setttyent, __getttyent and __endttyent instead of
15755         setttyent, getttyent and endttyent.
15756         (getttyent): Rename to __getttyent and define as weak alias of
15757         __getttyent.  Call __setttyent instead of setttyent.  Call
15758         __fgets_unlocked instead of fgets_unlocked.
15759         (setttyent): Rename to __setttyent and define as weak alias of
15760         __setttyent.
15761         (endttyent): Rename to __endttyent and define as weak alias of
15762         __endttyent.
15763         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15764         (__setttyent): Likewise.
15765         (__endttyent): Likewise.
15766         (getttyent): Don't use libc_hidden_proto.
15767         (setttyent): Likewise.
15768         (endttyent): Likewise.
15769         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15770         __endttyent instead of setttyent, getttyent and endttyent.
15771         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15772         Remove variable.
15773
15774         [BZ #18546]
15775         * socket/recv.c (__recv): Use libc_hidden_def.
15776         * socket/socket.c (__socket): Likewise.
15777         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15778         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15779         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15780         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15781         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15782         libc_hidden_def.
15783         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15784         libc_hidden_weak.
15785         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15786         Use libc_hidden_proto.
15787         (__recv): Likewise.
15788         * socket/Versions (libc): Export __recv and __socket at version
15789         GLIBC_PRIVATE.
15790         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15791         instead of recv.
15792         (init_mq_netlink): Call __socket instead of socket.
15793         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15794         Remove variable.
15795
15796         [BZ #18545]
15797         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15798         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15799         hidden_weak.
15800         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15801         define as alias of __mq_timedsend.  Use hidden_weak.
15802         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15803         __mq_timedsend as strong name.
15804         (mq_timedreceive): Use __mq_timedreceive as strong name.
15805         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15806         (__mq_timedreceive): Likewise.
15807         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15808         __mq_timedreceive instead of mq_timedreceive.
15809         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15810         instead of mq_timedsend.
15811         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15812         Remove variable.
15813
15814         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15815         hidden_def and hidden_weak instead of libc_hidden_def and
15816         libc_hidden_weak.
15817         (top level): Refer to hidden_def in comment.
15818         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15819         macro.  Use it instead of libc_hidden_def.
15820         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15821         specify __GI_* name explicitly.
15822         (mq_timedreceive): Likewise.
15823         (mq_setattr): Likewise.
15824
15825         [BZ #18544]
15826         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15827         __pthread_barrier_init and define as weak alias of
15828         __pthread_barrier_init.
15829         * sysdeps/sparc/nptl/pthread_barrier_init.c
15830         (pthread_barrier_init): Likewise.
15831         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15832         __pthread_barrier_wait and define as weak alias of
15833         __pthread_barrier_wait.
15834         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15835         (pthread_barrier_wait): Likewise.
15836         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15837         (pthread_barrier_wait): Likewise.
15838         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15839         (pthread_barrier_wait): Likewise.
15840         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15841         (pthread_barrier_wait): Likewise.
15842         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15843         __pthread_barrier_wait at version GLIBC_PRIVATE.
15844         * include/pthread.h (__pthread_barrier_init): Declare.
15845         (__pthread_barrier_wait): Likewise.
15846         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15847         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15848         (helper_thread): Likewise.
15849         (init_mq_netlink): Call __pthread_barrier_init instead of
15850         pthread_barrier_init.
15851
15852         [BZ #18542]
15853         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
15854         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
15855         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
15856         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
15857         vswscanf.
15858         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
15859         Remove variable.
15860
15861         [BZ #18540]
15862         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
15863         strong alias of _IO_fflush.  Use libc_hidden_def.
15864         * libio/iofflush_u.c (fflush_unlocked): Rename to
15865         __fflush_unlocked and define as weak alias of __fflush_unlocked.
15866         Use libc_hidden_weak.
15867         * include/stdio.h (__fflush_unlocked): Declare.  Use
15868         libc_hidden_proto.
15869         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
15870         fflush_unlocked.
15871         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
15872         Remove variable.
15873
15874         [BZ #18539]
15875         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
15876         define as weak alias of __addseverity.
15877         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
15878         Remove variable.
15879         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
15880         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
15881         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
15882
15883         [BZ #18536]
15884         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
15885         (__tfind): Likewise.
15886         (__tdelete): Likewise.
15887         (__twalk): Likewise.
15888         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
15889         __twalk to GLIBC_PRIVATE.
15890         * include/search.h (__tsearch): Use libc_hidden_proto.
15891         (__tfind): Likewise.
15892         (__tdelete): Likewise.
15893         (__twalk): Likewise.
15894         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
15895         Call __tdelete instead of tdelete.
15896         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
15897         tfind.  Call __tsearch instead of tsearch.
15898         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
15899         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
15900         Remove variable.
15901         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
15902
15903         [BZ #18534]
15904         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
15905         (dprintf): Define as a weak alias of __dprintf, not a strong
15906         alias.
15907         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
15908         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
15909         dprintf.
15910         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
15911         Remove variable.
15912         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
15913         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
15914
15915         [BZ #18533]
15916         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
15917         not a strong alias.
15918         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
15919         Remove variable.
15920
15921         [BZ #18532]
15922         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
15923         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
15924         (in6addr_loopback): Rename to __in6addr_loopback and define as
15925         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
15926         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
15927         libc_hidden_proto.
15928         (__in6addr_any): Likewise.
15929         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
15930         in6addr_any.
15931         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
15932         variable.
15933         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
15934
15935 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
15936
15937         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
15938         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
15939         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
15940         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15941         redirections for pow.
15942         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15943         * sysdeps/x86_64/fpu/Versions: New versions added.
15944         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15945         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15946         build of SSE, AVX2 and AVX512 IFUNC versions.
15947         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
15948         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
15949         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
15950         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
15951         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
15952         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
15953         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
15954         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
15955         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
15956         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
15957         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
15958         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
15959         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
15960         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
15961         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15962         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15963         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15964         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15965         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15966         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15967         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15968         * NEWS: Mention addition of x86_64 vector pow.
15969
15970         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15971         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15972         redirections for expf.
15973         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15974         * sysdeps/x86_64/fpu/Versions: New versions added.
15975         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15976         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15977         build of SSE, AVX2 and AVX512 IFUNC versions.
15978         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
15979         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
15980         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
15981         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
15982         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
15983         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
15984         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
15985         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
15986         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
15987         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
15988         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
15989         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
15990         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
15991         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15992         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15993         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15994         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15995         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15996         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15997         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15998         * NEWS: Mention addition of x86_64 vector expf.
15999
16000         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16001         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16002         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16003         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16004         redirections for exp.
16005         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16006         * sysdeps/x86_64/fpu/Versions: New versions added.
16007         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16008         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16009         build of SSE, AVX2 and AVX512 IFUNC versions.
16010         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16011         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16012         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16013         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16014         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16015         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16016         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16017         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16018         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16019         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16020         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16021         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16022         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16023         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16024         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16025         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16026         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16027         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16028         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16029         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16030         * NEWS: Mention addition of x86_64 vector exp.
16031
16032         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16033         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16034         redirections for logf.
16035         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16036         * sysdeps/x86_64/fpu/Versions: New versions added.
16037         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16038         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16039         build of SSE, AVX2 and AVX512 IFUNC versions.
16040         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16041         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16042         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16043         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16044         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16045         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16046         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16047         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16048         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16049         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16050         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16051         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16052         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16053         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16054         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16055         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16056         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16057         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16058         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16059         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16060         * NEWS: Mention addition of x86_64 vector logf.
16061
16062         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16063         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16064         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16065         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16066         redirections for log.
16067         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16068         * sysdeps/x86_64/fpu/Versions: New versions added.
16069         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16070         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16071         build of SSE, AVX2 and AVX512 IFUNC versions.
16072         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16073         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16074         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16075         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16076         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16077         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16078         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16079         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16080         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16081         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16082         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16083         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16084         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16085         test.
16086         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16087         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16088         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16089         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16090         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16091         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16092         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16093         * NEWS: Mention addition of x86_64 vector log.
16094
16095 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16096
16097         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16098         cfi_adjust_cfa_offset argument.
16099         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16100         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16101
16102         [BZ #18034]
16103         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16104         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16105         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16106         ordering using ldar.
16107         (_dl_tlsdesc_dynamic): Likewise.
16108         (_dl_tlsdesc_return_lazy): Likewise.
16109         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16110         relaxed atomics instead of volatile and synchronize with release store.
16111         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16112         volatile.
16113         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16114
16115 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16116
16117         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16118         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16119         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16120         * sysdeps/x86_64/fpu/Versions: New versions added.
16121         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16122         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16123         build of SSE, AVX2 and AVX512 IFUNC versions.
16124         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16125         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16126         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16127         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16128         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16129         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16130         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16131         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16132         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16133         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16134         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16135         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16136         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16137         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16138         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16139         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16140         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16141         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16142         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16143         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16144         * NEWS: Mention addition of x86_64 vector sinf.
16145
16146 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16147
16148         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16149         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16150         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16151         Remove variable.
16152         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16153         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16154
16155 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16156
16157         [BZ #18530]
16158         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16159         strong alias of _IO_fputs.  Use libc_hidden_def.
16160         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16161         and define as weak alias of __fputs_unlocked.  Use
16162         libc_hidden_weak.
16163         * include/stdio.h (__fputs_unlocked): Declare.  Use
16164         libc_hidden_proto.
16165         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16166         fputs_unlocked.
16167
16168         [BZ #18529]
16169         * resolv/netdb.h [__USE_POSIX]: Change condition to
16170         [__USE_XOPEN2K].
16171         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16172         not expect.
16173         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16174         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16175         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16176         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16177         [XPG4 || UNIX98] (AI_ALL): Likewise.
16178         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16179         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16180         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16181         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16182         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16183         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16184         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16185         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16186         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16187         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16188         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16189         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16190         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16191         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16192         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16193         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16194         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16195         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16196         [XPG4 || UNIX98] (gai_strerror): Likewise.
16197         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16198         [XPG4 || UNIX98] (getnameinfo): Likewise.
16199
16200         [BZ #18528]
16201         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16202         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16203         __USE_XOPEN2K8].
16204         (getgrent): Likewise.
16205         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16206         expect.
16207         [XPG3 || POSIX2008] (endgrent): Likewise.
16208         [XPG3] (setgrent): Likewise.
16209         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16210         variable.
16211         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16212
16213         [BZ #18527]
16214         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16215         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16216         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16217         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16218         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16219         * include/unistd.h (__getlogin_r): Declare.  Use
16220         libc_hidden_proto.
16221         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16222         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16223         variable.
16224         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16225         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16226         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16227
16228 2015-06-12  Martin Sebor  <msebor@redhat.com>
16229
16230         [BZ #18512]
16231         * Makerules (check-install-supported): New target.
16232         (install): Add check-install-supported as a dependency.
16233         * manual/install.texi (Installing the C Library): Document
16234         that overriding prefix and exec_prefix is not supported.
16235         Mention DESTDIR.
16236         * INSTALL: Regenerate from the above.
16237
16238 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16239
16240         [BZ #18519]
16241         * posix/Versions (libc): Export __libc_pread at version
16242         GLIBC_PRIVATE.
16243         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16244         instead of pread.
16245         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16246         variable.
16247
16248         [BZ #18522]
16249         * misc/efgcvt_r.c
16250         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16251         (cvt_symbol): Use weak_alias instead of strong_alias.
16252         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16253         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16254         Remove variable.
16255         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16256         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16257
16258         [BZ #18520]
16259         * inet/herrno.c (h_errno): Rename to __h_errno.
16260         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16261         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16262         to __h_errno instead of h_errno.
16263         * nptl/herrno.c (h_errno): Rename to __h_errno.
16264         (__h_errno_location): Refer to __h_errno not h_errno.
16265         * resolv/Versions (h_errno): Rename to __h_errno.
16266         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16267         Remove variable.
16268         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16269
16270 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16271
16272         * configure.ac: More strict check for AVX512 assembler support.
16273         * configure: Regenerated.
16274
16275         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16276         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16277         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16278         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16279         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16280         * sysdeps/x86_64/fpu/Versions: New versions added.
16281         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16282         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16283         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16284         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16285         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16286         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16287         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16288         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16289         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16290         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16291         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16292         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16293         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16294         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16295         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16296         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16297         test.
16298         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16299         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16300         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16301         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16302         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16303         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16304         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16305         * NEWS: Mention addition of x86_64 vector sin.
16306
16307 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16308
16309         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16310         comment.
16311
16312 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16313
16314         [BZ #18479]
16315         * nptl/pt-interp.c: New file.
16316         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16317         Add pt-interp.
16318         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16319         $(common-objpfx)runtime-linker.h.
16320
16321 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16322
16323         * Makeconfig (+interp): Remove unused variable.
16324         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16325         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16326         $(elf-objpfx)runtime-linker.h.
16327         ($(elf-objpfx)runtime-linker.h): Rename to
16328         $(common-objpfx)runtime-linker.h and move ...
16329         * Makerules [$(build-shared) = yes]: ... here.
16330         * elf/interp.c: Include <runtime-linker.h> instead of
16331         <elf/runtime-linker.h>.
16332
16333 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16334
16335         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16336         (__gettimeofday_syscall): Remove vsyscall fallback.
16337         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16338         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16339         Add syscall fallback function.
16340         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16341         if vDSO is not present.
16342         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16343         fallback function.
16344         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16345         present.
16346         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16347         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16348
16349 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16350
16351         [BZ #18497]
16352         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16353         of wcscmp.
16354         (wcscmp): Define as weak alias of WCSCMP.
16355         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16356         wcscoll.
16357         (USE_HIDDEN_DEF): Define.
16358         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16359         __wcscoll.  Don't use libc_hidden_weak.
16360         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16361         wcscmp.
16362         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16363         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16364         __GI_wcscmp.
16365         (weak_alias): Undefine and redefine.
16366         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16367         __wcscmp and define as weak alias of __wcscmp.
16368         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16369         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16370         (__wcscoll): Likewise.
16371         (wcscmp): Don't use libc_hidden_proto.
16372         (wcscoll): Likewise.
16373         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16374         wcscoll.
16375         * posix/regexec.c (check_node_accept_bytes): Likewise.
16376         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16377         variable.
16378         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16379         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16380
16381         [BZ #18507]
16382         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16383         __fstatvfs and define as weak alias of __fstatvfs.  Use
16384         libc_hidden_weak.
16385         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16386         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16387         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16388         Define as alias of __fstatvfs, not fstatvfs.
16389         (fstatvfs64): Likewise.
16390         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16391         Define as alias of __statvfs, not statvfs.
16392         (statvfs64): Likewise.
16393         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16394         Remove variable.
16395
16396 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16397
16398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16399         (HAVE_GETCPU_VSYSCALL): Define.
16400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16401         (HAVE_GETCPU_VSYSCALL): Likewise.
16402         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16403         * sysdeps/unix/sysv/linux/sched_getcpu.c
16404         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16405         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16406         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16407         prototype.
16408         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16409         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16410         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16411         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16412         Define.
16413         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16414         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16415         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16416         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16417
16418 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16419
16420         * sysdeps/x86_64/fpu/Makefile: New file.
16421         * sysdeps/x86_64/fpu/Versions: New file.
16422         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16423         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16424         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16425         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16426         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16427         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16428         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16429         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16430         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16431         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16432         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16433         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16434         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16435         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16436         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16437         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16438         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16439         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16440         * sysdeps/x86_64/configure: Regenerated.
16441         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16442         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16443         * manual/install.texi (Configuring and compiling): Document
16444         --disable-mathvec.
16445         * INSTALL: Regenerated.
16446         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16447
16448         * math/Makefile: Added rules for vector tests.
16449         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16450         declaration under condition.
16451         * math/test-double-vlen2.h: New file.
16452         * math/test-double-vlen4.h: New file.
16453         * math/test-double-vlen8.h: New file.
16454         * math/test-vec-loop.h: Added initialization macro.
16455         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16456         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16457         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16458         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16459         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16460         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16461         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16462         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16463         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16464         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16465         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16466
16467         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16468         * sysdeps/x86_64/fpu/Versions: New versions added.
16469         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16470         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16471         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16472         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16473         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16474         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16475         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16476         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16477         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16478         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16479         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16480         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16481         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16482         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16483         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16484         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16485         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16486         * NEWS: Mention addition of x86_64 vector cosf.
16487
16488         * math/Makefile: Added CFLAGS for new tests.
16489         * math/test-float-vlen16.h: New file.
16490         * math/test-float-vlen4.h: New file.
16491         * math/test-float-vlen8.h: New file.
16492         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16493         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16494         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16495         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16496         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16497         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16498         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16499         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16500         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16501         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16502         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16503
16504 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16505
16506         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16507         * locale/programs/ld-ctype.c: Likewise.
16508
16509 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16510
16511         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16512         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16513         bit_ZMM16_31_state): New macro.
16514         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16515         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16516
16517 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16518
16519         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16520
16521 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16522
16523         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16524
16525 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16526
16527         [BZ #18498]
16528         * libio/memstream.c (open_memstream): Rename to __open_memstream
16529         and define as weak alias of __open_memstream.
16530         * include/stdio.h (__open_memstream): Declare.  Use
16531         libc_hidden_proto.
16532         (open_memstream): Don't use libc_hidden_proto.
16533         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16534         open_memstream.
16535         * posix/getopt.c (_getopt_internal_r): Likewise.
16536         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16537         variable.
16538         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16539         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16540         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16541
16542         [BZ #18496]
16543         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16544         instead of wcrtomb.
16545
16546         [BZ #18483]
16547         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16548         [__USE_XOPEN2K8].  Remove redundant #endif.
16549         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16550         Remove redundant #if.
16551         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16552         Remove variable.
16553         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16554         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16555
16556         [BZ #18495]
16557         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16558         (__iswlower): Likewise.
16559         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16560         (__iswlower): Likewise.
16561         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16562         instead of towlower.
16563         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16564         instead of iswlower.  Call __towupper instead of towupper.
16565         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16566         instead of iswalnum.
16567
16568 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16569
16570         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16571         errors to stderr.
16572
16573 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16574
16575         [BZ #15661]
16576         [BZ #17322]
16577         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16578         Check for overflow properly.  Check for O_APPEND.  Ignore large
16579         file system block sizes.  Add comments about problems.
16580         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16581         * manual/filesys.texi (Storage Allocation): New node.
16582
16583 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16584
16585         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16586         cancellable syscalls.
16587         (SYS_ify): Add guard to no redefine it.
16588         (INLINE_SYSCALL): Likewise.
16589         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16590         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16591         SYSCALL_CANCEL instead.
16592         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16593         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16594         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16595         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16596         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16597         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16598         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16599         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16600         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16601         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16602         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16603         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16604         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16605         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16606         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16607         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16608         Likewise.
16609         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16610         (__libc_pread64): Likewise.
16611         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16612         (__libc_preadv): Likewise.
16613         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16614         (__libc_readv64): Likewise.
16615         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16616         (__libc_pwrite): Likewise.
16617         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16618         (__libc_pwrite64): Likewise.
16619         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16620         (__libc_pwritev): Likewise.
16621         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16622         (__libc_pwritev64): Likewise.
16623         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16624         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16625         (sync_file_range): Likewise.
16626         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16627         Likewise.
16628         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16629         Likewise.
16630         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16631         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16632         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16633         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16634         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16635         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16636         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16637         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16639         Likewise.
16640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16641         (__libc_read64): Likewise.
16642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16643         Likewise.
16644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16645         Likewise.
16646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16647         Likewise.
16648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16649         Likewise.
16650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16651         (__libc_pread64): Likewise.
16652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16653         Likewise.
16654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16655         (__libc_pwrite64): Likewise.
16656         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16657         (sync_file_range): Likewise.
16658         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16659         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16660         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16661         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16662         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16663         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16664         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16665         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16666         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16667         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16668         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16669         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16670         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16671         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16672         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16673         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16674         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16675         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16676         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16677         Likewise.
16678         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16679         Likewise.
16680         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16681         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16682         Likewise.
16683         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16684         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16685         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16686         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16687         Likewise.
16688         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16689         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16690         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16691         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16692         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16693
16694 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16695
16696         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16697         Include dl-vdso.
16698         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16699         Use VDSO routines for gettimeofday, clock_gettime if
16700         available.
16701         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16702         Declare VDSO symbols.
16703         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16704         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16705         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16706         * sysdeps/unix/sysv/linux/arm/Versions: Add
16707         __vdso_clock_gettime.
16708
16709 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16710
16711         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16712         be an inline implementation regardless of library is built within.
16713         (open_not_cancel_2): Likewise.
16714         (__read_nocancel): Likewise.
16715         (__write_nocancel): Likewise.
16716         (openat_not_cancel): Likewise.
16717         (openat_not_cancel_3): Likewise.
16718         (openat64_not_cancel): Likewise.
16719         (openat64_not_cancel_3): Likewise.
16720         (__close_nocancel): Likewise.
16721         (pause_not_cancel): Likewise.
16722         (nanosleep_not_cancel): Likewise.
16723         (sigsuspend_not_cancel): Likewise.
16724
16725 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16726
16727         [BZ #14958]
16728         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16729         wake-up.
16730         (__pthread_rwlock_rdlock_slow): Likewise.
16731         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16732         Likewise.
16733         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16734         Likewise.
16735         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16736         * nptl/tst-rwlock16.c: New file.
16737         * nptl/Makefile (tests): Add new test.
16738
16739 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16740
16741         [BZ #18324]
16742         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16743         missing wake-up of readers.
16744         * nptl/tst-rwlock15.c: New file.
16745         * nptl/Makefile (tests): Add new test.
16746
16747 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16748
16749         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16750         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16751         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16752         and __nacl_supply_interface_rtld.
16753         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16754         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16755         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16756         Add __nacl_supply_interface_rtld.
16757         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16758
16759 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16760
16761         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16762         isfinite.
16763         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16764         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16765
16766 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16767
16768         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16769         __signbit* with standard C99 macros.
16770         * math/e_exp10l.c: Likewise.
16771         * math/e_exp2l.c: Likewise.
16772         * math/e_scalb.c: Likewise.
16773         * math/e_scalbf.c: Likewise.
16774         * math/e_scalbl.c: Likewise.
16775         * math/s_ldexp.c: Likewise.
16776         * math/s_ldexpf.c: Likewise.
16777         * math/s_ldexpl.c: Likewise.
16778         * math/w_atan2.c: Likewise.
16779         * math/w_atan2f.c: Likewise.
16780         * math/w_atan2l.c: Likewise.
16781         * math/w_cosh.c: Likewise.
16782         * math/w_coshf.c: Likewise.
16783         * math/w_coshl.c: Likewise.
16784         * math/w_exp10.c: Likewise.
16785         * math/w_exp10f.c: Likewise.
16786         * math/w_exp10l.c: Likewise.
16787         * math/w_exp2.c: Likewise.
16788         * math/w_exp2f.c: Likewise.
16789         * math/w_exp2l.c: Likewise.
16790         * math/w_fmod.c: Likewise.
16791         * math/w_fmodf.c: Likewise.
16792         * math/w_fmodl.c: Likewise.
16793         * math/w_hypot.c: Likewise.
16794         * math/w_hypotf.c: Likewise.
16795         * math/w_hypotl.c: Likewise.
16796         * math/w_jnl.c: Likewise.
16797         * math/w_lgamma.c: Likewise.
16798         * math/w_lgamma_r.c: Likewise.
16799         * math/w_lgammaf.c: Likewise.
16800         * math/w_lgammaf_r.c: Likewise.
16801         * math/w_lgammal.c: Likewise.
16802         * math/w_lgammal_r.c: Likewise.
16803         * math/w_pow.c: Likewise.
16804         * math/w_powf.c: Likewise.
16805         * math/w_powl.c: Likewise.
16806         * math/w_remainder.c: Likewise.
16807         * math/w_remainderf.c: Likewise.
16808         * math/w_remainderl.c: Likewise.
16809         * math/w_scalb.c: Likewise.
16810         * math/w_scalbf.c: Likewise.
16811         * math/w_scalbl.c: Likewise.
16812         * math/w_scalbln.c: Likewise.
16813         * math/w_scalblnf.c: Likewise.
16814         * math/w_scalblnl.c: Likewise.
16815         * math/w_sinh.c: Likewise.
16816         * math/w_sinhf.c: Likewise.
16817         * math/w_sinhl.c: Likewise.
16818         * math/w_tgamma.c: Likewise.
16819         * math/w_tgammaf.c: Likewise.
16820         * math/w_tgammal.c: Likewise.
16821         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16822         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16823         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16824         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16825         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16826         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16827         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16828         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16829         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16830         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16831         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16832         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16833         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16834         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16835         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16836         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16837         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16838         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16839         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16840         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16841         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16842         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16843         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16844         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16845         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16846         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16847         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16848         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16849         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16850         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16851         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
16852         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
16853         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
16854         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
16855         * stdio-common/printf_fp.c: Likewise.
16856         * stdio-common/printf_fphex.c: Likewise.
16857         * stdio-common/printf_size.c: Likewise.
16858
16859 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
16860
16861         [BZ #18470]
16862         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
16863         strnlen.
16864         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
16865         Remove variable.
16866         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
16867         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
16868         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
16869         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
16870         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
16871         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
16872         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
16873         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
16874         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
16875         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
16876
16877         [BZ #18468]
16878         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
16879         weak alias of __wmemchr.  Use libc_hidden_weak.
16880         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
16881         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
16882         instead of wmemchr.
16883
16884 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16885
16886         [BZ #18383]
16887         * elf/tst-tlsalign-extern.c: New file.
16888         * elf/tst-tlsalign-extern-static.c: New file.
16889         * elf/tst-tlsalign-vars.c: New file.
16890         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
16891         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
16892         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
16893         ($(objpfx)tst-tlsalign-extern-static): Likewise.
16894         (test-xfail-tst-tlsalign-extern-static): New variable.
16895
16896 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
16897
16898         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
16899         Use variable name _sc_err instead of err.
16900         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
16901         instead of ret.
16902         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
16903         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
16904         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
16905         (INLINE_SYSCALL): Likewise.
16906
16907         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
16908         * include/string.h (__strnlen): Use libc_hidden_proto.
16909         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
16910         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
16911         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
16912         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
16913         (libc_hidden_def): Undefine and redefine.
16914         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
16915         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
16916         __GI_strnlen.
16917         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
16918         libc_hidden_def.
16919         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
16920
16921         [BZ #18469]
16922         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
16923         weak alias of __towlower.  Use libc_hidden_weak.
16924         (towupper): Rename to __towupper and define as weak alias of
16925         __towupper.  Use libc_hidden_weak.
16926         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
16927         (__towupper): Likewise.
16928         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
16929         __towlower instead of towlower.
16930
16931 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16932
16933         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
16934         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
16935
16936 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16937
16938         * sysdeps/aarch64/libm-test-ulps: Update.
16939
16940 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16941
16942         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
16943         Define.
16944         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16945         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16946         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
16947         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16948         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
16949         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
16950         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
16951
16952 2015-06-01  Martin Sebor  <msebor@redhat.com>
16953
16954         [BZ #18116]
16955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16956         (__setcontext): Use extended four-operand version of mtsf whenever
16957         possible.
16958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16959         (__novec_swapcontext): Likewise.
16960
16961 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16962
16963         * benchtests/scripts/compare_bench.py: New file.
16964         * benchtests/scripts/import_bench.py (mean): New function.
16965         (split_list): Likewise.
16966         (do_for_all_timings): Likewise.
16967         (compress_timings): Likewise.
16968
16969         * benchtests/scripts/import_bench.py: New file.
16970         * benchtests/scripts/validate_benchout.py: Import import_bench
16971         instead of jsonschema.
16972         (validate_bench): Remove function.
16973         (main): Use import_bench.
16974
16975 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
16976
16977         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
16978         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
16979
16980 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16981
16982         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16983
16984 2015-05-28  Roland McGrath  <roland@hack.frob.com>
16985
16986         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
16987         set THREAD_SELF->tid to a magic value and futex-wake it.
16988         Pass its address to the thread_exit system call.
16989         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
16990         bit is clear.
16991         * sysdeps/nacl/lowlevellock.h: New file.
16992         * sysdeps/nacl/lll_timedwait_tid.c: New file.
16993
16994         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
16995         Add TIMEOUT to current time, don't subtract it.
16996
16997 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
16998
16999         [BZ #2981]
17000         [BZ #18422]
17001         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17002         ($(objpfx)tst-audit2.out): Also depend on
17003         $(objpfx)tst-auditmod9b.so.
17004         * elf/tst-audit2.c: Include <dlfcn.h>.
17005         (calloc_called): New.
17006         (calloc): Allow to be called more than once.
17007         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17008
17009 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17010
17011         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17012         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17013
17014 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17015
17016         * stdlib/monetary.h: Fix comment.
17017
17018 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17019
17020         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17021         Avoid using variables in #defines that might cause shadowing.
17022         (INTERNAL_VSYSCALL_CALL): Likewise.
17023
17024 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17025
17026         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17027
17028         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17029         * nptl/lll_timedlock_wait.c: ... to this new file.
17030         * nptl/Makefile (libpthread-routines): Add it.
17031         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17032         * nptl/lll_timedwait_tid.c: ... to this new file.
17033         * nptl/Makefile (libpthread-routines): Add it.
17034         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17035         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17036         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17037         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17038         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17039         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17040         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17041         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17042         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17043         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17044
17045 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17046
17047         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17048         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17049         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17050         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17051         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17052         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17053         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17054         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17055         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17056         * sysdeps/unix/sysv/linux/tile/sysdep.h
17057         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17058         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17059         using vDSO syscall macro.
17060
17061 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17062
17063         [BZ #17293]
17064         * uk_UA: Fix sorting order for Ukrainian locale
17065
17066 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17067
17068         * stdlib/monetary.h: Fix comment.
17069
17070 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17071
17072         [BZ #18234]
17073         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17074         st_mtim and st_ctim members.
17075         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17076         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17077         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17078         (struct stat64): Likewise.
17079         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17080         (struct stat64): Likewise.
17081         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17082         (struct stat64): Likewise.
17083
17084 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17085
17086         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17087         Define and include sysdep-vdso.h.
17088         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17089         Likewise.
17090         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17091         Likewise.
17092         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17093         Define with VDSO_SYMBOL and use PTR_MANGLE.
17094         (__vdso_clock_gettime): Likewise.
17095         (__vdso_clock_getres): Likewise.
17096         (_libc_vdso_platform_setup): Likewise.
17097         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17098         Likewise.
17099         (_libc_vdso_platform_setup): Likewise.
17100         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17101         Likewise.
17102         (__vdso_clock_gettime): Likewise.
17103         (__vdso_clock_getres): Likewise.
17104         (__vdso_get_tbfreq): Likewise.
17105         (__vdso_getcpu): Likewise.
17106         (__vdso_time): Likewise.
17107         (__vdso_sigtramp_rt64): Likewise.
17108         (__vdso_signtramp32): Likewise.
17109         (__vdso_sigtramp_rt32): Likewise.
17110         (_libc_vdso_platform_setup): Likewise.
17111         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17112         Likewise.
17113         (__vdso_clock_gettime): Likewise.
17114         (__vdso_clock_getres): Likewise.
17115         (_libc_vdso_platform_setup): Likewise.
17116         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17117         Likewise.
17118         (__vdso_clock_gettime): Likewise.
17119         (_libc_vdso_platform_setup): Likewise.
17120         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17121         Likewise.
17122         (__vdso_getcpu): Likewise.
17123         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17124         Use VDSO_SYMBOL macro to define.
17125         (__vdso_clock_gettime): Likewise.
17126         (__vdso_clock_getres): Likewise.
17127         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17128         Likewise.
17129         (__vdso_clock_gettime): Likewise.
17130         (__vdso_clock_getres): Likewise.
17131         (__vdso_get_tbfreq): Likewise.
17132         (__vdso_getcpu): Likewise.
17133         (__vdso_time): Likewise.
17134         (__vdso_sigtramp_rt64): Likewise.
17135         (__vdso_signtramp32): Likewise.
17136         (__vdso_sigtramp_rt32): Likewise.
17137         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17138         Likewise.
17139         (__vdso_clock_gettime): Likewise.
17140         (__vdso_clock_getres): Likewise.
17141         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17142         Likewise.
17143         (__vdso_clock_gettime): Likewise.
17144         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17145         Likewise.
17146         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17147         macro.
17148         (INTERNAL_VSYSCALL): Likewise.
17149         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17150         Remove macro.
17151         (INTERNAL_VSYSCALL): Likewise.
17152         (INTERNAL_VSYSCALL_NCS): Likewise.
17153         (INTERNAL_VSYSCALL_CALL): New macro.
17154         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17155         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17156         Likewise.
17157         (INTERNAL_VSYSCALL): Likewise.
17158         (INTERNAL_VSYSCALL_NCS): Likewise.
17159         (INTERNAL_VSYSCALL_CALL): New macro.
17160         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17162         (INLINE_VSYSCALL): Remove macro.
17163         (INTERNAL_VSYSCALL): Remove macro.
17164         (INTERNAL_VSYSCALL_NCS): Remove macro.
17165         (INTERNAL_VSYSCALL_CALL): New macro.
17166         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17167         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17168         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17169         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17170         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17172         (INLINE_VSYSCALL): Remove macro.
17173         (INTERNAL_VSYSCALL): Likewise.
17174         (INTERNAL_VSYSCALL_NCS): Likewise.
17175         (INTERNAL_VSYSCALL_CALL): New macro.
17176         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17177         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17178         PTR_DEMANGLE on vDSO pointer.
17179         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17180         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17181         macro.
17182         (INTERNAL_SYSCALL): Likewise.
17183         (INTERNAL_VSYSCALL_NCS): Remove macro.
17184         (INTERNAL_VSYSCALL_CALL): New macro.
17185         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17186         Remove macro.
17187         (INTERNAL_VSYSCALL): Likewise.
17188         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17189         sysdep-vdso.h instead of libc-vdso.h.
17190         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17191         definition.
17192         (INLINE_VSYSCALL): Likewise.
17193         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17194         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17195         definition.
17196         (INLINE_VSYSCALL): Likewise.
17197         (INTERNAL_VSYSCALL): Likewise.
17198         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17199         * sysdeps/unix/sysv/linux/timespec_get.c
17200         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17201         (timespec_get): Use ANSI prototype.
17202         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17203         and definition for Linux.
17204
17205 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17206
17207         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17208         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17209
17210 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17211
17212         [BZ #2981]
17213         [BZ #18410]
17214         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17215         for missing DT_PLTRELSZ.
17216
17217 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17218
17219         Remove obsolete aliases that broke 'locale -a'
17220         [BZ #18412]
17221         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17222         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17223         breaking some applications that use 'locale -a' output.
17224         Change the encoding of this file from Latin-1 to ASCII to avoid
17225         other potential problems with people grepping this file.
17226
17227 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17228
17229         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17230         -fasynchronous-unwind-tables.
17231         (CFLAGS-sendto.c): Likewise.
17232         (CFLAGS-sendmsg.c): Likewise.
17233         (CFLAGS-connect.c): Likewise.
17234         (CFLAGS-recvmsg.c): Likewise.
17235         (CFLAGS-recvfrom.c): Likewise.
17236         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17237         (SOCKETCALL): New macro: non-cancellable socketcall.
17238         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17239         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17240         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17241         * sysdeps/unix/sysv/linux/accept.c: New file.
17242         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17243         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17244         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17245         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17246         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17247         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17248         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17249         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17250         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17251         * sysdeps/unix/sysv/linux/send.c: Likewise.
17252         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17253         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17254         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17255         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17256         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17257         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17258         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17259         prototype.
17260         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17261         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17262         instead of __internal_xxx function.
17263         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17264         prototype.
17265         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17266         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17267         instead of __internal_xxx function.
17268         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17269         prototype.
17270         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17271         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17272         instead of __internal_xxx function.
17273         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17274         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17275         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17276         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17277         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17278         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17279         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17280         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17281         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17282         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17283         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17284         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17285         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17286         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17287         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17288         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17289         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17290         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17291         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17292         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17295         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17296         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17297         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17298         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17299         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17300         * sysdeps/unix/sysv/linux/send.S: Likewise.
17301         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17302         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17303         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17304         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17305         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17306         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17307         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17308         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17309         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17310         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17311         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17312         socketcall is implemented in GLIBC.
17313
17314 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17315
17316         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17317         (__fma): Ignore uninitialized warnings around packing.
17318         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17319         (__fmaf): Ignore uninitialized warnings around packing.
17320         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17321         (__fmal): Ignore uninitialized warnings around packing.
17322
17323         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17324         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17325         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17326         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17327
17328         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17329         switch statement into default case.
17330         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17331
17332         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17333         a conditional in forcing "inexact".
17334         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17335         Likewise.
17336
17337 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17338
17339         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17340         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17341         for each INTERNAL_SYSCALL use.
17342
17343 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17344
17345         [BZ #438]
17346         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17347         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17348         variable.
17349
17350         [BZ #18444]
17351         * string/basename.c (basename): Rename to __basename and define as
17352         weak alias of __basename.  Use libc_hidden_weak.
17353         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17354         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17355         __basename instead of basename.
17356         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17357         Remove variable.
17358         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17359
17360 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17361
17362         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17363         (_IO_JUMPS_FILE_plus): New.
17364         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17365         _IO_CAST_FIELD_ACCESS.
17366         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17367         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17368         * libio/freopen.c (freopen): Likewise.
17369         * libio/freopen64.c (freopen64): Likewise.
17370         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17371         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17372         * libio/iofwide.c (_IO_fwide): Likewise.
17373         * libio/memstream.c (open_memstream): Likewise.
17374         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17375         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17376         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17377
17378 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17379
17380         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17381         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17382         NADJ.
17383         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17384         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17385         NADJ.
17386         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17387         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17388         NADJ.
17389
17390         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17391         (p == 4) case.
17392
17393         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17394         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17395         Remove variable.
17396         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17397         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17398         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17399
17400 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17401
17402         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17403         Adjust jump table label generation macros.
17404
17405 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17406
17407         * stdio-common/vfprintf.c (vfprintf): Move local variables
17408         args_malloced, specs, specs_malloced, and the code after
17409         do_positional to the printf_positional function.
17410         (printf_positional): New function.
17411
17412 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17413
17414         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17415         function.
17416         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17417         STEP4_TABLE, process_arg): Move macro definitions
17418         out of the vfprintf function.  (Cosmetic change only.)
17419
17420 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17421
17422         * benchtests/Makefile (stdio-common-bench): Define.
17423         (benchset): Add stdio-common-bench.
17424         * sprintf-inputs: New file.
17425         * sprintf-source.c: New file.
17426
17427 2015-05-21  Andreas Schwab  <schwab@suse.de>
17428
17429         [BZ #13028]
17430         [BZ #17053]
17431         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17432         of struct __res_state.
17433         * resolv/res_send.c (__libc_res_nsend): Likewise.
17434         (get_nsaddr): New function.
17435         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17436         statp directly.
17437
17438 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17439
17440         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17441         -D_POSIX_C_SOURCE=199506L.
17442
17443         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17444
17445         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17446         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17447         Do not mention otherwise.
17448         [POSIX] (_XOPEN_VERSION): Do not expect.
17449         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17450         [POSIX] (_POSIX2_C_BIND): Likewise.
17451         [POSIX] (_POSIX2_VERSION): Likewise.
17452         [POSIX] (_XOPEN_XPG2): Likewise.
17453         [POSIX] (_XOPEN_XPG3): Likewise.
17454         [POSIX] (_XOPEN_XPG4): Likewise.
17455         [POSIX] (_XOPEN_UNIX): Likewise.
17456         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17457         [POSIX] (_POSIX_BARRIERS): Likewise.
17458         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17459         [POSIX] (_POSIX_CPUTIME): Likewise.
17460         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17461         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17462         [POSIX] (_POSIX_SHELL): Likewise.
17463         [POSIX] (_POSIX_SPAWN): Likewise.
17464         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17465         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17466         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17467         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17468         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17469         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17470         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17471         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17472         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17473         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17474         [POSIX] (_POSIX2_PBS): Likewise.
17475         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17476         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17477         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17478         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17479         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17480         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17481         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17482         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17483         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17484         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17485         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17486         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17487         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17488         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17489         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17490         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17491         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17492         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17493         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17494         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17495         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17496         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17497         [POSIX] (_SC_2_C_BIND): Likewise.
17498         [POSIX] (_SC_2_C_VERSION): Likewise.
17499         [POSIX] (_SC_2_PBS): Likewise.
17500         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17501         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17502         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17503         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17504         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17505         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17506         [POSIX] (_SC_BARRIERS): Likewise.
17507         [POSIX] (_SC_BASE): Likewise.
17508         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17509         [POSIX] (_SC_DEVICE_IO): Likewise.
17510         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17511         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17512         [POSIX] (_SC_FD_MGMT): Likewise.
17513         [POSIX] (_SC_FIFO): Likewise.
17514         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17515         [POSIX] (_SC_FILE_LOCKING): Likewise.
17516         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17517         [POSIX] (_SC_IOV_MAX): Likewise.
17518         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17519         [POSIX] (_SC_NETWORKING): Likewise.
17520         [POSIX] (_SC_PAGE_SIZE): Likewise.
17521         [POSIX] (_SC_PASS_MAX): Likewise.
17522         [POSIX] (_SC_PIPE): Likewise.
17523         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17524         [POSIX] (_SC_REGEXP): Likewise.
17525         [POSIX] (_SC_SHELL): Likewise.
17526         [POSIX] (_SC_SIGNALS): Likewise.
17527         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17528         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17529         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17530         [POSIX] (_SC_USER_GROUPS): Likewise.
17531         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17532         [POSIX] (_SC_STREAMS): Likewise.
17533         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17534         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17535         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17536         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17537         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17538         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17539         [POSIX] (_PC_FILESIZEBITS): Likewise.
17540         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17541         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17542         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17543         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17544         [POSIX] (uid_t): Likewise.
17545         [POSIX] (gid_t): Likewise.
17546         [POSIX] (off_t): Likewise.
17547         [POSIX] (pid_t): Likewise.
17548         [POSIX] (cuserid): Allow.
17549         (_SC_2_CHAR_TERM): Require constant.
17550         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17551         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17552         variable.
17553
17554 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17555
17556         * sysdeps/nacl/pthread-pids.h: New file.
17557         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17558         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17559
17560         * nptl/pthread-pids.h: New file.
17561         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17562         * nptl/nptl-init.c: Include <pthread-pids.h>.
17563         (__pthread_initialize_minimal_internal):
17564         Call __pthread_initialize_pids instead of set_tid_address syscall.
17565
17566         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17567         * sysdeps/posix/usleep.c: ... here.
17568
17569 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17570
17571         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17572         call_pselect6 object.
17573         [$(subdir) = io]: Remove call_sync_file_range object.
17574         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17575         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17576         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17577         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17578
17579 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17580
17581         * math/s_cproj.c: Add include "math_private.h".
17582         * math/s_cprojf.c: Likewise.
17583         * math/s_cprojl.c: Likewise.
17584
17585 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17586
17587         [BZ #18244]
17588         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17589         high mantissa bit when testing whether P is a NaN.
17590         * math/libm-test.inc (remainder_test_data): Add more tests.
17591         (remquo_test_data): Likewise.
17592
17593         [BZ #18049]
17594         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17595         below -32, return the argument, with underflow if subnormal.
17596         * math/auto-libm-test-in: Add more tests of atanh.
17597         * math/auto-libm-test-out: Regenerated.
17598
17599 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17600
17601         [BZ #18434]
17602         * nptl/tst-sem15.c: New file.
17603         * nptl/Makefile (tests): Add it.
17604         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17605         s/<</>>/ to fix typo in EOVERFLOW check.
17606         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17607
17608 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17609
17610         * manual/strings.texi (envz_remove): Fix typo in safety
17611         annotations.
17612
17613 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17614             Steve Ellcey  <sellcey@imgtec.com>
17615
17616         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17617         in order to avoid strict alias warnings.
17618         (iruserok_af): Ditto for ra.
17619
17620 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17621
17622         [BZ #17581]
17623         * malloc/hooks.c
17624         (magicbyte): Convert to a function and avoid returning 0x01.
17625         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17626         (mem2chunk_check): Fix unsigned comparisons to zero.
17627         Hoist defs of sz and magic.
17628
17629 2015-05-19  Richard Henderson  <rth@redhat.com>
17630
17631         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17632
17633         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17634
17635 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17636
17637         [BZ #16159]
17638         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17639         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17640         (reused_arena): Find a non-corrupt arena.
17641         (heap_trim): Pass arena to unlink.
17642         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17643         malloc_printerr.
17644         (top_check): Likewise.
17645         (free_check): Likewise.
17646         (realloc_check): Likewise.
17647         * malloc/malloc.c (malloc_printerr): Add arena argument.
17648         (unlink): Likewise.
17649         (munmap_chunk): Adjust.
17650         (ARENA_CORRUPTION_BIT): New macro.
17651         (arena_is_corrupt): Likewise.
17652         (set_arena_corrupt): Likewise.
17653         (sysmalloc): Use mmap if there are no usable arenas.
17654         (_int_malloc): Likewise.
17655         (__libc_malloc): Don't fail if arena_get returns NULL.
17656         (_mid_memalign): Likewise.
17657         (__libc_calloc): Likewise.
17658         (__libc_realloc): Adjust for additional argument to
17659         malloc_printerr.
17660         (_int_free): Likewise.
17661         (malloc_consolidate): Likewise.
17662         (_int_realloc): Likewise.
17663         (_int_memalign): Don't touch corrupt arenas.
17664         * malloc/tst-malloc-backtrace.c: New test case.
17665
17666         * Makefile (summarize-tests): Fix return value on success.
17667
17668         * manual/string.texi (Envz Functions): Add envz_remove.
17669
17670 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17671
17672         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17673         (invalid_name): New function, broken out of ...
17674         (__opendirat): ... here.  Call it.
17675         (need_isdir_precheck): New function, broken out of ...
17676         (__opendirat): ... here.  Call it.
17677         Use __fxstatat64, not __xstatat64.
17678         (opendir_oflags): New function, broken out of ...
17679         (__opendirat): ... here.  Call it.
17680         (opendir_tail): New function, broken out of ...
17681         (__opendirat): ... here.  Call it.
17682         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17683         opendir_tail, rather than punting to __opendirat.
17684         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17685
17686 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17687
17688         * .gitignore: Ignore generated *.pyc.
17689
17690 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17691
17692         * include/stdio.h: Define __need_wint_t.
17693         * test-skeleton.c: Avoid `for' loop initial declaration.
17694         * nptl/tst-initializers1.c: Use test-skeleton.c.
17695
17696 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17697
17698         [BZ #18418]
17699         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17700
17701 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17702
17703         [BZ #16352]
17704         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17705         (__ieee754_atanh): Force underflow exception for results with
17706         small absolute value.
17707         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17708         (__ieee754_atanhf): Force underflow exception for results with
17709         small absolute value.
17710         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17711         (__ieee754_atanh): Force underflow exception for results with
17712         small absolute value.
17713         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17714         (__ieee754_atanhf): Force underflow exception for results with
17715         small absolute value.
17716         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17717         (__ieee754_atanhl): Force underflow exception for results with
17718         small absolute value.
17719         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17720         (__ieee754_atanhl): Force underflow exception for results with
17721         small absolute value.
17722         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17723         (__ieee754_atanhl): Force underflow exception for results with
17724         small absolute value.
17725         * math/auto-libm-test-in: Do not allow missing underflow
17726         exceptions from atanh.
17727         * math/auto-libm-test-out: Regenerated.
17728
17729         [BZ #18221]
17730         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17731         2**-28 as threshold for returning x or +/- 1/x.
17732         * math/auto-libm-test-in: Add more tests of tan.
17733         * math/auto-libm-test-out: Regenerated.
17734
17735         [BZ #18220]
17736         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17737         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17738         * math/auto-libm-test-in: Add another test of lgamma.
17739         * math/auto-libm-test-out: Regenerated.
17740
17741 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17742
17743         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17744         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17745         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17746         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17747         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17748         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17749         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17750         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17751         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17752         (log1): Use fabs.  (my_log2): Use fabs.
17753         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17754         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17755         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17756         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17757         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17758         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17759         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17760         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17761         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17762         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17763         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17764
17765 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17766
17767         [BZ #18217]
17768         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17769         as threshold for returning 1 - x.
17770         * math/auto-libm-test-in: Add more tests of erfc.
17771         * math/auto-libm-test-out: Regenerated.
17772
17773 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17774
17775         [BZ #18196]
17776         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17777         threshold for large arguments.
17778         * math/auto-libm-test-in: Add another test of atan.
17779         * math/auto-libm-test-out: Regenerated.
17780
17781         [BZ #16339]
17782         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17783         (__log1p): Force underflow exception for results with small
17784         absolute value.
17785         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17786         (__log1pf): Force underflow exception for results with small
17787         absolute value.
17788         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17789         (__log1p): Force underflow exception for results with small
17790         absolute value.
17791         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17792         (__log1pf): Force underflow exception for results with small
17793         absolute value.
17794         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17795         (__log1pl): Force underflow exception for results with small
17796         absolute value.
17797         * math/auto-libm-test-in: Do not allow missing underflow
17798         exceptions from log1p.
17799         * math/auto-libm-test-out: Regenerated.
17800
17801 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17802             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17803
17804         [BZ #16704]
17805         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17806
17807 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17808
17809         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17810         (libmvec): New variable.
17811         * configure.ac: Added option for mathvec build.
17812         * configure: Regenerated.
17813         * mathvec/Depend: New file.
17814         * mathvec/Makefile: New file.
17815         * shlib-versions: Added libmvec.
17816         * math/Makefile: Added rule for libm.so installation.
17817
17818         * bits/math-vector.h: New file.
17819         * bits/libm-simd-decl-stubs.h: New header.
17820         * math/Makefile (headers): Added new header
17821         libm-simd-decl-stubs.h.
17822         * math/math.h (__MATHCALL_VEC): New macro.
17823
17824         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17825         for conditions in testing functions.
17826         * math/Makefile: Added call of libm-have-vector-test.sh.
17827         * math/libm-test.inc (HAVE_VECTOR): New macros.
17828
17829         * math/libm-test.inc: START refactored.
17830         * math/test-double.c (TEST_MATHVEC): Add define.
17831         * math/test-float.c: Likewise.
17832         * math/test-idouble.c: Likewise.
17833         * math/test-ifloat.c: Likewise.
17834         * math/test-ildoubl.c: Likewise.
17835         * math/test-ldouble.c: Likewise.
17836         * sysdeps/generic/math-tests-arch.h
17837         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17838         architecture check.
17839
17840         * math/test-double.c (FUNC_TEST): New macro.
17841         * math/test-float.c: Likewise.
17842         * math/test-idouble.c: Likewise.
17843         * math/test-ifloat.c: Likewise.
17844         * math/test-ildoubl.c: Likewise.
17845         * math/test-ldouble.c: Likewise.
17846         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17847
17848 2015-05-13  Roland McGrath  <roland@hack.frob.com>
17849
17850         * sysdeps/nacl/fdopendir.c: New file.
17851
17852         * dirent/scandir-tail.c: New file.
17853         * dirent/scandir64-tail.c: New file.
17854         * dirent/Makefile (routines): Add them.
17855         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
17856         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
17857         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
17858         [!SCANDIR] (SCANDIR_TAIL): New macro.
17859         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
17860         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
17861         (SCANDIRAT): Macro removed.
17862         (SCANDIR_TAIL): New macro.
17863         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
17864         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
17865         (SCANDIRAT): Just call __opendirat and __scandir_tail.
17866         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
17867         (READDIR): Macro removed.
17868         (SCANDIR_TAIL): New macro.
17869         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
17870         (SCANDIR_TAIL): New macro.
17871
17872         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
17873         * dirent/scandir-cancel.c: ... to this new file.
17874         * dirent/Makefile (routines): Add it.
17875         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
17876         * sysdeps/unix/sysv/linux/i386/scandir64.c
17877         (SKIP_SCANDIR_CANCEL): Macro removed.
17878         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
17879
17880         * dirent/tst-scandir.c: New file.
17881         * dirent/tst-scandir64.c: New file.
17882         * dirent/Makefile (tests): Add them.
17883
17884 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17885
17886         [BZ #18409]
17887         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
17888
17889 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17890
17891         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
17892         list.
17893
17894 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
17895
17896         * benchtests/bench-strcoll.c: New benchmark.
17897         * benchtests/Makefile: Generate locales and run benchmark.
17898         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
17899         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17900         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
17901         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
17902         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
17903         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
17904         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
17905         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
17906         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
17907         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
17908         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
17909         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
17910         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
17911         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
17912         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
17913         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
17914         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
17915         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
17916         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
17917         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
17918         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
17919         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
17920         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
17921         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
17922
17923 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
17924
17925         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
17926         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17927
17928 2015-05-12  Roland McGrath  <roland@hack.frob.com>
17929
17930         * posix/uname-values.h: New file.
17931         * posix/uname.c: Include that instead of <config-name.h>.
17932         * sysdeps/nacl/uname-values.h: New file.
17933         * sysdeps/arm/nacl/uname-values.h: New file.
17934
17935 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
17936
17937         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
17938         splitting into fields.
17939
17940 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
17941
17942         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
17943         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
17944         * locale/localeinfo.h: Add enum collation_encoding_type.
17945         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
17946         * programs/ld-collate.c (collate_output): Add encoding type info.
17947         * string/strcoll_l.c (STRDIFF): New function.
17948         * (STRCOLL): Use STRDIFF to skip over equal prefix.
17949         * wcsmbs/wcscoll_l.c: Define STRDIFF.
17950
17951 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
17952
17953         [BZ #18397]
17954         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
17955         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
17956         <fpu_control.h> instead of <math/fpu_control.c>.
17957         * sysdeps/mips/mips32/fpu/Makefile: New file.
17958
17959 2015-05-11  Andreas Schwab  <schwab@suse.de>
17960
17961         [BZ #18007]
17962         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
17963         nss_endgrent.
17964         (_nss_compat_endgrent): Call nss_endgrent.
17965         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
17966         nss_endpwent.
17967         (_nss_compat_endpwent): Call nss_endpwent.
17968         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
17969         needent, call nss_setspent only if non-zero.
17970         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
17971         (internal_endspent): Don't call nss_endspent.
17972         (_nss_compat_endspent): Call nss_endspent.
17973         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
17974         Remove.  All uses removed.
17975         (internal_setent): Remove parameter stayopen, add parameter
17976         stream.  Use it instead of global variable.
17977         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
17978         (internal_endent, internal_getent): Add parameter stream.  Use it
17979         instead of global variable.
17980         (CONCAT(_nss_files_end,ENTNAME))
17981         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
17982         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
17983         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
17984         uses removed.
17985         (internal_setent, internal_endent): Add parameter stream.  Use it
17986         instead of global variable.
17987         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
17988         stream.
17989         (get_next_alias): Add parameter stream.
17990         (_nss_files_getaliasent_r): Pass global stream.
17991         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
17992         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
17993         (_nss_files_gethostbyname4_r): Pass local stream to
17994         internal_setent, internal_getent and internal_endent.  Remove
17995         locking.
17996
17997 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
17998
17999         * tst-strfmon1.c (tests): Update expected currency symbol.
18000
18001 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18002
18003         * sysdeps/nacl/gethostname.c: New file.
18004
18005 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18006
18007         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18008         and sinh.
18009         * math/auto-libm-test-out: Regenerated.
18010         * sysdeps/i386/fpu/libm-test-ulps: Update.
18011         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18012
18013 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18014
18015         [BZ #18125]
18016         * stdlib/tst-setcontext3.c: New file.
18017         * stdlib/tst-setcontext3.sh: New file.
18018         * stdlib/Makefile (tests): Add tst-setcontext3.
18019         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18020         to verify test program created output file.
18021         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18022         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18023         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18024         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18025
18026 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18027
18028         [BZ #18383]
18029         * elf/tst-tlsalign.c: New file.
18030         * elf/tst-tlsalign-static.c: New file.
18031         * elf/tst-tlsalign-lib.c: New file.
18032         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18033         (tests-static): Add tst-tlsalign-static.
18034         (modules-names): Add tst-tlsalign-lib.
18035         (test-xfail-tst-tlsalign): New variable.
18036         (test-xfail-tst-tlsalign-static): New variable.
18037
18038         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18039         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18040
18041 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18042
18043         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18044         csqrt, erfc, sin and sincos.
18045         * math/auto-libm-test-out: Regenerated.
18046         * sysdeps/i386/fpu/libm-test-ulps: Update.
18047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18048
18049 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18050
18051         * sysdeps/aarch64/libm-test-ulps: Update.
18052
18053 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18054
18055         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18056         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18057         * math/auto-libm-test-out: Regenerated.
18058         * sysdeps/i386/fpu/libm-test-ulps: Update.
18059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18060
18061 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18062
18063         [BZ #18265]
18064         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18065         (wcsncpy): Likewise.
18066
18067 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18068
18069         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18070         Assume __ASSUME_FALLOCATE is always true.
18071         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18072         (__posix_fallocate64_l64): Likweise.
18073         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18074         (posix_fallocate): Likewise.
18075         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18076         (__posix_fallocate64_l64): Likewise.
18077         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18078         [!__ASSUME_FALLOCATE]: Add comment.
18079
18080 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18081
18082         * sysdeps/unix/sysv/linux/i386/Makefile
18083         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18084         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18085         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18086         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18087         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18088         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18089         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18090
18091 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18092
18093         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18094         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18095         tgamma.
18096         * math/auto-libm-test-out: Regenerated.
18097         * sysdeps/i386/fpu/libm-test-ulps: Update.
18098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18099
18100 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18101
18102         * math/auto-libm-test-in: Add more tests of tgamma.
18103         * math/auto-libm-test-out: Regenerated.
18104         * sysdeps/i386/fpu/libm-test-ulps: Update.
18105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18106
18107         * math/auto-libm-test-in: Add more tests of tanh.
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 tan.
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         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18118         * math/auto-libm-test-out: Regenerated.
18119         * sysdeps/i386/fpu/libm-test-ulps: Update.
18120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18121
18122         * math/auto-libm-test-in: Add another test of pow.
18123         * math/auto-libm-test-out: Regenerated.
18124         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18125
18126         * math/auto-libm-test-in: Add more tests of lgamma.
18127         * math/auto-libm-test-out: Regenerated.
18128         * sysdeps/i386/fpu/libm-test-ulps: Update.
18129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18130
18131         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18132         log1p.
18133         * math/auto-libm-test-out: Regenerated.
18134         * sysdeps/i386/fpu/libm-test-ulps: Update.
18135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18136
18137 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18138
18139         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18140         Elf64_Chdr structs and ELFCOMPRESS constants.
18141
18142 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18143
18144         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18145         expm1.
18146         * math/auto-libm-test-out: Regenerated.
18147         * sysdeps/i386/fpu/libm-test-ulps: Update.
18148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18149
18150         * math/auto-libm-test-in: Add more tests of erf and erfc.
18151         * math/auto-libm-test-out: Regenerated.
18152         * sysdeps/i386/fpu/libm-test-ulps: Update.
18153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18154
18155 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18156
18157         * config.h.in (HAVE_AARCH64_BE): Add.
18158
18159 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18160
18161         * math/auto-libm-test-in: Add more tests of csqrt.
18162         * math/auto-libm-test-out: Regenerated.
18163         * sysdeps/i386/fpu/libm-test-ulps: Update.
18164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18165
18166         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18167         * math/auto-libm-test-out: Regenerated.
18168         * sysdeps/i386/fpu/libm-test-ulps: Update.
18169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18170
18171         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18172
18173 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18174
18175         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18176         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18177
18178         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18179         (euidaccess, eaccess): Define as weak aliases.
18180
18181         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18182         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18183         but __suseconds_t is often 'long int' so some sources assume that
18184         type is being used (e.g. they use %ld to print tv_usec).
18185
18186 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18187
18188         [BZ #18007]
18189         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18190         (CVE-2014-8121)
18191         * nss/tst-nss-getpwent.c: New file.
18192         * nss/Makefile (tests): Add new test.
18193
18194 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18195
18196         [BZ #18346]
18197         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18198         exponents less than 48 as cases where high part of mantissa needs
18199         examining to determine whether argument is integral.
18200         * math/libm-test.inc (round_test_data): Add more tests.
18201
18202 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18203
18204         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18205
18206 2015-04-27  David S. Miller  <davem@davemloft.net>
18207
18208         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18209         __tls_get_addr.
18210         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18211
18212 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18213
18214         [BZ#18333]
18215         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18216
18217 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18218
18219         [BZ#18333]
18220         * time/tzset.c (parse_tzname): Return error on memory allocation
18221         failure.
18222         * test-skeleton.c (struct temp_name_list): Change type of name
18223         member to non-const.
18224         (add_temp_file): Create a copy of the file name.
18225         (delete_temp_files): Deallocate memory.
18226         (create_temp_file): Add comment.
18227
18228 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18229
18230         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18231         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18232
18233 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18234
18235         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18236         * sysdeps/arm/configure: Regenerated.
18237
18238 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18239
18240         [BZ #17715]
18241         * time/tzfile.c (__tzfile_read): Check for large values of
18242         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18243         * time/tzset.c (__tzstring_len): New function, based on the old
18244         __tzstring function.
18245         (__tzstring): Call __tzstring_len.
18246         (parse_tzname): New helper function extracted from
18247         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18248         the input string.
18249         (parse_offset): New helper function extracted from
18250         __tzset_parse_tz.  Replace switch with fallthrough with
18251         initialization before sscanf.
18252         (parse_rule): Likewise.
18253         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18254         new-style function definition.
18255         * timezone/Makefile (tests): Add tst-tzset.
18256         (tst-tzset.out): Dependencies on time zone files.
18257         (tst-tzset-ENV): Set TZDIR.
18258         (testdata/XT%): Copy crafted time zone files.
18259         * timezone/README: Mention crafted time zone files.
18260         * timezone/testdata/XT1, timezone/testdata/XT2,
18261         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18262         files.
18263         * timezone/tst-tzset.c: New test.
18264
18265 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18266
18267         * Makeconfig (+gccwarn): Remove -Winline.
18268
18269 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18270
18271         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18272
18273 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18274
18275         * NEWS: Mention sysconf() cache information support for s390.
18276         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18277
18278 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18279
18280         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18281         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18282         (__nearbyint): Likewise.
18283         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18284         (copysignl): Likewise.
18285
18286 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18287
18288         [BZ #18287]
18289         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18290         based on padding.  (CVE-2015-1781)
18291
18292 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18293
18294         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18295         libc-vdso.h.
18296         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18297         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18298         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18299         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18300         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18301         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18302         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18303         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18304         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18305         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18306         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18307         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18308         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18309         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18310         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18311         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18312         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18313         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18314         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18315         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18316         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18317         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18318         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18319
18320 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18321
18322         * stdlib/setenv.c (__add_to_environ):
18323         Dump core quickly if setenv (..., NULL, ...) is called.
18324         This time, do it the right way, and pacify GCC with a pragma.
18325
18326 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18327
18328         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18329         IMAP->l_prev cannot be null, and #if out the code for the contrary
18330         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18331         believe that NS (&_dl_ns[NSID]) could point outside the array.
18332
18333         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18334         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18335         before using NSID as an index.
18336
18337 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18338
18339         [BZ #17825]
18340         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18341         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18342         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18343
18344 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18345
18346         Add preliminary port to Google Native Client on ARM.
18347         * abi-tags (.*-.*-nacl.*): New entry.
18348         * sysdeps/arm/nacl: New directory.
18349         * sysdeps/nacl: New directory.
18350
18351 2015-04-16  David S. Miller  <davem@davemloft.net>
18352
18353         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18354         lowlevellock-futex.h
18355
18356 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18357
18358         * sysdeps/tile/configure.ac: New file.
18359         * sysdeps/tile/configure: Regenerated.
18360
18361 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18362
18363         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18364         conditionals for weak_alias and libc_hidden_weak.
18365         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18366         libc_hidden_weak and weak_alias.
18367         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18368         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18369         and weak_alias for static one.
18370
18371 2015-04-15  David S. Miller  <davem@davemloft.net>
18372
18373         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18374
18375 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18376
18377         [BZ #18206]
18378         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18379           Use signed comparision instead of substraction to avoid
18380           overflow bug.
18381         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18382           Take the sign of ret.
18383         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18384           Do not expect precise return values. Only the sign matters.
18385         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18386         * wcsmbs/test-wcsncmp.c: New File.
18387         * string/test-strncmp.c: Add wcsncmp support.
18388
18389 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18390
18391         [BZ #6792]
18392         * math/w_log1p.c: New file.
18393         * math/w_log1pf.c: Likewise.
18394         * math/w_log1pl.c: Likewise.
18395         * math/Makefile (libm-calls): Add w_log1p.
18396         * math/s_log1pl.c (log1pl): Remove weak_alias.
18397         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18398         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18399         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18400         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18401         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18402         [NO_LONG_DOUBLE] (log1pl): Likewise.
18403         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18404         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18405         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18406         (log1p): Remove long_double_symbol.
18407         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18408         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18409         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18410         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18411         remove weak_alias for corresponding log1p function.
18412         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18413         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18414         * sysdeps/ia64/fpu/w_log1p.c: New file.
18415         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18416         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18417         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18418
18419 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18420
18421         [BZ #18247]
18422         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18423         decimal exponent by 1.
18424         * stdlib/tst-strtod-round-data: Add more tests.
18425         * stdlib/tst-strtod-round.c (tests): Regenerated.
18426
18427 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18428
18429         * math/auto-libm-test-in: Add more tests of clog and clog10.
18430         * math/auto-libm-test-out: Regenerated.
18431         * sysdeps/i386/fpu/libm-test-ulps: Update.
18432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18433
18434 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18435
18436         * Makeconfig (module-cppflags): Exclude all .v.i files.
18437         (skip-module-cppflags): Variable removed.
18438
18439         * configure.ac (libc_config_ok): Initialize before reading
18440         preconfigure scripts, not after.
18441         * configure: Regenerated.
18442
18443         * test-skeleton.c (TIMEOUT): Move #define to top level.
18444         (main): Grok environment variable TEST_DIRECT.  If set, print
18445         test expectation details into that file and then behave as if
18446         given --direct.
18447
18448 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18449
18450         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18451         warning on 32-bit.
18452
18453 2015-04-08  David S. Miller  <davem@davemloft.net>
18454
18455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18456
18457 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18458
18459         * math/auto-libm-test-in: Add more tests of atanh.
18460         * math/auto-libm-test-out: Regenerated.
18461         * sysdeps/i386/fpu/libm-test-ulps: Update.
18462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18463
18464         * math/auto-libm-test-in: Add more tests of atan.
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 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18470
18471         * elf/pldd.c (main): Rewrite to use struct
18472         scratch_buffer instead of extend_alloca.
18473         * elf/pldd-xx.c (find_maps): Likewise.
18474         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18475         <alloca.h>.
18476         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18477         scratch_buffer instead of extend_alloca.
18478         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18479         grp/compat-initgroups.c.
18480         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18481         Rewrite to use struct scratch_buffer instead of extend_alloca.
18482         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18483         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18484
18485 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18486
18487         * math/auto-libm-test-in: Add more tests of cbrt.
18488         * math/auto-libm-test-out: Regenerated.
18489         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18490
18491         * math/auto-libm-test-in: Add more tests of cabs.
18492         * math/auto-libm-test-out: Regenerated.
18493         * sysdeps/i386/fpu/libm-test-ulps: Update.
18494         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18495
18496         [BZ #18210]
18497         [BZ #18211]
18498         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18499         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18500         computations.
18501         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18502         clog10.
18503         * math/auto-libm-test-out: Regenerated.
18504         * sysdeps/i386/fpu/libm-test-ulps: Update.
18505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18506
18507         [BZ #18197]
18508         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18509         (atan): Set FE_TONEAREST mode for internal computations.
18510         * math/auto-libm-test-in: Add more tests of atan.
18511         * math/auto-libm-test-out: Regenerated.
18512
18513 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18514
18515         [BZ #17930]
18516         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18517
18518 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18519
18520         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18521
18522 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18523
18524         * include/scratch_buffer.h: New file.
18525         * malloc/scratch_buffer_grow.c: Likewise.
18526         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18527         * malloc/scratch_buffer_set_array_size.c: Likewise.
18528         * malloc/tst-scratch_buffer.c: Likewise.
18529         * malloc/Makefile (routines): Add scratch_buffer_grow.
18530         (tests): Add test case.
18531         * malloc/Versions (GLIBC_PRIVATE): Export
18532         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18533         __libc_scratch_buffer_set_array_size.
18534
18535 2015-04-06  Richard Henderson  <rth@redhat.com>
18536
18537         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18538         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18539
18540         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18541         unsigned int before printing.
18542
18543 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18544
18545         [BZ #17596]
18546         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18547         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18548
18549 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18550
18551         * include/libc-internal.h (libc_max_align_t): Define.
18552
18553 2015-04-02  Andreas Schwab  <schwab@suse.de>
18554
18555         [BZ #16850]
18556         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18557
18558 2015-04-02  Mel Gorman  <mgorman@suse.de>
18559
18560         [BZ #17195]
18561         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18562         as well as the main arena.
18563
18564 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18565
18566         [BZ #18185]
18567         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18568         sharing L2 cache to 2 for Silvermont/Knights Landing.
18569
18570 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18571
18572         [BZ #17711]
18573         * config.make.in (have-protected-data): New.
18574         * configure.ac: Check linker support for protected data symbol.
18575         * configure: Regenerated.
18576         * elf/Makefile (modules-names): Add tst-protected1moda and
18577         tst-protected1modb if $(have-protected-data) is yes.
18578         (tests): Add tst-protected1a and tst-protected1b if
18579         $(have-protected-data) is yes.
18580         ($(objpfx)tst-protected1a): New.
18581         ($(objpfx)tst-protected1b): Likewise.
18582         (tst-protected1modb.so-no-z-defs): Likewise.
18583         * elf/tst-protected1a.c: New file.
18584         * elf/tst-protected1b.c: Likewise.
18585         * elf/tst-protected1mod.h: Likewise.
18586         * elf/tst-protected1moda.c: Likewise.
18587         * elf/tst-protected1modb.c: Likewise.
18588
18589 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18590
18591         [BZ #17711]
18592         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18593         indicates it is called from do_lookup_x on relocation against
18594         protected data, skip the data definion in the executable from
18595         copy reloc.
18596         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18597         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18598         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18599         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18600         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18601         otherwise to 0.
18602         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18603         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18604         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18605         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18606         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18607         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18608
18609 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18610
18611         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18612         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18613
18614 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18615
18616         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18617         THREAD_SETMEM_NC.
18618         * sysdeps/x86_64/nptl/tls.h: Ditto.
18619
18620 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18621
18622         * dlfcn/tststatic.c (main): Converted to ...
18623         (do_test): ... this.
18624         (TEST_FUNCTION): New macro.
18625         Include test-skeleton.c.
18626
18627 2015-03-26  Alan Modra  <amodra@gmail.com>
18628
18629         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18630         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18631         zero for undefined weak.
18632         (elf_machine_plt_conflict): Similarly.
18633
18634 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18635
18636         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18637         atanh.
18638         * math/auto-libm-test-out: Regenerated.
18639         * sysdeps/i386/fpu/libm-test-ulps: Update.
18640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18641
18642         * math/auto-libm-test-in: Add another test of asin.
18643         * math/auto-libm-test-out: Regenerated.
18644         * sysdeps/i386/fpu/libm-test-ulps: Update.
18645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18646
18647         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18648         Remove macro.
18649         (LLL_EBX_REG): Likewise.
18650         (LLL_ENTER_KERNEL): Likewise.
18651
18652         * math/auto-libm-test-in: Add more tests of asin.
18653         * math/auto-libm-test-out: Regenerated.
18654         * sysdeps/i386/fpu/libm-test-ulps: Update.
18655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18656
18657         [BZ #18138]
18658         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18659         libc_do_syscall_args): New structure.
18660         (INTERNAL_SYSCALL_MAIN_0): New macro.
18661         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18662         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18663         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18664         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18665         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18666         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18667         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18668         Replace conditional definitions by conditional definitions of ....
18669         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18670         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18671         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18672         (libpthread-sysdep_routines): Add libc-do-syscall.
18673         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18674         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18675         to __NR_futex not 240.
18676
18677 2015-03-25  Alan Modra  <amodra@gmail.com>
18678
18679         * NEWS: Advertise TLS optimization.
18680         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18681         (DT_PPC_NUM): Increment.
18682         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18683         (CHECK_STATIC_TLS): Use here.
18684         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18685         TLS descriptors.
18686         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18687         * sysdeps/powerpc/dl-tls.c: New file.
18688         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18689         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18690         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18691         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18695
18696 2015-03-25  Alan Modra  <amodra@gmail.com>
18697
18698         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18699         for overlapping .opd entries" to "support...".
18700         * sysdeps/powerpc/powerpc64/configure: Regenerate
18701
18702 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18703
18704         * math/auto-libm-test-in: Add more tests of acos.
18705         * math/auto-libm-test-out: Regenerated.
18706         * sysdeps/i386/fpu/libm-test-ulps: Update.
18707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18708
18709         * math/auto-libm-test-in: Add more tests of expm1.
18710         * math/auto-libm-test-out: Regenerated.
18711         * sysdeps/i386/fpu/libm-test-ulps: Update.
18712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18713
18714 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18715
18716         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18717         * math/auto-libm-test-out: Regenerated.
18718         * sysdeps/i386/fpu/libm-test-ulps: Update.
18719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18720
18721         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18723
18724         * math/auto-libm-test-in: Add more tests of log2.
18725         * math/auto-libm-test-out: Regenerated.
18726         * sysdeps/i386/fpu/libm-test-ulps: Update.
18727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18728
18729 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18730
18731         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18732         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18733         _IO_IS_APPENDING bit in READ_WRITE instead.
18734
18735 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18736
18737         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18738         (__determine_cpumask_size): Replace extend_alloca with a
18739         variable-length array.  Do not treat res == 0 as an error.
18740
18741 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18742
18743         [BZ #18100]
18744         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18745         and integer overflow.
18746         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18747         (main): Add integer overflow tests.
18748         * manual/pattern.texi (Calling Wordexp): Document additional use
18749         for WRDE_SYNTAX.
18750
18751 2015-03-23  Alan Modra  <amodra@gmail.com>
18752
18753         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18754         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18755         and false branch of conditional.
18756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18757         Likewise.
18758
18759 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18760
18761         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18762         libc-modules.h
18763         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18764         unused declaration of _hurd_intr_rpc_msg_in_trap.
18765         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18766         defined instead of whether it is non-zero.
18767         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18768         input constraint instead of both input and output constraint.  Use ecx
18769         clobber instead of %ecx.
18770         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18771         mutex_unlock): Use a statement expression instead of an expression list.
18772         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18773         type to vm_size_t instead of vm_address_t.
18774         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18775         defined instead of whether it is non-zero.
18776         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18777         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18778         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18779         comparisons with mapaddr.
18780         * nscd/nscd-client.h: Include <time.h>.
18781         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18782         9th parameter to __vm_region instead of int.
18783         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18784         * scripts/check-local-headers.sh (exclude): Add device/,
18785         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18786         cthreads.h.
18787
18788 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18789
18790         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18791         to account for alignment padding.
18792         * sysdeps/arm/memmove.S: Likewise.
18793
18794 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18795
18796         * sysdeps/unix/sysv/linux/generic/README: New file.
18797
18798 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18799
18800         [BZ #18138]
18801         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18802         (futex_abstimed_wait)
18803         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18804         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18805         of lll_futex_timed_wait.
18806
18807 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18808
18809         [BZ #17542]
18810         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18811
18812 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18813
18814         [BZ #17090]
18815         [BZ #17620]
18816         [BZ #17621]
18817         [BZ #17628]
18818         * NEWS: Update.
18819         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18820         entries with Static TLS too.  Skip entries past the end of the
18821         allocated DTV, from Alan Modra.
18822         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18823         Static TLS DTV entry set up from...
18824         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18825         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18826         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18827         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18828         for Static TLS.
18829         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18830         that the slot we find is associated with the given map before
18831         using its generation count.
18832         * nptl_db/db_info.c: Include ldsodefs.h.
18833         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18834         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18835         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18836         (link_map::l_tls_offset): New struct field.
18837         (dtv_t::counter): Likewise.
18838         (rtld_global): New struct.
18839         (_rtld_global): New rtld variable.
18840         (dl_tls_dtv_slotinfo_list): New rtld global field.
18841         (dtv_slotinfo_list): New struct.
18842         (dtv_slotinfo): Likewise.
18843         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18844         (td_lookup): Rename to...
18845         (td_mod_lookup): ... this.  Use new mod parameter instead of
18846         LIBPTHREAD_SO.
18847         * nptl_db/td_thr_tlsbase.c: Include link.h.
18848         (dtv_slotinfo_list, dtv_slotinfo): New functions.
18849         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
18850         addresses even if the DTV is out of date or missing them.
18851         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
18852         index zero-length arrays.
18853         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
18854         (td_lookup): Make it a macro implemented in terms of...
18855         (td_mod_lookup): ... this declaration.
18856         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
18857         (DB_MAIN_VARIABLE): Likewise.
18858
18859 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18860
18861         [BZ #18134]
18862         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18863
18864 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         * stdlib/setenv.c (__add_to_environ): Revert previous change.
18867
18868 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18869
18870         [BZ #18128]
18871         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
18872         (atomic_add, atomic_increment_and_test)
18873         (atomic_decrement_and_test): Fix 64-bit arithmetic.
18874
18875 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18876
18877         * stdlib/setenv.c (__add_to_environ):
18878         Dump core quickly if setenv (..., NULL, ...) is called.
18879
18880 2015-03-13  Roland McGrath  <roland@hack.frob.com>
18881
18882         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
18883         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
18884         all the necessary asm magic in one place.
18885         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
18886         using those.
18887
18888 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
18889
18890         [BZ #14906]
18891         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
18892         traced file mtime. Use consistent log message.
18893         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
18894         (register_traced_file): Call install_watches. Always set mtime.
18895         (invalidate_cache): Iterate over all trace files. Call install_watches.
18896         (inotify_check_files): Don't inline. Handle watching parent
18897         directories and configuration file movement in and out.
18898         (handle_inotify_events): New function.
18899         (main_loop_poll): Call handle_inotify_events.
18900         (main_loop_epoll): Likewise.
18901         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
18902         (struct traced_file): Use array of inotify fds. Add parent directory,
18903         and basename.
18904         (struct database_dyn): Remove unused file_mtime.
18905         (init_traced_file): New inline function.
18906         (define_traced_file): New macro.
18907         * nss/nss_db/db-init.c: Use define_traced_file.
18908         (_nss_db_init): Use init_traced_file.
18909         * nss/nss_files/files-init.c: Use define_traced_file.
18910         (_nss_files_init): Use init_traced_file.
18911
18912 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
18913
18914         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
18915         [_LIBC]: Do not include <stdlib.h>.
18916         [!_LIBC] (abort): Remove declaration.
18917         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
18918         _FP_STATIC_ASSERT instead of conditionally calling abort.
18919         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
18920         (_FP_EXTEND_CNAN): Likewise.
18921         (FP_TRUNC): Likewise.
18922         (__FP_CLZ): Likewise.
18923         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
18924
18925 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
18926
18927         * manual/string.texi (XPG basename): Fix prototype.
18928
18929 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18930
18931         [BZ #18080]
18932         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
18933         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18934         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
18935         (__setcontext): Likewise.
18936         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
18937         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18938         Call rt_sigprocmask syscall one time to set new signal mask
18939         and retrieve the current signal mask instead of two calls.
18940         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
18941         (__swapcontext): Likewise.
18942         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
18943         * stdlib/tst-setcontext2.c: New file.
18944
18945 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18946
18947         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
18948
18949 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
18950
18951         [BZ #18093]
18952         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
18953         the wrong size.
18954
18955 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
18956
18957         [BZ #18043]
18958         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
18959
18960 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
18961
18962         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
18963         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
18964         Remove define.
18965         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
18966         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
18967         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
18968         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
18969         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
18970         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
18971         define.
18972         * nptl_db/td_symbol_list.c (td_lookup): Remove
18973         HAVE_ASM_GLOBAL_DOT_NAME code.
18974         * sysdeps/powerpc/powerpc64/configure.ac: Remove
18975         HAVE_ASM_GLOBAL_DOT_NAME check.
18976         * sysdeps/powerpc/powerpc64/configure: Regenerate.
18977         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
18978         (DOT_LABEL): Remove define.
18979         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
18980         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
18981         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
18982         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
18983         (__TLS_GET_ADDR): Likewise.
18984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
18985         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
18986
18987 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
18988
18989         [BZ #18111]
18990         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
18991         (_FPU_SETCW): Initialize cw from fpsr before storing.
18992         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
18993         (fesetexceptflag): Rewrite using fpu_control.h.
18994         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
18995
18996 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
18997
18998         [BZ #18110]
18999         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19000         asms.
19001         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19002
19003 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19004
19005         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19006         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19007         abort.
19008         (_FP_FMA): Likewise.
19009         (_FP_DIV): Likewise.
19010
19011 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19012
19013         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19014         with 0 in that case.
19015         * Makefile (summarize-tests): New canned sequence, factored out of
19016         commands for targets tests and xtests.  Display summary lines that
19017         don't start with PASS: or XFAIL: rather than ones that do start with
19018         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19019         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19020         do start with ERROR: or FAIL:.
19021         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19022         (except for [$(build-shared) = yes]).
19023         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19024         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19025         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19026         * nptl/Makefile: Revert 2015-03-04 changes.
19027         [$(CXX) empty] (tests-unsupported): New variable.
19028         * debug/Makefile: Likewise.
19029
19030         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19031         gnulib file.  Replace __attribute with __attribute__ throughout.
19032
19033 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19034
19035         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19036
19037 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19038
19039         [BZ #18104]
19040         * math/auto-libm-test-in: Add another test of pow.
19041         * math/auto-libm-test-out: Regenerated.
19042
19043 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19044
19045         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19046         $(config-cflags-nofma).
19047
19048 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19049
19050         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19051         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19052         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19053         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19054         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19055         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19056         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19057         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19058         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19059         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19060         Add comment on closing #endif.
19061
19062 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19063
19064         * posix/wordexp.c (CHAR_IN_SET): New macro.
19065         (parse_param): Use it.
19066
19067 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19068
19069         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19070
19071 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19072
19073         [BZ #18043]
19074         * posix/wordexp.c (parse_param): Fix buffer overflow.
19075         * posix/wordexp-test.c (test_case): Add test case.
19076
19077 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19078
19079         [BZ #18042]
19080         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19081         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19082
19083 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19084
19085         [BZ #18043]
19086         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19087         (do_bz18043): Delete.
19088         (at_page_end): New.
19089         (testit): Refactor to have words at the edge of unreadable page.
19090
19091 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19092
19093         [BZ #16734]
19094         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19095         Cleanup read-only streams as well.
19096         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19097
19098 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19099
19100         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19101         <bits/libc-lockP.h>
19102
19103 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19104
19105         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19106         on [__KERNEL__].
19107         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19108         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19109         * soft-fp/op-common.h (_FP_DECL): Likewise.
19110
19111 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19112
19113         * elf/ifuncdep2.c (global): Replace
19114         __attribute__((visibility("protected"))) with
19115         asm (".protected global").
19116         * elf/ifuncmod1.c (global): Likewise.
19117         * elf/ifuncmod5.c (global): Likewise.
19118
19119 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19120
19121         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19122         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19123
19124 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19125
19126         * manual/install.texi (Configuring and compiling):
19127         Document test-wrapper-env-only.
19128         * INSTALL: Regenerated.
19129
19130 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19131
19132         [BZ #18043]
19133         * posix/wordexp.c (parse_param): Fix buffer overflow.
19134         * posix/wordexp-test.c (do_bz18043): Add test case.
19135
19136 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19137
19138         * time/tst-strptime2.c (do_test): Ensure failing tests are
19139         reported correctly.
19140         * time/tst-strptime3.c (do_test): Likewise.
19141
19142 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19143
19144         Fix aio_error thread-safety.
19145         * sysdeps/pthread/aio_error.c: New file
19146         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19147         synchronization.
19148
19149 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19150
19151         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19152         (group_number, vfprintf): Use it.
19153         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19154         (JUMP, REF): Use it.
19155         (WORK_BUFFER_SIZE): New enum constant.
19156         (process_arg, vfprintf): Use it.
19157
19158 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19159
19160         * manual/errno.texi (Error Messages): Complete example function
19161         by adding missing #define.
19162         (program_invocation_name): Add statement indicating GNU
19163         extension and reference which header file declares the variable.
19164         (program_invocation_short_name): Likewise.
19165
19166 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19167
19168         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19169         compatibility note.
19170
19171 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19172
19173         * Makeconfig (test-wrapper-env-only): New variable.
19174         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19175         then use that with $(test-wrapper-env-only) rather than using
19176         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19177
19178 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19179
19180         [BZ #18082]
19181         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19182         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19183         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19184         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19185         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19186         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19187         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19188         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19189         Likewise.
19190         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19191         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19192         Likewise.
19193         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19194         Likewise.
19195         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19196         Likewise.
19197         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19198         Likewise.
19199         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19200         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19201         Likewise.
19202         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19203         Likewise.
19204         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19205         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19206
19207 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19208
19209         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19210         (ETH_ALEN): New macro.
19211         (struct ether_addr): Use it for length of ether_addr_octet.
19212
19213         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19214         (setdb): Don't call __nss_configure_lookup for "rpc".
19215         (do_test): Don't call test_rpc.
19216         (output_rpcent, test_rpc): Functions moved ...
19217         * sunrpc/test-rpcent.c: ... to this new file.
19218         * sunrpc/Makefile (tests): Add it.
19219
19220         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19221         __xpg_sigpause.
19222         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19223         * nptl/tst-signal6.c: Likewise.
19224         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19225         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19226
19227         * configure.ac (libc_cv_cxx_link_ok): New check.
19228         Reset CXX to empty if it fails to link.
19229         * configure: Regenerated.
19230         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19231         bug-atexit3-lib only if $(CXX) is nonempty.
19232         * nptl/Makefile (tests): Likewise for tst-cancel24.
19233         (tests, tests-static): Likewise for tst-cancel24-static.
19234         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19235         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19236         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19237         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19238
19239 2015-03-04  Andreas Schwab  <schwab@suse.de>
19240
19241         [BZ #17631]
19242         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19243         for non-GCC compilers.
19244         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19245         Likewise.
19246
19247 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19248
19249         [BZ #17776]
19250         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19251         integer before bitwise and assembly operations.
19252         (feclearexcept): Likewise.
19253         * math/test-fenvinline.c: New file.
19254         * math/Makefile: Add test-fenvinline test.
19255
19256 2015-03-03  Alan Modra  <amodra@gmail.com>
19257
19258         [BZ #16512]
19259         * scripts/localplt.awk: Strip off symbol version.
19260         * NEWS: Mention bug fix.
19261
19262 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19263
19264         * sysdeps/pthread/timer_routines.c
19265         (timer_free_list, thread_free_list, thread_active_list): Make static.
19266
19267 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19268
19269         [BZ #17779]
19270         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19271         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19272         Undefine.
19273         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19274         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19275         Likewise.
19276         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19277         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19278         Likewise.
19279
19280 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19281
19282         [BZ #18036]
19283         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19284         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19285
19286 2015-03-02  Andreas Schwab  <schwab@suse.de>
19287
19288         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19289         variable name.
19290
19291 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19292
19293         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19294         Return error status.
19295
19296 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19297
19298         [BZ #15969]
19299         * locale/findlocale.c (_nl_find_locale): Introduce const
19300         version of loc_name and drop unsafe type casts.
19301
19302 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19303
19304         * dlfcn/tststatic2.c (main): Converted to ...
19305         (do_test): ... this.
19306         (TEST_FUNCTION): New macro.
19307         Include test-skeleton.c.
19308
19309 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19310
19311         [BZ #17711]
19312         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19313         (tests-pie): Add vismain.
19314         (CFLAGS-vismain.c): New.
19315         * elf/vismain.c: Add comments for PIE requirement.
19316
19317 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19318
19319         [BZ #18046]
19320         [BZ #18047]
19321         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19322         0x1p-56L as threshold for just returning the argument.
19323         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19324         0x1p-32L as threshold for just returning the argument.
19325         * math/auto-libm-test-in: Add more tests of atanh.
19326         * math/auto-libm-test-out: Regenerated.
19327         * sysdeps/i386/fpu/libm-test-ulps: Update.
19328         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19329
19330 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19331
19332         * string/bcopy.c (bcopy): Call memmove for performance.
19333
19334 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19335
19336         * string/bzero.c (__bzero): Call memset for performance.
19337
19338 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19339
19340         [BZ #18068]
19341         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19342         to 00100000.
19343
19344 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19347
19348 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19349
19350         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19351         (__kernel_standard): Use CSTR macro when setting exc.name.
19352         * sysdeps/ieee754/Makefile [$(subdir) = math]
19353         (CFLAGS-k_standard.c): Remove variable.
19354
19355         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19356         setting p and q from "else if" to "else".
19357         (qzero): Likewise.
19358         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19359         (qone): Likewise.
19360         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19361         (qzerof): Likewise.
19362         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19363         (qonef): Likewise.
19364         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19365         (qzero): Likewise.
19366         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19367         (qone): Likewise.
19368
19369         [BZ #18038]
19370         [BZ #18039]
19371         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19372         return pi/2 for arguments below 0x1p-113L.
19373         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19374         return pi/2 for arguments below 0x1p-106L.
19375         * math/auto-libm-test-in: Add more tests of acos.
19376         * math/auto-libm-test-out: Regenerated.
19377
19378         [BZ #16351]
19379         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19380         (MO): New macro.
19381         (__ieee754_asin): Force underflow exception for results with small
19382         absolute value.
19383         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19384         (MO): New macro.
19385         (__ieee754_asinf): Force underflow exception for results with
19386         small absolute value.
19387         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19388         (__ieee754_asin): Force underflow exception for results with small
19389         absolute value.
19390         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19391         (__ieee754_asinf): Force underflow exception for results with
19392         small absolute value.
19393         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19394         (__ieee754_asinl): Force underflow exception for results with
19395         small absolute value.
19396         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19397         (__ieee754_asinl): Force underflow exception for results with
19398         small absolute value.
19399         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19400         (__ieee754_asinl): Force underflow exception for results with
19401         small absolute value.
19402         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19403         Include <math.h>.
19404         * math/auto-libm-test-in: Do not mark underflow exceptions as
19405         possibly missing for bug 16351.
19406         * math/auto-libm-test-out: Regenerated.
19407
19408         [BZ #18030]
19409         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19410         of power of 2 down when low part has opposite sign.
19411         * math/libm-test.inc (logb_test_data): Add more tests.
19412
19413 2015-02-26  Andreas Schwab  <schwab@suse.de>
19414
19415         [BZ #18032]
19416         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19417         over collating symbol inside a bracket expression.  Minor cleanup.
19418         * posix/tst-fnmatch3.c (do_test): Add test case.
19419
19420 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19421
19422         [BZ #18029]
19423         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19424         Adjust exponent of power of 2 down when low part has opposite
19425         sign.
19426         * math/libm-test.inc (ilogb_test_data): Add more tests.
19427
19428 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19429
19430         [BZ #15969]
19431         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19432         the previous change.
19433
19434         [BZ #15969]
19435         * locale/findlocale.c (_nl_find_locale): Retry archive search
19436         after alias expansion.
19437
19438 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19439
19440         * iconv/tst-iconv3.c (main): Converted to ...
19441         (do_test): ... this.
19442         (TEST_FUNCTION): New macro.
19443         Include test-skeleton.c.
19444
19445         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19446         (convert): Make function static.
19447         (test_unalign): Likewise.  Add const to argument pointee types.
19448         (main): Replace with static function do_test.
19449         Print "Succeeded." only if RET is zero.
19450         (TEST_FUNCTION): New macro.
19451         Include test-skeleton.c.
19452
19453         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19454         returns a null pointer.
19455
19456 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19457
19458         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19459         to __memcpy_ppc only for static builds.
19460
19461 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19462
19463         [BZ #18020]
19464         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19465         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19466         * math/auto-libm-test-in: Add more tests of asinh.
19467         * math/auto-libm-test-out: Regenerated.
19468         * sysdeps/i386/fpu/libm-test-ulps: Update.
19469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19470
19471 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19472
19473         [BZ #15850]
19474         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19475         and ip6_mtuinfo definitions here.
19476         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19477         in this define too.  Update comment.
19478
19479 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19480
19481         * elf/sprof.c (load_shobj): Tweak error message to match others.
19482
19483 2015-02-24  Kevin Easton  <kevin@guarana.org>
19484
19485         [BZ #16145] (partial fix)
19486         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19487         to reduce lock contention.
19488
19489 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19490
19491         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19492         (struct timex): Update time comment.
19493         (ADJ_SETOFFSET): Define.
19494
19495 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19496
19497         [BZ #18019]
19498         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19499         2**56 not 2**28 as threshold for log (2x) formula.
19500         * math/auto-libm-test-in: Add more tests of acosh.
19501         * math/auto-libm-test-out: Regenerated.
19502         * sysdeps/i386/fpu/libm-test-ulps: Update.
19503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19504
19505 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19506
19507         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19508         parenthesis around the buf assignment.
19509         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19510
19511 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19512
19513         [BZ #16783]
19514         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19515         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19516         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19517         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19518         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19519         * math/libm-test.inc (scalb_test_data): Add more tests.
19520
19521 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19522
19523         [BZ #17916]
19524         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19525         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19526
19527 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19528
19529         [BZ #17523]
19530         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19531         * io/bits/fcntl2.h (open): Use it.
19532         (openat): Likewise.
19533         * io/open.c (__libc_open): Likewise.
19534         * io/open64.c (__libc_open64): Likewise.
19535         * io/open64_2.c (__open64_2): Likewise.
19536         * io/open_2.c (__open_2): Likewise.
19537         * io/openat.c (__openat): Likewise.
19538         * io/openat64.c (__openat64): Likewise.
19539         * io/openat64_2.c (__openat64_2): Likewise.
19540         * io/openat_2.c (__openat_2): Likewise.
19541         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19542         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19543         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19544         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19545         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19546         (__open_nocancel): Likewise.
19547         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19548         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19549         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19550
19551 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19552
19553         [BZ #14841]
19554         * resolv/gethnamaddr.c (getanswer): Skip logging if
19555         RES_USE_DNSSEC is set.
19556         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19557
19558 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19559
19560         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19561
19562 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19563
19564         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19565         201304L, for Unicode 7.
19566
19567 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19568
19569         [BZ #17836]
19570         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19571         shared library.  Add gmon-start.os otherwise.
19572         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19573         $(objpfx)gmon-start.os if builing shared library.
19574         ($(objpfx)g$(static-start-installed-name)): Likewise.
19575
19576 2015-02-23  Andreas Schwab  <schwab@suse.de>
19577
19578         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19579
19580 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19581
19582         [BZ #17269]
19583         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19584         (enlarge_userbuf): Likewise.
19585
19586 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19587
19588         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19589         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19590         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19591         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19592
19593 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19594
19595         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19596         expression inside statement expression.
19597
19598 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19599
19600         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19601         <sysdeps/nptl/lowlevellock.h> and remove macros and
19602         functions that are now defined there.
19603         (SYS_futex): Remove.
19604         (lll_compare_and_swap): Remove.
19605         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19606
19607 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19608
19609         [BZ #17999]
19610         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19611         instead of scandirat.
19612         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19613         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19614         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19615         __scandirat.
19616         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19617         (__scandirat): Declare.  Use libc_hidden_proto.
19618         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19619         Remove variable.
19620         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19621
19622 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19623
19624         [BZ #15319]
19625         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19626         (MO): New macro.
19627         (__ieee754_atan2): For results with small absolute value, force
19628         underflow exception and remove excess range and precision from
19629         return value.
19630         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19631         (MO): New macro.
19632         (__ieee754_atan2f): For results with small absolute value, force
19633         underflow exception and remove excess range and precision from
19634         return value.
19635         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19636         (MO): New macro.
19637         (__atan): For results with small absolute value, force underflow
19638         exception and remove excess range and precision from return value.
19639         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19640         (MO): New macro.
19641         (__atanf): For results with small absolute value, force underflow
19642         exception and remove excess range and precision from return value.
19643         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19644         <math.h>.
19645         (__ieee754_atan2): Force underflow exception for results with
19646         small absolute value.
19647         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19648         <math_private.h>.
19649         (atan): Force underflow exception for results with small absolute
19650         value.
19651         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19652         (__atanf): Force underflow exception for results with small
19653         absolute value.
19654         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19655         <math.h>.
19656         (__atanl): Force underflow exception for results with small
19657         absolute value.
19658         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19659         (__atanl): Force underflow exception for results with small
19660         absolute value.
19661         * sysdeps/x86/fpu/bits/mathinline.h
19662         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19663         (__ieee754_atan2): Only define inline for long double.
19664         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19665         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19666         * math/auto-libm-test-in: Do not mark underflow exceptions as
19667         possibly missing for bug 15319.  Add more tests of atan2.
19668         * math/auto-libm-test-out: Regenerated.
19669         * math/libm-test.inc (casin_test_data): Do not mark underflow
19670         exceptions as possibly missing for bug 15319.
19671         (casinh_test_data): Likewise.
19672         * sysdeps/i386/fpu/libm-test-ulps: Update.
19673
19674 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19675
19676         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19677         * sysdeps/mips/bits/endian.h: Fix comments.
19678
19679 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19680
19681         [BZ #17996]
19682         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19683         (hdestroy_r): Likewise.
19684         (hsearch_r): Likewise.
19685         (__hcreate_r): Declare and use libc_hidden_proto.
19686         (__hdestroy_r): Likewise.
19687         (__hsearch_r): Likewise.
19688         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19689         (hcreate): Call __hcreate_r instead of hcreate_r.
19690         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19691         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19692         as weak alias of __hcreate_r.
19693         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19694         __hdestroy_r.
19695         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19696         __hsearch_r.
19697         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19698         Remove variable.
19699         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19700         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19701         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19702         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19703
19704 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19705
19706         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19707         arena_lock into a single arena_get.
19708
19709 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19710
19711         * dl-reloc.c: Inlucde libc-internal.h.
19712         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19713         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19714         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19715         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19716         (grow_heap): Likewise.
19717         * malloc/malloc.c: Include libc-internal.h.
19718         (do_check_malloc): Call powerof2.
19719         (sysmalloc): Use pagesize. Call ALIGN_UP.
19720         (systrim): Use pagesize.
19721         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19722         (__libc_valloc): Use pagesize.
19723         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19724
19725 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19726
19727         [BZ #17991]
19728         * include/sys/resource.h (__getrlimit64): Declare.  Use
19729         libc_hidden_proto.
19730         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19731         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19732         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19733         getrlimit64.
19734         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19735         __getrlimit64.
19736         [!getrlimit64] (getrlimit64): Define as weak alias of
19737         __getrlimit64.  Use libc_hidden_weak.
19738         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19739         using __getrlimit64 not __new_getrlimit64.
19740         (__GI_getrlimit64): Likewise.
19741         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19742         Likewise.
19743         (__GI_getrlimit64): Likewise.
19744         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19746         (getrlimit): Add __getrlimit64 alias.
19747         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19748         Likewise.
19749         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19750         Remove variable.
19751         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19752         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19753
19754 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19755
19756         * libio/fileops.c: Add missing sys/mman.h
19757         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19758
19759 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19760
19761         * manual/math.texi (Errors in Math Functions): Clarify goals
19762         regarding inexact and underflow exceptions.
19763
19764 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19765
19766         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19767         * sysdeps/mips/memset.S: Ditto.
19768
19769 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19770
19771         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19772
19773 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19774
19775         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19776         (__v1longjmp): Remove versioned symbol.
19777         (__v1siglongjmp): Remove alias and versioned symbol.
19778         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19779         (__v2siglongjmp): Likewise.
19780
19781 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19782
19783         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19784
19785 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19786
19787         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19788
19789 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19790
19791         [BZ #17987]
19792         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19793         zero result does not depend on the sign resulting from
19794         subtraction.
19795         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19796         Likewise.
19797         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19798         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19799         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19800         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19801         * math/libm-test.inc (remquo_test_data): Add more tests.
19802
19803 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19804
19805         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19806         Problem reported by J William Piggott.
19807
19808 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19809
19810         [BZ #17978]
19811         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19812         products 4 * y and 2 * y where those would overflow.
19813         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19814         Likewise.
19815         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19816         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19817         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19818         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19819         * math/libm-test.inc (remquo_test_data): Add more tests.
19820
19821         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19822
19823         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19824         [defined _COMPILING_NEWLIB].
19825         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19826         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19827
19828         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19829         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19830
19831 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19832
19833         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19834         acquired.
19835
19836 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19837
19838         [BZ #17792]
19839         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19840         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19841         HOST_STACK_END_ADDR): Likewise.
19842
19843 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19844
19845         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19846         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19847         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19848
19849 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19850
19851         * sysdeps/generic/c++-types.data: New file.
19852         * sysdeps/generic/ld.abilist: New file.
19853         * sysdeps/generic/libBrokenLocale.abilist: New file.
19854         * sysdeps/generic/libanl.abilist: New file.
19855         * sysdeps/generic/libc.abilist: New file.
19856         * sysdeps/generic/libcrypt.abilist: New file.
19857         * sysdeps/generic/libdl.abilist: New file.
19858         * sysdeps/generic/libm.abilist: New file.
19859         * sysdeps/generic/libpthread.abilist: New file.
19860         * sysdeps/generic/libresolv.abilist: New file.
19861         * sysdeps/generic/librt.abilist: New file.
19862
19863 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19864
19865         [BZ #17569]
19866         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19867         Compute absolute value of x as modified by fmod, not original
19868         value of x.
19869         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
19870         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
19871         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
19872         RUN_TEST_ffI_f1_mod8.
19873         (remquo_test_data): Add more tests.
19874
19875 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19876
19877         * sysdeps/init_array/pt-crti.S: New file.
19878
19879 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19880
19881         [BZ #17967]
19882         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
19883         __builtin_fmaf instead of relying on contraction of a * b + c.
19884
19885 2015-02-12  J William Piggott  <elseifthen@gmx.com>
19886
19887         [BZ #17969]
19888         * manual/time.texi: correct the zoneinfo path in the TZ Variable
19889         node.
19890
19891 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19892
19893         [BZ #17964]
19894         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
19895         __builtin_fma instead of relying on contraction of a * b + c.
19896
19897 2015-02-12  Roland McGrath  <roland@hack.frob.com>
19898
19899         * Makeconfig (ASFLAGS): Add -Werror=undef.
19900         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
19901         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
19902         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
19903
19904         * Makeconfig (after-link): New variable.
19905         (+link-pie, +link-pie-tests): Use it.
19906         (+link-static, +link-static-tests): Likewise.
19907         (+link, +link-tests): Likewise.
19908         * Makerules (build-module, build-module-asneeded): Likewise.
19909         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
19910         Likewise.
19911         * elf/Makefile ($(objpfx)ld.so): Likewise.
19912
19913 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
19914
19915         [BZ #17965]
19916         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
19917         both struct timeval and struct timespec.
19918
19919 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19920
19921         [BZ #16560]
19922         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19923         and redefine.
19924         (__ieee754_exp2l): Do not multiply small fractional parts by
19925         M_LN2l.
19926         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
19927         small argument.
19928         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
19929         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19930         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
19931         * math/auto-libm-test-in: Add more tests of exp2.
19932         * math/auto-libm-test-out: Regenerated.
19933
19934 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19935
19936         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
19937         unaligned path.
19938
19939 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19940
19941         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
19942         little endian.
19943
19944 2015-02-12  Andreas Schwab  <schwab@suse.de>
19945
19946         [BZ #15790]
19947         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
19948         Filter out elision flags from value returned in kind.
19949         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
19950         * nptl/tst-pthread-mutexattr.c: New file.
19951
19952 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19953
19954         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
19955         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
19956         into gnu-gnu, and update comment to refer to abi-tags.
19957
19958 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
19959
19960         [BZ #15467]
19961         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
19962         (__sincos): Set errno to EDOM for infinite argument.
19963         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
19964         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
19965         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
19966         (__sincosl): Set errno to EDOM for infinite argument.
19967         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
19968         (__sincosl): Set errno to EDOM for infinite argument.
19969         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
19970         (__sincosl): Set errno to EDOM for infinite argument.
19971         * math/libm-test.inc (sincos_test_data): Test errno setting.
19972
19973 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
19974
19975         * string/strxfrm_l.c: Remove #define STRCMP.
19976         * string/strcoll_l.c: Remove #define STRLEN.
19977         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
19978         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
19979
19980 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
19981
19982         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
19983         * sysdeps/mips/mips32/sfp-machine.h: ... here.
19984         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
19985         * sysdeps/mips/mips64/Makefile: ... here.
19986         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
19987         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
19988         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
19989         * sysdeps/mips/mips64/sfp-machine.h: ... here.
19990         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
19991         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
19992         * sysdeps/mips/mips64/n64/Implies: Likewise.
19993
19994 2015-02-10  Roland McGrath  <roland@hack.frob.com>
19995
19996         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
19997         <sys/time.h>, <string.h>, and <errno.h>.
19998         (dest_offset, dest_address, value, zero): Remove unused variables.
19999         (ldouble): Remove typedef.
20000         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20001         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20002         1).  Fix code style.
20003         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20004         (check): Function removed.
20005         (CHECK): New macro.
20006         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20007         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20008         Don't call set_sigaction_FP and remove_sigaction_FP here.
20009         (ldouble_test): Just use 'long double' as macro argument, no need for
20010         the 'ldouble' typedef.
20011         (do_test): Set up SIGFPE handler at start, using plain signal rather
20012         than sigaction.  Fix code style.
20013
20014 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20015
20016         [BZ #17949]
20017         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20018         jump label.
20019
20020 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20021
20022         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20023         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20024
20025         * sysdeps/powerpc/configure.ac: Remove file.
20026         * sysdeps/powerpc/configure: Likewise.
20027
20028         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20029         [sysdep_routines]: Remove wordcopy-power6 object.
20030         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20031         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20032         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20033         (__memmove_ppc32): Likewise.
20034         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20035         file.
20036         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20037         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20038         Remove preprocessor.
20039
20040         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20041         [sysdep_routines]: Remove wide chars objects.
20042         [wcsmbs]: New rule for wide char objects.
20043
20044         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20045         Remove wordcopy-power6 obejct.
20046         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20047         Use local call for wordcopy and memcpy symbols.
20048         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20049         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20050         implementation for loader.
20051         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20052
20053         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20054         Remove wordcopy-power7 object.
20055         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20056         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20057         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20058         (_wordcopy_fwd_dest_aligned): Likewise.
20059         (_wordcopy_bwd_aligned): Likewise.
20060         (_wordcopy_bwd_dest_aligned): Likewise.
20061
20062         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20063         Rewrite to call __memmove_ppc instead of include default
20064         implementation.
20065
20066         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20067         Remove wide chars objects.
20068         [wcsmbs]: New rule for wide char objects.
20069
20070 2015-02-09  Andreas Schwab  <schwab@suse.de>
20071
20072         [BZ #17912]
20073         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20074         in terms of __O_DIRECTORY.
20075
20076 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20077
20078         * time/getdate.c: Include <stdbool.h>.
20079         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20080         call PTR_MANGLE.
20081         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20082         PTR_DEMANGLE.
20083
20084 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20085
20086         Add ersatz _Static_assert on older C hosts
20087         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20088         pre-C11 C platform that is not known to support _Static_assert.
20089
20090 2015-02-07  Richard Braun  <rbraun@sceen.net>
20091
20092         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20093         sigstate.
20094         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20095
20096 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20097
20098         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20099         priority against unexistent AIO_PRIO_DELTA_MAX.
20100         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20101         instead of int.
20102         * misc/fchflags.c (fchflags): Likewise.
20103         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20104         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20105         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20106         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20107         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20108         Declare macros.
20109         [__USE_MISC] (chflags, fchflags): Declare functions.
20110         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20111         EINVAL when nfds is greater than FD_SETSIZE.
20112         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20113         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20114         45.
20115         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20116         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20117         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20118         MACH_RCV_TIMED_OUT.
20119         * hurd/hurd/signal.h (_hurd_self_sigstate,
20120         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20121         Explicit casts from void *.
20122         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20123         * abi-tags: Rename gnu-gnu os into gnu.
20124
20125         [BZ #4719]
20126         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20127         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20128         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20129         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20130         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20131         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20132
20133         [BZ #17944]
20134         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20135         duplicates ADDR->sun_path with sockaddr LEN limitation.
20136         * sysdeps/mach/hurd/connect.c: Include <string.h>
20137         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20138         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20139         * sysdeps/mach/hurd/sendto.c: Likewise.
20140         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20141         implementing it by hand.
20142
20143 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20144
20145         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20146         Use sfi_breg on ldr.
20147         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20148         Likewise.
20149
20150         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20151         it's defined.
20152         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20153         Test SIGSETXID only if it's defined.
20154
20155         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20156
20157         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20158         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20159
20160         * nptl/tst-align2.c: Moved ...
20161         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20162         * nptl/Makefile (tests): Remove tst-align2.
20163         * sysdeps/unix/sysv/linux/Makefile
20164         [$(subdir) = nptl] (tests): Add tst-align-clone.
20165         * nptl/tst-getpid1.c: Moved ...
20166         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20167         * nptl/tst-getpid2.c: Moved ...
20168         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20169         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20170         * sysdeps/unix/sysv/linux/Makefile
20171         [$(subdir) = nptl] (tests): ... here.
20172         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20173         * sysdeps/unix/sysv/linux/Makefile
20174         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20175
20176         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20177         Drop trailing \n from perror argument.  Use return rather than exit.
20178
20179         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20180         on [SA_SIGINFO].
20181         * nptl/tst-cancel21.c (do_test): Likewise.
20182         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20183         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20184         [!SA_SIGINFO]: Make it a stub test.
20185
20186         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20187         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20188
20189         * posix/tst-getlogin.c: Move to ...
20190         * login/tst-getlogin.c: ... here.
20191         * posix/Makefile (tests): Move tst-getlogin to ...
20192         * login/Makefile (tests): ... here.
20193
20194         * libio/tst-atime.c (do_test): Move local variables SV and E
20195         inside [ST_NOATIME] conditional.
20196
20197         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20198
20199         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20200
20201         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20202         (wait_code): New function replaces macro.
20203         Call nanosleep rather than syscall.
20204
20205         * nptl/pt-system.c: Rewritten.  Put everything under
20206         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20207         Use IFUNC to redirect when possible.
20208
20209         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20210         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20211         Use IFUNC to redirect when possible.
20212
20213         * nptl/pt-fork.c: Rewritten.  Put everything under
20214         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20215         Use IFUNC to redirect when possible.
20216         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20217
20218         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20219         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20220         unconditionally nowadays.  This included the only reference to
20221         __vdso_clock_gettime that appears outside libc proper.
20222         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20223         Remove version set (containing only __vdso_clock_gettime).
20224         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20225         Add attribute_hidden.
20226         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20227         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20228         libc_hidden_data_def.
20229         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20230         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20231
20232         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20233         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20234         setrpcent, and getrpcport to ...
20235         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20236         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20237         getrpcbynumber_r, and getrpcent_r to ...
20238         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20239         * inet/getrpcbyname.c: Moved ...
20240         * sunrpc/getrpcbyname.c: ... here.
20241         * inet/getrpcbyname_r.c: Moved ...
20242         * sunrpc/getrpcbyname_r.c: ... here.
20243         * inet/getrpcbynumber.c: Moved ...
20244         * sunrpc/getrpcbynumber.c: ... here.
20245         * inet/getrpcbynumber_r.c: Moved ...
20246         * sunrpc/getrpcbynumber_r.c: ... here.
20247         * inet/getrpcent.c: Moved ...
20248         * sunrpc/getrpcent.c: ... here.
20249         * inet/getrpcent_r.c: Moved ...
20250         * sunrpc/getrpcent_r.c: ... here.
20251         * inet/Makefile (routines): Move those to ...
20252         * sunrpc/Makefile (routines): ... here.
20253         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20254         the $(subdirs) list.
20255         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20256         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20257         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20258         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20259
20260         * elf/Makefile (routines): Include $(all-dl-routines), not just
20261         $(dl-routines).
20262         (rtld-routines): Likewise.  Use = rather than :=.
20263         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20264         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20265         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20266         * sysdeps/arm/Makefile: Likewise.
20267         * sysdeps/i386/Makefile: Likewise.
20268         * sysdeps/x86_64/Makefile: Likewise.
20269         * sysdeps/hppa/Makefile [$(subdir) = elf]
20270         (sysdep_routines, sysdep-rtld-routines): Don't add
20271         $(sysdep-dl-routines) to these.
20272         * sysdeps/ia64/Makefile: Likewise.
20273         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20274         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20275         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20276         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20277         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20278         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20279         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20280         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20281         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20282         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20283         these; sysdep-dl-routines alone is enough.
20284
20285 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20286
20287         [BZ #17932]
20288         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20289         where multiplication results in zero and third argument is finite
20290         and nonzero.
20291         * math/auto-libm-test-in: Add more tests of fma.
20292         * math/auto-libm-test-out: Regenerated.
20293
20294         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20295         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20296         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20297         (_FP_CMP_EQ): Likewise.
20298         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20299
20300         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20301         extra argument CHECK_NAN.  Redefine as wrapper around
20302         _FP_EXTEND_CNAN.
20303
20304 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20305
20306         * version.h (RELEASE): Set to "stable".
20307         (VERSION): Set to "2.21"
20308         * include/features.h (__GLIBC_MINOR__): Set to 21.
20309
20310         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20311
20312 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20313             Paul Eggert  <eggert@cs.ucla.edu>
20314
20315         [BZ #16618]
20316         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20317         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20318         size in bytes. Store needed elements in wpmax. Use needed size
20319         in bytes for extend_alloca.
20320
20321 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20322
20323         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20324         binutls 2.25, and texinfo 5.2.
20325         * INSTALL: Regenerate.
20326         * sysdeps/nios2/configure: Regenerate.
20327         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20328         * manual/contrib.texi: Update.
20329         * po/be.po: Update.
20330         * po/bg.po: Update.
20331         * po/ca.po: Update.
20332         * po/cs.po: Update.
20333         * po/da.po: Update.
20334         * po/de.po: Update.
20335         * po/el.po: Update.
20336         * po/eo.po: Update.
20337         * po/es.po: Update.
20338         * po/fi.po: Update.
20339         * po/fr.po: Update.
20340         * po/gl.po: Update.
20341         * po/hr.po: Update.
20342         * po/hu.po: Update.
20343         * po/ia.po: Update.
20344         * po/id.po: Update.
20345         * po/it.po: Update.
20346         * po/ja.po: Update.
20347         * po/ko.po: Update.
20348         * po/lt.po: Update.
20349         * po/nb.po: Update.
20350         * po/nl.po: Update.
20351         * po/pl.po: Update.
20352         * po/pt_BR.po: Update.
20353         * po/ru.po: Update.
20354         * po/rw.po: Update.
20355         * po/sk.po: Update.
20356         * po/sl.po: Update.
20357         * po/sv.po: Update.
20358         * po/tr.po: Update.
20359         * po/uk.po: Update.
20360         * po/vi.po: Update.
20361         * po/zh_CN.po: Update.
20362         * po/zh_TW.po: Update.
20363
20364         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20365         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20366         * sysdeps/hppa/dl-irel.h: Remove #warning.
20367         * sysdeps/hppa/entry.h: Provide prototype for
20368         __canonicalize_funcptr_for_compare and cast argument.
20369         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20370         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20371         * sysdeps/hppa/sotruss-lib.c: New file.
20372         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20373         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20374         (atomic_compare_and_exchange_bool_acq): Likewise.
20375         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20376         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20377
20378         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20379         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20380         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20381
20382 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20383
20384         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20385         called function in non-PIC case.
20386
20387 2015-01-31  David S. Miller  <davem@davemloft.net>
20388
20389         * sysdeps/sparc/sparc32/bits/atomic.h
20390         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20391         unlock not after it.
20392         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20393         volatile register usage warnings from the compiler.
20394
20395         * sysdeps/sparc/nptl/sem_init.c: Delete.
20396         * sysdeps/sparc/nptl/sem_post.c: Delete.
20397         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20398         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20399         * sysdeps/sparc/sparc32/sem_init.c: New file.
20400         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20401         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20402         padding explicitly initialized.
20403         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20404         padding for in-semaphore spinlock.
20405         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20406         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20407         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20408         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20409         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20410         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20411         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20412         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20413         version.
20414         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20415         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20416
20417 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20418
20419         [BZ #17801]
20420         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20421         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20422         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20423         New.
20424         (index_AVX_Fast_Unaligned_Load): Likewise.
20425         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20426         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20427         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20428         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20429         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20430         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20431         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20432         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20433         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20434
20435 2015-01-29  Andreas Schwab  <schwab@suse.de>
20436
20437         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20438
20439 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20440
20441         [BZ #17892]
20442         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20443
20444 2015-01-28  Martin Sebor  <msebor@redhat.com>
20445
20446         * math/README.libm-test: Clarify. Add "How to read the test output."
20447
20448 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20449
20450         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20451         Define to 0.
20452
20453 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20454
20455         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20456         (__HAVE_64B_ATOMICS): Define to 0.
20457
20458 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20459
20460         [BZ #17885]
20461         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20462         value to set as new flag.
20463
20464         [BZ #16576]
20465         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20466         and use _ARCH_PPCSQ instead.
20467         (__ieee754_sqrt): Likewise.
20468         (__ieee754_sqrtf): Likewise.
20469         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20470         _ARCH_PPCSQ is defined.
20471         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20472         fsqrt instruction.
20473         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20474         _ARCH_PPCSQ is defined.
20475         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20476         fsqrts instruction.
20477         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20478
20479 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20480
20481         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20482         bug (GCC BZ #64739).
20483
20484 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20485
20486         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20487         Mark _retval as used.
20488         (lll_futex_wake_unlock): Likewise.
20489         (lll_futex_timed_wait_requeue_pi): Likewise.
20490
20491         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20492         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20493         register variables.
20494
20495         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20496         libm_hidden_def.
20497
20498         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20499         (__bswap_64): Mark as __always_inline.
20500
20501 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20502
20503         [BZ #15378]
20504         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20505         when none of the search directories exist.
20506
20507 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20508
20509         [BZ #17869]
20510         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20511         power8 in .machine directive.
20512
20513         [BZ #17868]
20514         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20515         set dependency from opd value.
20516
20517 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20518
20519         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20520         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20521         architecture.
20522
20523 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20524
20525         [BZ #17870]
20526         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20527         with uint64_t.
20528         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20529         (uint64_t) 1.
20530         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20531         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20532         Replace 1UL with (uint64_t) 1.
20533         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20534         int with uint64_t.
20535
20536 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20537
20538         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20539         (if_freenameindex): Likewise.
20540
20541         * resource/getrlimit64.c: Add missing libc_hidden_def.
20542
20543 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20544
20545         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20546         __label__.
20547         (_FP_FMA): Likewise.
20548         (_FP_TO_INT_ROUND): Likewise.
20549         (_FP_FROM_INT): Likewise.
20550
20551 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20552
20553         [BZ #16418]
20554         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20555         Make code racy and cancel safe.
20556
20557 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20558
20559         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20560         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20561         attribution.
20562
20563         * pwd/tst-getpw.c: Rewrite.
20564
20565         [BZ #17702]
20566         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20567         (modules-names): Add moddummy1 and moddummy2.
20568         ($(objpfx)tst-rec-dlopen): Define.
20569         * dlfcn/moddummy1.c: New file.
20570         * dlfcn/moddummy2.c: New file.
20571         * dlfcn/tst-rec-dlopen.c: New file.
20572         * elf/dl-cache.c (_dl_load_cache_lookup):
20573         Return char*. Copy result with alloca/strcpy/strdup.
20574         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20575         returns char*. Free cached. If not saving realname
20576         free cached.
20577         * elf/dl-open.c (dl_open_worker): Do not assert that
20578         _r_debug->r_state is RT_CONSISTENT.
20579         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20580         returns char*.
20581
20582 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20583             Carlos O'Donell  <carlos@redhat.com>
20584
20585         [BZ #12674]
20586         * nptl/sem_waitcommon.c: New file.
20587         * nptl/sem_wait.c: Include sem_waitcommon.c.
20588         (__sem_wait_cleanup, do_futex_wait): Remove.
20589         (__new_sem_wait): Adapt.
20590         (__new_sem_trywait): New function.
20591         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20592         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20593         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20594         (sem_timedwait): Adapt.
20595         * nptl/sem_post.c (__new_sem_post): Adapt.
20596         (futex_wake): New function.
20597         (__old_sem_post): Add release MO fence.
20598         * nptl/sem_open.c (sem_open): Adapt.
20599         * nptl/sem_init.c (__new_sem_init): Adapt.
20600         (futex_private_if_supported): New function.
20601         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20602         (__old_sem_getvalue): Add using previous code.
20603         * sysdeps/nptl/internaltypes.h: Adapt.
20604         * nptl/tst-sem13.c (do_test): Adapt.
20605         * nptl/tst-sem11.c (main): Adapt.
20606         * nptl/sem_trywait.c: Remove.
20607         * nptl/DESIGN-sem.txt: Remove.
20608         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20609         (gen-as-const-headers): Remove structsem.sym.
20610         * nptl/structsem.sym: Remove.
20611         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20612         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20613         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20614         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20615         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20616         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20617         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20618         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20619         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20620         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20621         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20622         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20623         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20624         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20625         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20626         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20627         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20628         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20629         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20630         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20631         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20632         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20633
20634 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20635
20636         * INSTALL: Regenerated.
20637
20638         * po/libc.pot: Regenerated.
20639
20640 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20641             Sandra Loosemore  <sandra@codesourcery.com>
20642             Andrew Jenner  <andrew@codesourcery.com>
20643             Joseph Myers  <joseph@codesourcery.com>
20644             Nathan Sidwell  <nathan@codesourcery.com>
20645
20646         * NEWS: Mention new Nios II port.
20647         * sysdeps/nios2/Implies: New file.
20648         * sysdeps/nios2/Makefile: New file.
20649         * sysdeps/nios2/Subdirs: New file.
20650         * sysdeps/nios2/Versions: New file.
20651         * sysdeps/nios2/__longjmp.S: New file.
20652         * sysdeps/nios2/abort-instr.h: New file.
20653         * sysdeps/nios2/backtrace.c: New file.
20654         * sysdeps/nios2/bits/endian.h: New file.
20655         * sysdeps/nios2/bits/fenv.h: New file.
20656         * sysdeps/nios2/bits/link.h: New file.
20657         * sysdeps/nios2/bits/setjmp.h: New file.
20658         * sysdeps/nios2/bsd-_setjmp.S: New file.
20659         * sysdeps/nios2/bsd-setjmp.S: New file.
20660         * sysdeps/nios2/configure: New generated file.
20661         * sysdeps/nios2/configure.ac: New file.
20662         * sysdeps/nios2/crti.S: New file.
20663         * sysdeps/nios2/crtn.S: New file.
20664         * sysdeps/nios2/dl-init.c: New file.
20665         * sysdeps/nios2/dl-machine.h: New file.
20666         * sysdeps/nios2/dl-sysdep.h: New file.
20667         * sysdeps/nios2/dl-tls.h: New file.
20668         * sysdeps/nios2/dl-trampoline.S: New file.
20669         * sysdeps/nios2/gccframe.h: New file.
20670         * sysdeps/nios2/gmp-mparam.h: New file.
20671         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20672         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20673         * sysdeps/nios2/ldsodefs.h: New file.
20674         * sysdeps/nios2/libc-tls.c: New file.
20675         * sysdeps/nios2/libm-test-ulps: New file.
20676         * sysdeps/nios2/machine-gmon.h: New file.
20677         * sysdeps/nios2/math-tests.h: New file.
20678         * sysdeps/nios2/math_private.h: New file.
20679         * sysdeps/nios2/memusage.h: New file.
20680         * sysdeps/nios2/nptl/Makefile: New file.
20681         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20682         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20683         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20684         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20685         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20686         * sysdeps/nios2/nptl/tls.h: New file.
20687         * sysdeps/nios2/preconfigure: New file.
20688         * sysdeps/nios2/s_fma.c: New file.
20689         * sysdeps/nios2/s_fmaf.c: New file.
20690         * sysdeps/nios2/setjmp.S: New file.
20691         * sysdeps/nios2/sfp-machine.h: New file.
20692         * sysdeps/nios2/sotruss-lib.c: New file.
20693         * sysdeps/nios2/stackguard-macros.h: New file.
20694         * sysdeps/nios2/stackinfo.h: New file.
20695         * sysdeps/nios2/start.S: New file.
20696         * sysdeps/nios2/sysdep.h: New file.
20697         * sysdeps/nios2/tls-macros.h: New file.
20698         * sysdeps/nios2/tst-audit.h: New file.
20699         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20700         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20701         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20702         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20703         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20704         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20705         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20706         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20707         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20708         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20709         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20710         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20711         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20712         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20713         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20714         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20715         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20716         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20717         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20718         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20719         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20720         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20721         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20722         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20723         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20724         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20725         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20726         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20727         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20728         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20729         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20730         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20731         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20732         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20733         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20734         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20735         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20736         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20737         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20738         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20739         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20740         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20741         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20742         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20743
20744 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20745
20746         [BZ #17844]
20747         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20748         (getutent): Use weak_alias in non SHARED case
20749         and default_symbol_version in SHARED case.
20750         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20751         (getutent_r, pututline): Likewise.
20752         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20753         (getutid): Likewise.
20754         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20755         (getutid_r): Likewise.
20756         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20757         (getutline): Likewise.
20758         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20759         (getutline_r): Likewise.
20760         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20761         (updwtmp): Likewise.
20762
20763 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20764
20765         [BZ #17848]
20766         * sysdeps/s390/s390-32/memcmp.S
20767         (memcmp_g5): Rename to __memcmp_g5.
20768         * sysdeps/s390/s390-32/memcpy.S
20769         (memcpy_g5): Rename to __memcpy_g5.
20770         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20771         (memcpy_mvcle) Rename to __memcpy_mvcle.
20772         * sysdeps/s390/s390-32/memset.S
20773         (memset_g5): Rename to __memset_g5.
20774         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20775         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20776         and use prefixed functions.
20777         * sysdeps/s390/s390-32/multiarch/memcmp.S
20778         (memcmp_z196): Rename to __memcmp_z196.
20779         (memcmp_z10): Rename to __memcmp_z10.
20780         (memcmp): Set alias to __memcmp_g5.
20781         (bcmp): Set alias to __memcmp_g5.
20782         * sysdeps/s390/s390-32/multiarch/memcpy.S
20783         (memcpy_z196): Rename to __memcpy_z196.
20784         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20785         (memcpy_z10): Rename to __memcpy_z10.
20786         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20787         (memcpy): Set alias to __memcpy_g5.
20788         * sysdeps/s390/s390-32/multiarch/memset.S
20789         (memset_z196): Rename to __memset_z196.
20790         Jump to __memset_mvcle instead of memset_mvcle.
20791         (memset_z10): Rename to __memset_z10.
20792         Jump to __memset_mvcle instead of memset_mvcle.
20793         (memset_mvcle) Rename to __memset_mvcle.
20794         (memset): Set alias to __memset_g5.
20795         * sysdeps/s390/s390-64/memcmp.S
20796         (memcmp_z900): Rename to __memcmp_z900.
20797         * sysdeps/s390/s390-64/memcpy.S
20798         (memcpy_z900): Rename to __memcpy_z900.
20799         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20800         (memcpy_mvcle) Rename to __memcpy_mvcle.
20801         * sysdeps/s390/s390-64/memset.S
20802         (memset_z900): Rename to __memset_z900.
20803         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20804         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20805         and use prefixed functions.
20806         * sysdeps/s390/s390-64/multiarch/memcmp.S
20807         (memcmp_z196): Rename to __memcmp_z196.
20808         (memcmp_z10): Rename to __memcmp_z10.
20809         (memcmp): Set alias to __memcmp_z900.
20810         (bcmp): Set alias to __memcmp_z900.
20811         * sysdeps/s390/s390-64/multiarch/memcpy.S
20812         (memcpy_z196): Rename to __memcpy_z196.
20813         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20814         (memcpy_z10): Rename to __memcpy_z10.
20815         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20816         (memcpy): Set alias to __memcpy_z900.
20817         * sysdeps/s390/s390-64/multiarch/memset.S
20818         (memset_z196): Rename to __memset_z196.
20819         Jump to __memset_mvcle instead of memset_mvcle.
20820         (memset_z10): Rename to __memset_z10.
20821         Jump to __memset_mvcle instead of memset_mvcle.
20822         (memset_mvcle) Rename to __memset_mvcle.
20823         (memset): Set alias to __memset_z900.
20824
20825 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20826
20827         [BZ #17748]
20828         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20829         __fesetenv instead of fesetenv.
20830
20831 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20832
20833         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20834         macro.
20835
20836 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20837
20838         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20839         regression on LE.
20840
20841         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20842         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20843         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20844         strncmp-power8 object.
20845         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20846         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20847         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20848         * NEWS: Update.
20849
20850 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20851             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20852
20853         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
20854         trailing byte check.
20855
20856 2015-01-13  David S. Miller  <davem@davemloft.net>
20857
20858         * include/signal.h (__sigreturn): Guard with __USE_MISC.
20859
20860 2015-01-13  Roland McGrath  <roland@hack.frob.com>
20861
20862         * login/logout.c (logout): Use memset rather than bzero.
20863         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
20864         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
20865         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
20866         (_gethtbyaddr): Likewise.
20867         * locale/programs/simple-hash.c (bcopy): Macro removed.
20868
20869 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20870
20871         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20872         Add strcmp-power8 object.
20873         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20874         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
20875         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
20876         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
20877         __strcmp_power8 implementation.
20878         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
20879         * NEWS: Update.
20880
20881         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20882         Add strncpy-power8 and stpncpy-power8 objects.
20883         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20884         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
20885         implementations.
20886         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
20887         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
20888         __stpncpy_power8 implementation.
20889         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
20890         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
20891         __strncpy_power8 implementation.
20892         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
20893         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
20894         * NEWS: Update.
20895
20896         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
20897         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
20898         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
20899
20900         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20901         strncat-power8 object.
20902         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
20903         __strcat_power8 implementation.
20904         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20905         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
20906         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
20907         optimized strcat for power8.
20908
20909         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20910         strcpy-power8 and stpcpy-power8 objects.
20911         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20912         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
20913         implementations.
20914         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
20915         multiarch stpcpy implementation for POWER8.
20916         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
20917         multiarch strcpy implementation for POWER8.
20918         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
20919         __strcpy_power8 function.
20920         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
20921         stpcpy for POWER8.
20922         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
20923         strcpy for POWER8.
20924         * NEWS: Update.
20925
20926 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
20927
20928         [BZ #16009]
20929         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
20930         weights and rules. Use do_xfrm_cached if data fits in cache,
20931         do_xfrm otherwise.  Moved former main loop to...
20932         * (do_xfrm_cached): New function.
20933         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
20934         find_idx, find_position and stack_push.
20935         * (find_idx): New function.
20936         * (find_position): Likewise.
20937         * localedata/sort-test.sh: Added test run for do_xfrm.
20938         * localedata/xfrm-test.c (main): Added command line option
20939         -nocache to run the test with strings that are too large for
20940         the STRXFRM cache.
20941
20942 2015-01-13  Torvald Riegel  <triegel@redhat.com>
20943
20944         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
20945         variable to lll_futex_wake call, not the value itself.
20946
20947 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
20948
20949         [BZ #17803]
20950         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
20951         twom64.  Adjust value to 0x1p-64L.
20952         (__scalblnl): Only return standard underflowing result for K <=
20953         -64 not K <= -63; adjust exponent for underflowing result by 64
20954         not 63.
20955         * math/libm-test.inc (scalbn_test_data): Add more tests.
20956         (scalbln_test_data): Likewise.
20957
20958         [BZ #17834]
20959         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
20960         0x1p63L.
20961         (__scalblnl): Get new exponent of adjusted subnormal value from ES
20962         not HX.
20963         * math/libm-test.inc (scalbn_test_data): Add more tests.
20964         (scalbln_test_data): Likewise.
20965
20966 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20967             Stefani Seibold  <stefani@seibold.net>
20968
20969         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
20970         (sysdep_routines): Add dl-vdso here, ...
20971         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
20972         (sysdep_routines): ... not here.
20973         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
20974         fallback when vDSO is not presented.
20975         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
20976         Define with libc_hidden_proto/libc_hidden_data_def definitions.
20977         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
20978         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
20979         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
20980         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
20981         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
20982         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
20983         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
20984         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
20985         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
20986         fallback configurable symbol when vDSO is not available.
20987         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
20988         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
20989         be able to redefine fallback symbol when vDSO is not available.
20990         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
20991         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
20992
20993 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20994
20995         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
20996         (TLS_INIT_TP): Add tm_capable initialization.
20997         (TLS_DEFINE_INIT_TP): Likewise.
20998         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
20999         TCB.
21000         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21001         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21002         calculation.
21003         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21004         transactoion is lock elision is built and TCB tm_capable is set.
21005         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21007         (INTERNAL_SYSCALL_NCS): Likewise.
21008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21009         (INTERNAL_SYSCALL_NCS): Likewise.
21010         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21011
21012         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21013         for powerpc.
21014         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21015         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21016         and remove it for 32 bits case.
21017         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21018         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21019         initialization.
21020         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21021         Disable lock elision with rdlocks if elision is not available.
21022
21023         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21024         (sysdep_routines): Add lock elision objects.
21025         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21026         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21027         [pthread_mutex_t] (__elision): Add field.
21028         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21029         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21030         elision definitions for powerpc.
21031         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21032         implementation of lock elision for powerpc.
21033         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21034         implementation of timed lock elision for powerpc.
21035         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21036         implementation of trylock with lock elision for powerpc.
21037         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21038         implementaion of unlock for lock elision for powerpc.
21039         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21040         automatic enable lock elision for mutexes.
21041         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21042         transaction execution definitions for powerpc.
21043         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21044         definitions.
21045         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21046         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21047         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21048         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21049         * NEWS: Update.
21050
21051 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21052
21053         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21054         for #include of <shm-directory.h>.
21055
21056 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21057
21058         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21059         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21060
21061 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21062
21063         [BZ #17791]
21064         * NEWS: Mention bug fix.
21065         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21066         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21067         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21068
21069 2015-01-09  Torvald Riegel <triegel@redhat.com>
21070
21071         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21072
21073 2015-01-09  Torvald Riegel <triegel@redhat.com>
21074
21075         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21076
21077 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21078
21079         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21080         pointer and cast to uintptr_t.
21081
21082 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21083
21084         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21085         removed.
21086         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21087
21088 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21089
21090         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21091         of 0.
21092
21093 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21094
21095         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21096         <nptl/pthreadP.h> instead.
21097         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21098
21099         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21100         already defined.
21101         [__SIGRTMIN] (init): Function removed.
21102         [__SIGRTMIN] (initialized): Variable removed.
21103         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21104         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21105         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21106         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21107         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21108         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21109         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21110         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21111         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21112         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21113         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21114         * sysdeps/nptl/allocrtsig.c: New file.
21115         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21116         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21117         * sysdeps/generic/testrtsig.h: File removed.
21118
21119         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21120         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21121
21122         * nptl/nptl-init.c (pthread_functions): Conditionalize
21123         .ptr__nptl_setxid initialization on [SIGSETXID].
21124
21125         * sysdeps/nptl/sys/procfs.h: New file.
21126         * nptl_db/Makefile (headers): Add it.
21127         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21128
21129         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21130         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21131         * nptl/pthread_attr_setaffinity.c: Include it.
21132         * nptl/pthread_setattr_default_np.c: Likewise.
21133         * nptl/check-cpuset.h: New file.
21134
21135 2015-01-08  Richard Henderson  <rth@redhat.com>
21136
21137         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21138         (CFLAGS-tst-execstack-prog.c): Likewise.
21139         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21140
21141 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21142             Sandra Loosemore  <sandra@codesourcery.com>
21143             Andrew Jenner  <andrew@codesourcery.com>
21144             Joseph Myers  <joseph@codesourcery.com>
21145             Nathan Sidwell  <nathan@codesourcery.com>
21146
21147         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21148         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21149         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21150         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21151         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21152         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21153         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21154         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21155         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21156         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21157         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21158         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21159         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21160         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21161         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21162         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21163         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21164
21165 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21166
21167         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21168         timespec struct member in syscall macro.
21169         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21170         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21171         first timeval struct member in syscall macro.
21172         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21173
21174 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21175
21176         [BZ #17748]
21177         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21178         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21179         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21180         __feupdateenv and define as weak alias of __feupdateenv.  Use
21181         libm_hidden_weak.
21182         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21183         libm_hidden_def.
21184         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21185         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21186         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21187         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21188         libm_hidden_def.
21189         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21190         __feupdateenv and define as weak alias of __feupdateenv.  Use
21191         libm_hidden_weak.
21192         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21193         libm_hidden_def.
21194         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21195         __feupdateenv and define as weak alias of __feupdateenv.  Use
21196         libm_hidden_weak.
21197         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21198         libm_hidden_def.
21199         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21200         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21201         (__feupdateenv): Likewise.
21202         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21203         __feupdateenv and define as weak alias of __feupdateenv.  Use
21204         libm_hidden_weak.
21205         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21206         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21207         libm_hidden_def.
21208         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21209         function.
21210         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21211         libm_hidden_def.
21212         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21213         __feupdateenv instead of feupdateenv.
21214         (default_libc_feupdateenv_test): Likewise.
21215         (libc_feresetround_ctx): Likewise.
21216
21217 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21218
21219         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21220         prototype.
21221
21222 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21223
21224         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21225         COLL_SYM in a couple of places to avoid uninitialized variable
21226         wanings on tilegx gcc 4.8.2.
21227
21228 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21229
21230         * sysdeps/aarch64/strcpy.S: New file.
21231         * sysdeps/aarch64/stpcpy.S: New file.
21232         * NEWS: Updated.
21233
21234 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21235
21236         * sysdeps/aarch64/strrchr.S: New file.
21237         * NEWS: Updated.
21238
21239 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21240
21241         [BZ #17658]
21242         * stdlib/setenv.c: Fix memory leak when setting large,
21243         duplicate string.
21244
21245 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21246
21247         [BZ #17273]
21248         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21249         and tabs from buffer before parsing fstab entry.
21250         * misc/tst-mntent.c (main): Add test for mount entry with
21251         trailing spaces and tabs.
21252
21253 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21254
21255         [BZ #17748]
21256         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21257         * math/fesetround.c (fesetround): Rename to __fesetround and
21258         define as weak alias of __fesetround.  Use libm_hidden_weak.
21259         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21260         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21261         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21262         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21263         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21264         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21265         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21266         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21267         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21268         __fesetround_inline.
21269         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21270         __fesetround_inline instead of __fesetround.
21271         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21272         __fesetround and define as weak alias of __fesetround.  Use
21273         libm_hidden_weak.  Call __fesetround_inline instead of
21274         __fesetround.
21275         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21276         __fesetround and define as weak alias of __fesetround.  Use
21277         libm_hidden_weak.
21278         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21279         Likewise.
21280         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21281         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21282         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21283         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21284         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21285         __fesetround and define as weak alias of __fesetround.  Use
21286         libm_hidden_weak.
21287         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21288         __fesetround instead of fesetround.
21289         (default_libc_feholdexcept_setround): Likewise.
21290         (libc_feholdsetround_ctx): Likewise.
21291         (libc_feholdsetround_noex_ctx): Likewise.
21292
21293         [BZ #17748]
21294         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21295         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21296         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21297         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21298         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21299         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21300         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21301         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21302         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21303         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21304         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21305         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21306         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21307         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21308         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21309         libm_hidden_def.
21310         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21311         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21312         Likewise.
21313         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21314         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21315         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21316         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21317         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21318         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21319         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21320         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21321         __fesetenv instead of fesetenv.
21322         (libc_feresetround_noex_ctx): Likewise.
21323         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21324         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21325         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21326         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21327         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21328         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21329         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21330         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21331         (__feupdateenv): Likewise.
21332         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21333         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21334         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21335         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21336
21337 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21338
21339         [BZ #17806]
21340         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21341         addresses have been freed.
21342
21343 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21344
21345         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21346         and nservall.
21347
21348 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21349
21350         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21351         Clean up check_pf allocation pattern. addresses
21352
21353 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21354
21355         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21356         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21357         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21358         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21359         * nptl/pthread_join.c (pthread_join): Likewise.
21360         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21361         * sysdeps/posix/waitid.c (__waitid): Likewise.
21362         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21363         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21364         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21365         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21366         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21367         Likewise.
21368         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21369         (__libc_pread64): Likewise.
21370         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21371         (__libc_pwrite): Likewise.
21372         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21373         (__libc_pwrite64): Likewsie.
21374         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21375         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21376         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21377         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21378         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21379         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21380         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21382         Likewise.
21383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21384         (__libc_pread64): Likewise.
21385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21386         Likewise.
21387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21388         (__libc_pwrite64): Likewise.
21389         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21390         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21391         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21392         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21393         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21394         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21395         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21396         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21397         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21398         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21399         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21400         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21401         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21402         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21403         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21404         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21405         Likewise.
21406
21407 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21408
21409         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21410         (CFLAGS-test-double.c): Likewise.
21411         (CFLAGS-test-ldouble.c): Likewise.
21412         (CPPFLAGS-test-ifloat.c): Likewise.
21413         (CPPFLAGS-test-idouble.c): Likewise.
21414         (CPPFLAGS-test-ildoubl.c): Likewise.
21415         (CFLAGS-test-test-fenv.c): Remove variable.
21416         (CFLAGS-test-misc.c): Likewise.
21417
21418 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21419
21420         [BZ #17797]
21421         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21422         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21423         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21424         CLOCKS_PER_SEC == 1000000.
21425         * time/clocktest.c (main): Replace %ld with %jd and cast to
21426         intmax_t.
21427
21428 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21429
21430         * sysdeps/generic/unwind-resume.h: New file.
21431         * sysdeps/gnu/unwind-resume.c: Include it.
21432         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21433         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21434         argument list.
21435         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21436         global rather than static.
21437         (_Unwind_Resume): Update user.
21438         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21439         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21440         rather than static.  Add __attribute__ ((cold)).
21441         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21442         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21443         * sysdeps/arm/arm-unwind-resume.S: New file.
21444         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21445         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21446         * sysdeps/arm/Makefile [$(subdir) = csu]
21447         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21448         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21449         Add rt-arm-unwind-resume.
21450         [$(subdir) = nptl]
21451         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21452         Add pt-arm-unwind-resume.
21453         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21454         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21455
21456 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21457
21458         [BZ #17748]
21459         * include/fenv.h (__feholdexcept): Declare.  Use
21460         libm_hidden_proto.
21461         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21462         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21463         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21464         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21465         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21466         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21467         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21468         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21469         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21470         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21471         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21472         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21473         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21474         (feholdexcept): Likewise.
21475         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21476         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21477         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21478         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21479         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21480         __feholdexcept instead of feholdexcept.
21481         (default_libc_feholdexcept_setround): Likewise.
21482
21483 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21484
21485         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21486         to avoid using stl/str to align destination.
21487
21488 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21489
21490         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21491
21492 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21493
21494         [BZ #17796]
21495         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21496         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21497         Define as weak alias not strong alias.
21498
21499 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21500
21501         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21502         bltzal with addiupc.
21503         (RTLD_START): Ditto.
21504
21505 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21506
21507         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21508         for __vdso_* functions in declarations.
21509         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21510         definitions.
21511         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21512         INTERNAL_VSYSCALL): Use struct return types to check for error.
21513
21514         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21515         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21516         function with cast from llround().
21517         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21518         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21519         Define.
21520
21521 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21522
21523         [BZ #17793]
21524         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21525         Define as weak alias not strong alias.
21526
21527         [BZ #17635]
21528         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21529         ...
21530         * ctype/ctype-extn.c: ... here.
21531         (__isblank_l): Move to ...
21532         * ctype/ctype-c99_l.c: ... here.  New file.
21533         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21534         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21535         Remove variable.
21536         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21537         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21538         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21539         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21540         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21541
21542         [BZ #17777]
21543         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21544         (posix_fadvise64): Define as weak alias not strong alias.
21545         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21546         (posix_fallocate64): Likewise.
21547         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21548         Remove variable.
21549         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21550         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21551         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21552         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21553         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21554
21555 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21556
21557         [BZ #16191]
21558         * NEWS: Mention bug fix.
21559         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21560         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21561         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21562         (HOST_STACK_END_ADDR): Likewise.
21563
21564 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21565
21566         [BZ #17748]
21567         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21568         * math/fegetround.c (fegetround): Rename to __fegetround and
21569         define as weak alias of __fegetround.  Use libm_hidden_weak.
21570         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21571         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21572         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21573         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21574         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21575         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21576         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21577         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21578         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21579         Undefine after rather than before function definition; use
21580         parentheses around function name in definition.
21581         (__fegetround): Also undefine macro after function definition.
21582         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21583         __fegetround and define as weak alias of __fegetround.  Use
21584         libm_hidden_weak.  Do not undefine as macro.
21585         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21586         Likewise.
21587         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21588         __fegetround and define as weak alias of __fegetround.  Use
21589         libm_hidden_weak.
21590         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21591         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21592         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21593         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21594         __fegetround and define as weak alias of __fegetround.  Use
21595         libm_hidden_weak.
21596         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21597         __fegetround instead of fegetround.
21598
21599         [BZ #17782]
21600         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21601         Condition macro definition on [__USE_MISC].
21602
21603         [BZ #17781]
21604         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21605         (struct sigaction): Change type of sa_flags field to int.
21606
21607         [BZ #17780]
21608         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21609         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21610         __glibc_reserved0.
21611
21612         * nptl/version.c (banner): Use single year in copyright notice.
21613
21614         * NEWS: Update copyright dates.
21615         * catgets/gencat.c (print_version): Likewise.
21616         * csu/version.c (banner): Likewise.
21617         * debug/catchsegv.sh: Likewise.
21618         * debug/pcprofiledump.c (print_version): Likewise.
21619         * debug/xtrace.sh (do_version): Likewise.
21620         * elf/ldconfig.c (print_version): Likewise.
21621         * elf/ldd.bash.in: Likewise.
21622         * elf/pldd.c (print_version): Likewise.
21623         * elf/sotruss.sh: Likewise.
21624         * elf/sprof.c (print_version): Likewise.
21625         * iconv/iconv_prog.c (print_version): Likewise.
21626         * iconv/iconvconfig.c (print_version): Likewise.
21627         * locale/programs/locale.c (print_version): Likewise.
21628         * locale/programs/localedef.c (print_version): Likewise.
21629         * login/programs/pt_chown.c (print_version): Likewise.
21630         * malloc/memusage.sh (do_version): Likewise.
21631         * malloc/memusagestat.c (print_version): Likewise.
21632         * malloc/mtrace.pl: Likewise.
21633         * manual/libc.texinfo: Likewise.
21634         * nptl/version.c (banner): Likewise.
21635         * nscd/nscd.c (print_version): Likewise.
21636         * nss/getent.c (print_version): Likewise.
21637         * nss/makedb.c (print_version): Likewise.
21638         * posix/getconf.c (main): Likewise.
21639         * scripts/test-installation.pl: Likewise.
21640         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21641
21642 2015-01-02  Will Newton  <will.newton@linaro.org>
21643
21644         * sysdeps/arm/armv7/configure: Removed.
21645         * sysdeps/arm/armv7/configure.ac: Likewise.
21646
21647 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21648
21649         * All files with FSF copyright notices: Update copyright dates
21650         using scripts/update-copyrights.
21651         * intl/plural.c: Regenerated.
21652         * locale/programs/charmap-kw.h: Likewise.
21653         * locale/programs/locfile-kw.h: Likewise.
21654
21655 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21656
21657         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21658
21659 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21660
21661         [BZ #17748]
21662         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21663         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21664         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21665         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21666         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21667         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21668         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21669         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21670         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21671         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21672         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21673         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21674         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21675         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21676         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21677         libm_hidden_def.
21678         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21679         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21680         Likewise.
21681         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21682         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21683         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21684         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21685         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21686         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21687         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21688         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21689         __fegetenv instead of fegetenv.
21690         (libc_feholdsetround_noex_ctx): Likewise.
21691
21692 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21693
21694         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21695         (Elf_MIPS_ABIFlags_v0): New structure.
21696         (EF_MIPS_FP64): Define.
21697         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21698         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21699         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21700         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21701         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21702         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21703         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21704         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21705         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21706         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21707         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21708         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21709         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21710         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21711         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21712         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21713         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21714         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21715         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21716         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21717         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21718         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21719         field.
21720         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21721         EF_MIPS_FP64.
21722         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21723         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21724         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21725         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21726         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21727         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21728         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21729         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21730         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21731         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21732         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21733         record the current FP ABI extension.
21734         (mips-mode-switch): Define to show if kernel headers support mode
21735         switching.
21736         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21737         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21738         supported SYSV ABI version to 3.
21739         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21740         feature.
21741
21742 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21743             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21744
21745         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21746         path.
21747         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21748
21749 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21750
21751         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21752         __fegetround and redefine to call __fegetround.  Remove condition
21753         on [!__NO_MATH_INLINES].
21754         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21755         function.
21756         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21757         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21758         Remove macro.
21759         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21760         instead of <fenv_libc.h>.
21761         (__llrintl): Call fegetround instead of __fegetround.
21762         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21763         instead of <fenv_libc.h>.
21764         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21765         (__lrintl): Call fegetround instead of __fegetround.
21766         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21767         instead of <fenv_libc.h>.
21768         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21769         (__rintl): Call fegetround instead of __fegetround.
21770
21771 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21772
21773         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21774         arrays.
21775
21776 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21777
21778         [BZ #17775]
21779         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21780         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21781         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21782
21783 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21784
21785         * sysdeps/i386/tls-macros.h: Include <features.h>.
21786         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21787         (TLS_IE): Likewise.
21788         (TLS_LD): Likewise.
21789         (TLS_GD): Likewise.
21790         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21791         define for GCC >= 5.0.
21792
21793 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21794
21795         * math/test-fenv.c (test_single_exception, set_single_exc,
21796         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21797         feexcp_mask_test, feenable_test, fe_single_test): Add
21798         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21799         case where they are not used.
21800         * math/libm-test.inc: Likewise.
21801         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21802         unused in the absence of FP rounding/exception support.
21803         * stdio-common/tst-printf-round.c: Likewise.
21804         * stdlib/tst-strtod-round.c: Likewise.
21805         * stdlib/tst-strtod-underflow.c: Likewise.
21806
21807 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21808
21809         [BZ #17723]
21810         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21811         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21812         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21813         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21814         libm_hidden_weak.
21815         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21816         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21817         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21818         libm_hidden_def.
21819         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21820         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21821         libm_hidden_weak.
21822         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21823         Likewise.
21824         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21825         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21826         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21827         libm_hidden_weak.
21828         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21829         libm_hidden_def.
21830         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21831         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21832         (__feraiseexcept): Likewise.
21833         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21834         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21835         libm_hidden_weak.
21836         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21837         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21838         libm_hidden_def.
21839         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21840         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21841         Use libm_hidden_def.
21842         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21843         libm_hidden_def.
21844         (feraiseexcept): Define as weak not strong alias.  Use
21845         libm_hidden_weak.
21846         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21847         New inline function.  Factored out of ...
21848         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
21849         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
21850         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
21851         feraiseexcept.
21852         * math/w_acos.c (__acos): Likewise.
21853         * math/w_asin.c (__asin): Likewise.
21854         * math/w_ilogb.c (__ilogb): Likewise.
21855         * math/w_j0.c (y0): Likewise.
21856         * math/w_j1.c (y1): Likewise.
21857         * math/w_jn.c (yn): Likewise.
21858         * math/w_log.c (__log): Likewise.
21859         * math/w_log10.c (__log10): Likewise.
21860         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
21861         * sysdeps/aarch64/fpu/math_private.h
21862         (libc_feupdateenv_test_aarch64): Likewise.
21863         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21864         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
21865         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
21866         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21867         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21868         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21869         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
21870         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21871         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21872         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21873
21874 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21875
21876         [BZ #17732]
21877         * io/test-utime.c (main): Replace %ld with %jd and cast to
21878         intmax_t.
21879         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
21880         * nptl/tst-mutex5.c: Include <stdint.h>.
21881         (do_test): Replace %ld with %jd and cast to intmax_t.
21882         * posix/tst-regex.c (run_test): Likewise.
21883         (run_test_backwards): Likewise.
21884         * rt/tst-clock.c: Include <stdint.h>.
21885         (clock_test): Replace %ld with %jd and cast to intmax_t.
21886         * rt/tst-cpuclock1.c: Include <stdint.h>.
21887         (do_test): Replace %lu with %ju and cast to uintmax_t.
21888         * rt/tst-cpuclock2.c: Include <stdint.h>.
21889         (do_test): Replace %lu with %ju and cast to uintmax_t.
21890         * rt/tst-mqueue1.c: Include <stdint.h>.
21891         (check_attrs): Replace %ld with %jd and cast to intmax_t.
21892         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
21893         intmax_t.
21894         * rt/tst-mqueue4.c (do_test): Likewise.
21895         * rt/tst-timer4.c: Include <stdint.h>.
21896         (check_ts): Replace %ld with %jd and cast to intmax_t.
21897         (do_test): Likewise.
21898         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
21899         and cast to intmax_t.
21900         * sysdeps/pthread/tst-timer.c (main): Likewise.
21901         * time/clocktest.c (main): Likewise.
21902         * time/tst-posixtz.c (do_test): Likewise.
21903         * timezone/tst-timezone.c (main): Likewise.
21904
21905 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21906             H.J. Lu  <hongjiu.lu@intel.com>
21907
21908         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
21909         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
21910         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
21911         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
21912         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
21913         version if bit_Fast_Unaligned_Load is set.
21914         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21915         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21916         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21917         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21918         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21919         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21920         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21921         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
21922         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
21923         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
21924         to 4.
21925         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
21926         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
21927         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
21928         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
21929
21930 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
21931
21932         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
21933         instead of #if to avoid a Wundef warning.
21934         * stdlib/tst-limits.c (do_test): Likewise.
21935
21936         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
21937         parallel other exception macros.
21938         (fegetenv): Convert from macro to extern inline so that it applies
21939         retroactively to inline functions already seen by the compiler.
21940         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
21941
21942         * posix/Makefile (before-compile): Use $(objpfx) for
21943         posix-conf-vars-def.h.
21944
21945 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21946
21947         * posix/getconf.c (main): Use size_t for type of I.
21948         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
21949         NSPEC.
21950
21951         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
21952         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
21953         * posix/posix-envs.def: Likewise.
21954         * sysdeps/posix/sysconf.c: Likewise.
21955         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
21956         (specs): Remove array.
21957         * scripts/gen-posix-conf-vars.awk: Support generation of specs
21958         array.
21959
21960         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
21961         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
21962         (__sysconf): Use CONF_IS_* macros.
21963
21964         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
21965         ($(objpfx)posix-conf-vars-def.h): New target.
21966         * posix/posix-conf-vars.list: New file.
21967         * posix/posix-conf-vars.h: New file.
21968         * posix/confstr.c: Include posix-conf-vars.h.
21969         (confstr): Use CONF_IS_* macros.
21970         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
21971         CONF_IS_* macros.
21972         * scripts/gen-posix-conf-vars.awk: New file.
21973
21974 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
21975
21976         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
21977         fegetround): Add no-op macros to avoid linknamespace issues.
21978
21979         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
21980         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
21981
21982         * sysdeps/unix/sysv/linux/tile/sysdep.h
21983         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
21984         assembly-specific section to avoid a redefinition warning.
21985
21986         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
21987         long before casting to pointer to avoid a cast warning.
21988
21989 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
21990
21991         * sysdeps/tile/tilegx/Implies: New file.
21992
21993 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
21994
21995         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
21996
21997 2014-12-23  Florian Weimer  <fweimer@redhat.com>
21998
21999         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22000
22001 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22002
22003         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22004         not define.
22005         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22006         <kernel-features.h>.
22007         (__utimes) [__NR_utimes]: Make code unconditional.
22008         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22009         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22010         (__ASSUME_UTIMES): Do not undefine.
22011         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22012         (__ASSUME_UTIMES): Likewise.
22013         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22014         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22015         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22016         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22017
22018 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22019
22020         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22021
22022 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22023
22024         [BZ #17747]
22025         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22026         alias to weak alias for j0l, y0l.
22027         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22028         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22029
22030         [BZ #17746]
22031         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22032         conversion.
22033
22034 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22035
22036         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22037         to zero if not already defined.
22038
22039 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22040
22041         [BZ #17724]
22042         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22043         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22044         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22045         (char *) casts added.
22046         * sysdeps/ieee754/k_standardf.c: New file.
22047         * sysdeps/ieee754/k_standardl.c: Likewise.
22048         * math/Makefile (libm-support): Remove k_standard.
22049         (libm-calls): Add k_standard.
22050
22051 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22052
22053         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22054         Optimize to avoid an unnecessary FPCR read.
22055
22056 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22057
22058         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22059         Optimize to reduce FPCR/FPSR accesses.
22060
22061 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22062
22063         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22064         Call libc_fetestexcept_aarch64.
22065
22066 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22067
22068         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22069         Call libc_fesetround_aarch64.
22070
22071 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22072
22073         [BZ #17733]
22074         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22075         (__bind): Do not define as weak alias.
22076         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22077         define.
22078         (__getsockname): Do not define as weak alias.
22079
22080 2014-12-22  Will Newton  <will.newton@linaro.org>
22081
22082         * manual/install.texi: Document that we require bison 2.7
22083         or above.
22084         * INSTALL: Regenerate.
22085         * configure.ac: Use AC_CHECK_PROG_VER instead of
22086         AC_PATH_PROG when checking for bison and check for
22087         version 2.7 or above.
22088         * configure: Regenerate.
22089
22090 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22091
22092         [BZ #17745]
22093         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22094         * sysdeps/tile/ffsll.c (ffsll): To here.
22095
22096         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22097
22098 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22099
22100         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22101         if not defined.
22102         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22103         definition.
22104         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22105         hidden ___tls_get_addr.
22106         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22107         hidden __tls_get_addr.
22108         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22109         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22110         Likewise.
22111
22112 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22113
22114         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22115         _dl_init call.
22116
22117 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22118
22119         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22120         from "call _dl_init@PLT".
22121         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22122
22123 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22124
22125         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22126         guarantees.
22127
22128 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22129
22130         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22131
22132 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22133
22134         [BZ #17744]
22135         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22136         strnlen.
22137
22138 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22139
22140         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22141         of multu on MIPSr6.
22142         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22143         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22144         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22145         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22146         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22147
22148 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22149
22150         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22151         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22152         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22153         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22154         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22155         mips32r6/mips64r6.
22156         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22157
22158 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22159
22160         * string/strncat.c (STRNCAT): Simplify implementation.
22161
22162 2014-12-19  David S. Miller  <davem@davemloft.net>
22163
22164         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22165         access the quad as both a long double and as a series of 4 words.
22166
22167         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22168         link_map->l_info array access.
22169
22170 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22171
22172         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22173
22174         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22175         * math/atest-exp2.c (TIMEOUT): Likewise.
22176         * math/atest-sincos.c (TIMEOUT): Likewise.
22177
22178 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22179
22180         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22181         -Wno-error with -fno-builtin-lround.
22182
22183 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22184
22185         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22186         Contains futex constants and functions moved over from ...
22187         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22188         <lowlevellock-futex.h>.
22189         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22190         (lll_timedwait_tid): Add comments and parentheses around macro
22191         arguments.
22192
22193 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22194
22195         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22196         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22197         (__lll_private_flag): Remove.
22198         (lll_futex_wait): Likewise.
22199         (lll_futex_timed_wait): Likewise.
22200         (lll_futex_wake): Likewise.
22201         (lll_futex_requeue): Likewise.
22202         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22203         (__lll_timedwait_tid): Spell out argument names.
22204         (lll_timedwait_tid): Add comments and parentheses around macro
22205         arguments.
22206         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22207         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22208
22209 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22210
22211         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22212         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22213         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22214         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22215         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22216         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22217         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22218         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22219         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22220         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22221         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22222         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22223         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22224         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22225         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22226         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22227         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22228         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22229         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22230
22231 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22232
22233         * sysdeps/x86_64/x32/Makefile: New file.
22234
22235 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22236
22237         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22238         1L with (mp_limb_t) 1.
22239
22240 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22241
22242         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22243         * nptl/libc_pthread_init.c: ... here.
22244         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22245         * nptl/register-atfork.c: ... here.
22246
22247         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22248         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22249         Use assert_perror to check its return value.
22250         (__gai_create_helper_thread): Likewise.
22251
22252         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22253
22254         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22255
22256 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22257
22258         [BZ #17725]
22259         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22260         __profil_counter.
22261         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22262         Likewise.
22263         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22264         Likewise.
22265         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22266         Likewise.
22267         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22268         (profil_counter): Likewise.
22269         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22270         (profil_counter): Likewise.
22271         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22272         Likewise.
22273         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22274         Likewise.
22275         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22276         (profil_counter): Likewise.
22277         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22278         Likewise.
22279         [!__profil_counter] (profil_counter): Define as weak alias of
22280         __profil_counter.
22281         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22282         (profil_counter): Rename to __profil_counter.
22283         [!__profil_counter] (profil_counter): Define as weak alias of
22284         __profil_counter.
22285         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22286         (profil_counter): Rename to __profil_counter.
22287         [!__profil_counter] (profil_counter): Define as weak alias of
22288         __profil_counter.
22289         * sysdeps/posix/profil.c: Update comment referring to
22290         profil_counter.
22291         (__profil): Use __profil_counter instead of profil_counter.
22292         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22293         __profil_counter.  Use __profil_counter_ushort and
22294         __profil_counter_uint in definitions.
22295         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22296         instead of profil_counter_uint and profil_counter_ushort.
22297
22298         [BZ #17722]
22299         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22300         define as weak alias of __inet_makeaddr.
22301         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22302         as weak alias of __inet_addr.
22303         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22304         as weak alias of __inet_pton.  Use libc_hidden_weak.
22305         * include/arpa/inet.h (__inet_pton): Declare.  Use
22306         libc_hidden_proto.
22307         (inet_makeaddr): Don't use libc_hidden_proto.
22308         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22309         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22310         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22311         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22312         Remove variable.
22313         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22314         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22315
22316 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22317
22318         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22319
22320 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22321
22322         * stdio-common/bug-vfprintf-nargs.c (do_test):
22323         Cast value to intptr_t to avoid format warning
22324         for usage with PRIdPTR printing macro.
22325
22326 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22327
22328         * libio/tst-widetext.c (do_test):
22329         Use format type %td instead of %Zd for ptrdiff_t
22330         in order to avoid format warning.
22331
22332 2014-12-17  Andreas Schwab  <schwab@suse.de>
22333
22334         * nscd/mem.c (gc): Add size_t cast to match printf format.
22335
22336 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22337
22338         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22339         (init): Apply PTR_MANGLE to pointers before storing them.
22340         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22341         before using them.
22342
22343 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22344
22345         [BZ #17719]
22346         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22347         define as weak alias of __memrchr.
22348         (__memrchr): Do not define as strong alias of memrchr.
22349         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22350         Remove variable.
22351         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22352         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22353         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22354
22355         [BZ #17717]
22356         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22357         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22358         (if_indextoname): Rename to __if_indextoname and define as weak
22359         alias of __if_indextoname.  Use libc_hidden_weak.
22360         (if_freenameindex): Rename to __if_freenameindex and define as
22361         weak alias of __if_freenameindex.
22362         (if_nameindex): Rename to __if_nameindex and define as weak alias
22363         of __if_nameindex.
22364         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22365         __if_nametoindex and define as weak alias of __if_nametoindex.
22366         Use libc_hidden_weak.
22367         (if_freenameindex): Rename to __if_freenameindex and define as
22368         weak alias of __if_freenameindex.
22369         (if_nameindex): Rename to __if_nameindex and define as weak alias
22370         of __if_nameindex.
22371         (if_indextoname): Rename to __if_indextoname and define as weak
22372         alias of __if_indextoname.  Use libc_hidden_weak.
22373         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22374         __if_nametoindex and define as weak alias of __if_nametoindex.
22375         Use libc_hidden_weak.
22376         (if_freenameindex): Rename to __if_freenameindex and define as
22377         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22378         (if_nameindex_netlink): Use __if_freenameindex instead of
22379         if_freenameindex.
22380         (if_nameindex): Rename to __if_nameindex and define as weak alias
22381         of __if_nameindex.  Use libc_hidden_weak.
22382         (if_indextoname): Rename to __if_indextoname and define as weak
22383         alias of __if_indextoname.  Use libc_hidden_weak.
22384         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22385         libc_hidden_proto.
22386         [!_ISOMAC] (__if_freenameindex): Likewise.
22387         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22388         if_nametoindex.
22389         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22390         variable.
22391         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22392         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22393         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22394         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22395         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22396         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22397         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22398
22399         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22400         Remove variable.
22401         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22402         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22403
22404 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22405
22406         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22407         subscript above bounds'
22408
22409         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22410         bounds.
22411
22412 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22413
22414         * libio/tst-fopenloc.c: Use test-skeleton.c.
22415
22416         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22417         (entry): Rename to ITEM.
22418         (do_test, comp): Adjust.
22419
22420         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22421
22422 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22423
22424         * string/tester.c: Include <libc-internal.h>.
22425         (test_memset): Ignore -Wmemset-transposed-args.
22426
22427 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22428
22429         * misc/tst-mntent2.c (do_test): Fix warning.
22430
22431 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22432
22433         * elf/tst-unique4lib.cc(a): Mark as used.
22434
22435 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22436
22437         [BZ #17630]
22438         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22439         names.
22440
22441 2014-12-16  Allan McRae  <allan@archlinux.org>
22442
22443         * stdio-common/Makefile (tests): Re-add bug26.
22444
22445 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22446
22447         [BZ #17657]
22448         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22449         static array.
22450
22451 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22452
22453         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22454         (__lll_lock_wait): Likewise.
22455         (__lll_timedlock_wait): Likewise.
22456         (__lll_timedwait_tid): Likewise.
22457         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22458         (__lll_robust_timedlock_wait): Likewise.
22459         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22460         (lll_cond_trylock): Likewise.
22461         (__lll_lock): Likewise.
22462         (__lll_robust_lock): Likewise.
22463         (__lll_cond_lock): Likewise.
22464         (lll_robust_cond_lock): Likewise.
22465         (__lll_timedlock): Likewise.
22466         (__lll_robust_timedlock): Likewise.
22467         (__lll_unlock): Likewise.
22468         (__lll_robust_unlock): Likewise.
22469         (lll_wait_tid): Likewise.
22470         (lll_timedwait_tid): Likewise.
22471
22472 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22473
22474         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22475
22476 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22477
22478         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22479
22480 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22481
22482         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22483         * stdio-common/tst-sprintf.c: Likewise.
22484
22485 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22486
22487         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22488
22489 2014-12-15  Jeff Law  <law@redhat.com>
22490
22491         [BZ #16617]
22492         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22493         on the heap.  (CVE-2012-3406)
22494         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22495         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22496         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22497
22498 2014-12-15  Will Newton  <will.newton@linaro.org>
22499
22500         * manual/install.texi: Bump required version of texinfo
22501         to 4.7 from 4.5.
22502         * INSTALL: Regenerated.
22503         * configure.ac: Check for makeinfo version 4.7 and above.
22504         * configure: Regenerated.
22505
22506 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22507
22508         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22509         PREFIX, string constant to insert between directory and name.
22510         * sysdeps/posix/shm_open.c: Update caller.
22511         * sysdeps/posix/shm_unlink.c: Likewise.
22512         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22513         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22514         (SEM_SHM_PREFIX): New macro.
22515         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22516         [$(have-thread-library) = no].
22517         * nptl/Makefile (libpthread-routines): Add shm-directory.
22518         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22519         * sysdeps/nptl/shm-directory.h: New file.
22520         * sysdeps/posix/shm-directory.c
22521         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22522         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22523         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22524         INTERNAL_SYSCALL.
22525         (__where_is_shmfs): Function removed.
22526         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22527         Variables removed.
22528         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22529         Use SHM_GET_NAME.
22530         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22531
22532         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22533         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22534         unconditional for use inside libpthread.
22535         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22536
22537 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22538
22539         * nptl/pthread_getaffinity.c: New file.
22540         * nptl/pthread_setaffinity.c: New file.
22541         * nptl/pthread_getname.c: New file.
22542         * nptl/pthread_setname.c: New file.
22543
22544         * nptl/pthread_create.c (START_THREAD_DEFN)
22545         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22546
22547 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22548             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22549
22550         * resolv/res_send.c (send_vc): Disable warning resplen may
22551         be used uninitialized.
22552
22553 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22554
22555         * nptl/tst-mutex6.c
22556         (ATTR_NULL): New define checks ATTR against NULL.
22557         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22558         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22559
22560 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22561
22562         [BZ #17581]
22563         * malloc/hooks.c
22564         (mem2mem_check): Revert my previous change.
22565         (malloc_check_get_size): Revert my previous change.
22566         (mem2chunk_check): Revert my previous change.
22567
22568 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22569
22570         * sysdeps/posix/shm-directory.c: New file.
22571         * sysdeps/posix/shm-directory.h: New file.
22572         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22573         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22574         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22575         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22576         Transmute EPERM to EACCES.
22577         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22578         from ...
22579         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22580         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22581
22582 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22583
22584         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22585         pointer and cast to uintptr_t.
22586         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22587         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22588         Add cast to avoid warning.
22589         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22590
22591 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22592
22593         * nptl/semaphore.h: Move to ...
22594         * sysdeps/pthread/semaphore.h: ... here.
22595         * Makefile (installed-headers): Change nptl/semaphore.h to
22596         sysdeps/pthread/semaphore.h.
22597
22598 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22599
22600         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22601         generated error format strings.
22602
22603         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22604         -Wformat-extra-args warnings for scanf formats.
22605         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22606         test of zero-length format (duh).
22607         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22608         corner-case scanf format test.
22609         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22610         generated fprintf format string.
22611         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22612         corner-case sprintf format tests.
22613         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22614         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22615         -Wformat-extra-args warnings throughout.
22616         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22617         (CFLAGS-scanf4.c): Likewise.
22618         (CFLAGS-scanf7.c): Likewise.
22619         (CFLAGS-tst-sprintf.c): Likewise.
22620         (CFLAGS-tst-printf.c): Likewise.
22621         (CFLAGS-tst-printfsz.c): Likewise.
22622
22623 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22624
22625         * include/cpio.h: New file.
22626         * include/fmtmsg.h: Likewise.
22627
22628         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22629         corresponding format argument to size_t.
22630         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22631         arguments.
22632         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22633         corresponding format argument to size_t.
22634         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22635         arguments.
22636         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22637         corresponding format argument to size_t.
22638         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22639         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22640         (CFLAGS-tst-mbswcs2.c): Likewise.
22641         (CFLAGS-tst-mbswcs3.c): Likewise.
22642         (CFLAGS-tst-mbswcs4.c): Likewise.
22643         (CFLAGS-tst-mbswcs5.c): Likewise.
22644         (CFLAGS-tst-trans.c): Likewise.
22645
22646 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22647
22648         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22649         rather than assuming they won't contain any '%'s.
22650
22651 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22652
22653         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22654         inhibit_loop_to_libcall to avoid recursive calls.
22655         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22656         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22657
22658 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22659
22660         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22661         prototype.
22662
22663 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22664
22665         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22666         integer value instead of boolean.
22667
22668 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22669
22670         * malloc/malloc.c: Fix powerof2 check.
22671
22672 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22673
22674         * locale/programs/locfile.h (maybe_swap_uint32):
22675         Remove inline and add unused attribute.
22676
22677 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22678
22679         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22680         Truncating assembler expression to a .long expression.
22681
22682 2014-12-11  Andreas Schwab  <schwab@suse.de>
22683
22684         * elf/rtld.c (struct map_args): Constify str member.
22685         (do_preload): Constify fname argument.
22686
22687 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22688
22689         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22690         constants definition.
22691
22692 2014-12-11  Andreas Schwab  <schwab@suse.de>
22693
22694         [BZ #16657]
22695         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22696         FORCE_ELISION instead of DO_ELISION.
22697         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22698         Remove.
22699         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22700         Likewise.
22701
22702         * iconvdata/gconv-modules: Remove duplicate entry.
22703
22704 2014-12-11  Will Newton  <will.newton@linaro.org>
22705
22706         Merge gettext 0.19.3 into intl/.
22707
22708         This involves a number of cosmetic changes to comments
22709         and ANSI function definitions and prototypes throughout
22710         all the files. The gettext copyright header is used but
22711         with the date ranges taken from the glibc copy.
22712
22713         * NEWS: Add gettext merge to 2.21.
22714         * intl/bindtextdom.c: Switch to gettext copyright.
22715         Use ANSI definitions and prototypes.
22716         Use gl_* locking primitives rather than __libc_* ones.
22717         Use __builtin_expect rather than __glibc_likely/unlikely.
22718         * intl/dcgettext.c: Switch to gettext copyright.
22719         Use ANSI definitions and prototypes.
22720         * intl/dcigettext.c: Switch to gettext copyright.
22721         Use ANSI definitions and prototypes.
22722         (INTDIV0_RAISES_SIGFPE): New define.
22723         Use gl_* locking primitives rather than __libc_* ones.
22724         Include eval-plural.h instead of plural-eval.c.
22725         Use __builtin_expect rather than __glibc_likely/unlikely.
22726         * intl/dcngettext.c: Switch to gettext copyright.
22727         Use ANSI definitions and prototypes.
22728         * intl/dgettext.c: Likewise.
22729         * intl/dngettext.c: Likewise.
22730         * intl/plural-eval.c: Renamed to...
22731         * intl/eval-plural.h: ...this.
22732         * intl/explodename.c: Switch to gettext copyright.
22733         Use ANSI definitions and prototypes.
22734         (_nl_explode_name): Use strchr instead of __rawmemchr.
22735         * intl/finddomain.c: Switch to gettext copyright.
22736         Use ANSI definitions and prototypes.
22737         Use gl_* locking primitives rather than __libc_* ones.
22738         (_nl_find_domain): Use malloc rather than alloca for
22739         allocation of temporary locale name.
22740         * intl/gettext.c: Switch to gettext copyright.
22741         Use ANSI definitions and prototypes.
22742         * intl/gettextP.h: Switch to gettext copyright.
22743         Use ANSI definitions and prototypes.
22744         Use gl_* locking primitives rather than __libc_* ones.
22745         * intl/gmo.h: Switch to gettext copyright.
22746         (struct sysdep_string): Move struct segment_pair outside of
22747         struct definition.
22748         * intl/hash-string.c: Use ANSI definitions and prototypes.
22749         * intl/hash-string.h: Switch to gettext copyright.
22750         Use ANSI definitions and prototypes.
22751         * intl/l10nflist.c: Switch to gettext copyright.
22752         Use ANSI definitions and prototypes.
22753         (_nl_normalize_codeset): Avoid integer overflow.
22754         * intl/loadinfo.h: Switch to gettext copyright.
22755         Use ANSI definitions and prototypes.
22756         (LIBINTL_DLL_EXPORTED): New define.
22757         (PATH_SEPARATOR): New define.
22758         * intl/loadmsgcat.c: Switch to gettext copyright.
22759         * intl/localealias.c: Switch to gettext copyright.
22760         Use ANSI definitions and prototypes.
22761         (_nl_expand_alias): Use PATH_SEPARATOR.
22762         * intl/ngettext.c: Switch to gettext copyright.
22763         Use ANSI definitions and prototypes.
22764         * intl/plural-exp.c: Likewise.
22765         * intl/plural-exp.h: Switch to gettext copyright.
22766         Use ANSI definitions and prototypes.
22767         (struct expression): Move definition of enum operator outside
22768         of struct definition.
22769         * intl/plural.c: Regenerate.
22770         * intl/plural.y: Switch to gettext copyright.
22771         Use ANSI definitions and prototypes.
22772         Port to bison 3.0.
22773         * intl/textdomain.c: Switch to gettext copyright.
22774         Use ANSI definitions and prototypes.
22775         Use gl_* locking primitives rather than __libc_* ones.
22776
22777 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22778
22779         * debug/warning-nop.c: Add used atrribute.
22780
22781 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22782
22783         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22784
22785         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22786         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22787         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22788
22789 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22790             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22791
22792         [BZ #17634]
22793         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22794         Undefine after defining function.  Define as weak alias of
22795         __wcschr.  Use libc_hidden_weak.
22796         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22797         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22798         (libc_hidden_def): Also define __GI___wcschr alias.
22799         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22800         __wcschr and define as weak alias of __wcschr.
22801         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22802         __wcschr.
22803         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22804         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22805         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22806         libc_hidden_weak.  Do not use libc_hidden_def.
22807         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22808         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22809         __GI___wcschr alias.
22810         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22811         [IS_IN (libc)] (wcschr): Define as macro expanding to
22812         __redirect_wcschr.
22813         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22814         [IS_IN (libc)] (__wcschr_power6): Likewise.
22815         [IS_IN (libc)] (__wcschr_power7): Likewise.
22816         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22817         instead of wcschr.
22818         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22819         __libc_wcschr.
22820         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22821         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22822         __wcschr and define as weak alias of __wcschr.  Use
22823         libc_hidden_builtin_def.
22824         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22825         as weak alias of __wcschr.  Use libc_hidden_weak.
22826         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22827         wcschr.
22828         * time/era.c (_nl_init_era_entries): Likewise.
22829         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22830         variable.
22831         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22832         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22833
22834 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22835
22836         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22837         format for long int variable.
22838
22839 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22840
22841         [BZ #10672]
22842         * manual/search.texi: (Array Sort Function): Remove claim how to make
22843         qsort stable.
22844
22845 2014-12-10  Andreas Schwab  <schwab@suse.de>
22846
22847         [BZ #12847]
22848         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
22849         user-controlled locks.
22850
22851 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
22852
22853         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
22854         register.
22855
22856 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22857
22858         * configure.ac (--disable-werror): New configure option.
22859         (enable_werror): New AC_SUBST.
22860         * configure: Regenerated.
22861         * config.make.in (enable-werror): New variable.
22862         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
22863         -Wno-error=undef.
22864         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
22865         * manual/install.texi (Configuring and compiling): Document
22866         --disable-werror.
22867         * INSTALL: Regenerated.
22868         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
22869         (CFLAGS-tst-chk2.c): Likewise.
22870         (CFLAGS-tst-chk3.c): Likewise.
22871         (CFLAGS-tst-chk4.cc): Likewise.
22872         (CFLAGS-tst-chk5.cc): Likewise.
22873         (CFLAGS-tst-chk6.cc): Likewise.
22874         (CFLAGS-tst-lfschk1.c): Likewise.
22875         (CFLAGS-tst-lfschk2.c): Likewise.
22876         (CFLAGS-tst-lfschk3.c): Likewise.
22877         (CFLAGS-tst-lfschk4.cc): Likewise.
22878         (CFLAGS-tst-lfschk5.cc): Likewise.
22879         (CFLAGS-tst-lfschk6.cc): Likewise.
22880
22881         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
22882         (main): Disable -Wdeprecated-declarations around calls to
22883         register_printf_function.
22884
22885         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
22886         (do_test): Disable -Wdiv-by-zero around some calls to
22887         fwrite_unlocked and fread_unlocked.
22888
22889         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
22890         (DIAG_POP_NEEDS_COMMENT): Likewise.
22891         (_DIAG_STR1): Likewise.
22892         (_DIAG_STR): Likewise.
22893         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
22894         * stdio-common/bug21.c: Include <libc-internal.h>.
22895         (do_test): Disable -Wformat around call to sscanf.
22896         * stdio-common/scanf14.c: Include <libc-internal.h>.
22897         (main): Disable -Wformat around some calls to scanf functions.
22898
22899 2014-12-09  Torvald Riegel  <triegel@redhat.com>
22900
22901         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
22902
22903 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22904
22905         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
22906         stack variable alignment.
22907
22908 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
22909
22910         [BZ #17682]
22911         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
22912         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
22913         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
22914         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
22915         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
22916         __getrlimit instead of getrlimit.
22917         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
22918         __gettimeofday instead of gettimeofday.
22919         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22920         Likewise.
22921         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22922         Likewise.
22923         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
22924         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
22925         Remove variable.
22926         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
22927         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
22928
22929 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22930
22931         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
22932         for wide-character tests.
22933
22934 2014-12-04  Roland McGrath  <roland@hack.frob.com>
22935
22936         * io/openat64.c: #include <libc-internal.h>
22937         (__openat64): Prototypify.  Use ignore_value on MODE.
22938         * io/openat.c: Likewise.
22939         * misc/reboot.c: #include <libc-internal.h>
22940         (reboot): Prototypify.  Use ignore_value on HOWTO.
22941         * misc/ptrace.c: #include <libc-internal.h>
22942         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
22943
22944 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
22945
22946         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
22947         XPG4, UNIX98 and XOPEN2K.
22948         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
22949         Remove variable.
22950         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
22951
22952 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22953
22954         * libio/fileops.c: Use ISO C style for function definitions.
22955         * libio/iofopen.c: Likewise.
22956         * libio/wfileops.c: Likewise.
22957
22958         [BZ #17653]
22959         * libio/fileops.c (_IO_new_file_underflow): Unset cached
22960         offset on EOF.
22961         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
22962         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
22963         (fgets_func): Function pointer to fgets and fgetws.
22964         (do_ftell_test): Add test to verify ftell value after read
22965         EOF.
22966         (do_test): Set fgets_func.
22967
22968         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
22969         O_TRUNC flag for w and w+ modes.
22970         (do_rewind_test): Likewise.
22971         (do_ftell_test): Likewise.
22972         (do_write_test): Likewise.
22973
22974         [BZ #17647]
22975         * libio/fileops.c (do_ftell): Seek only when there are
22976         unflushed writes.
22977         * libio/wfileops.c (do_ftell_wide): Likewise.
22978         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
22979         test case.
22980         (do_one_test): Call it.
22981
22982 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
22983
22984         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
22985         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
22986         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
22987         Remove variable.
22988         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
22989         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
22990         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
22991
22992 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
22993
22994         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
22995         Remove variable.
22996         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
22997
22998         [BZ #17668]
22999         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23000         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23001         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23002         __freeifaddrs.  Use libc_hidden_weak.
23003         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23004         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23005         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23006         __freeifaddrs.  Use libc_hidden_weak.
23007         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23008         __getifaddrs and define as weak alias of __getifaddrs.  Use
23009         libc_hidden_weak.
23010         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23011         __freeifaddrs.  Use libc_hidden_weak.
23012         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23013         Remove variable.
23014         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23015         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23016
23017 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23018
23019         [BZ #17601]
23020         * sysdeps/mips/start.S (__start): Use indirect jump to call
23021         __libc_start_main.
23022
23023 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23024
23025         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23026
23027         * nptl/tst-mutex1.c: Include <stdbool.h>.
23028         [!ATTR] (ATTR_NULL): New macro.
23029         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23030         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23031         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23032
23033         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23034         to char *.
23035
23036         [BZ #17665]
23037         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23038         Change conditional to [__USE_MISC].
23039
23040         [BZ #17664]
23041         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23042         fgets_unlocked.
23043         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23044         __fgets_unlocked.
23045         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23046         fgets_unlocked.
23047         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23048         Remove variable.
23049         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23050         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23051         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23052         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23053         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23054         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23055         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23056         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23057         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23058
23059         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23060
23061 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23062
23063         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23064         Remove strpbrk objects.
23065         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23066         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23067         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23068         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23069         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23070         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23071
23072         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23073         Remove strcspn objects.
23074         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23075         (__libc_ifunc_impl_list): Remove strcspn implementation.
23076         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23077         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23078         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23079         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23080
23081         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23082         Remove strspn objetcs.
23083         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23084         (__libc_ifunc_impl_list): Remove strspn implementation.
23085         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23086         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23087         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23088         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23089
23090 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23091
23092         [BZ #17581]
23093         * malloc/hooks.c
23094         (mem2mem_check): Add a terminator to the chain of checking blocks.
23095         (malloc_check_get_size): Use it here.
23096         (mem2chunk_check): Ditto.
23097
23098 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23099
23100         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23101         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23102
23103 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23104
23105         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23106
23107         * nptl/nptl-init.c: Include libc-internal.h.
23108         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23109
23110         * elf/ldconfig.c (search_dir): Expand comment.
23111
23112 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23113
23114         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23115         variable.
23116         (linknamespace-symlist-stdlibs-tests): Likewise.
23117         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23118         instead of $(objpfx)symlist-stdlibs.
23119         (linknamespace-libs-isoc): New variable.
23120         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23121         (linknamespace-libs-ISO): New variable.
23122         (linknamespace-libs-ISO99): Likewise.
23123         (linknamespace-libs-ISO11): Likewise.
23124         (linknamespace-libs-XPG3): Likewise.
23125         (linknamespace-libs-XPG4): Likewise.
23126         (linknamespace-libs-POSIX): Likewise.
23127         (linknamespace-libs-UNIX98): Likewise.
23128         (linknamespace-libs-XOPEN2K): Likewise.
23129         (linknamespace-libs-POSIX2008): Likewise.
23130         (linknamespace-libs-XOPEN2K8): Likewise.
23131         ($(objpfx)symlist-stdlibs): Replace by
23132         $(linknamespace-symlist-stdlibs-tests).  Use
23133         $(linknamespace-libs-$*) as set of libraries.
23134         ($(linknamespace-header-tests)): Update dependencies.  Use
23135         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23136         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23137         * conform/linknamespace.pl: Remove comment about considering
23138         definitions of symbols from irrelevant libraries.
23139
23140 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23141
23142         [BZ #13862]
23143         * elf/dl-tls.c: Include <atomic.h>.
23144         (oom): Remove #ifdef SHARED/#endif.
23145         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23146         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23147         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23148         big enough.
23149         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23150         * nptl/Makefile (tests): Add tst-stack4.
23151         (modules-names): Add tst-stack4mod.
23152         ($(objpfx)tst-stack4): New.
23153         (tst-stack4mod.sos): Likewise.
23154         ($(objpfx)tst-stack4.out): Likewise.
23155         ($(tst-stack4mod.sos)): Likewise.
23156         (clean): Likewise.
23157         * nptl/tst-stack4.c: New file.
23158         * nptl/tst-stack4mod.c: Likewise.
23159
23160 2014-11-27  J. Brown  <jb999@gmx.de>
23161
23162         * sysdeps/x86/bits/string.h: Add recent CPUs.
23163
23164 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23165
23166         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23167         sigblock.
23168
23169         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23170         feof.
23171
23172         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23173         variable.
23174
23175 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23176
23177         * nscd/connections.c: Include libc-internal.h because of macro
23178         usage ignore_value.
23179
23180 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23181
23182         * string/bits/string3.h (__warn_memset_zero_len): Don't
23183         declare for gcc newer than 5.0.
23184         (memset): Don't test for zero-length __LEN for gcc newer than
23185         5.0.
23186
23187 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23188
23189         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23190         size_t for %zu format.
23191
23192         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23193         difference, not %ju.
23194
23195 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23196
23197         * include/libc-internal.h (ignore_value): New macro.
23198         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23199         with ignore_value.
23200
23201         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23202         definition.
23203
23204         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23205         pthread_cleanup_push to void *.
23206
23207         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23208         Undefine.
23209
23210         [BZ #16619]
23211         [BZ #16740]
23212         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23213         instead of 1L << 52.
23214
23215         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23216         * libio/bug-rewind2.c (do_test): Likewise.
23217
23218         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23219         * debug/test-strcpy_chk-ifunc.c: Likewise.
23220         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23221         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23222         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23223         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23224         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23225         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23226         * Rules [$(multi-arch) = no] (tests): Do not filter out
23227         $(tests-ifunc).
23228         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23229         * debug/Makefile (tests-ifunc): Remove variable.
23230         (tests): Do not add $(tests-ifunc).
23231         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23232         (tests): Do not add $(tests-ifunc).
23233         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23234         [TEST_IFUNC]: Remove conditionals.
23235         * string/test-string.h (TEST_IFUNC): Remove macro.
23236         [TEST_IFUNC]: Remove conditionals.
23237
23238         * string/test-strchr.c [!WIDE] (L): New macro.
23239         [WIDE] (L): Likewise.
23240         (check1): Use CHAR instead of char.  Use L on string and character
23241         constants.
23242
23243 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23244
23245         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23246         tests.
23247         * sysdeps/powerpc/bits/atomic.h
23248         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23249         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23250         (atomic_exchange_and_add_acq): Likewise.
23251         (atomic_exchange_and_add_rel): Likewise.
23252         * sysdeps/powerpc/powerpc32/bits/atomic.h
23253         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23254         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23255         * sysdeps/powerpc/powerpc64/bits/atomic.h
23256         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23257         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23258
23259 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23260
23261         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23262         Change synchronization of __sched_fifo_min_prio and
23263         __sched_fifo_max_prio.
23264         * nptl/pthread_mutexattr_getprioceiling.c
23265         (pthread_mutexattr_getprioceiling): Likewise.
23266         * nptl/pthread_mutexattr_setprioceiling.c
23267         (pthread_mutexattr_setprioceiling): Likewise.
23268         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23269         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23270         Likewise.
23271
23272 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23273
23274         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23275         void.
23276
23277 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23278
23279         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23280         third argument const.
23281
23282 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23283
23284         fnmatch: work around GCC compiler warning bug with uninit var
23285         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23286         This works around a bug with x86-64 GCC 4.9.2 and earlier
23287         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23288         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23289         used uninitialized in this function [-Wmaybe-uninitialized]".
23290
23291 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23292
23293         * posix/bug-regex31.c (main): Return RES not 0.
23294
23295 2014-11-25  Anton Blanchard <anton@samba.org>
23296
23297         * sysdeps/powerpc/bits/atomic.h
23298         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23299
23300 2014-11-24  Sterling Augustine  <saugustine@google.com>
23301
23302         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23303
23304 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23305
23306         [BZ #17608]
23307         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23308
23309 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23310
23311         [BZ #17633]
23312         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23313         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23314         variable.
23315         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23316         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23317
23318 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23319
23320         * string/strncpy.c (strncpy): Improve performance by using memset.
23321
23322 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23323
23324         * string/strcpy.c (strcpy):
23325         Improve performance by using strlen and memcpy.
23326
23327 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23328
23329         * string/strcoll_l.c (get_next_seq): __always_inline.
23330         * string/strcoll_l.c (do_compare): __always_inline.
23331
23332 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23333
23334         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23335         defined.
23336         * include/mqueue.h: Likewise.
23337         * include/stdlib.h: Likewise.
23338
23339         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23340         (get_null_defines): Adjust.
23341         * sunrpc/Makefile: Adjust comment.
23342         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23343         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23344         (CFLAGS-interp.c): Likewise.
23345         (CFLAGS-ldconfig.c): Likewise.
23346         (CPPFLAGS-.os): Likewise.
23347         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23348         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23349         * extra-modules.mk (extra-modules.mk): Likewise.
23350         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23351         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23352         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23353         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23354         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23355         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23356         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23357         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23358         * iconvdata/Makefile (CPPFLAGS): Likewise.
23359         (cpp-srcs-left): Add libof for all iconvdata routines.
23360         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23361         * include/assert.h: Likewise.
23362         * include/ctype.h: Likewise.
23363         * include/errno.h: Likewise.
23364         * include/libc-symbols.h: Likewise.
23365         * include/math.h: Likewise.
23366         * include/netdb.h: Likewise.
23367         * include/resolv.h: Likewise.
23368         * include/stdio.h: Likewise.
23369         * include/stdlib.h: Likewise.
23370         * include/string.h: Likewise.
23371         * include/sys/stat.h: Likewise.
23372         * include/wctype.h: Likewise.
23373         * intl/l10nflist.c: Likewise.
23374         * libidn/idn-stub.c: Likewise.
23375         * libio/libioP.h: Likewise.
23376         * nptl/libc_multiple_threads.c: Likewise.
23377         * nptl/pthreadP.h: Likewise.
23378         * posix/regex_internal.h: Likewise.
23379         * resolv/res_hconf.c: Likewise.
23380         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23381         * sysdeps/arm/memmove.S: Likewise.
23382         * sysdeps/arm/sysdep.h: Likewise.
23383         * sysdeps/generic/_itoa.h: Likewise.
23384         * sysdeps/generic/symbol-hacks.h: Likewise.
23385         * sysdeps/gnu/errlist.awk: Likewise.
23386         * sysdeps/gnu/errlist.c: Likewise.
23387         * sysdeps/i386/i586/memcpy.S: Likewise.
23388         * sysdeps/i386/i586/memset.S: Likewise.
23389         * sysdeps/i386/i686/memcpy.S: Likewise.
23390         * sysdeps/i386/i686/memmove.S: Likewise.
23391         * sysdeps/i386/i686/mempcpy.S: Likewise.
23392         * sysdeps/i386/i686/memset.S: Likewise.
23393         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23394         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23395         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23396         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23397         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23398         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23399         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23400         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23401         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23402         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23403         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23404         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23405         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23406         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23407         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23408         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23409         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23410         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23411         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23412         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23413         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23414         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23415         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23416         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23417         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23418         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23419         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23420         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23421         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23422         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23423         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23424         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23425         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23426         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23427         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23428         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23429         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23430         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23431         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23432         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23433         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23434         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23435         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23436         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23437         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23438         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23439         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23440         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23441         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23442         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23443         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23444         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23445         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23446         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23447         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23448         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23449         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23450         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23451         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23452         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23453         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23454         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23455         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23456         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23457         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23458         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23459         * sysdeps/posix/closedir.c: Likewise.
23460         * sysdeps/posix/opendir.c: Likewise.
23461         * sysdeps/posix/readdir.c: Likewise.
23462         * sysdeps/posix/rewinddir.c: Likewise.
23463         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23464         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23465         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23466         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23467         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23468         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23469         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23470         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23471         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23472         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23473         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23474         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23475         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23476         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23477         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23478         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23479         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23480         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23481         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23482         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23483         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23484         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23485         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23486         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23487         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23488         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23489         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23490         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23491         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23492         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23493         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23494         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23495         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23496         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23497         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23498         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23499         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23500         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23501         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23502         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23503         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23504         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23505         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23506         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23507         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23508         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23509         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23510         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23511         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23512         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23513         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23514         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23515         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23516         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23517         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23518         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23519         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23520         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23521         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23522         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23523         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23524         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23525         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23526         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23527         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23528         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23529         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23530         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23531         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23532         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23533         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23534         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23535         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23536         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23537         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23538         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23539         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23540         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23541         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23542         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23543         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23544         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23545         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23546         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23547         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23548         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23549         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23550         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23551         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23552         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23553         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23554         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23555         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23556         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23557         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23558         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23559         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23560         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23561         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23562         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23563         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23564         * sysdeps/unix/alpha/sysdep.S: Likewise.
23565         * sysdeps/unix/alpha/sysdep.h: Likewise.
23566         * sysdeps/unix/make-syscalls.sh: Likewise.
23567         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23568         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23569         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23570         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23571         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23572         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23573         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23574         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23575         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23576         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23577         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23578         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23579         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23580         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23581         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23582         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23583         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23584         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23585         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23586         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23587         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23588         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23589         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23590         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23591         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23592         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23593         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23596         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23597         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23598         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23599         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23600         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23601         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23602         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23603         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23604         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23605         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23606         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23607         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23608         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23609         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23610         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23611         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23612         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23613         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23614         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23615         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23616         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23617         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23618         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23619         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23620         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23621         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23622         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23623         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23624         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23625         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23626         * sysdeps/x86_64/memcpy.S: Likewise.
23627         * sysdeps/x86_64/memmove.c: Likewise.
23628         * sysdeps/x86_64/memset.S: Likewise.
23629         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23630         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23631         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23632         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23633         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23634         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23635         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23636         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23637         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23638         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23639         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23640         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23641         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23642         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23643         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23644         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23645         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23646         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23647         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23648         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23649         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23650         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23651         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23652         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23653         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23654         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23655         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23656         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23657         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23658         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23659         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23660         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23661         * sysdeps/x86_64/strcmp.S: Likewise.
23662
23663         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23664
23665         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23666         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23667         * elf/rtld-Rules: Likewise.
23668         * elf/setup-vdso.h: Likewise.
23669         * include/assert.h: Likewise.
23670         * include/bits/stdlib-float.h: Likewise.
23671         * include/errno.h: Likewise.
23672         * include/sys/stat.h: Likewise.
23673         * include/unistd.h: Likewise.
23674         * sysdeps/aarch64/setjmp.S: Likewise.
23675         * sysdeps/alpha/setjmp.S: Likewise.
23676         * sysdeps/arm/__longjmp.S: Likewise.
23677         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23678         * sysdeps/arm/setjmp.S: Likewise.
23679         * sysdeps/arm/sysdep.h: Likewise.
23680         * sysdeps/generic/_itoa.h: Likewise.
23681         * sysdeps/generic/dl-sysdep.h: Likewise.
23682         * sysdeps/generic/ldsodefs.h: Likewise.
23683         * sysdeps/i386/dl-tls.h: Likewise.
23684         * sysdeps/i386/setjmp.S: Likewise.
23685         * sysdeps/m68k/setjmp.c: Likewise.
23686         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23687         * sysdeps/mach/hurd/opendir.c: Likewise.
23688         * sysdeps/posix/getcwd.c: Likewise.
23689         * sysdeps/posix/opendir.c: Likewise.
23690         * sysdeps/posix/profil.c: Likewise.
23691         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23692         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23693         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23694         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23695         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23696         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23697         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23698         * sysdeps/s390/dl-tls.h: Likewise.
23699         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23700         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23701         * sysdeps/sh/sh3/setjmp.S: Likewise.
23702         * sysdeps/sh/sh4/setjmp.S: Likewise.
23703         * sysdeps/unix/alpha/sysdep.h: Likewise.
23704         * sysdeps/unix/arm/sysdep.S: Likewise.
23705         * sysdeps/unix/i386/sysdep.S: Likewise.
23706         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23707         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23708         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23709         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23710         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23711         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23712         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23713         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23714         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23715         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23716         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23717         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23718         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23721         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23722         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23723         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23724         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23725         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23726         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23727         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23728         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23729         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23730         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23731         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23732         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23733         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23734         * sysdeps/x86_64/setjmp.S: Likewise.
23735
23736         * include/math.h: Use IS_IN instead of IS_IN_libm.
23737         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23738         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23739         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23740         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23741         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23742         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23743         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23744         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23745         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23746         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23747         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23748         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23749         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23750         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23751         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23752         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23753         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23754         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23755         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23756         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23757         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23758         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23759         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23760         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23761         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23762         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23763         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23764         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23765         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23766         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23767         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23768         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23769         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23771         Likewise.
23772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23773         Likewise.
23774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23775         Likewise.
23776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23777         Likewise.
23778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23779         Likewise.
23780         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23781         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23782         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23783         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23784         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23785         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23788         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23791         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23792         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23793         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23794         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23795         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23796         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23797         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23798         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23799         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23800         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23801         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23802         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23803         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23804         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23806         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23807
23808         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23809         * nptl/pthreadP.h: Likewise.
23810         * nptl_db/structs.def: Likewise.
23811         * sysdeps/arm/sysdep.h: Likewise.
23812         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23813         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23814         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23815         * sysdeps/unix/alpha/sysdep.h: Likewise.
23816         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23817         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23818         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23819         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23820         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23821         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23822         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23823         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23824         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23825         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23826         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23827         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23828         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23829         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23832         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23833         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23834         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23836         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23837         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23838         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23839         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23840         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23841         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23842
23843         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23844         * nptl/pthreadP.h: Likewise.
23845         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23846         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23847         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23848         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23849         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23850         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23851         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23852         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23853         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23854         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23855         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23856         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
23858         Likewise.
23859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
23860         Likewise.
23861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23862         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23863         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23864         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23865         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23866         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23867         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23868         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23869
23870         * dlfcn/dladdr.c: Use IS_IN.
23871         * dlfcn/dladdr1.c: Likewise.
23872         * dlfcn/dlclose.c: Likewise.
23873         * dlfcn/dlerror.c: Likewise.
23874         * dlfcn/dlinfo.c: Likewise.
23875         * dlfcn/dlmopen.c: Likewise.
23876         * dlfcn/dlopen.c: Likewise.
23877         * dlfcn/dlsym.c: Likewise.
23878         * dlfcn/dlvsym.c: Likewise.
23879
23880         * include/ifaddrs.h: Use IS_IN.
23881         * inet/check_pf.c: Likewise.
23882         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
23883         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
23884
23885         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
23886         IS_IN_ldconfig.
23887         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
23888         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
23889
23890         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
23891         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
23892         IS_IN (libc).
23893
23894         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
23895
23896         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
23897         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23898         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23899         * include/libc-symbols.h (IS_IN_LIB): New macro.
23900         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
23901         * include/netdb.h: Likewise.
23902         * include/stap-probe.h: Remove all uses of IN_LIB.
23903
23904         * Makeconfig (module-cppflags-real): Define MODULE_NAME
23905         instead of IN_MODULE.
23906         * include/libc-symbols.h (IN_MODULE): Define using
23907         MODULE_NAME.
23908         (PASTE_NAME, PASTE_NAME1): New macros.
23909         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
23910         of IN_LIB.
23911         (STAP_PROBE_ASM): Likewise.
23912
23913 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23914
23915         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
23916         __mach_init in dlopened libc.
23917
23918 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
23919
23920         * sysdeps/arm/preconfigure.ac: Delete EABI check.
23921         * sysdeps/arm/preconfigure: Regenerate.
23922
23923 2014-11-21  Roland McGrath  <roland@hack.frob.com>
23924
23925         * nptl/pthread_create.c (__pthread_create_2_1): Set
23926         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
23927         when copying values from IATTR into PD.
23928
23929 2014-11-21  Will Newton  <will.newton@linaro.org>
23930             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23931
23932         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
23933         Refactor inline-asm.  Also add comment.
23934
23935         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
23936         ElfW macro instead of hardcoded Elf64 types.
23937         (la_aarch64_gnu_pltenter): Likewise.
23938         * sysdeps/aarch64/dl-machine.h
23939         (elf_machine_runtime_setup): Use ElfW(Addr).
23940
23941         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
23942         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
23943         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
23944         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
23945         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
23946         (R_AARCH64_TLS_DTPMOD64): Rename to ..
23947         (R_AARCH64_TLS_DTPMOD): This.
23948         (R_AARCH64_TLS_DTPREL64): Rename to ...
23949         (R_AARCH64_TLS_DTPREL): This.
23950         (R_AARCH64_TLS_TPREL64): Rename to ...
23951         (R_AARCH64_TLS_TPREL): This.
23952         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
23953         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
23954         R_AARCH64_TLS_TPREL64.
23955         (elf_machine_rela): Likewise.
23956
23957 2014-11-21  Torvald Riegel  <triegel@redhat.com>
23958
23959         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
23960         by setting it to 0.  64b atomics are not supported currently.
23961
23962 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23963
23964         [BZ #16469]
23965         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
23966         search domain names.
23967
23968 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23969
23970         [BZ #16469]
23971         * NEWS: Update.
23972         * resolv/res_query.c (__libc_res_nquerydomain): Retain
23973         trailing dot.
23974         * posix/tst-getaddrinfo5.c: New.
23975         * posix/Makefile (tests): Add it.
23976
23977 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23978
23979         [BZ #14498]
23980         * NEWS: Fixed.
23981         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
23982         after parsing line but before break_if_match.
23983         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
23984         if there is a protocol mismatch.
23985
23986 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
23987
23988         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
23989         because the potential race is on the user-supplied stream.
23990
23991 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23992
23993         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
23994         string literal if not passed a buffer.
23995         * manual/job.texi (ctermid): Update reasoning, note deviation
23996         from posix, suggest mtasurace when not passed a buffer, for
23997         future non-preliminary safety notes.
23998
23999 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24000
24001         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24002         of not passing it a buffer.
24003         Reported by Peng Haitao.
24004
24005 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24006
24007         * manual/Makefile ($(objpfx)stamp-summary): Require
24008         check-safety.sh to pass.
24009         * manual/check-safety.sh: Wish for verification that every
24010         @deftypefn and @deftypefun is followed by a @safety remark.
24011
24012 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24013
24014         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24015
24016         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24017         PTHREAD_CANCEL_ASYNCHRONOUS.
24018         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24019         send SIGCANCEL.
24020
24021         * nptl/default-sched.h: New file.
24022         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24023         * nptl/pthread_create.c: Include it.
24024         (__pthread_create_2_1): Use collect_default_sched instead of making
24025         Linux syscalls here directly.
24026
24027 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24028
24029         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24030         __pthread_once): Use C11 atomics.
24031
24032 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24033
24034         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24035
24036 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24037
24038         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24039         atomic_thread_fence_acquire, atomic_thread_fence_release,
24040         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24041         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24042         atomic_compare_exchange_weak_relaxed,
24043         atomic_compare_exchange_weak_acquire,
24044         atomic_compare_exchange_weak_release,
24045         atomic_exchange_acquire, atomic_exchange_release,
24046         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24047         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24048         atomic_fetch_and_acquire,
24049         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24050
24051 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24052
24053         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24054         USE_ATOMIC_COMPILER_BUILTINS): Define.
24055         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24056         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24057         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24058         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24059         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24060         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24061         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24062         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24063         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24064         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24065         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24066         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24067         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24068         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24069         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24070         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24071         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24072         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24073         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24074         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24075         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24076         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24077         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24078         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24079         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24080         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24081         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24082         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24083         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24084         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24085         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24086         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24087         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24088         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24089         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24090         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24091         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24092         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24093         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24094         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24095
24096 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24097
24098         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24099         the sched_priority value here.  It was already checked when the user
24100         called pthread_attr_setschedparam.
24101
24102         * nptl/tst-bad-schedattr.c: New file.
24103         * nptl/Makefile (tests): Add it.
24104
24105 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24106             Florian Weimer  <fweimer@redhat.com>
24107             Joseph Myers  <joseph@codesourcery.com>
24108             Adam Conrad  <adconrad@0c3.net>
24109             Andreas Schwab  <schwab@suse.de>
24110             Brooks  <bmoses@google.com>
24111
24112         [BZ #17625]
24113         * wordexp-test.c (__dso_handle): Add prototype.
24114         (__register_atfork): Likewise.
24115         (__app_register_atfork): New function.
24116         (registered_forks): New global.
24117         (register_fork): New function.
24118         (test_case): Add 3 new tests for WRDE_CMDSUB.
24119         (main): Call __app_register_atfork.
24120         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24121         fork count is non-zero fail the test.
24122         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24123         is set.
24124         (parse_dollars): Remove check for WRDE_NOCMD.
24125         (parse_dquote): Likewise.
24126
24127 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24128
24129         * Makeconfig (built-modules): List non-library modules to be
24130         built.
24131         (module-cppflags): Include libc-modules.h for
24132         everything except shlib-versions.v.i.
24133         (CPPFLAGS): Use it.
24134         (before-compile): Add libc-modules.h.
24135         ($(common-objpfx)libc-modules.h,
24136         $(common-objpfx)libc-modules.stmp): New targets.
24137         (common-generated): Add libc-modules.h and libc-modules.stmp.
24138         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24139         * include/libc-symbols.h: Don't include libc-modules.h.
24140         * include/libc-modules.h: Remove file.
24141         * scripts/gen-libc-modules.awk: New script to generate
24142         libc-modules.h.
24143         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24144         Depend on libc-modules.stmp.
24145
24146         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24147
24148         * Makeconfig (in-module): Get value of libof set for the
24149         translation unit.
24150         (CPPFLAGS): Use $(in-module).
24151         * Makerules: Don't suffix routine names for nonlib.
24152         * include/libc-modules.h: New file.
24153         * include/libc-symbols.h: Include libc-modules.h
24154         (IS_IN): New macro to replace IS_IN_* macros.
24155         * elf/Makefile: Set libof-* for each routine.
24156         * elf/rtld-Rules: Likewise.
24157         * extra-modules.mk: Likewise.
24158         * iconv/Makefile: Likewise.
24159         * iconvdata/Makefile: Likewise.
24160         * locale/Makefile: Likewise.
24161         * malloc/Makefile: Likewise.
24162         * nss/Makefile: Likewise.
24163         * sysdeps/gnu/Makefile: Likewise.
24164         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24165         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24166         * sysdeps/s390/s390-64/Makefile: Likewise.
24167         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24168         CPPFLAGS for nscd instead of nonlib.
24169
24170 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24171
24172         * nptl/createthread.c: New file.
24173
24174         * nptl/createthread.c: Moved ...
24175         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24176
24177         * nptl/createthread.c: Add proper top-line comment.
24178         (do_clone): Folded into ...
24179         (create_thread): ... here.  Take new arguments STOPPED_START and
24180         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24181         increment __nptl_threads, do event-reporting logic, do
24182         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24183         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24184         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24185         just send SIGCANCEL.
24186         * nptl/pthread_create.c: Forward-declare create_thread before
24187         including createthread.c.
24188         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24189         declaration, and new macro START_THREAD_SELF to replace argument.
24190         Remove return statement.
24191         (report_thread_creation): New function.
24192         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24193         synchronization logic, and __nptl_nthreads increment here, around
24194         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24195         PD->parent_cancelhandling here, before create_thread.  When
24196         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24197         __deallocate_stack, and ENOMEM translation here.
24198
24199 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24200
24201         [BZ #17616]
24202         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24203         (mptwo): Rename to __mptwo.
24204         (__inv): Use __mptwo instead of mptwo.
24205         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24206         (mptwo): Rename to __mptwo.
24207         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24208         of mpone and __mptwo instead of mptwo.
24209         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24210         instead of mpone.
24211         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24212         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24213         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24214         of mpone and __mptwo instead of mptwo.
24215         (__mpranred): Use __mpone instead of mpone.
24216         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24217         variable.
24218         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24219         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24220         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24221         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24222         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24223         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24224         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24225         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24226         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24227         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24228         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24229         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24230         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24231         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24232         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24233         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24234         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24235         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24236         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24237
24238 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24239
24240         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24241         replace BSD Handler xref with BSD Signal Handling.
24242
24243 2014-11-17  Richard Henderson  <rth@redhat.com>
24244
24245         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24246         (_FP_PACK_RAW_2): Remove.
24247         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24248         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24249         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24250         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24251         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24252         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24253         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24254         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24255         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24256         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24257         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24258         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24259         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24260         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24261         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24262         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24263
24264 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24265
24266         * signal/signal.h [__USE_MISC]
24267         (struct sigvec): Remove type.
24268         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24269         (sigvec): Remove declaration.
24270         * sysdeps/posix/sigvec.c: Moved ...
24271         * signal/sigvec.c: ... here, replacing old file.
24272         (struct sigvec): New type, copied from old signal.h definition.
24273         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24274         (__sigvec): Convert definition to prototype.
24275         (sigvec): Replace weak_alias with compat_symbol.
24276         * signal/Versions (libc: GLIBC_2.21): New version set.
24277         * include/signal.h: Remove __sigvec declaration.
24278         * sysdeps/unix/bsd/sigvec.c: Remove file.
24279         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24280         * manual/signal.texi (BSD Handler): Remove subsection.
24281         Move siginterrupt up to ...
24282         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24283         (Blocking in BSD): Fold subsection into its parent.
24284         * NEWS: Mention sigvec removal.
24285
24286 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24287
24288         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24289         (DLA_FMS): Make definition conditional only on [__FMA4__].
24290         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24291         definition.
24292
24293         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24294         Make definition conditional only on [PROF].
24295         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24296         definition.
24297         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24298         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24299
24300         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24301         !__GNUC__].
24302         * include/signal.h (__sigpause): Move declaration above call to
24303         libc_hidden_proto.
24304         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24305         variable.
24306         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24307         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24308
24309 2014-11-14  David S. Miller  <davem@davemloft.net>
24310
24311         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24312         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24313
24314 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24315
24316         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24317         * configure: Regenerated.
24318         * manual/install.texi (Tools for Compilation): Document a
24319         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24320         compiler verified to work.
24321         * INSTALL: Regenerated.
24322
24323         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24324         redeclare with asm name.
24325         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24326         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24327         including <string.h>.
24328         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24329         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24330         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24331         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24332         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24333         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24334         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24335
24336 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24337
24338         * stdlib/strtol.c (__strtol): Use prototype definition.
24339
24340         [BZ #17594]
24341         * stdlib/strtol.c (SYM__): New macro.
24342         (SYM__1): Likewise.
24343         (__strtol): Likewise.
24344         (strtol): Rename to __strtol and define as weak alias of
24345         __strtol.  Use libc_hidden_weak.
24346
24347 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24348
24349         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24350         Use numbered labels in inline assembly.
24351
24352 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24353
24354         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24355         Add setjmp LIBC_PROBE.
24356         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24357         Likewise.
24358         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24359         Add longjmp, longjmp_target LIBC_PROBE.
24360         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24361         Likewise.
24362
24363 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24364
24365         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24366         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24367         to get rid of unused variable warning.
24368
24369 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24370
24371         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24372         Check for unwind_backtrace ==  NULL only in SHARED case.
24373         (__backchain_backtrace): Compile only in SHARED case.
24374         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24375         Likewise.
24376         (__backchain_backtrace): Declare as static.
24377
24378 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24379
24380         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24381         (__libc_multiple_threads_ptr): Variable moved ...
24382         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24383
24384 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24385
24386         * conform/GlibcConform.pm: New file.
24387         * conform/conformtest.pl: Use GlibcConform module.
24388         * conform/linknamespace.pl: New file.
24389         * conform/list-header-symbols.pl: Likewise.
24390         * conform/Makefile (linknamespace-symlists-base): New variable.
24391         (linknamespace-symlists-tests): Likewise.
24392         (linknamespace-header-base): Likewise.
24393         (linknamespace-header-tests): Likewise.
24394         (tests-special): Add new tests.
24395         ($(linknamespace-symlists-tests)): New rule.
24396         (linknamespace-libs): New variable.
24397         ($(objpfx)symlist-stdlibs): New rule.
24398         ($(linknamespace-header-tests)): Likewise.
24399         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24400         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24401         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24402         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24403         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24404         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24405         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24406         (test-xfail-ISO/math.h/linknamespace): Likewise.
24407         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24408         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24409         (test-xfail-ISO/time.h/linknamespace): Likewise.
24410         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24411         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24412         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24413         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24414         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24415         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24416         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24417         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24418         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24419         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24420         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24421         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24422         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24423         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24424         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24425         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24426         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24427         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24428         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24429         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24430         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24431         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24432         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24433         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24434         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24435         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24436         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24437         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24438         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24439         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24440         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24441         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24442         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24443         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24444         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24445         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24446         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24447         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24448         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24449         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24450         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24451         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24452         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24453         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24454         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24455         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24456         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24457         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24458         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24459         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24460         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24461         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24462         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24463         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24464         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24465         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24466         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24467         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24468         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24469         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24470         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24471         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24472         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24473         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24474         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24475         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24476         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24477         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24478         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24479         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24480         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24481         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24482         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24483         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24484         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24485         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24486         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24487         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24488         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24489         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24490         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24491         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24492         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24493         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24494         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24495         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24496         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24497         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24498         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24499         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24500         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24501         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24502         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24503         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24504         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24505         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24506         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24507         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24508         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24509         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24510         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24511         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24512         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24513         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24514         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24515         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24516         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24517         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24518         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24519         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24520         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24521         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24522         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24523         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24524         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24525         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24526         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24527         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24528         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24529         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24530         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24531         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24532         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24533         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24534         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24535         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24536         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24537         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24538         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24539         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24540         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24541         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24542         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24543         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24544         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24545         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24546         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24547         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24548         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24549         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24550         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24551         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24552         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24553         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24554         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24555         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24556         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24557         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24558         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24559         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24560
24561         [BZ #17589]
24562         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24563         of fgets_unlocked.
24564
24565         [BZ #17585]
24566         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24567         (memmem): Rename to __memmem and define as weak alias of
24568         __memmem.  Use libc_hidden_weak.
24569         (__memmem): Use libc_hidden_def.
24570         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24571         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24572         memmem.
24573
24574         [BZ #17582]
24575         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24576         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24577         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24578         and define as weak alias of __fgets_unlocked.  Use
24579         libc_hidden_weak.
24580         (__fgets_unlocked): Use libc_hidden_def.
24581         * include/stdio.h (__fgets_unlocked): Declare.  Use
24582         libc_hidden_proto.
24583         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24584         __fgets_unlocked instead of fgets_unlocked.
24585         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24586         (GET_NPROCS_CONF_PARSER): Likewise.
24587         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24588         (GET_NPROCS_CONF_PARSER): Likewise.
24589
24590         [BZ #17574]
24591         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24592         weak alias of __wmemset.  Use libc_hidden_weak.
24593         (__wmemset): Use libc_hidden_def.
24594         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24595         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24596         of wmemset.
24597
24598         [BZ #17573]
24599         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24600         with asm name __mempcpy.
24601         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24602
24603         [BZ #17572]
24604         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24605         and define as weak alias of __rawmemchr.
24606         (__rawmemchr): Do not define as strong alias of rawmemchr.
24607
24608         [BZ #17571]
24609         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24610         alias of __qsort_r.
24611         (qsort): Call __qsort_r instead of qsort_r.
24612         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24613         (__qsort_r): Declare.  Call libc_hidden_proto.
24614         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24615         instead of qsort_r.
24616         * nscd/gai.c (__qsort_r): Define to qsort_r.
24617         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24618         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24619         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24620
24621         [BZ #17570]
24622         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24623         define as weak alias of __malloc_info.
24624
24625         [BZ #17584]
24626         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24627         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24628         (__rewinddir): Use libc_hidden_def.
24629         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24630         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24631         (__rewinddir): Use libc_hidden_def.
24632         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24633         weak alias of __rewinddir.  Don't use libc_hidden_def.
24634         (__rewinddir): Use libc_hidden_def.
24635         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24636         (__rewinddir): Use libc_hidden_proto.
24637         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24638         rewinddir.
24639         (__getcwd): Use __rewinddir instead of rewinddir.
24640
24641         [BZ #17583]
24642         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24643         alias of __fileno.  Use libc_hidden_weak.
24644         (__fileno): Use libc_hidden_def.
24645         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24646         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24647         alias of __ftello.
24648         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24649         __ftello.
24650         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24651         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24652         libc_hidden_def.
24653         (fread_unlocked): Don't use libc_hidden_ver.
24654         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24655         and define as weak alias of __fread_unlocked.  Don't use
24656         libc_hidden_def.
24657         (__fread_unlocked): Use libc_hidden_def.
24658         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24659         (ftello): Don't use libc_hidden_proto.
24660         (__ftello): Declare.  Use libc_hidden_proto.
24661         (fread_unlocked): Don't use libc_hidden_proto.
24662         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24663         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24664         and __ftello instead of fileno, fread_unlocked and ftello.
24665
24666 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24667
24668         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24669         GOT12.
24670         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24671         Likewise.
24672         (_dl_start_user): Likewise.
24673         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24674
24675 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24676             Siddhesh Poyarekar  <siddhesh@redhat.com>
24677
24678         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24679         Move argv and envp down instead of moving argc up.
24680         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24681
24682 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24683
24684         [BZ #17506]
24685         * test-skeleton.c (main): Return successful if one of
24686         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24687         * string/tst-strcoll-overflow.c: Define expected status.
24688
24689 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24690
24691         [BZ #17475]
24692         * locale/iso-639.def: Define Bhili and Tulu language codes.
24693
24694 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24695
24696         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24697
24698 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24699
24700         [BZ #17555]
24701         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24702
24703 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24704
24705         * configure.ac: Updated check of minimal required version to
24706         2.22.
24707         * manual/install.texi (Tools for Compilation): Updated version
24708         number.
24709         * configure: Regenerated.
24710         * INSTALL: Likewise.
24711
24712 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24713
24714         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24715         __tls_get_addr.
24716
24717 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24718
24719         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24720         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24721         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24722         libc_hidden_weak.
24723         (waitpid): Define as alias of __waitpid.
24724         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24725         __waitpid.
24726         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24727         libc_hidden_weak.
24728         (waitpid): Define as alias of __waitpid.
24729         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24730         __libc_waitpid alias.
24731         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24732         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24733         Likewise.
24734         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24735         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24736         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24737         alias.
24738         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24739         __waitpid.
24740         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24741         libc_hidden_weak.
24742         (waitpid): Define as alias of __waitpid.
24743
24744 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24745
24746         * manual/llio.texi: Add comment that write safety has been
24747         fixed in Linux.
24748
24749         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24750         (localplt-build-dso): Add elf/ld.so.
24751         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24752         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24753         and free for ld.so.
24754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24755         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24757         Likewise.
24758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24759         Likewise.
24760         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24761         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24762         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24763         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24764         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24765         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24766         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24767         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24768         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24769         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24770         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24771
24772 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24773
24774         [BZ #14132]
24775         * include/libc-symbols.h (INTUSE): Remove macro.
24776         (INTDEF): Likewise.
24777         (INTVARDEF): Likewise.
24778         (_INTVARDEF): Likewise.
24779         (INTDEF2): Likewise.
24780         (INTVARDEF2): Likewise.
24781         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24782         rtld_hidden_def instead of INTVARDEF.
24783         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24784         (_dl_starting_up_internal): Remove declaration.
24785         (_dl_starting_up): Use rtld_hidden_proto.
24786         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24787         declaration.
24788         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24789         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24790         _dl_starting_up.
24791         * elf/dl-writev.h (_dl_writev): Likewise.
24792         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24793         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24794         _dl_starting_up_internal.
24795
24796 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24797
24798         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24799         test-skeleton.c.
24800
24801 2014-11-05  Will Newton  <will.newton@linaro.org>
24802
24803         * benchtests/Makefile: (bench-malloc): Add malloc thread
24804         scalability benchmark.
24805         * benchtests/bench-malloc-threads.c: New file.
24806
24807 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24808
24809         * sysdeps/aarch64/strchrnul.S: New file.
24810
24811 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24812
24813         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24814         definition.
24815         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24816         Likwise.
24817         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24818         Likewise.
24819         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24820         Likewise.
24821         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24822         Likewise.
24823         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24824         Likewise.
24825
24826 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24827
24828         * catgets/test-gencat.c: Use test-skeleton.c.
24829         * catgets/tst-catgets.c: Likewise.
24830         * csu/tst-empty.c: Likewise.
24831         * elf/tst-audit2.c: Likewise.
24832         * elf/tst-global1.c: Likewise.
24833         * elf/tst-pathopt.c: Likewise.
24834         * elf/tst-piemod1.c: Likewise.
24835         * elf/tst-tls10.c: Likewise.
24836         * elf/tst-tls11.c: Likewise.
24837         * elf/tst-tls12.c: Likewise.
24838         * gnulib/tst-gcc.c: Likewise.
24839         * iconvdata/tst-e2big.c: Likewise.
24840         * iconvdata/tst-loading.c: Likewise.
24841         * iconv/tst-iconv1.c: Likewise.
24842         * iconv/tst-iconv2.c: Likewise.
24843         * inet/test-inet6_opt.c: Likewise.
24844         * inet/tst-gethnm.c: Likewise.
24845         * inet/tst-network.c: Likewise.
24846         * inet/tst-ntoa.c: Likewise.
24847         * intl/tst-codeset.c: Likewise.
24848         * intl/tst-gettext2.c: Likewise.
24849         * intl/tst-gettext3.c: Likewise.
24850         * intl/tst-ngettext.c: Likewise.
24851         * intl/tst-translit.c: Likewise.
24852         * io/test-stat.c: Likewise.
24853         * libio/test-fmemopen.c: Likewise.
24854         * libio/tst-freopen.c: Likewise.
24855         * libio/tst-sscanf.c: Likewise.
24856         * libio/tst-ungetwc1.c: Likewise.
24857         * libio/tst-ungetwc2.c: Likewise.
24858         * libio/tst-widetext.c: Likewise.
24859         * localedata/tst-ctype.c: Likewise.
24860         * localedata/tst-digits.c: Likewise.
24861         * localedata/tst-leaks.c: Likewise.
24862         * localedata/tst-mbswcs1.c: Likewise.
24863         * localedata/tst-mbswcs2.c: Likewise.
24864         * localedata/tst-mbswcs3.c: Likewise.
24865         * localedata/tst-mbswcs4.c: Likewise.
24866         * localedata/tst-mbswcs5.c: Likewise.
24867         * localedata/tst-setlocale.c: Likewise.
24868         * localedata/tst-trans.c: Likewise.
24869         * localedata/tst-wctype.c: Likewise.
24870         * localedata/tst-xlocale1.c: Likewise.
24871         * login/tst-grantpt.c: Likewise.
24872         * malloc/tst-calloc.c: Likewise.
24873         * malloc/tst-malloc.c: Likewise.
24874         * malloc/tst-mallocstate.c: Likewise.
24875         * malloc/tst-mcheck.c: Likewise.
24876         * malloc/tst-mtrace.c: Likewise.
24877         * malloc/tst-obstack.c: Likewise.
24878         * math/atest-exp2.c: Likewise.
24879         * math/atest-exp.c: Likewise.
24880         * math/atest-sincos.c: Likewise.
24881         * math/test-matherr.c: Likewise.
24882         * math/test-misc.c: Likewise.
24883         * math/test-powl.c: Likewise.
24884         * math/tst-definitions.c: Likewise.
24885         * misc/tst-dirname.c: Likewise.
24886         * misc/tst-efgcvt.c: Likewise.
24887         * misc/tst-fdset.c: Likewise.
24888         * misc/tst-hsearch.c: Likewise.
24889         * misc/tst-mntent2.c: Likewise.
24890         * nptl/tst-sem7.c: Likewise.
24891         * nptl/tst-sem8.c: Likewise.
24892         * nptl/tst-sem9.c: Likewise.
24893         * nss/test-netdb.c: Likewise.
24894         * posix/tst-fnmatch.c: Likewise.
24895         * posix/tst-getlogin.c: Likewise.
24896         * posix/tst-gnuglob.c: Likewise.
24897         * posix/tst-mmap.c: Likewise.
24898         * pwd/tst-getpw.c: Likewise.
24899         * resolv/tst-inet_ntop.c: Likewise.
24900         * rt/tst-timer.c: Likewise.
24901         * stdio-common/test-fseek.c: Likewise.
24902         * stdio-common/test-popen.c: Likewise.
24903         * stdio-common/test-vfprintf.c: Likewise.
24904         * stdio-common/tst-cookie.c: Likewise.
24905         * stdio-common/tst-fileno.c: Likewise.
24906         * stdio-common/tst-gets.c: Likewise.
24907         * stdio-common/tst-obprintf.c: Likewise.
24908         * stdio-common/tst-perror.c: Likewise.
24909         * stdio-common/tst-sprintf2.c: Likewise.
24910         * stdio-common/tst-sprintf3.c: Likewise.
24911         * stdio-common/tst-sprintf.c: Likewise.
24912         * stdio-common/tst-swprintf.c: Likewise.
24913         * stdio-common/tst-tmpnam.c: Likewise.
24914         * stdio-common/tst-unbputc.c: Likewise.
24915         * stdio-common/tst-wc-printf.c: Likewise.
24916         * stdlib/tst-environ.c: Likewise.
24917         * stdlib/tst-fmtmsg.c: Likewise.
24918         * stdlib/tst-limits.c: Likewise.
24919         * stdlib/tst-rand48-2.c: Likewise.
24920         * stdlib/tst-rand48.c: Likewise.
24921         * stdlib/tst-random2.c: Likewise.
24922         * stdlib/tst-random.c: Likewise.
24923         * stdlib/tst-strtol.c: Likewise.
24924         * stdlib/tst-strtoll.c: Likewise.
24925         * stdlib/tst-tls-atexit.c: Likewise.
24926         * stdlib/tst-xpg-basename.c: Likewise.
24927         * string/test-ffs.c: Likewise.
24928         * string/tst-bswap.c: Likewise.
24929         * string/tst-inlcall.c: Likewise.
24930         * string/tst-strtok.c: Likewise.
24931         * string/tst-strxfrm.c: Likewise.
24932         * sysdeps/x86_64/tst-audit10.c: Likewise.
24933         * sysdeps/x86_64/tst-audit3.c: Likewise.
24934         * sysdeps/x86_64/tst-audit4.c: Likewise.
24935         * sysdeps/x86_64/tst-audit5.c: Likewise.
24936         * time/tst-ftime_l.c: Likewise.
24937         * time/tst-getdate.c: Likewise.
24938         * time/tst-mktime3.c: Likewise.
24939         * time/tst-mktime.c: Likewise.
24940         * time/tst-posixtz.c: Likewise.
24941         * time/tst-strptime2.c: Likewise.
24942         * time/tst-strptime3.c: Likewise.
24943         * wcsmbs/tst-btowc.c: Likewise.
24944         * wcsmbs/tst-mbrtowc.c: Likewise.
24945         * wcsmbs/tst-mbsrtowcs.c: Likewise.
24946         * wcsmbs/tst-wchar-h.c: Likewise.
24947         * wcsmbs/tst-wcpncpy.c: Likewise.
24948         * wcsmbs/tst-wcrtomb.c: Likewise.
24949         * wcsmbs/tst-wcsnlen.c: Likewise.
24950         * wcsmbs/tst-wcstof.c: Likewise.
24951
24952 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
24953
24954         [BZ #14132]
24955         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
24956         INTDEF.
24957         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
24958         declaration.
24959         (_dl_mcount): Use rtld_hidden_proto.
24960         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
24961         _dl_mcount.
24962         * elf/rtld.c (_rtld_global_ro): Likewise.
24963
24964         [BZ #14132]
24965         * elf/dl-init.c (_dl_init): Don't use INTDEF.
24966         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
24967         of _dl_init_internal.
24968         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
24969         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
24970         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
24971         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
24972         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
24973         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
24974         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
24975         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
24976         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
24977         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
24978         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
24979         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
24980         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
24981         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
24982         * sysdeps/tile/dl-start.S (_start): Likewise.
24983         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
24984         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
24985
24986         [BZ #14132]
24987         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
24988         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
24989         (rtld_progname): Make macro definition unconditional.
24990         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
24991         INTDEF.
24992         (dlmopen_doit): Do not use INTUSE with _dl_argv.
24993         (dl_main): Likewise.
24994         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
24995         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
24996         instead of _dl_argv_internal.
24997         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24998         __GI__dl_argv instead of INTUSE(_dl_argv).
24999         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25000         __GI__dl_argv instead of _dl_argv_internal.
25001
25002         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25003         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25004         macro.
25005         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25006         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25007         New macro.
25008         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25009         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25010         macro.
25011         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25012         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25013
25014 2014-11-04  Andreas Schwab  <schwab@suse.de>
25015
25016         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25017
25018 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25019
25020         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25021         mtvsrd instruction in binary form.
25022
25023 2014-11-03  Andreas Schwab  <schwab@suse.de>
25024
25025         [BZ #17522]
25026         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25027         for less than MB_LEN_MAX use a local buffer of that size.
25028         * libio/tst-fputws.c: New file.
25029         * libio/Makefile (tests): Add tst-fputws.
25030
25031 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25032
25033         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25034         the size of the fpu_fr.fpu_dregs[] array.
25035
25036 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25037
25038         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25039         (__nanosleep): Do not define as alias.
25040         (nanosleep): Define as alias of __nanosleep.
25041         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25042         __libc_nanosleep name.
25043
25044 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25045
25046         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25047         install.texi in comment.
25048
25049 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25050
25051         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25052         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25053         ... add here and use lwsync or sync ...
25054         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25055         ... and add here using lwsync.
25056
25057 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25058
25059         * elf/dl-machine-reject-phdr.h: New file.
25060         * elf/dl-load.c: #include that.
25061         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25062         if that returned true.
25063
25064 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25065
25066         [BZ #17496]
25067         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25068         gen-as-const-headers chunk.  Add a big scare comment after the last
25069         safe place to touch before-compile.
25070
25071 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25072
25073         * manual/install.texi (Tools for Compilation): Update autoconf
25074         version requirements.
25075         * INSTALL: Regenerated.
25076
25077         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25078         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25079         (__libc_pselect): Likewise.
25080
25081         [BZ #14138]
25082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25086
25087 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25088
25089         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25090         correct barrier instruction.
25091         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25092         Likewise.
25093         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25094         Likewise.
25095
25096 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25097
25098         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25099         after defining inlines.  Instead, just use parens to defeat macro
25100         expansion of __isctype in its declaration.
25101
25102 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25103
25104         * include/sys/uio.h (__libc_readv): Remove declaration.
25105         (__libc_writev): Likewise.
25106         * misc/readv.c (__libc_readv): Rename to __readv.
25107         (__readv): Do not define as alias.
25108         (readv): Define as alias of __readv.
25109         * misc/writev.c (__libc_writev): Rename to __writev.
25110         (__writev): Do not define as alias.
25111         (writev): Define as alias of __writev.
25112         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25113         (__readv): Do not define as alias.
25114         (readv): Define unconditionally as alias of __readv.
25115         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25116         (__writev): Do not define as alias.
25117         (writev): Define unconditionally as alias of __writev.
25118         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25119         name.
25120         (writev): Do not define __libc_writev name.
25121
25122 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25123
25124         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25125         (convert_charseq): New function, broken out of ...
25126         (use_from_charmap): ... here.  Call it.
25127         (use_to_charmap): Use convert_charseq and free instead of duplicating
25128         its code with a variable-length stack struct.
25129
25130 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25131
25132         * include/fcntl.h (__libc_creat): Remove declaration.
25133         * io/creat.c (__libc_creat): Rename to creat.
25134         (creat): Do not define as alias.
25135         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25136         of creat instead of __libc_creat.
25137         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25138         to creat.
25139         (creat): Do not define as alias.
25140         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25141         __libc_creat.
25142         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25143         __libc_creat name.
25144         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25145         Likewise.
25146
25147 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25148
25149         * manual/llio.texi: Add comments discussing why write() may be
25150         considered MT-unsafe on Linux.
25151
25152 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25153
25154         * dl-load.c (local_strdup): Remove.
25155         (expand_dynamic_string_token): Use __strdup.
25156         (decompose_rpath): Likewise.
25157         (_dl_map_object): Likewise.
25158
25159 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25160
25161         [BZ #14132]
25162         * sysdeps/generic/unwind-dw2-fde.c
25163         (__register_frame_info_bases_internal): Do not declare.
25164         (__register_frame_info_table_bases_internal): Likewise.
25165         (__deregister_frame_info_bases_internal): Likewise.
25166         (__register_frame_info_bases): Declare and use hidden_proto before
25167         definition.  Use hidden_def instead of INTDEF.
25168         (__register_frame_info_table_bases): Likewise.
25169         (__deregister_frame_info_bases): Likewise.
25170         (__register_frame_info): Do not use INTUSE.
25171         (__register_frame): Likewise.
25172         (__register_frame_info_table): Likewise.
25173         (__register_frame_table): Likewise.
25174         (__deregister_frame_info): Likewise.
25175         (__deregister_frame): Likewise.
25176
25177 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25178
25179         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25180         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25181         not undefine.
25182         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25183         Likewise.
25184         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25185         Likewise.
25186
25187 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25188
25189         [BZ #14138]
25190         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25191         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25192         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25193         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25194         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25195         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25196         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25197         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25198         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25199         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25200         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25201         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25202         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25203         syscall.
25204         (setfsuid): Likewise.
25205         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25206         (setfsuid): Likewise.
25207         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25208         (setfsuid): Likewise.
25209         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25210         Likewise.
25211         (setfsuid): Likewise.
25212         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25213         (setfsuid): Likewise.
25214         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25215         Likewise.
25216         (setfsuid): Likewise.
25217
25218 2014-10-27  Andreas Schwab  <schwab@suse.de>
25219
25220         [BZ #17501]
25221         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25222         check for Slow_SSE4_2 feature bit.
25223         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25224         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25225         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25226         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25227
25228 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25229
25230         * configure.ac: Validate compiler version with a empirical test of
25231         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25232         $CC -v output.
25233         * configure: Regenerated.
25234
25235         * inet/htons.c (htons): Prototypify.
25236         * inet/htonl.c (htonl): Likewise.
25237
25238 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25239
25240         * string/strncat.c (strncat): Improve performance by using strlen.
25241
25242 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25243
25244         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25245
25246 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25247
25248         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25249         Call libc_fetestexcept_aarch64.
25250
25251 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25252
25253         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25254         Call libc_feholdexcept_aarch64.
25255
25256 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25257
25258         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25259         Call get_rounding_mode.
25260
25261 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25262
25263         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25264         Simplify logic.
25265
25266 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25267
25268         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25269         Simplify logic.
25270
25271 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25272
25273         [BZ #14138]
25274         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25275         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25276         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25277         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25278         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25279         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25280         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25281         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25282         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25283         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25284         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25285         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25286         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25287         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25288         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25289         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25290         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25291         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25292         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25293         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25294         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25295         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25296         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25297         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25298         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25299         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25300         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25301         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25302         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25303         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25304         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25305         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25306         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25307         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25308         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25309         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25310         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25311         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25312         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25313         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25314         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25315         syscall.
25316         (geteuid): Likewise.
25317         (getgid): Likewise.
25318         (getuid): Likewise.
25319         (getresgid): Likewise.
25320         (getresuid): Likewise.
25321         (getgroups): Likewise.
25322         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25323         (geteuid): Likewise.
25324         (getgid): Likewise.
25325         (getuid): Likewise.
25326         (getresgid): Likewise.
25327         (getresuid): Likewise.
25328         (getgroups): Likewise.
25329         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25330         (geteuid): Likewise.
25331         (getgid): Likewise.
25332         (getuid): Likewise.
25333         (getresgid): Likewise.
25334         (getresuid): Likewise.
25335         (getgroups): Likewise.
25336         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25337         Likewise.
25338         (geteuid): Likewise.
25339         (getgid): Likewise.
25340         (getuid): Likewise.
25341         (getresgid): Likewise.
25342         (getresuid): Likewise.
25343         (getgroups): Likewise.
25344         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25345         (geteuid): Likewise.
25346         (getgid): Likewise.
25347         (getuid): Likewise.
25348         (getresgid): Likewise.
25349         (getresuid): Likewise.
25350         (getgroups): Likewise.
25351         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25352         Likewise.
25353         (geteuid): Likewise.
25354         (getgid): Likewise.
25355         (getuid): Likewise.
25356         (getgroups): Likewise.
25357
25358         [BZ #14138]
25359         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25360         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25361         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25362         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25363         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25364         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25365         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25366         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25367         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25368         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25369         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25370         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25371         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25372         __chown.
25373         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25374         (lchown): Likewise.
25375         (fchown): Likewise.
25376         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25377         Likewise.
25378         (lchown): Likewise.
25379         (fchown): Likewise.
25380         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25381         (lchown): Likewise.
25382         (fchown): Likewise.
25383         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25384         Likewise.
25385         (lchown): Likewise.
25386         (fchown): Likewise.
25387
25388 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25389
25390         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25391         Simplify logic.
25392
25393 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25394
25395         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25396         Cleanup logic.
25397
25398 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25399
25400         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25401         Remove unused include.
25402
25403 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25404
25405         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25406         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25407         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25408         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25409
25410 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25411             Helge Deller <deller@gmx.de>
25412
25413         [BZ #17508]
25414         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25415         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25416         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25417
25418 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25419
25420         [BZ #14132]
25421         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25422         Remove macro definition.
25423         (__ashrdi3_v_glibc20): Likewise.
25424         (__lshrdi3_v_glibc20): Likewise.
25425         (__cmpdi2_v_glibc20): Likewise.
25426         (__ucmpdi2_v_glibc20): Likewise.
25427         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25428         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25429         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25430         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25431         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25432         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25433
25434 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25435
25436         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25437         old GNU extension [0] syntax.
25438         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25439         alloca rather than an array member with variable length.
25440         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25441         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25442         (parse_opt): ... here.  Likewise use alloca there.
25443         Validate the -i argument before checking for rootness.
25444         (send_shutdown): New function, broken out of ...
25445         (parse_opt): ... here.
25446
25447 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25448
25449         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25450         macro to get at the _rt_local_ro field.
25451         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25452         ([PIC] case) or _dl_hwcap ([!PIC] case).
25453         * sysdeps/arm/setjmp.S: Likewise.
25454
25455         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25456         * sysdeps/arm/configure.ac: New check to define it.
25457         * sysdeps/arm/configure: Regenerated.
25458         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25459         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25460         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25461         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25462         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25463         Use move/movt pair instead of a load.
25464         (LDST_GLOBAL): Macro removed.
25465         (LDR_GLOBAL): New macro replaces it.
25466         (LDR_HIDDEN): New macro.
25467         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25468         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25469
25470         * setjmp/tst-setjmp-static.c: New file.
25471         * setjmp/Makefile (tests): Add it.
25472         (tests-static): New variable.
25473
25474 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25475
25476         [BZ #17485]
25477         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25478
25479 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25480
25481         [BZ #14132]
25482         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25483
25484 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25485
25486         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25487
25488 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25489
25490         * io/fts.c (dirent_not_directory): New function.
25491         (fts_build): Call it.
25492
25493 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25494
25495         * nptl/version.c (__nptl_main): Use normal __write rather than
25496         INTERNAL_SYSCALL.
25497         (banner): Update copyright years.
25498
25499         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25500         gettimeofday.
25501         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25502         * nptl/pthread_cond_timedwait.c: Likewise.
25503         * nptl/pthread_mutex_timedlock.c: Likewise.
25504         * nptl/sem_timedwait.c: Likewise.
25505
25506         * sysdeps/nptl/bits/libc-lock.h
25507         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25508         (__libc_lock_init_recursive): Return void, not 0.
25509         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25510         (__libc_rwlock_init): Likewise.
25511         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25512
25513 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25514
25515         [BZ #15215]
25516         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25517         (__pthread_once_slow): ... here.
25518         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25519         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25520
25521 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25522
25523         [BZ #15215]
25524         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25525         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25526         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25527         * nptl/pthread_once.c (__pthread_once): Likewise.
25528         Update comments.
25529
25530 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25531
25532         [BZ #14138]
25533         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25534         name.
25535         (writev): Use __libc_writev as strong name.
25536         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25537         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25538
25539 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25540
25541         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25542
25543         * sysdeps/i386/nptl/tls.h
25544         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25545         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25546         New macros.
25547         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25548         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25549         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25550         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25551         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25552         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25553
25554         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25555         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25556         on [__NR_futex].
25557         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25558         broken out of ...
25559         (__pthread_mutex_init): ... here.  Call it.
25560         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25561         Conditionalize PI cases on [__NR_futex].
25562         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25563         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25564         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25565
25566         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25567         conditional on [SIGSETXID].
25568         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25569         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25570         is defined.  Likewise for SIGSETXID.
25571         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25572         Conditionalize definitions on [SIGSETXID].
25573         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25574         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25575         unblocking on [SIGCANCEL].
25576
25577         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25578         [__NR_set_robust_list].
25579
25580 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25581
25582         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25583         (do_compare): Likewise.
25584
25585 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25586
25587         [BZ #15884]
25588         * string/strcoll_l.c: Don't include stdio.h.
25589         (coll_seq): Remove members idxarr and rulearr.
25590         (get_next_seq_cached): Remove function.
25591         (get_next_seq): Likewise.
25592         (get_next_seq_nocache): Rename to get_next_seq.
25593         (do_compare): Remove function.
25594         (do_compare_nocache): Rename to do_compare.
25595         (STRCOLL): Remove weight and rules cache.
25596
25597 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25598
25599         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25600         * sysdeps/arm/sfp-machine.h: ... to here.
25601         * sysdeps/arm/Implies: Remove arm/soft-fp.
25602
25603 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25604
25605         * conform/data/sys/utsname.h-data (*_t): Allow.
25606         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25607         [POSIX] (WEXITED): Do not expect constant.
25608         [POSIX] (WSTOPPED): Likewise.
25609         [POSIX] (WNOHANG): Likewise.
25610         [POSIX] (WNOWAIT): Likewise.
25611         [POSIX] (siginfo_t): Do not expect type or elements.
25612         [POSIX] (pid_t): Do not expect type.
25613         [POSIX] (signal.h): Do not allow header.
25614         [POSIX] (sys/resource.h): Likewise.
25615         [POSIX] (si_*): Do not allow pattern.
25616         [POSIX] (W*): Likewise.
25617         [POSIX] (P_*): Likewise.
25618         [POSIX] (BUS_*): Likewise.
25619         [POSIX] (CLD_*): Likewise.
25620         [POSIX] (FPE_*): Likewise.
25621         [POSIX] (ILL_*): Likewise.
25622         [POSIX] (POLL_*): Likewise.
25623         [POSIX] (SEGV_*): Likewise.
25624         [POSIX] (SI_*): Likewise.
25625         [POSIX] (TRAP_*): Likewise.
25626         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25627         variable.
25628
25629 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25630
25631         [BZ #12926]
25632         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25633         infinite loop when __recvmsg returns 0.
25634
25635 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25636
25637         * CANCEL-FCT-WAIVE: Remove file.
25638         * CANCEL-FILE-WAIVE: Likewise.
25639
25640         [BZ #14132]
25641         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25642         instead of INTVARDEF.
25643         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25644         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25645         rtld_hidden_data_def instead of INTVARDEF.
25646         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25647         * elf/dl-deps.c (expand_dst): Likewise.
25648         * elf/dl-load.c (_dl_dst_count): Likewise.
25649         (_dl_dst_substitute): Likewise.
25650         (decompose_rpath): Likewise.
25651         (_dl_init_paths): Likewise.
25652         (open_path): Likewise.
25653         (_dl_map_object): Likewise.
25654         * elf/rtld.c (dl_main): Likewise.
25655         (process_dl_audit): Likewise.
25656         (process_envvars): Likewise.
25657         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25658         Remove declaration.
25659         (__libc_enable_secure): Use rtld_hidden_proto.
25660
25661 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25662
25663         * elf/dl-load.c
25664         (add_path): New function broken out of _dl_rtld_di_serinfo.
25665         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25666
25667 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25668
25669         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25670         parentheses around macro arguments.
25671         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25672         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25673         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25674         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25675         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25676         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25677         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25678         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25679         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25680         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25681         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25682         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25683         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25684         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25685         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25686         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25687         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25688         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25689         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25690         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25691         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25692         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25693         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25694         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25695         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25696         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25697         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25698         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25699         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25700         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25701         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25702         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25703         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25704         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25705         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25706         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25707         Likewise.
25708         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25709         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25710         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25711         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25712         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25713         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25714         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25715         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25716         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25717         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25718         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25719         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25720         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25721         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25722         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25723         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25724         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25725         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25726         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25727         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25728         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25729         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25730         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25731         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25732         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25733         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25734         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25735         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25736         (_FP_FRAC_SRS_1): Likewise.
25737         (_FP_FRAC_CLZ_1): Likewise.
25738         (_FP_MUL_MEAT_1_imm): Likewise.
25739         (_FP_MUL_MEAT_1_wide): Likewise.
25740         (_FP_MUL_MEAT_1_hard): Likewise.
25741         (_FP_SQRT_MEAT_1): Likewise.
25742         (_FP_FRAC_ASSEMBLE_1): Likewise.
25743         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25744         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25745         (__FP_CLZ_2): Likewise.
25746         (_FP_MUL_MEAT_2_wide): Likewise.
25747         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25748         (_FP_MUL_MEAT_2_gmp): Likewise.
25749         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25750         (_FP_SQRT_MEAT_2): Likewise.
25751         (_FP_FRAC_ASSEMBLE_2): Likewise.
25752         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25753         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25754         (_FP_FRAC_CLZ_4): Likewise.
25755         (_FP_MUL_MEAT_4_wide): Likewise.
25756         (_FP_MUL_MEAT_4_gmp): Likewise.
25757         (_FP_SQRT_MEAT_4): Likewise.
25758         (_FP_FRAC_ASSEMBLE_4): Likewise.
25759         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25760         * soft-fp/op-common.h (_FP_CMP): Likewise.
25761         (_FP_CMP_EQ): Likewise.
25762         (_FP_CMP_UNORD): Likewise.
25763         (_FP_TO_INT): Likewise.
25764         (_FP_FROM_INT): Likewise.
25765         [!__FP_CLZ] (__FP_CLZ): Likewise.
25766         (_FP_DIV_HELP_imm): Likewise.
25767         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25768         Likewise.
25769         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25770         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25771         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25772         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25773         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25774         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25775         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25776         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25777         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25778         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25779         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25780         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25781         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25782         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25783         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25784         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25785         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25786         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25787         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25788         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25789         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25790         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25791         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25792         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25793         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25794         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25795         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25796         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25797         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25798         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25799         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25800         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25801         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25802         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25803         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25804         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25805         (FP_UNPACK_RAW_SP): Likewise.
25806         (FP_PACK_RAW_S): Likewise.
25807         (FP_PACK_RAW_SP): Likewise.
25808         (FP_UNPACK_S): Likewise.
25809         (FP_UNPACK_SP): Likewise.
25810         (FP_UNPACK_SEMIRAW_S): Likewise.
25811         (FP_UNPACK_SEMIRAW_SP): Likewise.
25812         (FP_PACK_S): Likewise.
25813         (FP_PACK_SP): Likewise.
25814         (FP_PACK_SEMIRAW_S): Likewise.
25815         (FP_PACK_SEMIRAW_SP): Likewise.
25816         (_FP_SQRT_MEAT_S): Likewise.
25817         (FP_CMP_S): Likewise.
25818         (FP_CMP_EQ_S): Likewise.
25819         (FP_CMP_UNORD_S): Likewise.
25820         (FP_TO_INT_S): Likewise.
25821         (FP_FROM_INT_S): Likewise.
25822
25823         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25824
25825         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25826         (FP_EX_INVALID_IMZ): Likewise.
25827         (FP_EX_INVALID_IMZ_FMA): Likewise.
25828         (FP_EX_INVALID_ISI): Likewise.
25829         (FP_EX_INVALID_ZDZ): Likewise.
25830         (FP_EX_INVALID_IDI): Likewise.
25831         (FP_EX_INVALID_SQRT): Likewise.
25832         (FP_EX_INVALID_CVI): Likewise.
25833         (FP_EX_INVALID_VC): Likewise.
25834         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25835         "invalid" exceptions.
25836         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25837         (_FP_ADD_INTERNAL): Likewise.
25838         (_FP_MUL): Likewise.
25839         (_FP_FMA): Likewise.
25840         (_FP_DIV): Likewise.
25841         (_FP_CMP_CHECK_NAN): Likewise.
25842         (_FP_SQRT): Likewise.
25843         (_FP_TO_INT): Likewise.
25844         (FP_EXTEND): Likewise.
25845
25846 2014-10-09  Allan McRae  <allan@archlinux.org>
25847
25848         * po/fr.po: Update French translation from translation project.
25849
25850 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25851
25852         [BZ #14132]
25853         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
25854         of INTDEF.
25855         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
25856         (__cxa_atexit): Use libc_hidden_proto.
25857         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
25858
25859         [BZ #14132]
25860         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
25861         declaration.
25862         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
25863         [!_ISOMAC] (__iswspace_l_internal): Likewise.
25864         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
25865         [!_ISOMAC] (__iswctype_internal): Likewise.
25866         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
25867         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
25868         alias.
25869         (fcntl): Remove __fcntl_internal alias.
25870         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
25871         __connect_internal alias.
25872         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
25873         Likewise.
25874
25875         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
25876         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
25877         FP_DENORM_ZERO.
25878         (_FP_CHECK_FLUSH_ZERO): New macro.
25879         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
25880         (_FP_CMP): Likewise.
25881         (_FP_CMP_EQ): Likewise.
25882         (_FP_TO_INT): Do not set inexact for subnormal arguments if
25883         FP_DENORM_ZERO.
25884         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
25885         (FP_TRUNC): Likewise.
25886
25887         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
25888         treated as invalid conversion, not as normal exponent.
25889
25890         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
25891         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
25892         (_FP_CMP_EQ): Likewise.
25893         (_FP_CMP_UNORD): Likewise.
25894         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
25895         (FP_CMP_EQ_D): Likewise.
25896         (FP_CMP_UNORD_D): Likewise.
25897         * soft-fp/extended.h (FP_CMP_E): Likewise.
25898         (FP_CMP_EQ_E): Likewise.
25899         (FP_CMP_UNORD_E): Likewise.
25900         * soft-fp/quad.h (FP_CMP_Q): Likewise.
25901         (FP_CMP_EQ_Q): Likewise.
25902         (FP_CMP_UNORD_Q): Likewise.
25903         * soft-fp/single.h (FP_CMP_S): Likewise.
25904         (FP_CMP_EQ_S): Likewise.
25905         (FP_CMP_UNORD_S): Likewise.
25906         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
25907         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
25908         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
25909         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
25910         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
25911         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
25912         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
25913         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
25914         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
25915         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
25916         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
25917         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
25918         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
25919         to FP_CMP_Q.
25920         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
25921         FP_CMP_Q.
25922         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
25923         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
25924         FP_CMP_EQ_Q.
25925         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
25926         FP_CMP_Q.
25927         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
25928         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
25929         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
25930         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
25931         FP_CMP_EQ_Q.
25932         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
25933         FP_CMP_Q.
25934         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
25935         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
25936         FP_CMP_EQ_Q.
25937         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
25938         FP_CMP_Q.
25939         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
25940         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
25941         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
25942         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
25943         FP_CMP_EQ_Q.
25944
25945         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
25946         a subnormal result, set the underflow exception if trapping on
25947         underflow is enabled.
25948         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
25949         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
25950         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
25951         redefine to 0.
25952         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
25953         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25954         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25955         * soft-fp/extendxftf2.c (__extendxftf2): Use
25956         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
25957
25958         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
25959         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
25960         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25961         FP_HANDLE_EXCEPTIONS.
25962         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
25963         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25964         FP_HANDLE_EXCEPTIONS.
25965         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
25966         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25967         FP_HANDLE_EXCEPTIONS.
25968         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
25969         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25970         FP_HANDLE_EXCEPTIONS.
25971
25972 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
25973
25974         [BZ #14132]
25975         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
25976         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
25977         use INTUSE.
25978         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
25979         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
25980         Remove alias.
25981         (__adjtimex): Define using libc_hidden_ver.
25982         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
25983         Remove declaration.
25984         (ntp_gettime): Call __adjtimex directly.
25985         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
25986         Remove declaration.
25987         (ntp_gettimex): Call __adjtimex directly.
25988         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
25989         __adjtimex_internal alias.
25990
25991 2014-10-08  Roland McGrath  <roland@hack.frob.com>
25992
25993         [BZ #17460]
25994         * nscd/nscd.c (more_help): Rewrite list of tables collection
25995         using xstrdup and asprintf.
25996
25997         * nscd/nscd_conf.c: Remove local xstrdup declaration.
25998
25999 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26000             Roland McGrath  <roland@hack.frob.com>
26001
26002         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26003         (do_lookup_unique): ... local function 'enter' here; update callers.
26004
26005 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26006
26007         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26008         compat_symbol calls on [SHARED].
26009         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26010         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26011         Remove.
26012         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26013         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26014         (oldsetrlimit): Remove.
26015         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26017         (lchown): New syscall entry.
26018         (oldsetrlimit): Remove.
26019         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26020         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26021         (oldsetrlimit): Remove.
26022         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26023
26024         [BZ #14138]
26025         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26026         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26027         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26028         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26029         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26030         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26031         (fchown): Likewise.
26032         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26033         (fchown): Likewise.
26034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26035         Likewise.
26036
26037 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26038
26039         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26040         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26041         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26042         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26043         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26044         Likewise.
26045         (__old_sem_post): Likewise.
26046
26047 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26048
26049         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26050         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26051         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26052         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26053         Use INLINE_VSYSCALL macro.
26054         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26055         __vdso_clock_gettime.
26056         * sysdeps/unix/sysv/linux/tile/init-first.c
26057         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26058         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26059         __vdso_clock_gettime.
26060
26061         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26062         to set up frame more cleanly.
26063
26064         * sysdeps/tile/memcmp.c: New file.
26065
26066         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26067
26068         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26069         * sysdeps/tile/tilegx/strcasestr.c: New file.
26070         * sysdeps/tile/tilegx/strnlen.c: New file.
26071         * sysdeps/tile/tilegx/strstr.c: New file.
26072
26073         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26074
26075 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26076
26077         * nptl/tst-setuid3.c: Write errors to stdout.
26078
26079 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26080
26081         * elf/dl-deps.c
26082         (preload): New functions broken out of _dl_map_object_deps.
26083         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26084
26085 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26086
26087         [BZ #14138]
26088         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26089         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26090
26091 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26092
26093         * sysdeps/mips/strcmp.S: New.
26094
26095 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26096
26097         [BZ #14138]
26098         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26099         (linkat): Likewise.
26100         (mkdirat): Likewise.
26101         (readlinkat): Likewise.
26102         (renameat): Likewise.
26103         (symlinkat): Likewise.
26104         (unlinkat): Likewise.
26105         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26106         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26107         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26108         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26109         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26110         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26111         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26112
26113 2014-09-30  Will Newton  <will.newton@linaro.org>
26114
26115         * math/math.h: Define long double math functions if
26116         _LIBC_TEST is defined.
26117         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26118
26119         * localedata/Makefile: Move assignment to tests-special
26120         into an ifdef testing run-built-tests.
26121         * timezone/Makefile: Likewise.
26122
26123 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26124
26125         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26126         with $(BASH) not $(SHELL).
26127
26128 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26129             Matthew LeGendre  <legendre1@llnl.gov>
26130
26131         [BZ #17411]
26132         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26133         l_reloc_result.
26134
26135 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26136
26137         * stdio-common/printf_fp.c
26138         (hack_digit): New function, broken out of ...
26139         (__printf_fp): ... local function here.  Update call sites.
26140         hack_digit now takes an additional parameter that is a pointer
26141         to a struct of the referenced locals.  Those locals moved inside
26142         the struct and references updated.
26143
26144 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26145
26146         * aclocal.m4: Require autoconf 2.69.
26147         * configure: Regenerated.
26148         * sysdeps/aarch64/configure: Likewise.
26149         * sysdeps/alpha/configure: Likewise.
26150         * sysdeps/arm/armv7/configure: Likewise.
26151         * sysdeps/arm/configure: Likewise.
26152         * sysdeps/ia64/configure: Likewise.
26153         * sysdeps/mach/configure: Likewise.
26154         * sysdeps/mips/configure: Likewise.
26155         * sysdeps/s390/configure: Likewise.
26156         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26158
26159         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26160         file.
26161         * sysdeps/ia64/configure.ac: Likewise.
26162
26163 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26164
26165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26166         specify symbol version for ld.so.  Do not include entry for
26167         libpthread.
26168         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26169         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26170         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26171
26172         [BZ #14171]
26173         * Makeconfig [$(build-shared) = yes]
26174         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26175         makefiles.
26176         [$(build-shared) = yes && $(soversions.mk-done) = t]
26177         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26178         [$(build-shared) = yes && $(soversions.mk-done) = t]
26179         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26180         to Makerules.
26181         [$(build-shared) = yes && $(soversions.mk-done) = t]
26182         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26183         here.
26184         [$(build-shared) = yes && $(soversions.mk-done) = t]
26185         (common-generated): Don't append gnu/lib-names.h and
26186         gnu/lib-names.stmp here.
26187         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26188         (lib-names-h-abi): New variable.
26189         [$(build-shared) = yes && $(soversions.mk-done) = t]
26190         (lib-names-stmp-abi): Likewise.
26191         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26192         abi-variants] (before-compile): Append
26193         $(common-objpfx)$(lib-names-h-abi).
26194         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26195         abi-variants] (common-generated): Append gnu/lib-names.h.
26196         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26197         abi-variants] (install-others-nosubdir): Depend on
26198         $(inst_includedir)/$(lib-names-h-abi).
26199         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26200         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26201         [$(build-shared) = yes && $(soversions.mk-done) = t]
26202         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26203         [$(build-shared) = yes && $(soversions.mk-done) = t]
26204         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26205         [$(build-shared) = yes && $(soversions.mk-done) = t]
26206         (common-generated): Append $(lib-names-h-abi) and
26207         $(lib-names-stmp-abi).
26208         * scripts/lib-names.awk: Do not handle multi being set.
26209         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26210         Remove variable.
26211         (abi-lp64_be-ld-soname): Likewise.
26212         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26213         Likewise.
26214         (abi-hard-ld-soname): Likewise.
26215         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26216         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26217         Remove variable.
26218         (abi-o32_hard-ld-soname): Likewise.
26219         (abi-o32_soft_2008-ld-soname): Likewise.
26220         (abi-o32_hard_2008-ld-soname): Likewise.
26221         (abi-n32_soft-ld-soname): Likewise.
26222         (abi-n32_hard-ld-soname): Likewise.
26223         (abi-n32_soft_2008-ld-soname): Likewise.
26224         (abi-n32_hard_2008-ld-soname): Likewise.
26225         (abi-n64_soft-ld-soname): Likewise.
26226         (abi-n64_hard-ld-soname): Likewise.
26227         (abi-n64_soft_2008-ld-soname): Likewise.
26228         (abi-n64_hard_2008-ld-soname): Likewise.
26229         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26230         Likewise.
26231         (abi-64-v2-ld-soname): Likewise.
26232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26233         ld.so entries.
26234         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26235         variable.
26236         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26237         entry.
26238         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26239         variable.
26240         (abi-64-ld-soname): Likewise.
26241         (abi-x32-ld-soname): Likewise.
26242         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26243         entry.
26244         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26245
26246 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26247
26248         [BZ #14138]
26249         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26250         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26251         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26252         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26253         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26254         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26255         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26256         syscall entry for GLIBC_2.2 symbol version.
26257         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26258         Likewise.
26259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26260         (setrlimit): Likewise.
26261         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26262         Likewise.
26263
26264 2014-09-23  Will Newton  <will.newton@linaro.org>
26265
26266         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26267         _LINUX_ARM_SYSDEP_H include guard too.
26268         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26269         define.
26270
26271 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26272
26273         * sysdeps/unix/sysv/linux/eventfd.c:
26274         Make first argument unsigned.
26275         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26276         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26277
26278 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26279
26280         [BZ #16852]
26281         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26282         * socket/sys/socket.h: Likewise.
26283         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26284
26285 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26286
26287         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26288
26289 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26290
26291         * time/tst-ftime.c: New test.
26292         * time/Makefile (tests): Add tst-ftime.
26293
26294 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26295
26296         * soft-fp/extended.h: Fix comment formatting.
26297         * soft-fp/op-1.h: Likewise.
26298         * soft-fp/op-2.h: Likewise.
26299         * soft-fp/op-4.h: Likewise.
26300         * soft-fp/op-8.h: Likewise.
26301         * soft-fp/op-common.h: Likewise.
26302         * soft-fp/soft-fp.h: Likewise.
26303
26304         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26305
26306 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26307
26308         [BZ #6652]
26309         * Makeconfig (soversions-default-setname): Remove variable.
26310         ($(common-objpfx)soversions.i): Don't pass default_setname to
26311         soversions.awk.
26312         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26313         oldest_abi to abi-versions.awk.
26314         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26315         * config.make.in (oldest-abi): Remove variable.
26316         * configure.ac (--enable-oldest-abi): Remove configure option.
26317         * configure: Regenerated.
26318         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26319         text.
26320         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26321         * scripts/soversions.awk: Do not handle default_setname variable.
26322         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26323         variable.
26324         * sysdeps/mach/hurd/configure: Regenerated.
26325         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26326         variable.
26327         * sysdeps/unix/sysv/linux/configure: Regenerated.
26328
26329 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26330
26331         * elf/Makefile (CFLAGS-interp.c): Remove.
26332         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26333         path string.
26334         * elf/interp.c: Include generated runtime-linker.h
26335
26336         * Makerules (lib%.so): Don't include $(+interp) in
26337         prerequisites.
26338         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26339         * dlfcn/eval.c: Remove file.
26340
26341         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26342         macros.
26343
26344         [BZ #17266]
26345         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26346         4.2 and newer.
26347
26348         [BZ #17370]
26349         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26350
26351 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26352             Jakub Jelinek  <jakub@redhat.com>
26353
26354         [BZ #17266]
26355         * libio/stdio.h: Check definition of __fortify_function
26356         instead of __extern_always_inline to include bits/stdio2.h.
26357         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26358         check if __extern_always_inline is defined.
26359         [__USE_MISC || __USE_XOPEN]: Likewise.
26360         [__USE_ISOC99] Likewise.
26361         * misc/sys/cdefs.h (__fortify_function): Define only if
26362         __extern_always_inline is defined.
26363         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26364         __extern_always_inline and __extern_inline only for g++-4.3
26365         and newer or a compatible gcc.
26366
26367 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26368
26369         [BZ #17371]
26370         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26371         last change to handle zero prefix length.
26372
26373 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26374
26375         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26376         _SC_REGEX_VERSION.
26377
26378         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26379         _POSIX_RAW_SOCKETS.
26380
26381 2014-09-13  Allan McRae  <allan@archlinux.org>
26382
26383         * po/ru.po: Update Russian translation from translation project.
26384
26385 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26386
26387         * locale/programs/locale.c (show_locale_vars): Inline local function
26388         into its sole call site.  Clean up some style nits.
26389         (print_item): New function, broken out of ...
26390         (show_info): ... local function here.  Clean up style nits.
26391
26392         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26393         out of ...
26394         (set_class_defaults): ... local function set_default here.
26395         Define set_default as a macro locally to pass constant parameters.
26396         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26397         rather than a shared local.
26398
26399         * stdlib/rpmatch.c (try): New function, broken out of ...
26400         (rpmatch): ... local function here.  Also, prototypify definition.
26401
26402 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26403
26404         * scripts/soversions.awk: Do not handle configuration names.
26405         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26406         vendor and os variables to soversions.awk.
26407         * configure.ac: Do not modify gnu-* host_os.
26408         * configure: Regenerated
26409         * shlib-versions: Remove first column with configuration names.
26410         * nptl/shlib-versions: Likewise.
26411         * nptl_db/shlib-versions: Likewise.
26412         * sysdeps/hppa/shlib-versions: Likewise.
26413         * sysdeps/m68k/shlib-versions: Likewise.
26414         * sysdeps/mach/hurd/shlib-versions: Likewise.
26415         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26416         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26417         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26418         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26419         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26420         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26421         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26422         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26424         Likewise.
26425         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26426         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26427         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26428         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26429         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26430         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26431         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26432         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26433
26434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26435         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26437         Regenerated.
26438         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26440         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26441
26442         * shlib-versions: Remove OS-specific entries.  Moved to files in
26443         sysdeps.
26444         * sysdeps/mach/hurd/shlib-versions: New file.
26445         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26446
26447         * nptl/shlib-versions: Remove architecture-specific entries.
26448         Moved to files in sysdeps.
26449         * shlib-versions: Likewise.
26450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26451         file.
26452         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26453         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26454         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26455         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26456
26457         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26458         (UDP_NO_CHECK6_RX): Likewise.
26459
26460 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26461
26462         * sysdeps/posix/sysconf.c (__sysconf): Spell
26463         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26464
26465 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26466
26467         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26468         loading.
26469         * iconv/Versions (__gconv_transliterate): Export for use from
26470         gconv modules.
26471         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26472         (struct __gconv_trans_data, __gconv_trans_fct,
26473         __gconv_trans_context_fct, __gconv_trans_query_fct,
26474         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26475         definitions.
26476         (struct __gconv_step_data): Remove __trans member.
26477         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26478         longer hidden.  Remove unused trans_data argument.
26479         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26480         (__gconv_translit_find): Remove declaration.
26481         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26482         prototype.
26483         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26484         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26485         trans_data argument.  Add hidden definition.
26486         (__gconv_translit_find): Remove.
26487         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26488         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26489         * iconv/skeleton.c: Remove transliteration initialization.
26490         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26491         __gconv_step_data initialization.
26492         * libio/iofwide.c (__libio_translit_): Remove.
26493         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26494         * wcsmbs/btowc.c (__btowc): Likewise.
26495         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26496         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26497         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26498         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26499         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26500         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26501         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26502         * wcsmbs/wctob.c (wctob): Likewise.
26503
26504 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26505
26506         [BZ #16194]
26507         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26508         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26509         register usage.
26510         * sysdeps/x86/Makefile: Adjust.
26511
26512 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26513             Roland McGrath  <roland@hack.frob.com>
26514
26515         * locale/weight.h: Add include guard.
26516         (findidx): Make static rather than auto; take new parameters
26517         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26518         * locale/weightwc.h: Likewise.
26519         * posix/fnmatch_loop.c
26520         (FCT): Change type of EXTRA from int32_t to wint_t.
26521         Don't include either header inside the function.
26522         Call FINDIDX rather than findidx, and pass new arguments.
26523         #undef FINDIDX at the end of the file.
26524         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26525         FINDIDX before including fnmatch_loop.c for the non-wide version.
26526         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26527         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26528         for the wide version.
26529         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26530         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26531         Pass new arguments to findidx.
26532         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26533         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26534         Don't #include it inside the function.  Pass new arguments to findidx.
26535         * posix/regex_internal.h
26536         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26537         (re_string_elem_size_at): Don't #include it inside the function.
26538         Pass new arguments to findidx.
26539         * string/strcoll_l.c: #include WEIGHT_H at top level.
26540         (get_next_seq): Don't #include it inside the function.
26541         Pass new arguments to findidx.
26542         (get_next_seq_nocache): Likewise.
26543         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26544         (STRXFRM): Don't #include it inside the function.
26545         Pass new arguments to findidx.
26546
26547 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26548
26549         [BZ #17344]
26550         * malloc/malloc.c (unlink): Turn asserts into a call to
26551         malloc_printerr.
26552
26553 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26554
26555         [BZ #17370]
26556         * libio/wfileops (do_ftell_wide): Free OUT.
26557
26558 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26559
26560         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26561
26562 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26563
26564         [BZ #17363]
26565         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26566         group if the current group is empty.
26567
26568 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26569
26570         * benchtests/bench-memset.c (test_main): Add more test from size
26571         from 32 to 512 bytes.
26572         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26573         Add POWER8 memset object.
26574         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26575         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26576         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26577         implementation.
26578         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26579         Likewise.
26580         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26581         multiarch POWER8 memset optimization.
26582         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26583         POWER8 memset optimization.
26584
26585         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26586         Remove bzero multiarch objects.
26587         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26588         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26589         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26590         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26591         Remove define.
26592         [__bzero]: Redefine to specific name.
26593         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26594         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26595         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26596         define.
26597         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26598         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26599
26600 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26601
26602         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26603         warnings into errors.
26604
26605         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26606         __cxa_thread_atexit_impl prototype.
26607
26608 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26609
26610         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26611         Fix capitalization of error message.
26612
26613 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26614
26615         * sysdeps/mips/preconfigure: Modify ABI tests.
26616
26617 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26618
26619         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26620
26621 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26622             Carlos O'Donell  <carlos@systemhalted.org>
26623
26624         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26625         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26626         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26627         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26628         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26629         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26630         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26631         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26632         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26633         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26634         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26635         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26636         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26637         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26638         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26639         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26640         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26641         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26642         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26643         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26644         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26645         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26646         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26647         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26648         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26649         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26650         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26651         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26652         Deconditionalize the code that was previously under [RESET_PID].
26653         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26654         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26655         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26656         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26657         include sysdep.h.
26658
26659 2014-09-08  Allan McRae  <allan@archlinux.org>
26660
26661         * version.h (RELEASE): Set to "development".
26662         (VERSION): Set to "2.20.90"
26663
26664 2014-09-07  Allan McRae  <allan@archlinux.org
26665
26666         * version.h (RELEASE): Set to "stable".
26667         (VERSION): Set to "2.20"
26668         * include/features.h (__GLIBC_MINOR__): Set to 20.
26669
26670         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26671         Liebler.
26672
26673         * po/ko.po: Update Korean translation from translation project.
26674
26675 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26676
26677         [BZ #17354]
26678         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26679         macro for handling signed relocations.
26680
26681 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26682
26683         [BZ #17325]
26684         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26685         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26686         assert.
26687         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26688         * iconvdata/ibm935.c (BODY): Likewise.
26689         * iconvdata/ibm937.c (BODY): Likewise.
26690         * iconvdata/ibm939.c (BODY): Likewise.
26691         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26692         assert.
26693         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26694         script.
26695         * iconvdata/run-iconv-test.sh: New test loop for checking for
26696         decoder crashers.
26697
26698 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26699
26700         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26701         libm_hidden_ver.
26702
26703 2014-09-01  Allan McRae  <allan@archlinux.org>
26704
26705         * po/eo.po: Update Esperanto translation from translation project.
26706
26707         * po/ca.po: Update Catalan translation from translation project.
26708
26709 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26710
26711         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26712         __proc_dostop call.
26713
26714 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26715
26716         [BZ #17319]
26717         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26718         to call set_thread_area instead of hand written asm.
26719         (__NR_set_thread_area): Removed define.
26720         (TLS_FLAG_WRITABLE): Likewise.
26721         (__ASSUME_SET_THREAD_AREA): Remove check.
26722         (TLS_EBX_ARG): Remove define.
26723         (TLS_LOAD_EBX): Likewise.
26724
26725 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26726
26727         Simplify atomicity of socket creation in bind.
26728
26729         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26730         looking up the name after linking the file.
26731
26732 2014-08-27  Allan McRae  <allan@archlinux.org>
26733
26734         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26735
26736 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26737
26738         [BZ #17187]
26739         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26740         trans_compare, open_translit, __gconv_translit_find):
26741         Remove module loading code.
26742
26743 2014-08-26  Allan McRae  <allan@archlinux.org>
26744
26745         * po/vi.po: Update Vietnamese translation from translation project.
26746
26747         * po/uk.po: Update Ukrainian translation from translation project.
26748
26749         * po/fr.po: Update French translation from translation project.
26750
26751         * po/ru.po: Update Russian translation from translation project.
26752
26753         * po/pl.po: Update Polish translation from translation project.
26754
26755         * po/cs.po: Update Czech translation from translation project.
26756
26757         * po/de.po: Update German translation from translation project.
26758
26759         * po/bg.po: Update Bulgarian translation from translation project.
26760
26761         * po/sv.po: Update Sweedish translation from translation project.
26762
26763         * po/nl.po: Update Dutch translation from translation project.
26764
26765         * po/es.po: Update Spanish translation from translation project.
26766
26767 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26768
26769         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26770
26771         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26772         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26773         (CPPFLAGS-iconvconfig): Likewise.
26774         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26775
26776         * include/libc-symbols.h: Remove unnecessary check for
26777         NOT_IN_libc.
26778         * nptl/pthreadP.h: Likewise.
26779         * sysdeps/aarch64/setjmp.S: Likewise.
26780         * sysdeps/alpha/setjmp.S: Likewise.
26781         * sysdeps/arm/sysdep.h: Likewise.
26782         * sysdeps/i386/setjmp.S: Likewise.
26783         * sysdeps/m68k/setjmp.c: Likewise.
26784         * sysdeps/posix/getcwd.c: Likewise.
26785         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26786         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26787         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26788         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26789         * sysdeps/sh/sh3/setjmp.S: Likewise.
26790         * sysdeps/sh/sh4/setjmp.S: Likewise.
26791         * sysdeps/unix/alpha/sysdep.h: Likewise.
26792         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26793         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26794         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26795         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26798         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26799         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26800         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26801         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26802         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26803         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26804         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26805         * sysdeps/x86_64/setjmp.S: Likewise.
26806
26807 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26808
26809         [BZ #17263]
26810         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26811         <stdint.h>.
26812         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26813         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26814
26815 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26816
26817         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26818
26819         [BZ #17262]
26820         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26821         and __x86_64__ when disabling x87 inline functions.
26822
26823 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26824
26825         [BZ #17259]
26826         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26827         asm statement with __cpuid_count.
26828
26829 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26830
26831         * configure.ac: Change __ehdr_start code to dereference the struct.
26832         Run readelf on the output to look for relocations.
26833         * configure: Regenerated.
26834
26835 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26836
26837         [BZ #17261]
26838         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26839         value to 0.
26840         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26841
26842 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26843
26844         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26845
26846 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26847
26848         [BZ #16892]
26849         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
26850         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
26851
26852 2014-08-12  Sean Anderson  <seanga2@gmail.com>
26853
26854         * malloc/malloc.c: Fix typo in comment.
26855
26856 2014-08-09  Allan McRae  <allan@archlinux.org>
26857
26858         * Regenerate libc.po.
26859
26860 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
26861
26862         * intl/tst-gettext2.sh: Check every lang file for creation.
26863
26864 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26865
26866         * sysdeps/aarch64/fpu/math_private.h
26867         (libc_feholdsetround_noex_aarch64_ctx): New function.
26868
26869 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26870
26871         * sysdeps/arm/armv6/strcpy.S (strcpy):
26872         Fix performance issue in misaligned cases.
26873
26874 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26875
26876         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
26877         Move definition from termios.h.
26878         (struct termio): Likewise.
26879         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26880         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26881         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26882         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26883         Likewise.
26884         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
26885         Move definition to ioctl-types.h
26886         (struct termio): Likewise.
26887         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26888         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26889         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26890         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26891         Likewise.
26892
26893 2014-08-05  Richard Henderson  <rth@redhat.com>
26894
26895         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
26896         exceptions.
26897         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
26898         Add fraiseexcpt.
26899         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
26900         Use __feraiseexcept.
26901         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
26902         Protect libm symbols with IS_IN_libm.
26903
26904         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
26905
26906 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
26907
26908         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
26909
26910 2014-08-04  Will Newton  <will.newton@linaro.org>
26911
26912         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
26913         file.
26914
26915 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
26916
26917         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
26918         variants for each function.
26919
26920 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26921
26922         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
26923         appended ...
26924         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
26925         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
26926         appended ...
26927         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
26928         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
26929         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
26930         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
26931         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
26932         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
26933         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
26934         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
26935         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
26936         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
26937         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
26938         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
26939         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
26940         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
26941         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
26942         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
26943         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
26944         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
26945         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
26946         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
26947         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
26948         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
26949         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
26950         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
26951         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
26952         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
26953         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
26954         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
26955         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
26956         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
26957         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
26958         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
26959         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
26960         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
26961         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
26962         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
26963         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
26964         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
26965         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
26966         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
26967         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
26968         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
26969         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
26970         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
26971         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
26972         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
26973         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
26974         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
26975         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
26976         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
26977         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
26978         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
26979         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
26980         Update #include.
26981         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
26982         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
26983
26984 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26985
26986         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
26987         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
26988         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
26989         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
26990         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
26991         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
26992
26993 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26994
26995         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
26996         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
26997         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
26998         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
26999
27000 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27001
27002         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27003         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27004         (__libc_vfork): Define function under this name.
27005         (__vfork): Define as an alias.
27006         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27007         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27008
27009 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27010
27011         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27012         that was previously under [RESET_PID].
27013         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27014
27015 2014-08-04  Andreas Schwab  <schwab@suse.de>
27016
27017         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27018
27019 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27020
27021         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27022         (main): Likewise.
27023
27024 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27025
27026         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27027
27028 2014-08-01  Richard Henderon  <rth@redhat.com>
27029
27030         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27031         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27032         typo in exact zero test.
27033         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27034         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27035         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27036
27037 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27038
27039         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27040         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27041         * sysdeps/arm/sysdep.h: ... here.
27042         [!__ASSEMBLER__]: Include <stdint.h>.
27043
27044 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27045
27046         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27047         (HAVE_WCTYPE_H): Likewise.
27048         (HAVE_ISWCTYPE): Likewise.
27049         (ENABLE_NLS): Likewise.
27050         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27051         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27052
27053         * posix/regex_internal.c: Check if DEBUG is defined and is
27054         set.
27055
27056         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27057         (HAVE_MBSRTOWCS): Likewise.
27058         * posix/fnmatch.c: Include string.h unconditionally.
27059
27060 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27061
27062         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27063         reversal.
27064
27065 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27066
27067         * sysdeps/generic/safe-fatal.h: New file.
27068         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27069         * nptl/forward.c: Include it.
27070         (__pthread_unwind): Use __safe_fatal as default action, rather
27071         than a bogus use of INTERNAL_SYSCALL that could never work.
27072
27073         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27074         * configure.ac (libc_cv_builtin_trap): New test.
27075         * configure: Regenerated.
27076         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27077         (ABORT_INSTRUCTION): Define using __builtin_trap.
27078
27079         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27080         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27081         * sysdeps/nptl/nptl-signals.h: New file.
27082         * nptl/pthreadP.h: Include <nptl-signals.h>.
27083
27084 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27085
27086         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27087         (ONE_DIRECTION): Define.
27088         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27089         (ONE_DIRECTION): Define.
27090         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27091         (ONE_DIRECTION): Define.
27092
27093 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27094
27095         * sysdeps/s390/Makefile: Delete file.
27096         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27097         * sysdeps/s390/__longjmp.c: Delete file.
27098         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27099         Remove fields __flags and __reserved.
27100         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27101         and add versioning.
27102         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27103         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27104         * sysdeps/s390/rtld-setjmp.S: Likewise.
27105         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27106         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27107         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27108         * sysdeps/s390/s390-32/setjmp.S: ... here.
27109         Add versioning.
27110         (__sigsetjmp): Remove setting __flags field.
27111         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27112         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27113         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27114         * sysdeps/s390/s390-64/setjmp.S: ... here.
27115         Add versioning.
27116         (__sigsetjmp): Remove setting __flags field.
27117         * sysdeps/s390/setjmp.S: Delete file.
27118         * sysdeps/s390/sigjmp.c: Likewise.
27119         * sysdeps/s390/v1-longjmp.c: Likewise.
27120         * sysdeps/s390/v1-setjmp.h: Likewise.
27121         * sysdeps/s390/v1-sigjmp.c: Likewise.
27122         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27123         Remove v1-longjmp_chk.
27124         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27125         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27126         Include debug/longjmp_chk.c and add versioning.
27127         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27128         Include nptl/pt-longjmp.c and add versioning.
27129         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27130         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27131         Include __longjmp.c.
27132         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27133         Move to ...
27134         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27135         (__getcontext): Remove setting __flags field.
27136         Add versioning.
27137         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27138         Don't restore upper high grps.
27139         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27140         Likewise.
27141         (__swapcontext): Remove setting uc_flags field.
27142         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27143         Delete file.
27144         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27145         Include __longjmp.c.
27146         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27147         Move to ...
27148         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27149         (__getcontext): Remove setting __flags field.
27150         Add versioning.
27151         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27152         (__swapcontext): Remove setting uc_flags field.
27153         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27154         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27155         Remove fields uc_high_gprs and __reserved.
27156         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27157         New file with reverted content.
27158         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27159         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27160         Regenerated.
27161         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27162         Regenerated.
27163
27164 2014-07-31  Andreas Schwab  <schwab@suse.de>
27165
27166         * config.h.in (HAVE_IFUNC): Define to 0.
27167         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27168         definedness.
27169
27170 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27171
27172         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27173         memmove-avx-unaligned, memcpy-avx-unaligned and
27174         mempcpy-avx-unaligned.
27175         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27176         Add tests for AVX memcpy functions.
27177         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27178         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27179         memcpy_chk.
27180         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27181         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27182         memmove_chk.
27183         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27184         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27185         mempcpy_chk.
27186         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27187         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27188         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27189
27190 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27191
27192         [BZ #17213]
27193         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27194         powerpc64le.
27195
27196 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27197
27198         [BZ #16839]
27199         * manual/llio.texi: Add section about open file description locks.
27200         * manual/examples/ofdlocks.c: Example of open file description
27201         lock usage.
27202         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27203         F_OFD_SETLK, and F_OFD_SETLKW.
27204
27205 2014-07-23  Allan McRae  <allan@archlinux.org>
27206
27207         * po/es.po: Update Spanish translation from translation project.
27208
27209 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27210
27211         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27212
27213 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27214
27215         [BZ #17078]
27216         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27217         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27218         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27219
27220 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27221
27222         [BZ #17088]
27223         * math/fesetenv.c (__fesetenv)
27224         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27225         * math/feupdateenv.c (__feupdateenv)
27226         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27227
27228         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27229         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27230         (__ASSUME_SOCKETCALL): Do not define.
27231
27232         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27233         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27234         (__ASSUME_SOCKETCALL): Do not define.
27235         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27236         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27237         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27238         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27239         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27240         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27241         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27242         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27243
27244         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27245         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27246         (__ASSUME_SOCKETCALL): Do not define.
27247         (__ASSUME_IPC64): Define unconditionally.
27248         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27249         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27250         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27251         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27252         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27253         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27254         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27255         Likewise.
27256
27257         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27258         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27259         (__ASSUME_SOCKETCALL): Do not define.
27260         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27261         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27262         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27263         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27264         (__ASSUME_REQUEUE_PI): Define unconditionally.
27265         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27266         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27267         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27268         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27269         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27270         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27271
27272         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27273         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27274         (__ASSUME_SOCKETCALL): Do not define.
27275         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27276         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27277         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27278         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27279         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27280         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27281
27282         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27283         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27284         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27285         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27286         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27287         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27288         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27289         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27290         (__ASSUME_GETCPU_SYSCALL): Likewise.
27291
27292         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27293         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27294         cases for individual architectures.
27295         * sysdeps/gnu/configure: Regenerated.
27296         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27297         LIBC_SLIBDIR_RTLDDIR.
27298         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27299         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27300         LIBC_SLIBDIR_RTLDDIR.
27301         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27303         LIBC_SLIBDIR_RTLDDIR.
27304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27305         Regenerated.
27306         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27307         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27308         file.
27309         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27310         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27311         file.
27312         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27313         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27314         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27315         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27316
27317         * sysdeps/aarch64/shlib-versions: Move to ...
27318         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27319         * sysdeps/alpha/shlib-versions: Move to ...
27320         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27321         * sysdeps/arm/shlib-versions: Move to ...
27322         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27323         * sysdeps/hppa/shlib-versions: Move all contents except for
27324         libgcc_s entry to ...
27325         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27326         entry from ...
27327         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27328         * sysdeps/ia64/shlib-versions: Move to ...
27329         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27330         entry from ...
27331         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27332         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27333         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27334         * sysdeps/microblaze/shlib-versions: Move to ...
27335         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27336         * sysdeps/mips/shlib-versions: Move to ...
27337         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27338         entry from ...
27339         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27340         * sysdeps/tile/shlib-versions: Move to ...
27341         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27342         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27343         from ...
27344         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27345         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27346         entry from ...
27347         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27348
27349 2014-07-17  Will Newton  <will.newton@linaro.org>
27350
27351         * sysdeps/arm/bits/atomic.h
27352         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27353         (__arch_compare_and_exchange_bool_16_int): Likewise.
27354         (__arch_compare_and_exchange_bool_64_int): Likewise.
27355
27356         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27357         into an #else block.
27358
27359 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27360
27361         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27362         just Linux configurations.  Test empirically that the compiler sets
27363         __ARM_EABI__, rather than using the tuple to decide.
27364         * sysdeps/arm/preconfigure: Regenerated.
27365         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27366         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27367         contents appended ...
27368         * sysdeps/arm/configure.ac: ... here.
27369         * sysdeps/arm/configure: Regenerated.
27370
27371 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27372
27373         * nptl/pthread_kill.c: New file.
27374         * nptl/pthread_sigmask.c: New file.
27375         * nptl/pthread_sigqueue.c: New file.
27376
27377         * sysdeps/nptl/lowlevellock.h: New file.
27378         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27379         * sysdeps/nptl/lowlevellock-futex.h: New file.
27380
27381         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27382         Remove dead declarations.
27383
27384 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27385
27386         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27387         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27388         config-cflags-avx2.
27389         * sysdeps/x86_64/configure.ac: Likewise.
27390         * sysdeps/i386/configure: Regenerated.
27391         * sysdeps/x86_64/configure: Likewise.
27392         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27393         memset-avx2 only if config-cflags-avx2 is yes.
27394         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27395         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27396         defined.
27397         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27398         only if HAVE_AVX2_SUPPORT is defined.
27399         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27400
27401 2014-07-14  Alan Modra  <amodra@gmail.com>
27402
27403         [BZ #17153]
27404         * elf/elf.h (DT_PPC64_NUM): Correct value.
27405         * NEWS: Add to fixed bug list.
27406
27407 2014-07-13  Jim Meyering  <meyering@fb.com>
27408
27409         [BZ 17150]
27410         regex: don't deref NULL upon heap allocation failure
27411         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27412         failure in one more place.
27413         To trigger the segfault, configure grep -with-included-regex,
27414         build it, and run these commands:
27415         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27416
27417 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27418
27419         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27420
27421 2014-07-11  Richard Henderson  <rth@redhat.com>
27422
27423         * sysdeps/aarch64/libm-test-ulps: Update.
27424
27425 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27426
27427         [BZ #17135]
27428         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27429         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27430         (__nptl_setxid): Initialize error member.  Call
27431         __nptl_setxid_error.
27432         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27433         * nptl/descr.h (struct xid_command): Add error member.
27434         * nptl/tst-setuid3.c: New file.
27435         * nptl/Makefile (tests): Add it.
27436
27437 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27438
27439         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27440         New define.
27441         (__lll_trylock): Use __lll_base_trylock.
27442         (__lll_cond_trylock): Likewise.
27443
27444 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27445
27446         * nptl/pthread_create.c (start_thread): Use atomic_or and
27447         lll_futex_wake directly rather than lll_robust_dead.
27448         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27449         (lll_robust_dead): Macro removed.
27450         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27451         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27452         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27453         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27454         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27455         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27456         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27457         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27458         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27459         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27460         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27461         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27462         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27463         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27464         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27465
27466         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27467         Use atomic_compare_and_exchange_val_acq directly rather than
27468         lll_robust_trylock.
27469         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27470         (__lll_robust_trylock, lll_robust_trylock): Removed.
27471         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27472         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27473         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27474         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27475         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27476         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27477         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27478         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27479         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27480         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27481         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27482         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27483         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27484         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27485
27486 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27487
27488         * manual/locale.texi (Locale Names): New section documenting
27489         locale name syntax.  Adjust menu and node chaining accordingly.
27490         (Choosing Locale): Reference Locale Names, Locale Categories.
27491         Mention setting LC_ALL=C.  Reflect that name syntax is now
27492         documented.
27493         (Locale Categories): New section title.  Reference Locale Names.
27494         LC_ALL is an environment variable, but not a category.
27495         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27496         description, now in Locale Name.  Reference that section.  Locale
27497         name syntax is now documented.
27498
27499 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27500
27501         [BZ #17137]
27502         * locale/findlocale.c (name_present, valid_locale_name): New
27503         functions.
27504         (_nl_find_locale): Use the loc_name variable to store name
27505         candidates.  Call name_present and valid_locale_name to check and
27506         validate locale names.  Return an error if the locale is invalid.
27507
27508 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27509
27510         * locale/setlocale.c (setlocale): Use strdup for allocating
27511         composite name copy.
27512
27513 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27514
27515         Sync up with gnulib.
27516         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27517         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27518         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27519         and _GL_ARG_NONNULL.
27520         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27521         [!_LIBC]: Include code for Windows and Cygwin.
27522         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27523         Include prototype for int strerror_r.
27524         [!_LIBC] (is_open): New function.
27525         (flush_stdout): New function.
27526         (print_errno_message): Use it.
27527         (error): Likewise.
27528         (error_at_line): Likewise.
27529         (error_tail) Add function attribute macros.  Use
27530         __builtin_expect.
27531
27532         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27533
27534         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27535
27536         * io/ftw.c: Include sys/param.h unconditionally.
27537
27538         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27539
27540         [BZ #17125]
27541         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27542         libc_freeres_ptr.
27543         (freecache): New function to free CACHE on exit.
27544
27545         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27546         initialization.
27547
27548 2014-07-09  David S. Miller  <davem@davemloft.net>
27549
27550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27551
27552         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27553         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27554         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27555         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27556         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27557         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27558         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27559         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27560         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27561         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27562         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27563         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27564         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27565
27566 2014-07-09  Andreas Schwab  <schwab@suse.de>
27567
27568         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27569         output.
27570         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27571         (do_test): Likewise.
27572
27573         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27574
27575 2014-07-09  Will Newton  <will.newton@linaro.org>
27576
27577         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27578         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27579         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27580         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27581         * sysdeps/hppa/start.S (_start): Likewise.
27582
27583 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27584
27585         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27586
27587         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27588         defined.
27589
27590 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27591
27592         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27593         after checking that it is non-NULL.
27594
27595         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27596
27597 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27598
27599         * sysdeps/powerpc/memmove.c: Remove file.
27600         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27601         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27602         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27603         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27604         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27605         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27606         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27607         string memmove instead of removed powerpc one.
27608
27609         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27610         [weak_alias]: Fix compiler warning due trailing data.
27611         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27612         [weak_alias]: Likewise.
27613         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27614         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27615
27616         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27617         (__libc_ifunc_impl_list): Add memmove functions.
27618
27619 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27620
27621         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27622         Remove code.
27623         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27624         Likewise.
27625         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27626         Likewise.
27627         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27628         Likewise.
27629         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27630         Likewise.
27631         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27632         Likewise.
27633         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27634         Likewise.
27635         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27636         Likewise.
27637         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27638         Likewise.
27639         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27640         Likewise.
27641         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27642         Likewise.
27643         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27644         Likewise.
27645         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27646         Likewise.
27647         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27648         Likewise.
27649         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27650         Likewise.
27651         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27652         Likewise.
27653         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27654         Likewise.
27655
27656 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27657
27658         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27659         to avoid alignment traps in non-cacheable memory.
27660         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27661
27662         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27663         multiarch objects.
27664         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27665         file: multiarch power7 memmove.
27666         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27667         multiarch default memmove.
27668         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27669         multiarch memove for powerpc32/power4.
27670
27671         * string/bcopy.c: Use full path to include memmove.c.
27672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27673         multiarch objects.
27674         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27675         bcopy for powerpc64.
27676         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27677         bcopy for powerpc64.
27678         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27679         and memmove implementations.
27680         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27681         optimized multiarch memmove for POWER7/powerpc64.
27682         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27683         default multiarch memmove for powerpc64.
27684         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27685         multiarch for powerpc64.
27686         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27687         for POWER7/powerpc64.
27688         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27689         memmove for POWER7/powerpc64.
27690
27691         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27692         glibc default one.
27693
27694         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27695         __ELF_NATIVE_CLASS equal to 64.
27696
27697 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27698
27699         * sysdeps/nptl/lowlevellock.h: File removed.
27700
27701         * NEWS: NPTL is no longer an add-on!
27702         * nptl/internaltypes.h: Moved ...
27703         * sysdeps/nptl/internaltypes.h: ... here.
27704         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27705         * sysdeps/nptl/fork.c: Likewise.
27706         * sysdeps/nptl/gai_misc.h: Likewise.
27707         * sysdeps/nptl/librt-cancellation.c: Likewise.
27708         * sysdeps/nptl/jmp-unwind.c: Likewise.
27709         * sysdeps/nptl/setxid.h: Likewise.
27710         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27711         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27712         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27713         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27714         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27715         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27716         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27717         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27718         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27719         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27720         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27721         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27722         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27723         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27724         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27725         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27726         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27727         * nptl/Makeconfig: Moved ...
27728         * sysdeps/nptl/Makeconfig: ... here.
27729         * nptl/configure: File removed.
27730         * nptl/ANNOUNCE: File removed.
27731         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27732         * sysdeps/unix/sysv/linux/configure: Regenerated.
27733
27734         * nptl/Makefile (routines): Add libc_pthread_init,
27735         libc_multiple_threads, register-atfork and unregister-atfork.
27736         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27737         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27738         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27739         pthread-pi-defines.sym, structsem.sym.
27740         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27741         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27742         [$(subdir) = nptl] (tests): Add tst-setgetname.
27743         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27744         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27745         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27746         [!LIBC_SIGACTION]: Remove aliases.
27747         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27748         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27749         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27750         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27751         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27752         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27753         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27754         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27755         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27756         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27757         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27758         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27759         __libc_allocate_rtsig_private.
27760         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27761         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27762         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27763         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27764         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27765         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27766         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27767         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27768         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27769         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27770         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27771         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27772         * nptl/internaltypes.h: ... here.
27773         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27774         * sysdeps/nptl/jmp-unwind.c: ... here.
27775         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27776         * nptl/libc-lowlevellock.c: ... here.
27777         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27778         * nptl/libc_multiple_threads.c: ... here.
27779         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27780         * nptl/libc_pthread_init.c: ... here.
27781         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27782         * nptl/lowlevelbarrier.sym: ... here.
27783         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27784         * nptl/lowlevelcond.sym: ... here.
27785         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27786         * nptl/lowlevellock.c: ... here.
27787         * nptl/lowlevellock.h: Moved ...
27788         * sysdeps/nptl/lowlevellock.h: ... here.
27789         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27790         * nptl/lowlevelrobustlock.c: ... here.
27791         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27792         * nptl/lowlevelrobustlock.sym: ... here.
27793         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27794         * nptl/lowlevelrwlock.sym: ... here.
27795         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27796         * nptl/pt-fork.c: ... here.
27797         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27798         * nptl/pthread-pi-defines.sym: ... here.
27799         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27800         * nptl/pthread_attr_getaffinity.c: ... here.
27801         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27802         * nptl/pthread_attr_setaffinity.c: ... here.
27803         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27804         * nptl/pthread_mutex_cond_lock.c: ... here.
27805         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27806         Update #include.
27807         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27808         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27809         * nptl/pthread_once.c: ... here, replacing old file.
27810         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27811         * nptl/pthread_yield.c: ... here.
27812         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27813         * nptl/register-atfork.c: ... here.
27814         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27815         * nptl/sem_post.c: ... here.
27816         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27817         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27818         * nptl/sem_timedwait.c: ... here.
27819         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27820         * nptl/sem_trywait.c: ... here.
27821         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27822         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27823         * nptl/sem_wait.c: ... here.
27824         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27825         * nptl/structsem.sym: ... here.
27826         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27827         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27828         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27829         * nptl/unregister-atfork.c: ... here.
27830         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27831         * nptl/unwindbuf.sym: ... here.
27832         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27833         * sysdeps/nptl/fork.c: ... here.
27834         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27835         * sysdeps/nptl/fork.h: ... here.
27836         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27837         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27838         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27839         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27840         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27841         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27842         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27843         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27844         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27845         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27846         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27847         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27848         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
27849         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
27850         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
27851         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
27852         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
27853         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
27854         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
27855         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
27856         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
27857         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
27858         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
27859         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
27860         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
27861         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
27862         * sysdeps/unix/sysv/linux/raise.c: ... here.
27863         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
27864         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
27865         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
27866         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
27867         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
27868         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
27869         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
27870         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
27871         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
27872         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
27873         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
27874         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
27875         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
27876         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
27877         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
27878
27879 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
27880
27881         * sysdeps/generic/memcopy.h: Add comment for
27882         MEMCPY_OK_FOR_FWD_MEMMOVE.
27883
27884 2014-07-04  Will Newton  <will.newton@linaro.org>
27885
27886         * string/memchr.c: Merge from gnulib.
27887         [_LIBC]: Remove conditionals.
27888         (__ptr_t): Remove define.
27889         (LONG_MAX_32_BITS): Likewise.
27890         (LONG_MAX): Likewise.
27891         (MEMCHR): Use ANSI prototype and optimize algorithm.
27892
27893         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
27894
27895 2014-07-03  Roland McGrath  <roland@hack.frob.com>
27896
27897         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
27898         (lll_futex_timed_wait_bitset): Fix syscall argument count.
27899
27900         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
27901         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
27902         in a bare environment with no <stdlib.h> installed.
27903         * sysdeps/nptl/configure: Regenerated.
27904
27905         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
27906
27907         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
27908         AC_EGREP_CPP for kernel header checks, so they only succeed if
27909         including <linux/version.h> actually works right.
27910         * sysdeps/unix/sysv/linux/configure: Regenerated.
27911
27912         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
27913         value so it's not diagnosed as unused.
27914
27915         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
27916         thing) with "ifeq ($(subdir),rt)".
27917
27918 2014-07-03  Richard Henderson  <rth@redhat.com>
27919
27920         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
27921         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
27922         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
27923
27924         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
27925         (math_force_eval): New.
27926
27927         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
27928         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
27929
27930         * sysdeps/alpha/fpu/s_round.c: Remove file.
27931         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
27932
27933         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
27934         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
27935         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
27936         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
27937         (_dl_start, print_statistics): Likewise.
27938         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
27939         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
27940
27941         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27942         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27943         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27944         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27945         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27946         (HP_SMALL_TIMING_AVAIL): Define.
27947         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27948         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27949         (HP_SMALL_TIMING_AVAIL): Define.
27950         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27951         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27952
27953         * sysdeps/aarch64/hp-timing.h: New file.
27954
27955         * sysdeps/generic/hp-timing.h: Remove dead comment.
27956         * sysdeps/generic/hp-timing-common.h: New file.
27957         * sysdeps/alpha/hp-timing.h: Include it.
27958         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
27959         * sysdeps/i386/i686/hp-timing.h: Likewise.
27960         * sysdeps/ia64/hp-timing.h: Likewise.
27961         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27962         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27963         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27964         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27965         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
27966         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
27967         (hp_timing_t): New.
27968
27969         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
27970         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
27971         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
27972         * elf/rtld.c (_dl_start_final): Likewise.
27973         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
27974         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27975         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27976         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27977         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27978         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27979         (HP_TIMING_DIFF_INIT): Remove.
27980         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27981         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27982         (HP_TIMING_DIFF_INIT): Remove.
27983         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27984         * sysdeps/i386/i686/hp-timing.c: Remove file.
27985         * sysdeps/x86_64/hp-timing.c: Remove file.
27986         * sysdeps/ia64/hp-timing.c: Remove file.
27987         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
27988         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
27989         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
27990         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
27991
27992         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
27993         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
27994         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
27995         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27996         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27997         (HP_TIMING_ACCUM): Remove.
27998         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27999         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28000         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28001
28002         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28003         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28004         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28005         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28006         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28007         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28008         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28009         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28010
28011         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28012
28013 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28014
28015         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28016
28017 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28018
28019         Sync up with gettext.
28020         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28021         [_MSC_VER]: Include malloc.h
28022         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28023         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28024         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28025         TEMP_FAILURE_RETRY.  Cast return of alloca.
28026         [!_LIBC] Call gl_rwlock_init.
28027         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28028
28029 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28030
28031         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28032         before checking its value.
28033
28034 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28035
28036         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28037
28038         * debug/memcpy_chk.c: Don't include pagecopy.h.
28039         * debug/mempcpy_chk.c: Likewise.
28040         * string/memcpy.c: Likewise.
28041         * string/memmove.c: Likewise.
28042         * sysdeps/powerpc/memmove.c: Likewise.
28043         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28044         definition of PAGE_COPY_FWD_MAYBE here...
28045         * sysdeps/generic/pagecopy.h: ... from here.
28046         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28047
28048 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28049             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28050
28051         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28052         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28053         optimizations.
28054         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28055         (__libc_ifunc_impl_list): Likewise.
28056         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28057         multiarch strcat for PPC64.
28058         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28059         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28060
28061 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28062
28063         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28064
28065 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28066
28067         * intl/loadmsgcat.c: Remove declaration of
28068         get_sysdep_segment_value.
28069         (get_sysdep_segment_value): Use ISO C style.
28070         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28071         semicolon.  Fix typo and formatting in comment.
28072         (_nl_unload_domain): Use ISO C style.
28073
28074         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28075
28076 2014-07-02  Will Newton  <will.newton@linaro.org>
28077
28078         * malloc/obstack.c: Merge from gnulib master.
28079         [HAVE_CONFIG_H]: Remove conditional code.
28080         [!_LIBC]: Include config.h.
28081         [!ELIDE_CODE]: Don't include inttypes.h, include
28082         stdint.h unconditionally.
28083         (print_and_abort): Mark as _Noreturn.
28084         (_obstack_allocated_p): Mark as __attribute_pure__.
28085         (obstack_free): Rename to __obstack_free.
28086         [!__attribute__]: Remove conditional code.
28087         * malloc/obstack.h: Merge from gnulib master.
28088         [__cplusplus]: Move conditional down.
28089         [!__attribute_pure__]: Define __attribute_pure__ here
28090         if it is not already defined.
28091         (_obstack_memory_used): Mark as __attribute_pure__.
28092         [!__obstack_free]: Define as obstack_free.
28093         [__GNUC__]: Remove check for ancient NeXT gcc.
28094
28095 2014-07-02  Will Newton  <will.newton@linaro.org>
28096             Paul Eggert  <eggert@cs.ucla.edu>
28097
28098         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28099
28100 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28101
28102         * resolv/gethnamaddr.c: Add comment warning that the file is
28103         not maintained.
28104
28105 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28106
28107         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28108         entries.
28109
28110         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28111         entry for aio_cancel and aio_cancel64.
28112         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28113         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28114         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28115         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28116         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28117         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28118         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28119         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28120         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28121         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28122         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28123         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28124         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28125
28126 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28127
28128         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28129         * nptl/pthread_mutex_lock.c: Likewise.
28130         * nptl/pthread_mutex_timedlock.c: Likewise.
28131         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28132
28133 2014-07-01  Richard henderson  <rth@redhat.com>
28134
28135         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28136         (__isnan, __isnanl): Remove.
28137         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28138
28139         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28140
28141 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28142
28143         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28144
28145 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28146
28147         * resolv/nss_dns/dns-host.c (getanswer_r)
28148         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28149
28150 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28151
28152         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28153         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28154         undefine.
28155         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28156         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28157
28158 2014-07-01  Roland McGrath <roland@hack.frob.com>
28159
28160         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28161         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28162
28163         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28164         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28165
28166         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28167         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28168         ... here.
28169         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28170         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28171
28172         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28173         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28174         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28175         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28176
28177         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28178         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28179         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28180         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28181         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28182         Moved ...
28183         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28184         ... here.
28185         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28186         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28187         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28188         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28189         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28190         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28191         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28192         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28193         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28194         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28195         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28196         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28197         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28198         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28199         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28200         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28201         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28202         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28203         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28204         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28205         ... here.
28206         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28207         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28208         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28209         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28210         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28211         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28212         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28213         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28214
28215 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28216
28217         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28218         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28219         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28220         Add sysdep.
28221
28222 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28223
28224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28225
28226 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28227
28228         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28229         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28230
28231         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28232
28233         * sysdeps/arm/libm-test-ulps: Regenerated.
28234
28235 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28236             Roland McGrath <roland@hack.frob.com>
28237
28238         * test-skeleton.c (signal_handler): Kill the whole process group
28239         before killing the child individually.
28240         (main): Report any failure on `setpgid'.
28241
28242 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28243
28244         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28245         from _TLS_H to _ARM_NPTL_TLS_H.
28246         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28247         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28248
28249 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28250
28251         [BZ #16539]
28252         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28253         (__expm1l): Return argument unchanged when small but not
28254         subnormal.
28255
28256         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28257         include macro name.
28258         (_FP_UNPACK_RAW_1_P): Likewise.
28259         (_FP_PACK_RAW_1): Likewise.
28260         (_FP_PACK_RAW_1_P): Likewise.
28261         (_FP_MUL_MEAT_1_wide): Likewise.
28262         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28263         (_FP_MUL_MEAT_1_hard): Likewise.
28264         (_FP_DIV_MEAT_1_imm): Likewise.
28265         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28266         (_FP_DIV_MEAT_1_udiv): Likewise.
28267         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28268         (_FP_UNPACK_RAW_2): Likewise.
28269         (_FP_UNPACK_RAW_2_P): Likewise.
28270         (_FP_PACK_RAW_2): Likewise.
28271         (_FP_PACK_RAW_2_P): Likewise.
28272         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28273         (_FP_MUL_MEAT_2_wide): Likewise.
28274         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28275         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28276         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28277         (_FP_MUL_MEAT_2_gmp): Likewise.
28278         (_FP_DIV_MEAT_2_udiv): Likewise.
28279         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28280         (_FP_FRAC_SRL_4): Likewise.
28281         (_FP_FRAC_SRST_4): Likewise.
28282         (_FP_FRAC_SRS_4): Likewise.
28283         (_FP_UNPACK_RAW_4): Likewise.
28284         (_FP_UNPACK_RAW_4_P): Likewise.
28285         (_FP_PACK_RAW_4): Likewise.
28286         (_FP_PACK_RAW_4_P): Likewise.
28287         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28288         (_FP_MUL_MEAT_4_wide): Likewise.
28289         (_FP_MUL_MEAT_4_gmp): Likewise.
28290         (umul_ppppmnnn): Likewise.
28291         (_FP_DIV_MEAT_4_udiv): Likewise.
28292         (__FP_FRAC_ADD_4): Likewise.
28293         (__FP_FRAC_SUB_3): Likewise.
28294         (__FP_FRAC_SUB_4): Likewise.
28295         (__FP_FRAC_DEC_3): Likewise.
28296         (__FP_FRAC_DEC_4): Likewise.
28297         (__FP_FRAC_ADDI_4): Likewise.
28298         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28299         (_FP_FRAC_SRL_8): Likewise.
28300         (_FP_FRAC_SRS_8): Likewise.
28301
28302         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28303         include macro name.
28304         (FP_UNPACK_RAW_EP): Likewise.
28305         (FP_PACK_RAW_E): Likewise.
28306         (FP_PACK_RAW_EP): Likewise.
28307         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28308         (_FP_ISSIGNAN): Likewise.
28309         (_FP_ADD_INTERNAL): Likewise.
28310         (_FP_FMA): Likewise.
28311         (_FP_CMP): Likewise.
28312         (_FP_SQRT): Likewise.
28313         (_FP_TO_INT): Likewise.
28314         (_FP_FROM_INT): Likewise.
28315         (FP_EXTEND): Likewise.
28316         (_FP_DIV_MEAT_N_loop): Likewise.
28317
28318 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28319
28320         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28321         throughout.
28322
28323 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28324
28325         [BZ #17097]
28326         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28327         result with correct sign in case of exponents that produce
28328         overflow except for X very close to 1.
28329
28330 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28331
28332         mktime: merge #if/#ifdef usage from glibc
28333         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28334         as that works with both Glibc's and Gnulib's style.
28335         See thread starting at Siddhesh Poyarekar's bug report at:
28336         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28337
28338 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28339
28340         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28341         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28342         * sysdeps/tile/tilegx/memmove.c: Remove file.
28343
28344 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28345
28346         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28347         abi-name definition.
28348         * scripts/soversions.awk: Do not handle or generate ABI lines.
28349         * shlib-versions: Remove ABI entries.
28350         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28351         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28352
28353 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28354
28355         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28356         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28357         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28358         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28359         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28360         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28361         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28362         Moved ...
28363         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28364         ... here.
28365         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28366         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28367         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28368         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28369         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28370         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28371         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28372         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28373         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28374         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28375         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28376         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28377         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28378         Moved ...
28379         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28380         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28381         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28382         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28383         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28384         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28385         Moved ...
28386         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28387         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28388         Moved ...
28389         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28390         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28391         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28392         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28393         Moved ...
28394         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28395         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28396         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28397         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28398         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28399         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28400         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28401         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28402         Moved ...
28403         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28404         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28405         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28406         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28407         Moved ...
28408         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28409         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28410         Moved ...
28411         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28412         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28413         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28414         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28415         Moved ...
28416         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28417         ... here.
28418         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28419         Identical file removed.
28420         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28421         Moved ...
28422         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28423         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28424         Identical file removed.
28425         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28426         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28427         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28428         Moved ...
28429         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28430         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28431         Identical file removed.
28432         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28433         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28434         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28435         Identical file removed.
28436         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28437         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28438         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28439         Identical file removed.
28440         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28441         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28442         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28443         Identical file removed.
28444         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28445         Moved ...
28446         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28447         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28448         Identical file removed.
28449         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28450         Moved ...
28451         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28452         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28453         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28454         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28455         Identical file removed.
28456         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28457         Moved ...
28458         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28459         ... here.
28460         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28461         Identical file removed.
28462         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28463         Moved ...
28464         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28465         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28466         Identical file removed.
28467         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28468         Moved ...
28469         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28470         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28471         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28472         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28473         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28474         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28475         Moved ...
28476         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28477         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28478         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28479
28480         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28481         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28482         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28483         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28484         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28485
28486 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28487
28488         [BZ #17092]
28489         * nscd/nscd.c (monitor_child): Return exit status of child
28490         instead of return value from wait syscall.
28491
28492 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28493
28494         * configure.ac (libc_commonpagesize): Remove variable.
28495         (libc_relro_required): Likewise.
28496         (libc_cv_z_relro): Remove configure test.
28497         * configure: Regenerated.
28498         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28499         variable.
28500         (libc_relro_required): Likewise.
28501         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28502         (libc_relro_required): Likewise.
28503         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28504         (libc_relro_required): Likewise.
28505         * sysdeps/arm/preconfigure: Regenerated.
28506         * sysdeps/ia64/preconfigure: Remove file.
28507         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28508         variable.
28509         (libc_relro_required): Likewise.
28510
28511         [BZ #16561]
28512         [BZ #16562]
28513         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28514         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28515         recompute overflowing results in original rounding mode.
28516         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28517         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28518         recompute overflowing results in original rounding mode.
28519         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28520         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28521         recompute overflowing results in original rounding mode.
28522         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28523         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28524         recompute overflowing results in original rounding mode.
28525         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28526         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28527         recompute overflowing results in original rounding mode.
28528         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28529         (libc_feholdsetround_ctx): New macro.
28530         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28531         * sysdeps/i386/fpu/libm-test-ulps: Update.
28532         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28533
28534 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28535
28536         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28537         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28538         corresponding .cpsetup call.
28539
28540 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28541
28542         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28543         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28544         * sysdeps/arm/Makefile [$(subdir) = csu]
28545         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28546         (static-only-routines): Add aeabi_read_tp here.
28547         (shared-only-routines): Add libc-aeabi_read_tp here.
28548         (CFLAGS-libc-start.c): Add -fexceptions here.
28549         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28550         (sysdep_routines, static-only-routines, shared-only-routines):
28551         Don't add to these here.
28552         (CFLAGS-libc-start.c): Likewise.
28553
28554         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28555         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28556         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28557         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28558         * sysdeps/arm/Makefile [$(subdir) = rt]
28559         (librt-sysdep_routines, librt-shared-only-routines):
28560         Append rt-aeabi_unwind_cpp_pr1 here.
28561         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28562         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28563         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28564         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28565         Append nptl-aeabi_unwind_cpp_pr1 here.
28566         (tests): Filter out tst-cleanupx4 here.
28567         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28568         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28569         Don't do those here.
28570
28571 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28572
28573         * scripts/list-sources.sh: Do not handle ports specially.
28574
28575 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28576
28577         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28578         * sysdeps/arm/feupdateenv.c: Likewise.
28579
28580         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28581
28582 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28583
28584         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28585         trailing whitespace removed.
28586         * scripts/config.guess: Update to version 2014-03-23.
28587         * scripts/config.sub: Update to version 2014-05-01
28588         * scripts/install-sh: Update to version 2013-12-25.23.
28589         * scripts/move-if-change: Update from gnulib.
28590
28591 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28592
28593         * debug/memmove_chk.c: Remove pagecopy.h include.
28594
28595 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28596
28597         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28598         identical to gnulib mktime.
28599
28600 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28601
28602         * configure.ac: Do not test for machine being rs6000.  Do not test
28603         for powerpc*-*soft.
28604         * configure: Regenerated.
28605
28606         [BZ #11505]
28607         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28608         test.
28609         * configure: Regenerated.
28610         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28611         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28612         Remove configure test.
28613         * sysdeps/arm/configure: Regenerated.
28614         * sysdeps/nptl/configure.ac: Do not check
28615         libc_cv_asm_cfi_directives.
28616         * sysdeps/nptl/configure: Regenerated.
28617         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28618         * sysdeps/x86_64/nptl/configure: Remove generated file.
28619         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28620         unconditional.
28621         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28622
28623 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28624
28625         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28626         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28627         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28628         it is defined.
28629
28630         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28631         instead of whether it is defined.
28632         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28633         * sysdeps/hppa/dl-machine.h: Likewise.
28634         * sysdeps/ia64/dl-machine.h: Likewise.
28635         * sysdeps/m68k/dl-machine.h: Likewise.
28636         * sysdeps/microblaze/dl-machine.h: Likewise.
28637         * sysdeps/mips/dl-machine.: Likewise.
28638         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28639         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28640         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28641         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28642         * sysdeps/sh/dl-machine.h: Likewise.
28643         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28644         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28645         * sysdeps/tile/dl-machine.h: Likewise.
28646         * sysdeps/x86_64/dl-machine.h: Likewise.
28647
28648         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28649         code.
28650         (verify_persistent_db): Likewise.
28651
28652 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28653
28654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28655         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28657         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28659         Moved ...
28660         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28661         ... here.
28662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28663         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28665         Identical file removed.
28666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28667         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28669         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28671         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28673         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28675         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28677         Moved ...
28678         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28679         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28680         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28682         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28684         Moved ...
28685         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28687         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28688         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28689         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28691         Identical file removed.
28692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28693         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28694         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28695         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28697         Moved ...
28698         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28699         ... here.
28700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28701         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28702         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28703         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28704         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28705         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28707         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28709         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28711         Moved ...
28712         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28713         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28714         Moved ...
28715         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28716         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28717         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28719         Moved ...
28720         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28721         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28722         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28723
28724         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28725         folded into ...
28726         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28727         * sysdeps/unix/sysv/linux/s390/Versions
28728         (libpthread: GLIBC_2.19): New version set.
28729         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28730         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28731         (librt: GLIBC_2.3.3): New version set.
28732         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28733         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28734         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28735         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28736         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28737         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28738         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28739         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28740         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28741         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28742         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28743         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28744         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28745         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28746         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28747         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28748         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28749         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28750         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28751         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28752         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28753         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28754         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28755         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28756         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28757         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28758         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28759         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28760         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28761         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28762         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28763         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28764         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28765         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28766         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28767         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28768         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28769         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28770         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28771         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28772         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28773         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28774         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28775         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28776         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28777
28778         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28779         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28780         (__libc_vfork): Define the function under this name.
28781         [!NOT_IN_libc] (__vfork): Make this an alias.
28782         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28783         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28784         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28785         (__libc_vfork): Define the function under this name.
28786         [!NOT_IN_libc] (__vfork): Make this an alias.
28787         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28788         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28789         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28790         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28791         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28792         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28793
28794         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28795         code that was previously under [RESET_PID].
28796         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28797         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28798         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28799
28800         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28801         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28802         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28803         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28804         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28805         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28806         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28807         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28808         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28809         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28810         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28811         Moved ...
28812         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28813         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28814         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28815         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28816         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28817         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28818         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28819         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28820         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28821         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28822         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28823         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28824         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28825         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28826         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28827         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28828         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28829         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28830         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28831         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28832         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28833         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28834         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28835         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28836         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28837         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28838         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28839         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28840         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28841
28842 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28843
28844         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28845         that was previously under [RESET_PID].
28846         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28847
28848 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
28849
28850         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
28851         not undefine and redefine.
28852         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
28853         [O_CLOEXEC]: Make code unconditional.
28854         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
28855         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
28856         <kernel-features.h>.
28857         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
28858         conditional variable definition.
28859         (shm_open) [O_CLOEXEC]: Make code unconditional.
28860         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
28861         code.
28862
28863         * configure.ac (USE_REGPARMS): Don't define here.
28864         * configure: Regenerated.
28865         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
28866         * sysdeps/i386/configure: Regenerated.
28867
28868         * nptl/createthread.c: Don't include kernel-features.h.
28869         * nptl/pthread_cancel.c: Likewise.
28870         * nptl/pthread_condattr_setclock.c: Likewise.
28871         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
28872         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
28873         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
28874         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
28875         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
28876         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
28877         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
28878         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
28879         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
28880         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
28881         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
28882         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
28883         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
28884         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
28885         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
28886         * nscd/gai.c: Likewise.
28887         * nss/nss_db/db-open.c: Likewise.
28888         * sysdeps/generic/ldsodefs.h: Likewise.
28889         * sysdeps/sh/nptl/tls.h: Likewise.
28890         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28891         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
28892         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
28893         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
28894         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
28895         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28896         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
28897         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
28898         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
28899         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
28900         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
28901         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
28902         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
28903         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
28904         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
28905         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
28906         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
28907         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
28908         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
28909         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
28910         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
28911         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
28912         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
28913         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
28914         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
28915         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
28916         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
28917         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
28918         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
28919         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
28920         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
28921         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
28922         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
28923         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28924         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28925         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28926         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28927         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
28928         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
28929         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
28930         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
28931         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
28932         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
28933         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
28934         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
28935         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
28936         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
28937         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
28938         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
28939         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
28940         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
28941         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
28942         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
28943         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28944         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
28945         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
28946         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
28947         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
28948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
28949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
28950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
28951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
28952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
28953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
28954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
28955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
28956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
28957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
28958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
28959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
28960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
28961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
28962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
28963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
28964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
28965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
28966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
28967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
28968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
28969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
28970         * sysdeps/unix/sysv/linux/pread.c: Likewise.
28971         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
28972         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
28973         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
28974         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
28975         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
28976         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
28977         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
28978         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
28979         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
28980         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
28981         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
28982         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
28983         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
28984         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
28985         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
28986         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
28987         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
28988         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
28989         * sysdeps/unix/sysv/linux/system.c: Likewise.
28990         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
28991         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
28992         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28993         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28994         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
28995         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28996         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
28997
28998         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
28999         * configure: Regenerated.
29000         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29001
29002         * configure.ac (base_machine): Do not set specially for particular
29003         machines here.
29004         * configure: Regenerated.
29005         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29006         settings from configure.ac.
29007         * sysdeps/i386/preconfigure: New file.
29008         * sysdeps/s390/preconfigure: Likewise.
29009         * sysdeps/sh/preconfigure: Likewise.
29010         * sysdeps/sparc/preconfigure: Likewise.
29011
29012 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29013
29014         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29015         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29016         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29017         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29018         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29019         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29020         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29021         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29022         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29023         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29024         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29025         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29026         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29027         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29028         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29029         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29030         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29031         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29032         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29033
29034         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29035         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29036         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29037         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29038         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29039         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29040         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29041         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29042         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29043         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29044         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29045         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29046         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29047         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29048         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29049         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29050         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29051         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29052         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29053         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29054         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29055         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29056         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29057         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29058         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29059         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29060         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29061         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29062         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29063         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29064         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29065         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29066         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29067         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29068         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29069         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29070         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29071         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29072
29073         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29074         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29076         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29078         Moved ...
29079         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29080         ... here.
29081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29082         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29083         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29084         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29086         Moved ...
29087         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29088         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29089         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29090         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29091         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29093         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29094         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29095         Moved ...
29096         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29098         Moved ...
29099         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29100         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29101         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29102         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29103         Moved ...
29104         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29105         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29106         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29107         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29108         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29109         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29110         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29111         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29112         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29114         Moved ...
29115         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29116         ... here.
29117         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29118         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29119         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29120         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29121         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29122         Moved ...
29123         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29124         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29125         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29126         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29127         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29128         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29129         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29131         Moved ...
29132         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29134         Moved ...
29135         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29136         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29137         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29138         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29139         Moved ...
29140         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29141         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29142         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29143         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29144         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29145
29146 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29147
29148         * timezone/checktab.awk: Update from tzcode 2014e.
29149         * timezone/private.h: Likewise.
29150         * timezone/tzfile.h: Likewise.
29151         * timezone/zdump.c: Likewise.
29152         * timezone/zic.c: Likewise.
29153
29154         * sysdeps/unix/sysv/linux/kernel-features.h
29155         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29156         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29157         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29158         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29159         Remove conditional code.
29160
29161 2014-06-25  Will Newton  <will.newton@linaro.org>
29162
29163         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29164         (_dl_arm_cap_flags): Add HWCAP2 values.
29165         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29166         (_DL_HWCAP_COUNT): Increase to 37.
29167         (_DL_HWCAP_LAST): New define.
29168         (_DL_HWCAP2_LAST): New define.
29169         (_dl_procinfo): Add support for printing
29170         AT_HWCAP2 entries.
29171         (_dl_string_hwcap): Use _dl_hwcap_string.
29172
29173 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29174
29175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29176
29177 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29178
29179         * README: Do not mention ports directory.
29180
29181         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29182         Remove macro.
29183         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29184         <kernel-features.h>.
29185         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29186         conditional variable definition.
29187         (__futimes): Update comment.
29188         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29189         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29190
29191         [BZ #16560]
29192         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29193         arguments close to 0.
29194         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29195         Likewise.
29196         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29197         Likewise.
29198         * math/auto-libm-test-in: Add more tests of exp10.
29199         * math/auto-libm-test-out: Regenerated.
29200         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29201
29202         * sysdeps/unix/sysv/linux/kernel-features.h
29203         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29204         * sysdeps/unix/sysv/linux/readv.c: Do not include
29205         <kernel-features.h>.
29206         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29207         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29208         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29209         unconditional.
29210         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29211         conditional code.
29212         * sysdeps/unix/sysv/linux/writev.c: Do not include
29213         <kernel-features.h>.
29214         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29215         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29216         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29217         unconditional.
29218         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29219         conditional code.
29220
29221 2014-06-25  Will Newton  <will.newton@linaro.org>
29222
29223         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29224         comment changes throughout the file.  Remove checks
29225         for HAVE_*_H definitions that are not required.
29226         (__gen_tempname): Call abort if an unknown kind value is
29227         passed.
29228
29229 2014-06-25  Andreas Schwab  <schwab@suse.de>
29230
29231         [BZ #17086]
29232         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29233         scalbln, scalblnf, scalblnl in libc.
29234
29235 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29236
29237         [BZ #17086]
29238         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29239         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29240         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29241
29242 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29243
29244         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29245         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29246         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29247         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29248         Update #include.
29249         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29250         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29251         Update #include.
29252         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29253         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29254         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29255         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29256         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29257         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29258         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29259         * sysdeps/x86/bits/semaphore.h: ... here.
29260         * sysdeps/x86/nptl/elide.h: Moved ...
29261         * sysdeps/x86/elide.h: ... here.
29262         * sysdeps/x86_64/nptl/Implies: File removed.
29263         * sysdeps/i386/nptl/Implies: File removed.
29264
29265 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29266
29267         [BZ #16539]
29268         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29269         return the argument for normal arguments with exponent below -64.
29270         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29271         Likewise.
29272         * math/auto-libm-test-in: Add another test of expm1.
29273         * math/auto-libm-test-out: Regenerated.
29274
29275         [BZ #16287]
29276         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29277         calling __erfcl for arguments at least 16.
29278         * math/auto-libm-test-in: Add more tests of erf.
29279         * math/auto-libm-test-out: Regenerated.
29280
29281         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29282         individual architectures.
29283         * sysdeps/unix/sysv/linux/configure: Regenerated.
29284         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29285         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29286         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29287         (ldd_rewrite_script): Define variable.
29288         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29290         file.
29291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29292         generated file.
29293         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29294         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29295         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29296         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29297         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29298         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29299         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29300         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29301
29302 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29303
29304         [BZ #17084]
29305         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29306         Rename member __data.d to __data.__elision_data.
29307
29308 2014-06-24  Wilco  <wdijkstr@arm.com>
29309
29310         * NEWS: Add 16918 to fixed bug list.
29311
29312 2014-06-24  Wilco  <wdijkstr@arm.com>
29313
29314         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29315
29316 2014-06-24  Wilco  <wdijkstr@arm.com>
29317
29318         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29319         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29320         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29321         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29322         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29323         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29324         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29325         Use _FPU_MASK_RM.
29326
29327 2014-06-24  Wilco  <wdijkstr@arm.com>
29328
29329         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29330
29331 2014-06-24  Wilco  <wdijkstr@arm.com>
29332
29333         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29334         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29335         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29336         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29337
29338 2014-06-24  Wilco  <wdijkstr@arm.com>
29339
29340         [BZ #16918]
29341         * sysdeps/arm/feupdateenv.c (feupdateenv):
29342         Rewrite to reduce FPSCR accesses and fix return value.
29343
29344 2014-06-24  Wilco  <wdijkstr@arm.com>
29345
29346         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29347         Optimize to avoid unnecessary FPSCR writes.
29348         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29349         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29350         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29351         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29352
29353 2014-06-24  Wilco  <wdijkstr@arm.com>
29354
29355         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29356         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29357         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29358         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29359         Call libc_fetestexcept_vfp.
29360         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29361         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29362         __SOFTFP__ ifdef so that they can be built for softfp.
29363
29364 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29365
29366         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29367         argument type signed char.
29368
29369         * Makerules (check-abi): Dump diff of symlist if the test
29370         fails.
29371
29372 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29373
29374         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29375         using abort.
29376
29377         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29378         Remove unused variable ST.
29379
29380 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29381
29382         [BZ #16354]
29383         [BZ #17061]
29384         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29385         small arguments before calling __expm1.
29386         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29387         small arguments before calling __expm1f.
29388         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29389         small arguments before calling __expm1l.
29390         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29391         Likewise.
29392         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29393         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29394         spurious underflow for some cosh tests.
29395         * math/auto-libm-test-out: Regenerated.
29396         * sysdeps/i386/fpu/libm-test-ulps: Update.
29397
29398         [BZ #17050]
29399         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29400         (__ieee754_y1): Set errno if return value overflows.
29401         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29402         (__ieee754_y1f): Set errno if return value overflows.
29403         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29404         (__ieee754_y1l): Set errno if return value overflows.
29405         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29406         (__ieee754_y1l): Set errno if return value overflows.
29407         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29408         * math/auto-libm-test-out: Regenerated.
29409
29410         * math/gen-auto-libm-tests.c: Document use of
29411         ignore-zero-inf-sign.
29412         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29413         (input_flags): Add ignore-zero-inf-sign.
29414         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29415         * math/gen-libm-test.pl (generate_testfile): Handle
29416         ignore-zero-inf-sign.
29417         * math/auto-libm-test-in: Mark some cpow tests with
29418         ignore-zero-inf-sign and some with xfail-rounding.
29419         * math/auto-libm-test-out: Regenerated.
29420         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29421         * sysdeps/i386/fpu/libm-test-ulps: Update.
29422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29423
29424         [BZ #16315]
29425         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29426         overflowing or underflowing operations take place with sign of
29427         result.
29428         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29429         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29430         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29431         (__ieee754_pow): Recompute overflowing and underflowing results in
29432         original rounding mode.
29433         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29434         (__powl_helper): Allow negative argument X and scale negated value
29435         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29436         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29437         overflowing or underflowing operations take place with sign of
29438         result.
29439         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29440         Include <math.h>.
29441         * math/auto-libm-test-in: Add more tests of pow.
29442         * math/auto-libm-test-out: Regenerated.
29443         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29444         (pow_tonearest_test_data): Remove.
29445         (pow_test_tonearest): Likewise.
29446         (pow_towardzero_test_data): Likewise.
29447         (pow_test_towardzero): Likewise.
29448         (pow_downward_test_data): Likewise.
29449         (pow_test_downward): Likewise.
29450         (pow_upward_test_data): Likewise.
29451         (pow_test_upward): Likewise.
29452         (main): Don't call removed functions.
29453         * sysdeps/i386/fpu/libm-test-ulps: Update.
29454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29455
29456 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29457
29458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29459         Moved ...
29460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29462         Moved ...
29463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29465         Moved ...
29466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29468         Moved ...
29469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29471         File removed.
29472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29473         File removed.
29474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29475         File removed.
29476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29477         File removed.
29478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29479         File removed.
29480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29481         File removed.
29482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29483         File removed.
29484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29485         File removed.
29486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29487         File removed.
29488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29489         File removed.
29490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29491         File removed.
29492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29493         File removed.
29494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29495         Moved ...
29496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29498         Moved ...
29499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29500         ... here.
29501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29502         Moved ...
29503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29505         Moved ...
29506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29508         Moved ...
29509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29511         Moved ...
29512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29514         Moved ...
29515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29517         Moved ...
29518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29520         Moved ...
29521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29524         ... here.
29525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29526         Moved ...
29527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29529         Moved ...
29530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29531         ... here.
29532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29533         Moved ...
29534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29535         ... here.
29536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29537         Moved ...
29538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29539         ... here.
29540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29541         Moved ...
29542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29544         Moved ...
29545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29551         ... here.
29552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29553         Moved ...
29554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29555         ... here.
29556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29557         Moved ...
29558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29560         Moved ...
29561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29563         Moved ...
29564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29566         Moved ...
29567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29569         Moved ...
29570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29571         ... here.
29572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29573         Moved ...
29574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29576         Moved ...
29577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29579         Moved ...
29580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29582         Moved ...
29583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29587         Moved ...
29588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29590         Moved ...
29591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29593         Moved ...
29594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29595         ... here.
29596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29597         Moved ...
29598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29599         ... here.
29600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29601         Moved ...
29602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29603         ... here.
29604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29605         Moved ...
29606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29608         Moved ...
29609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29611         Moved ...
29612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29614         Moved ...
29615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29616         ... here.
29617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29618         Moved ...
29619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29620         ... here.
29621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29622         Moved ...
29623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29624         ... here.
29625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29626         Moved ...
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29629         Moved ...
29630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29631
29632 2014-06-23  Will Newton  <will.newton@linaro.org>
29633             Wilco  <wdijkstr@arm.com>
29634
29635         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29636         implementation.  Include get-rounding-mode.h.
29637         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29638         [!libc_feholdsetround_noex_ctx]: Define
29639         libc_feholdsetround_noex_ctx.
29640         [!libc_feholdsetround_noexf_ctx]: Define
29641         libc_feholdsetround_noexf_ctx.
29642         [!libc_feholdsetround_noexl_ctx]: Define
29643         libc_feholdsetround_noexl_ctx.
29644         (libc_feholdsetround_ctx): New function.
29645         (libc_feresetround_ctx): New function.
29646         (libc_feholdsetround_noex_ctx): New function.
29647         (libc_feresetround_noex_ctx): New function.
29648
29649 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29650
29651         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29652         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29653         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29654         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29655         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29656         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29657
29658         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29659         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29660         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29661         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29662         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29663         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29664         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29665         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29666         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29667         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29668         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29669         Moved ...
29670         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29671         ... here.
29672         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29673         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29674         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29675         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29676         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29677         Moved ...
29678         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29679         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29680         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29681         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29682         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29683         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29684         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29685         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29686         Moved ...
29687         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29688         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29689         Moved ...
29690         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29691         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29692         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29693         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29694         Moved ...
29695         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29696         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29697         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29698         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29699         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29700         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29701         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29702         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29703         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29704         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29705         Moved ...
29706         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29707         ... here.
29708         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29709         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29710         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29711         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29712         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29713         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29714         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29715         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29716         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29717         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29718         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29719         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29720         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29721         Moved ...
29722         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29723         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29724         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29725         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29726         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29727         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29728         Moved ...
29729         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29730         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29731         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29732         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29733         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29734
29735         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29736         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29737         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29738         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29739         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29740         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29741         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29742         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29743         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29744         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29745         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29746         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29747         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29748         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29749         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29750         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29751         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29752         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29753         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29754         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29755         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29756         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29757         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29758         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29759         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29760         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29761         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29762         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29763
29764 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29765
29766         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29767         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29768         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29769         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29770         (IPV6_PMTUDISC_INTERFACE): Likewise.
29771         (IPV6_PMTUDISC_OMIT): Likewise.
29772
29773 2014-06-23  Andreas Schwab  <schwab@suse.de>
29774
29775         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29776         Remove unused errout label.
29777
29778 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29779
29780         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29781         macro: hardware supports Vector Crypto instructions.
29782
29783 2014-06-23  Will Newton  <will.newton@linaro.org>
29784
29785         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29786         rather than __builtin_expect.
29787
29788         * elf/dl-lookup.c (undefined_msg): Remove variable.
29789         (_dl_lookup_symbol_x): Replace undefined_msg with string
29790         literal.
29791
29792         * elf/dl-lookup.c (do_lookup_unique): New function.
29793         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29794         to a separate function.
29795
29796 2014-06-23  Andreas Schwab  <schwab@suse.de>
29797
29798         [BZ #17079]
29799         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29800         before reading the next line.
29801
29802 2014-06-23  Will Newton  <will.newton@linaro.org>
29803
29804         * test-skeleton.c (signal_handler): Use printf and %m
29805         rather than perror.  Use printf rather than fprintf to
29806         stderr.  Use puts rather than fputs to stderr.
29807         (main): Likewise.
29808
29809 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29810
29811         * nscd/nscd.c (thread_info_t): Remove typedef.
29812         (thread_info): Remove variable.
29813
29814 2014-06-21  Allan McRae  <allan@archlinux.org>
29815
29816         * NEWS: Mention CVE-2014-4043.
29817
29818 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29819
29820         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29821         * nptl/smp.h: ... here.
29822
29823         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29824
29825         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29826         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29827         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29828         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29829
29830         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29831         * nptl/stack-aliasing.h: New file.
29832         * sysdeps/i386/i686/stack-aliasing.h: New file.
29833         * sysdeps/i386/i686/nptl/Makefile: File removed.
29834         * sysdeps/x86_64/stack-aliasing.h: New file.
29835         * sysdeps/x86_64/nptl/Makefile
29836         (CFLAGS-pthread_create.c): Variable removed.
29837
29838         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29839         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29840         old file.
29841         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29842         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29843         old file.
29844
29845 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29846
29847         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29848         (__ASSUME_SIGFRAME_V2): Remove macro.
29849         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
29850         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
29851         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
29852         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
29853         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
29854         Declare as function.  Remove conditional macro definitions.
29855         (__default_rt_sa_restorer): Likewise.
29856         (__default_sa_restorer_v1): Remove declaration.
29857         (__default_sa_restorer_v2): Likewise.
29858         (__default_rt_sa_restorer_v1): Likewise.
29859         (__default_rt_sa_restorer_v2): Likewise.
29860         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
29861         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
29862         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
29863
29864 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29865
29866         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
29867         (libpthread-routines): Add sysdep.
29868         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
29869         * sysdeps/unix/sysv/linux/sparc/Versions
29870         (libpthread: GLIBC_2.3.3): New version set.
29871         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
29872         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
29873         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
29874         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
29875         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
29876         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
29877         Moved ...
29878         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
29879         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
29880         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
29881         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
29882         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
29883         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
29884         * sysdeps/sparc/nptl/sem_init.c: ... here.
29885         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
29886         * sysdeps/sparc/nptl/sem_post.c: ... here.
29887         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
29888         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
29889         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
29890         * sysdeps/sparc/nptl/sem_wait.c: ... here.
29891         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
29892         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
29893         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
29894         (libpthread-routines): Add cpu_relax.
29895         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
29896         File removed.
29897         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
29898         (librt: GLIBC_2.3.3): New version set.
29899         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
29900         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
29901         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
29902         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
29903         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
29904         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
29905         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
29906         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
29907         Moved ...
29908         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
29909         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
29910         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
29911         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
29912         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
29913         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
29914         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
29915         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
29916         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
29917         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
29918         Moved ...
29919         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
29920         Update #include.
29921         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
29922         Moved ...
29923         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
29924         Update #include.
29925         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
29926         Moved ...
29927         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
29928         Update #include.
29929         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
29930         Moved ...
29931         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
29932         Update #include.
29933         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
29934         Moved ...
29935         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
29936         Update #include.
29937         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
29938         Moved ...
29939         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
29940         Update #include.
29941         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
29942         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
29943         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
29944         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
29945         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
29946         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
29947         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
29948         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
29949         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
29950         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
29951         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
29952         Moved ...
29953         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
29954         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
29955         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
29956         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
29957         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
29958
29959 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
29960
29961         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
29962         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
29963         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
29964         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
29965         * nscd/nscd.c: Likewise.
29966         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
29967         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
29968         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
29969         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
29970
29971         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
29972         <kernel-features.h>.
29973         (init_mq_netlink): Remove conditional have_sock_cloexec
29974         definitions.  Remove code conditional on have_sock_cloexec < 0.
29975         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
29976         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
29977         * sysdeps/unix/sysv/linux/opensock.c: Do not include
29978         <kernel-features.h>.
29979         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
29980         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
29981
29982 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
29983
29984         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
29985         Add tests for memset_chk and memset.
29986
29987         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
29988         with AVX2_Usable.
29989
29990 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
29991
29992         [BZ #16046]
29993         * elf/tst-dl-iter-static.c: New file.
29994         * elf/Makefile (tests-static): Add tst-dl-iter-static.
29995
29996         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
29997         error.
29998
29999 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30000
30001         * sysdeps/unix/sysv/linux/kernel-features.h
30002         (__ASSUME_F_GETOWN_EX): Remove macro.
30003         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30004         <kernel-features.h>.
30005         (miss_F_GETOWN_EX): Remove variable or macro.
30006         (do_fcntl): Do not check miss_F_GETOWN_EX.
30007         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30008
30009         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30010         Remove macro.
30011         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30012         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30013         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30014
30015         * sysdeps/unix/sysv/linux/kernel-features.h
30016         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30017         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30018         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30019         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30020
30021 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30022
30023         [BZ #17075]
30024         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30025         Fix calculation of the symbol's value.
30026         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30027         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30028         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30029         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30030         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30031         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30032         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30033         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30034         (modules-names): Add `tst-armtlsdescmod',
30035         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30036         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30037         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30038         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30039         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30040         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30041         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30042         ($(objpfx)tst-armtlsdescloc): New dependency.
30043         ($(objpfx)tst-armtlsdescextnow): Likewise.
30044         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30045         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30046         TLS scheme support.
30047         * sysdeps/arm/configure: Regenerate.
30048
30049 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30050
30051         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30052         (__atfct_seterrno_2): Likewise.
30053         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30054         <kernel-features.h>.
30055         (__ASSUME_ATFCTS): Do not undefine and redefine.
30056         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30057         (__have_atfcts): Remove conditional definition.
30058         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30059         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30060         unreachable if [__ASSUME_ATFCTS].
30061         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30062         not undefine and redefine.
30063         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30064         <kernel-features.h>.
30065         (faccessat) [__NR_faccessat]: Make code unconditional.
30066         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30067         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30068         <kernel-features.h>.
30069         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30070         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30071         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30072         <kernel-features.h>.
30073         (fchownat) [__NR_fchownat]: Make code unconditional.
30074         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30075         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30076         <kernel-features.h>.
30077         (futimesat) [__NR_futimesat]: Make code unconditional.
30078         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30079         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30080         <kernel-features.h>.
30081         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30082         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30083         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30084         <kernel-features.h>.
30085         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30086         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30087         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30088         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30089         <kernel-features.h>.
30090         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30091         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30092         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30093         <kernel-features.h>.
30094         (linkat) [__NR_linkat]: Make code unconditional.
30095         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30096         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30097         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30098         <kernel-features.h>.
30099         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30100         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30101         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30102         <kernel-features.h>.
30103         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30104         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30105         * sysdeps/unix/sysv/linux/openat.c: Do not include
30106         <kernel-features.h>.
30107         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30108         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30109         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30110         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30111         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30112         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30113         <kernel-features.h>.
30114         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30115         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30116         result of INLINE_SYSCALL directly, not via int variable.
30117         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30118         <kernel-features.h>.
30119         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30120         (renameat) [__NR_renameat]: Make code unconditional.
30121         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30122         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30123         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30124         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30125         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30126         (__ASSUME_ATFCTS): Do not undefine and redefine.
30127         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30128         <kernel-features.h>.
30129         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30130         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30131         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30132         <kernel-features.h>.
30133         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30134         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30135         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30136         (__ASSUME_ATFCTS): Do not undefine and redefine.
30137         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30138         <kernel-features.h>.
30139         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30140         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30141         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30142         <kernel-features.h>.
30143         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30144         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30145
30146 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30147
30148         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30149
30150 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30151
30152         [BZ #17069]
30153         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30154         constructed tree before returning error.
30155         * posix/bug-regexp36.c: Expand test case.
30156
30157 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30158
30159         [BZ #6803]
30160         * math/libm-test.inc (scalbln_test_date):
30161         Add errno expectations.
30162         * math/w_scalblnf.c: New File.
30163         Add wrapper which checks for setting errno to ERANGE.
30164         Add weak_alias for corresponding scalbln function.
30165         * math/w_scalbln.c: Likewise.
30166         * math/w_scalblnl.c: Likewise.
30167         * math/Makefile (libm-calls): Add w_scalbln.
30168         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30169         Remove weak_alias for corresponding scalbln function.
30170         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30171         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30172         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30173         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30174         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30175         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30176         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30177         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30178         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30179         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30180         Remove long_double_symbol for scalblnl function in libm, libc.
30181         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30182         Add wrapper which checks for setting errno to ERANGE.
30183         Add long_double_symbol for scalblnl function in libm, libc.
30184         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30185         Remove long_double_symbol for scalblnl in libm.
30186         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30187         Add wrapper which checks for setting errno to ERANGE.
30188         Add long_double_symbol for scalblnl function in libm.
30189         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30190         Do not use wrapper because of own implementation.
30191
30192 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30193
30194         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30195         3 bytes for __pad1 for x32.
30196         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30197
30198 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30199             H.J. Lu  <hongjiu.lu@intel.com>
30200
30201         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30202         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30203         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30204         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30205         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30206
30207 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30208
30209         [BZ #17069]
30210         * posix/regcomp.c (parse_expression): Deallocate partially
30211         constructed tree before returning error.
30212         * posix/Makefile.c (tests): Add bug-regex36.
30213         (generated): Add bug-regex36.mtrace.
30214         (tests-special): Add $(objpfx)bug-regex36-mem.out
30215         (bug-regex36-ENV): New variable.
30216         ($(objpfx)bug-regex36-mem.out): New rule.
30217         * posix/bug-regex36.c: New file.
30218
30219 2014-06-19  Will Newton  <will.newton@linaro.org>
30220
30221         * malloc/malloc.c (systrim): If extra is zero then return
30222         early.
30223
30224 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30225
30226         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30227
30228 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30229
30230         * sysdeps/aarch64/strchr.S: New file.
30231
30232 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30233
30234         [BZ #17022]
30235         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30236         from arguments -2 or below.
30237         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30238         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30239
30240 2014-06-18  Andreas Schwab  <schwab@suse.de>
30241
30242         [BZ #17062]
30243         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30244         of a bracket expr not to run off the end of the string.
30245         * posix/Makefile (tests): Add tst-fnmatch3.
30246         * posix/tst-fnmatch3.c: New file.
30247
30248 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30249
30250         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30251         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30252         [$(cross-compiling) = no]: Likewise.
30253         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30254         [$(cross-compiling) = no]: Likewise.
30255
30256 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30257
30258         [BZ #17031]
30259         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30260         double, adjusted for any remainder from the high double.
30261         * math/libm-test.inc (nearbyint): Add tests.
30262         (rint): Likewise.
30263
30264 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30265
30266         * nptl/sysdeps/powerpc/Makefile: Moved ...
30267         * sysdeps/powerpc/nptl/Makefile: ... here.
30268         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30269         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30270         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30271         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30272         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30273         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30274         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30275         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30276         * nptl/sysdeps/powerpc/tls.h: Moved ...
30277         * sysdeps/powerpc/nptl/tls.h: ... here.
30278
30279 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30280
30281         [BZ #16681]
30282         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30283         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30284         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30285         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30286         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30287         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30288         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30289         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30290         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30291
30292 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30293
30294         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30295
30296 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30297
30298         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30299         defined operator.
30300
30301         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30302         $TIMEOUTFACTOR.
30303
30304 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30305
30306         [BZ #17058]
30307         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30308         non-executed part of the test.
30309
30310 2014-06-16  Andreas Schwab  <schwab@suse.de>
30311
30312         * string/bits/string2.h (strdup, strndup): Update feature guard.
30313
30314 2014-06-14  David S. Miller  <davem@davemloft.net>
30315
30316         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30317
30318 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30319
30320         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30321         that was previously under [RESET_PID].
30322         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30323
30324         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30325         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30326         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30327         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30328         (__libc_vfork): New strong alias.
30329         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30330
30331 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30332
30333         * sysdeps/generic/elide.h: New file.
30334
30335 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30336
30337         * Makefile (installed-headers): Adjust path of pthread.h header.
30338
30339 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30340
30341         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30342         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30343         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30344         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30345
30346         * nptl/sysdeps/s390/Makefile: Moved ...
30347         * sysdeps/s390/nptl/Makefile: ... here.
30348         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30349         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30350         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30351         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30352         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30353         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30354         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30355         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30356         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30357         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30358         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30359         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30360         * nptl/sysdeps/s390/tls.h: Moved ...
30361         * sysdeps/s390/nptl/tls.h: ... here.
30362
30363         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30364         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30365
30366 2014-06-13  David S. Miller  <davem@davemloft.net>
30367
30368         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30369         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30370         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30371         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30372         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30373         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30374         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30375         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30376         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30377         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30378         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30379         Remove RESET_PID cpp guards.
30380         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30381         Remove RESET_PID cpp guards.
30382         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30383
30384 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30385
30386         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30387         __sp to uintptr_t.
30388
30389 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30390
30391         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30392         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30393         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30394         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30395         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30396         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30397         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30398         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30399         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30400         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30401         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30402         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30403         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30404         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30405         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30406         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30407         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30408         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30409         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30410         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30411
30412         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30413         (pthread_rwlock_rdlock): Add elision.
30414         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30415         (pthread_rwlock_wrlock): Add elision.
30416         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30417         (pthread_rwlock_trywrlock): Add elision.
30418         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30419         (pthread_rwlock_tryrdlock): Add elision.
30420         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30421         (pthread_rwlock_tryrdlock): Add elision unlock.
30422         * nptl/sysdeps/pthread/pthread.h:
30423         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30424         (PTHREAD_RWLOCK_INITIALIZER,
30425         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30426         Handle new elision field.
30427         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30428         * sysdeps/arm/nptl/bits/pthreadtypes.h
30429         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30430         * sysdeps/sh/nptl/bits/pthreadtypes.h
30431         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30432         * sysdeps/tile/nptl/bits/pthreadtypes.h
30433         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30434         * sysdeps/a/nptl/bits/pthreadtypes.h
30435         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30436         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30437         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30438         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30439         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30440         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30441         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30442         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30443         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30444         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30445         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30446         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30447         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30448         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30449         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30450         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30451         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30452         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30453         (elision_init): Set try_xbegin to zero when no RTM.
30454         * sysdeps/x86/nptl/bits/pthreadtypes.h
30455         (pthread_rwlock_t): Change __pad1 to __rwelision.
30456         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30457
30458 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30459
30460         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30461         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30462         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30463         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30464
30465 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30466
30467         [BZ #16996]
30468         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30469         that the cached result has been set before returning it.
30470
30471 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30472
30473         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30474         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30475         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30476         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30477         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30478         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30479
30480         * nptl/sysdeps/sparc/Makefile: Moved ...
30481         * sysdeps/sparc/nptl/Makefile: ... here.
30482         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30483         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30484         * nptl/sysdeps/sparc/tls.h: Moved ...
30485         * sysdeps/sparc/nptl/tls.h: ... here.
30486         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30487         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30488         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30489         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30490         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30491         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30492         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30493         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30494         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30495         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30496         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30497         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30498         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30499         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30500         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30501         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30502         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30503         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30504         Update #include.
30505         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30506         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30507         Update #include.
30508         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30509         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30510         Update #include.
30511         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30512         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30513         Update #include.
30514
30515         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30516
30517         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30518         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30519
30520         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30521         (struct list_links): Type removed.
30522         (struct thread_node, struct timer_node): Replace struct list_links
30523         with struct list_head.
30524         (list_unlink_ip): Likewise.
30525         * sysdeps/pthread/timer_routines.c
30526         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30527         (list_append, list_insbefore): Likewise.
30528         (list_init): Function removed.
30529         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30530         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30531         * sysdeps/pthread/Makefile: ... here, new file.
30532
30533         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30534         * sysdeps/nptl/Implies: ... here.
30535         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30536         * nptl/sysdeps/pthread/list.h: Moved ...
30537         * include/list.h: ... here.
30538         * nptl/sysdeps/pthread/createthread.c: Moved ...
30539         * nptl/createthread.c: ... here.
30540         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30541         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30542         * nptl/pt-longjmp.c: ... here.
30543         * nptl/sysdeps/pthread/Makefile: Moved ...
30544         * sysdeps/nptl/Makefile: ... here.
30545         * nptl/sysdeps/pthread/Subdirs: Moved ...
30546         * sysdeps/nptl/Subdirs: ... here.
30547         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30548         * sysdeps/nptl/aio_misc.h: ... here.
30549         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30550         * sysdeps/nptl/bits/libc-lock.h: ... here.
30551         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30552         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30553         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30554         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30555         * nptl/sysdeps/pthread/configure: Moved ...
30556         * sysdeps/nptl/configure: ... here.
30557         * nptl/sysdeps/pthread/configure.ac: Moved ...
30558         * sysdeps/nptl/configure.ac: ... here.
30559         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30560         * sysdeps/nptl/gai_misc.h: ... here.
30561         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30562         * sysdeps/nptl/librt-cancellation.c: ... here.
30563         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30564         * sysdeps/nptl/malloc-machine.h: ... here.
30565         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30566         * sysdeps/nptl/pthread-functions.h: ... here.
30567         * nptl/sysdeps/pthread/pthread.h: Moved ...
30568         * sysdeps/nptl/pthread.h: ... here.
30569         * nptl/sysdeps/pthread/setxid.h: Moved ...
30570         * sysdeps/nptl/setxid.h: ... here.
30571         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30572         * sysdeps/nptl/sigfillset.c: ... here.
30573         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30574         * sysdeps/nptl/tcb-offsets.h: ... here.
30575         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30576         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30577         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30578         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30579         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30580         * sysdeps/pthread/allocalim.h: ... here.
30581         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30582         * sysdeps/pthread/bits/sigthread.h: ... here.
30583         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30584         * sysdeps/pthread/flockfile.c: ... here.
30585         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30586         * sysdeps/pthread/ftrylockfile.c: ... here.
30587         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30588         * sysdeps/pthread/funlockfile.c: ... here.
30589         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30590         * sysdeps/pthread/posix-timer.h: ... here.
30591         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30592         * sysdeps/pthread/timer_create.c: ... here.
30593         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30594         * sysdeps/pthread/timer_delete.c: ... here.
30595         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30596         * sysdeps/pthread/timer_getoverr.c: ... here.
30597         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30598         * sysdeps/pthread/timer_gettime.c: ... here.
30599         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30600         * sysdeps/pthread/timer_routines.c: ... here.
30601         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30602         * sysdeps/pthread/timer_settime.c: ... here.
30603         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30604         * sysdeps/pthread/tst-timer.c: ... here.
30605         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30606         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30607
30608         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30609         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30610
30611         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30612         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30613         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30614         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30615         Update #include target.
30616         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30617         * sysdeps/i386/i686/nptl/Makefile: ... here.
30618         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30619         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30620         Update #include target.
30621         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30622         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30623         * nptl/sysdeps/i386/Makefile: Moved ...
30624         * sysdeps/i386/nptl/Makefile: ... here.
30625         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30626         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30627         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30628         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30629         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30630         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30631         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30632         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30633         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30634         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30635         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30636         * nptl/sysdeps/i386/tls.h: Moved ...
30637         * sysdeps/i386/nptl/tls.h: ... here.
30638
30639         * sysdeps/sh/Makefile [$(subdir) = csu]
30640         (gen-as-const-headers): Add tcb-offsets.sym.
30641         * nptl/sysdeps/sh/Makefile: File removed.
30642         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30643         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30644         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30645         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30646         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30647         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30648         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30649         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30650         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30651         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30652         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30653         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30654         * nptl/sysdeps/sh/tls.h: Moved ...
30655         * sysdeps/sh/nptl/tls.h: ... here.
30656         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30657         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30658         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30659         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30660         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30661         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30662         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30663         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30664         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30665         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30666         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30667         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30668         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30669         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30670         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30671         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30672         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30673         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30674         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30675         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30676         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30677         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30678         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30679         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30680         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30681         Moved ...
30682         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30683         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30684         Moved ...
30685         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30686         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30687         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30688         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30689         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30690         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30691         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30692         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30693         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30694         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30695         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30696         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30697         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30698         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30699         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30700         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30701         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30702         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30703         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30704
30705 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30706
30707         * posix/spawn_faction_addopen.c: Include string.h.
30708
30709 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30710
30711         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30712         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30713         * nptl/sysdeps/x86_64/Makefile: Moved ...
30714         * sysdeps/x86_64/nptl/Makefile: ... here.
30715         * nptl/sysdeps/x86_64/configure: Moved ...
30716         * sysdeps/x86_64/nptl/configure: ... here.
30717         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30718         * sysdeps/x86_64/nptl/configure.ac: ... here.
30719         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30720         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30721         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30722         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30723         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30724         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30725         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30726         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30727         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30728         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30729         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30730         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30731         * nptl/sysdeps/x86_64/tls.h: Moved ...
30732         * sysdeps/x86_64/nptl/tls.h: ... here.
30733         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30734         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30735         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30736         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30737
30738         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30739
30740 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30741
30742         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30743
30744 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30745
30746         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30747         type.
30748         [POSIX] (off_t): Likewise.
30749         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30750         [POSIX] (S_ISBLK): Require macro.
30751         [POSIX] (S_ISCHR): Likewise.
30752         [POSIX] (S_ISDIR): Likewise.
30753         [POSIX] (S_ISFIFO): Likewise.
30754         [POSIX] (S_ISREG): Likewise.
30755         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30756         optional-macro.
30757         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30758         type.
30759         [POSIX] (time_t): Likewise.
30760         [POSIX] (timer_t): Likewise.
30761
30762 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30763
30764         [BZ #17048]
30765         * posix/spawn_int.h (struct __spawn_action): Make the path string
30766         non-const to support deallocation.
30767         * posix/spawn_faction_addopen.c
30768         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30769         * posix/spawn_faction_destroy.c
30770         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30771         path in all spawn_do_open actions.
30772         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30773         posix_spawn_file_actions_addopen.
30774
30775 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30776
30777         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30778         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30779         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30780         conditional code always true.
30781         (__libc_vfork): New alias.
30782
30783 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30784
30785         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30786         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30787
30788         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30789
30790         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30791         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30792
30793         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30794         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30795
30796         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30797         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30798
30799 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30800
30801         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30802         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30803         multiarch strcmp for PPC64.
30804         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30805         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30806         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30807         multiarch optimizations.
30808         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30809         (__libc_ifunc_impl_list): Likewise.
30810
30811 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30812
30813         * benchtests/scripts/validate_benchout.py: New script.
30814         * benchtests/Makefile (bench-func): Call it.
30815         * benchtests/scripts/benchout.schema.json: New file.
30816
30817 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30818
30819         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30820         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30821         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30822         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30823         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30824         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30825         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30826         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30827         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30828         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30829         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30830         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30831         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30832         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30833         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30834         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30835         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30836         Moved ...
30837         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30838         ... here.
30839         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30840         Moved ...
30841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30842         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30843         Moved ...
30844         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30845         ... here.
30846         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30847         Moved ...
30848         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
30849         ... here.
30850         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
30851         Moved ...
30852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
30853         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
30854         Moved ...
30855         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
30856         ... here.
30857         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
30858         Moved ...
30859         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
30860         ... here.
30861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
30862         Moved ...
30863         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
30864         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
30865         Moved ...
30866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
30867         ... here.
30868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
30869         Moved ...
30870         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
30871         ... here.
30872         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
30873         Moved ...
30874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
30875         ... here.
30876         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
30877         Moved ...
30878         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
30879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
30880         Moved ...
30881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
30882         ... here.
30883         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
30884         Moved ...
30885         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
30886         ... here.
30887         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
30888         Moved ...
30889         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
30890         ... here.
30891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
30892         Moved ...
30893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
30894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
30895         Moved ...
30896         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
30897         ... here.
30898         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
30899         Moved ...
30900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
30901         ... here.
30902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
30903         Moved ...
30904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
30905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
30906         Moved ...
30907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
30908         ... here.
30909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
30910         Moved ...
30911         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
30912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
30913         Moved ...
30914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
30915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
30916         Moved ...
30917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
30918         ... here.
30919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
30920         Moved ...
30921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
30922         ... here.
30923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
30924         Moved ...
30925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
30926         ... here.
30927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
30928         Moved ...
30929         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
30930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
30931         Moved ...
30932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
30933         ... here.
30934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
30935         Moved ...
30936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
30937         ... here.
30938         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
30939         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
30940         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
30941         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
30942         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
30943         Moved ...
30944         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
30945         ... here.
30946         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
30947         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
30948         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
30949         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
30950         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
30951         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
30952         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
30953         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
30954         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
30955         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
30956         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
30957         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
30958         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
30959         Moved ...
30960         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
30961         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
30962         Moved ...
30963         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
30964         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
30965         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
30966         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
30967         Moved ...
30968         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
30969         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
30970         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
30971         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
30972         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
30973         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
30974         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
30975
30976 2014-06-10  Wilco  <wdijkstr@arm.com>
30977
30978         * math/test-fenv-return.c: New file.
30979         * math/Makefile: Add new test test-fenv-return.
30980
30981 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
30982
30983         [BZ #17042]
30984         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
30985         when x - 1 is zero.
30986         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
30987         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
30988         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
30989         0.0L for an argument of 1.0L.
30990         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
30991         Likewise.
30992         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
30993         value when x - 1 is zero.
30994         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
30995         * sysdeps/i386/fpu/libm-test-ulps: Update.
30996         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30997
30998 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
30999
31000         [BZ #15119]
31001         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31002
31003 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31004
31005         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31006         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31007
31008 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31009
31010         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31011         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31012
31013         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31014         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31015
31016         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31017         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31018
31019         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31020         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31021
31022         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31023         if not already defined.
31024         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31025         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31026         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31027         (TLS_INIT_TP): Use it.
31028         (TLS_DEFINE_INIT_TP): New macro.
31029         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31030
31031 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31032
31033         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31034         constant.
31035         [POSIX] (IXANY): Likewise.
31036         [POSIX] (OLCUC): Likewise.
31037         [POSIX || POSIX2008] (CBAUD): Do not allow.
31038         [POSIX || POSIX2008] (DEFECHO): Likewise.
31039         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31040         [POSIX || POSIX2008] (ECHOKE): Likewise.
31041         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31042         [POSIX || POSIX2008] (EXTA): Likewise.
31043         [POSIX || POSIX2008] (EXTB): Likewise.
31044         [POSIX || POSIX2008] (FLUSHO): Likewise.
31045         [POSIX || POSIX2008] (LOBLK): Likewise.
31046         [POSIX || POSIX2008] (PENDIN): Likewise.
31047         [POSIX || POSIX2008] (SWTCH): Likewise.
31048         [POSIX || POSIX2008] (VDISCARD): Likewise.
31049         [POSIX || POSIX2008] (VDSUSP): Likewise.
31050         [POSIX || POSIX2008] (VLNEXT): Likewise.
31051         [POSIX || POSIX2008] (VREPRINT): Likewise.
31052         [POSIX || POSIX2008] (VSTATUS): Likewise.
31053         [POSIX || POSIX2008] (VWERASE): Likewise.
31054         (B*): Change to B[0123456789]*.
31055         * conform/data/time.h-data [POSIX || UNIX98]
31056         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31057         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31058         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31059         [POSIX] (tm_*): Do not allow.
31060
31061 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31062
31063         * Makefile (install): Don't set LANGUAGE.
31064         * Makefile.in (install): Likewise.
31065         * assert/Makefile (test-assert-ENV): Remove variable.
31066         (test-assert-perr-ENV): Likewise.
31067         * elf/Makefile (neededtest4-ENV): Likewise.
31068         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31069         [$(cross-compiling) = no]: Don't set LANGUAGE.
31070         * io/ftwtest-sh (LANG): Remove variable.
31071         * libio/Makefile (tst-widetext-ENV): Likewise.
31072         * manual/install.texi (Running make install): Don't refer to
31073         environment settings for make install.
31074         * INSTALL: Regenerated.
31075         * nptl/tst-tls6.sh: Don't set LANG.
31076         * posix/globtest.sh (LANG): Remove variable.
31077         * string/Makefile (tester-ENV): Likewise.
31078         (inl-tester-ENV): Likewise.
31079         (noinl-tester-ENV): Likewise.
31080         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31081         [$(cross-compiling) = no]: Don't set LANGUAGE.
31082         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31083         without explicit environment settings.
31084
31085 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31086
31087         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31088         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31089         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31090         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31091
31092 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31093
31094         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31095         other files in the crypt directory.
31096         * crypt/crypt.c: Remove duplicate includes.
31097         * crypt/crypt-entry.c: Likewise.
31098         * crypt/crypt_util.c: Likewise.
31099
31100 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31101
31102         * Makeconfig (run-program-env): New variable.
31103         (run-program-prefix-before-env): Likewise.
31104         (run-program-prefix-after-env): Likewise.
31105         (run-program-prefix): Define in terms of new variables.
31106         (built-program-cmd-before-env): New variable.
31107         (built-program-cmd-after-env): Likewise.
31108         (built-program-cmd): Define in terms of new variables.
31109         (test-program-prefix-before-env): New variable.
31110         (test-program-prefix-after-env): Likewise.
31111         (test-program-prefix): Define in terms of new variables.
31112         (test-program-cmd-before-env): New variable.
31113         (test-program-cmd-after-env): Likewise.
31114         (test-program-cmd): Define in terms of new variables.
31115         * Rules (make-test-out): Use $(run-program-env).
31116         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31117         (help): Do not mention environment variables.  Mention
31118         --timeoutfactor option.
31119         (timeoutfactor): New variable.
31120         (blacklist_exports): Remove function.
31121         (exports): Remove variable.
31122         (command): Do not include ${exports}.
31123         * manual/install.texi (Configuring and compiling): Do not mention
31124         test wrappers preserving environment variables.  Mention that last
31125         assignment to a variable must take precedence.
31126         * INSTALL: Regenerated.
31127         * benchtests/Makefile (run-bench): Use $(run-program-env).
31128         * catgets/Makefile ($(objpfx)test1.cat): Use
31129         $(built-program-cmd-before-env), $(run-program-env) and
31130         $(built-program-cmd-after-env).
31131         ($(objpfx)test2.cat): Do not specify environment variables
31132         explicitly.
31133         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31134         $(run-program-env) and $(built-program-cmd-after-env).
31135         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31136         $(run-program-env) and $(test-program-cmd-after-env).
31137         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31138         explicitly.
31139         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31140         run_program_env and test_program_cmd_after_env arguments.
31141         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31142         * elf/tst-pathopt.sh: Use run_program_env argument.
31143         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31144         $(test-wrapper-env) and $(run-program-env).
31145         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31146         run_program_env arguments.
31147         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31148         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31149         $(test-program-prefix-before-env), $(run-program-env) and
31150         $(test-program-prefix-after-env).
31151         ($(objpfx)tst-gettext2.out): Likewise.
31152         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31153         run_program_env and test_program_prefix_after_env arguments.
31154         * intl/tst-gettext2.sh: Likewise.
31155         * intl/tst-gettext4.sh: Do not set environment variables
31156         explicitly.
31157         * intl/tst-gettext6.sh: Likewise.
31158         * intl/tst-translit.sh: Likewise.
31159         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31160         $(test-program-prefix-before-env), $(run-program-env) and
31161         $(test-program-prefix-after-env).
31162         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31163         run_program_env and test_program_prefix_after_env arguments.
31164         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31165         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31166         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31167         explicitly with each use of ${test_wrapper_env}.
31168         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31169         $(test-program-prefix-before-env), $(run-program-env) and
31170         $(test-program-prefix-after-env).
31171         * posix/tst-getconf.sh: Do not set environment variables
31172         explicitly.
31173         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31174         run_program_env and test_program_prefix_after_env arguments.
31175         * stdio-common/tst-printf.sh: Do not set environment variables
31176         explicitly.
31177         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31178         $(test-program-prefix-before-env), $(run-program-env) and
31179         $(test-program-prefix-after-env).
31180         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31181         run_program_env and test_program_prefix_after_env arguments.
31182         Split $test calls into $test_pre and $test.
31183         * timezone/Makefile (build-testdata): Use
31184         $(built-program-cmd-before-env), $(run-program-env) and
31185         $(built-program-cmd-after-env).
31186
31187 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31188
31189         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31190         strlen for non SHARED builds.
31191
31192 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31193
31194         * nptl/allocatestack.c (check_list): Inlined function...
31195         (__reclaim_stacks): ... here.
31196
31197 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31198
31199         [BZ #15698]
31200         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31201         memory overrun.
31202
31203 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31204
31205         * Rules (make-test-out): Include
31206         LOCPATH=$(common-objpfx)localedata in default environment.
31207         * debug/Makefile (tst-chk1-ENV): Remove variable.
31208         (tst-chk2-ENV): Likewise.
31209         (tst-chk3-ENV): Likewise.
31210         (tst-chk4-ENV): Likewise.
31211         (tst-chk5-ENV): Likewise.
31212         (tst-chk6-ENV): Likewise.
31213         (tst-lfschk1-ENV): Likewise.
31214         (tst-lfschk2-ENV): Likewise.
31215         (tst-lfschk3-ENV): Likewise.
31216         (tst-lfschk4-ENV): Likewise.
31217         (tst-lfschk5-ENV): Likewise.
31218         (tst-lfschk6-ENV): Likewise.
31219         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31220         (tst-iconv7-ENV): Likewise.
31221         * intl/Makefile (LOCPATH-ENV): Likewise.
31222         (tst-codeset-ENV): Likewise.
31223         (tst-gettext3-ENV): Likewise.
31224         (tst-gettext5-ENV): Likewise.
31225         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31226         (tst-fopenloc-ENV): Likewise.
31227         (tst-fgetws-ENV): Remove variable.
31228         (tst-ungetwc1-ENV): Likewise.
31229         (tst-ungetwc2-ENV): Likewise.
31230         (bug-ungetwc2-ENV): Likewise.
31231         (tst-swscanf-ENV): Likewise.
31232         (bug-ftell-ENV): Likewise.
31233         (tst-fgetwc-ENV): Likewise.
31234         (tst-fseek-ENV): Likewise.
31235         (tst-ftell-partial-wide-ENV): Likewise.
31236         (tst-ftell-active-handler-ENV): Likewise.
31237         (tst-ftell-append-ENV): Likewise.
31238         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31239         (tst-regexloc-ENV): Likewise.
31240         (bug-regex1-ENV): Likewise.
31241         (tst-regex-ENV): Likewise.
31242         (tst-regex2-ENV): Likewise.
31243         (bug-regex5-ENV): Likewise.
31244         (bug-regex6-ENV): Likewise.
31245         (bug-regex17-ENV): Likewise.
31246         (bug-regex18-ENV): Likewise.
31247         (bug-regex19-ENV): Likewise.
31248         (bug-regex20-ENV): Likewise.
31249         (bug-regex22-ENV): Likewise.
31250         (bug-regex23-ENV): Likewise.
31251         (bug-regex25-ENV): Likewise.
31252         (bug-regex26-ENV): Likewise.
31253         (bug-regex30-ENV): Likewise.
31254         (bug-regex32-ENV): Likewise.
31255         (bug-regex33-ENV): Likewise.
31256         (bug-regex34-ENV): Likewise.
31257         (bug-regex35-ENV): Likewise.
31258         (tst-rxspencer-ENV): Likewise.
31259         (tst-rxspencer-no-utf8-ENV): Likewise.
31260         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31261         (tst-sscanf-ENV): Likewise.
31262         (tst-swprintf-ENV): Likewise.
31263         (tst-swscanf-ENV): Likewise.
31264         (test-vfprintf-ENV): Likewise.
31265         (scanf13-ENV): Likewise.
31266         (bug14-ENV): Likewise.
31267         (tst-grouping-ENV): Likewise.
31268         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31269         (tst-strtod3-ENV): Likewise.
31270         (tst-strtod4-ENV): Likewise.
31271         (tst-strtod5-ENV): Likewise.
31272         (testmb2-ENV): Likewise./
31273         * string/Makefile (tst-strxfrm-ENV): Likewise.
31274         (tst-strxfrm2-ENV): Likewise.
31275         (bug-strcoll1-ENV): Likewise.
31276         (test-strcasecmp-ENV): Likewise.
31277         (test-strncasecmp-ENV): Likewise.
31278         * time/Makefile (tst-strptime-ENV): Likewise.
31279         (tst-ftime_l-ENV): Likewise.
31280         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31281         (tst-mbrtowc-ENV): Likewise.
31282         (tst-wcrtomb-ENV): Likewise.
31283         (tst-mbrtowc2-ENV): Likewise.
31284         (tst-c16c32-1-ENV): Likewise.
31285         (tst-mbsnrtowcs-ENV): Likewise.
31286
31287 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31288
31289         * manual/resource.texi (How to get information about the memory
31290         subsystem?): Fix typo.
31291         Reported by Peon de la Parra Ivan <peon@keba.com>
31292
31293 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31294
31295         [BZ #16882]
31296         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31297         (pthread_spin_lock): Branch out of spin loop to proper location.
31298         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31299         (pthread_spin_lock): Likewise.
31300
31301         * nptl/tst-spin4.c: New test.
31302         * nptl/Makefile (tests): Add tst-spin4.
31303
31304 2014-06-03  Andreas Schwab  <schwab@suse.de>
31305
31306         [BZ #15946]
31307         * resolv/res_send.c (send_dg): Reload file descriptor after
31308         calling reopen.
31309
31310 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31311
31312         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31313
31314 2014-06-03  Richard Henderson  <rth@redhat.com>
31315
31316         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31317         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31318         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31319         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31320         in the SAVE_PID block.
31321         (__libc_vfork): New alias.
31322         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31323
31324         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31325         child in registers, not on the stack.  Remove RESET_PID conditionals.
31326         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31327
31328 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31329
31330         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31331
31332 2014-06-03  Wilco  <wdijkstr@arm.com>
31333
31334         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31335         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31336         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31337         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31338         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31339         Likewise.
31340
31341 2014-06-03  Wilco  <wdijkstr@arm.com>
31342
31343         * sysdeps/aarch64/fpu/math_private.h
31344         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31345         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31346         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31347         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31348         Fix declarations.
31349
31350 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31351
31352         * crypt/crypt-private.h: Include ufc-crypt.h.
31353         (__b64_from_24bit): Declare extern.
31354         * crypt/crypt_util.c(__b64_from_24bit): New function.
31355         (b64t): New static const variable.
31356         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31357         (b64t): Remove variable.
31358         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31359         * crypt/sha256-crypt.c: Include crypt-private.h.
31360         (b64t): Remove variable.
31361         (__sha256_crypt_r): Remove b64_from_24bit and replace
31362         with __b64_from_24bit.
31363         * crypt/sha512-crypt.c: Likewise.
31364
31365 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31366
31367         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31368         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31369         Label the code __libc_vfork rather than __vfork.
31370         [!NOT_IN_libc] (vfork): Define as weak alias.
31371         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31372         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31373         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31374
31375 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31376
31377         * malloc/malloc.c (malloc_info): Fix format specifier for
31378         n_mmaps.
31379
31380 2014-06-02  Wilco  <wdijkstr@arm.com>
31381
31382         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31383         FPCR write.
31384
31385 2014-06-02  Wilco  <wdijkstr@arm.com>
31386
31387         [BZ #17009]
31388         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31389         Rewrite to reduce FPCR/FPSR accesses.
31390
31391 2014-06-01  David S. Miller  <davem@davemloft.net>
31392
31393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31394
31395 2014-05-31  David S. Miller  <davem@davemloft.net>
31396
31397         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31398         to occur in round to nearest mode when |x| >= 2.0
31399
31400 2014-05-30  Richard Henderson  <rth@twiddle.net>
31401
31402         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31403         (PSEUDO_RET_NOERRNO): Remove.
31404         (ret): Don't redefine.
31405         (ret_NOERRNO): Define in terms of ret.
31406         (ret_ERRVAL): Likewise.
31407
31408         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31409         use of PSEUDO_RET; perform the error check directly.
31410
31411 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31412
31413         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31414         with __int128_t.
31415
31416 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31417
31418         * malloc/malloc (malloc_info): Fix formatting.
31419
31420 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31421             Roland McGrath  <roland@hack.frob.com>
31422
31423         * malloc/malloc (malloc_info): Also print mmapped statistics.
31424
31425 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31426
31427         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31428         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31429
31430 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31431
31432         * malloc/malloc.c (malloc_info): Inline mi_arena.
31433
31434 2014-05-29  Richard Henderson  <rth@twiddle.net>
31435
31436         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31437         Remove comma before expanding ASM_ARGS_##nr.
31438         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31439         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31440         of ASM_ARGS_##nr.
31441         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31442         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31443         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31444         (ASM_ARGS_1): Add leading comma.
31445
31446         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31447         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31448         to __errno_location.
31449         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31450         Remove the expected plt for __errno_location.
31451
31452         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31453         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31454         call to __read_tp.
31455
31456         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31457         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31458         it and break it down.
31459         (DOCARGS_0, DOCARGS_1): Do nothing.
31460         (DOCARGS_2): Update to store into the new stack frame.
31461         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31462         (UNDOCARGS_1): Update to restore from the new stack frame.
31463         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31464         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31465
31466         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31467         (SINGLE_THREAD_P): New parameter for result regno.
31468         (PSEUDO): Update to match; use cbz instead of beq.
31469
31470         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31471         Use ENTRY to define the _nocancel entry point.  Share the syscall
31472         and syscall error check paths with the cancel path.
31473         (PSEUDO_END): New.
31474
31475         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31476         whitespace; tabs before and after asm mnemonics.
31477
31478 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31479
31480         [BZ #15132]
31481         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31482         Call fstat64 or stat64 internally, depending on arguments passed.
31483         Replace stat buffer argument with file descriptor argument.
31484         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31485         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31486         Pass fd to __internal_statvfs instead of calling fstat64.
31487         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31488         Pass fd to __internal_statvfs64 instead of calling fstat64.
31489         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31490         Pass -1 to __internal_statvfs instead of calling stat64.
31491         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31492         Pass -1 to __internal_statvfs64 instead of calling stat64.
31493
31494 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31495
31496         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31497         that was previously under [RESET_PID].
31498         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31499
31500         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31501         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31502
31503 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31504
31505         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31506
31507         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31508         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31509
31510 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31511
31512         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31513
31514 2014-05-27  Andreas Schwab  <schwab@suse.de>
31515
31516         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31517         TLS_INIT_TP macro.
31518         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31519         * elf/rtld.c (init_tls, dl_main): Likewise.
31520         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31521         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31522         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31523         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31524         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31525         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31526         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31527         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31528         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31529         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31530         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31531         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31532         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31533         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31534         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31535         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31536         * sysdeps/generic/tls.h: Update description.
31537
31538 2014-05-27  Will Newton  <will.newton@linaro.org>
31539
31540         [BZ #16990]
31541         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31542         and restore r2 rather than just restoring.
31543
31544 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31545
31546         [BZ #16724]
31547         * libio/tst-ftell-append.c: New test case.
31548         * libio/Makefile (tests): Add test case.
31549         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31550         append mode.
31551         * libio/wfileops.c (do_ftell_wide): Likewise.
31552
31553 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31554
31555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31556
31557         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31558         ...
31559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31561         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31562         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31563         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31564         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31565         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31566         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31567         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31568         Moved ...
31569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31570         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31571         Moved ...
31572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31573         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31574         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31575         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31576         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31577         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31578         ...
31579         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31580         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31581         Moved ...
31582         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31583         here.
31584         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31585         ...
31586         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31587         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31588         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31589
31590         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31591         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31592         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31593         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31594
31595         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31596         merge into ...
31597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31598         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31599         ...
31600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31601         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31602         ...
31603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31604         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31605         Moved ...
31606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31607         here.
31608         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31609         Moved ...
31610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31611         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31612         Moved ...
31613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31614
31615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31616         conditional [RESET_PID].
31617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31618         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31619         removed.
31620         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31621         removed.
31622
31623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31624         <tcb-offsets.h>.
31625         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31626         (__libc_vfork): New strong alias.
31627         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31628         removed.
31629         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31630         Removed.
31631
31632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31633         <tcb-offsets.h>.
31634         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31635         (__libc_vfork): New strong alias.
31636         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31637         removed.
31638         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31639         removed.
31640
31641 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31642
31643         * malloc/malloc.c (mi_arena): New function.
31644         (malloc_info): Remove nested function mi_arena. Call non-nosted
31645         function mi_arena.
31646
31647 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31648
31649         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31650         by insrwi.
31651         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31652         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31653         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31654         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31655         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31656         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31657         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31658
31659 2014-05-26  Andreas Schwab  <schwab@suse.de>
31660
31661         [BZ #16984]
31662         * locale/programs/repertoire.c (repertoire_read): Add slash
31663         between I18NPATH element and file name.
31664         * locale/programs/locfile.c (locfile_read): Likewise.
31665
31666 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31667
31668         * nptl/pthread_mutexattr_settype.c
31669         (__pthread_mutexattr_settype):
31670         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31671
31672 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31673
31674         * nptl/tst-mutex5 (do_test):
31675         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31676
31677 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31678
31679         * benchtests/README: Document 'init' directive.
31680         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31681         BENCH_INIT.
31682         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31683         (parse_file): Recognize 'init' directive.
31684
31685 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31686
31687         [BZ #16796]
31688         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31689         alignment of struct pthread.
31690
31691 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31692
31693         [BZ #16878]
31694         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31695         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31696         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31697         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31698
31699 2014-05-25  Richard Henderson  <rth@twiddle.net>
31700
31701         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31702         (SINGLE_THREAD_P_PIC): Remove.
31703         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31704         (SINGLE_THREAD_P_PIC): Remove.
31705
31706         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31707         branch to syscall error ...
31708         (PSEUDO): ... here.
31709         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31710         from __local_syscall_error to .Lsyscall_error.
31711         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31712         (SYSCALL_ERROR): Update label name.
31713
31714         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31715         Do not use DOARGS/UNDOARGS.
31716         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31717         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31718         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31719         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31720         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31721
31722         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31723         block comment.
31724
31725         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31726         define if !NOT_IN_libc.
31727         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31728         define with non-default symbol versions.
31729
31730 2014-05-23  Richard Henderson  <rth@twiddle.net>
31731
31732         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31733         (vfork, __vfork): Define via compat_symbol.
31734
31735         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31736         [!HAVE_IFUNC] (vfork_compat): Remove.
31737         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31738
31739 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31740
31741         [BZ #16978]
31742         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31743         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31744         variable.
31745
31746 2014-05-23  Richard Henderson  <rth@twiddle.net>
31747
31748         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31749         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31750         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31751         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31752
31753         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31754         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31755         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31756         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31757         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31758         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31759         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31760         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31761         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31762         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31763         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31764         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31765         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31766         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31767         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31768         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31769         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31770         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31771         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31772         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31773         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31774         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31775         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31776         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31777         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31778         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31779         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31780         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31781         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31782         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31783         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31784         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31785         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31786         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31787         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31788         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31789         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31790         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31791         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31792         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31793         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31794         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31795         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31796         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31797         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31798         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31799         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31800         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31801         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31802         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31803         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31804         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31805         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31806         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31807         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31808         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31809
31810         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31811         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31812         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31813         before exiting on error.
31814         (__libc_vfork): New strong alias.
31815         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31816         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31817
31818         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31819         that was previously under [RESET_PID].
31820         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31821
31822         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31823
31824 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31825
31826         [BZ #16977]
31827         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31828         value when x - 1 is zero.
31829         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31830         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31831         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31832         0.0L for an argument of 1.0L.
31833         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31834         Likewise.
31835         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31836         value when x - 1 is zero.
31837         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31838         * sysdeps/i386/fpu/libm-test-ulps: Update.
31839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31840
31841 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31842
31843         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31844         alphasort and versionsort.
31845
31846 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31847
31848         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
31849         macro.
31850         [copysignf]: Likewise.
31851
31852 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
31853
31854         * crypt/md5-crypt.c: Fix formatting.
31855
31856 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31857
31858         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
31859         (b64_from_24bit): New function.
31860
31861 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31862
31863         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
31864         libc_hidden_builtin_def to ifunc.
31865         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
31866         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
31867
31868 2014-05-21  Roland McGrath  <roland@hack.frob.com>
31869
31870         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
31871         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
31872
31873 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
31874
31875         * nscd/Depend (linuxthreads): Remove.
31876         (nptl): Add.
31877         * resolv/Depend (linuxthreads): Remove.
31878         * rt/Depend (linuxthreads): Remove.
31879
31880         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
31881         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
31882         $(common-objpfx)elf/.
31883         (link-libc-before-gnulib): Likewise.
31884         (elfobjdir): Remove variable.
31885         * Makefile (install): Use $(elf-objpfx) instead of
31886         $(common-objpfx)elf/.
31887         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
31888         $(elfobjdir)/.
31889         (link-libc-deps): Likewise.
31890         ($(common-objpfx)libc.so): Likewise.
31891         ($(common-objpfx)linkobj/libc.so): Likewise.
31892         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
31893         instead of $(common-objpfx)elf/.
31894         (symbolic-link-list): Likewise.
31895         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31896         [$(cross-compiling) = no]: Likewise.
31897         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
31898         $(elfobjdir)/.
31899         (static-gnulib-arch): Likewise.
31900         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31901         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
31902         $(common-objpfx)elf/.
31903
31904 2014-05-21  Richard Henderson  <rth@redhat.com>
31905
31906         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31907         (SINGLE_THREAD_P): Use the correct width load.  Fold
31908         into the ldr offset.
31909
31910         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
31911         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
31912
31913 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
31914
31915         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
31916         (libgcc_s_resume): Use __attribute_used__.
31917         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
31918         Likewise.
31919
31920 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31921
31922         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
31923         optimization when used with float constants.
31924
31925         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31926
31927 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
31928
31929         [BZ #16915]
31930         * locale/nl_langinfo_l.c: Make direct reference to every
31931         _nl_current_CATEGORY symbol.
31932         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
31933         (tests-static): Add tst-langinfo-static.
31934         (tests-special): Add tst-langinfo-static.out.
31935         ($(objpfx)tst-langinfo.out): Redirect output.
31936         ($(objpfx)tst-langinfo-static.out): New.
31937         * localedata/tst-langinfo.sh: Send output to stdout.
31938         * localedata/tst-langinfo-static.c: New file.
31939
31940         [BZ #16965]
31941         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
31942         when the shift amount is modulo the limb size.
31943
31944 2014-05-20  Richard Henderson  <rth@redhat.com>
31945
31946         [BZ #16967]
31947         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
31948         Change type of sa_flags from unsigned int to int.
31949
31950         [BZ #16966]
31951         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
31952
31953         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
31954
31955 2014-05-20  Will Newton  <will.newton@linaro.org>
31956
31957         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31958         Test the return value of the system call in the nocancel case.
31959
31960 2014-05-20  Will Newton  <will.newton@linaro.org>
31961             Yvan Roux  <yvan.roux@linaro.org>
31962
31963         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
31964         #include of asm/ptrace.h.
31965         (PTRACE_GET_THREAD_AREA): Remove #undef.
31966         (PTRACE_GETHBPREGS): Likewise.
31967         (PTRACE_SETHBPREGS): Likewise.
31968         (struct user_regs_struct): New structure.
31969         (struct user_fpsimd_struct): New structure.
31970         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
31971         #include of asm/ptrace.h and second #include of sys/user.h.
31972         (PTRACE_GET_THREAD_AREA): Remove #undef.
31973         (PTRACE_GETHBPREGS): Likewise.
31974         (PTRACE_SETHBPREGS): Likewise.
31975         (ELF_NGREG): Use new struct user_regs_struct.
31976         (elf_fpregset_t): Use new struct user_fpsimd_struct.
31977
31978 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31979
31980         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
31981         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
31982
31983 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
31984
31985         [BZ #16958]
31986         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
31987         membar to avoid block loads/stores to overlap previous stores.
31988
31989 2014-05-17  Richard Henderson  <rth@redhat.com>
31990
31991         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
31992         Create the __##syscall_name##_nocancel entry point.
31993         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
31994         Remove; let the sysdep-cancel.h code create it.
31995
31996 2014-05-17  David S. Miller  <davem@davemloft.net>
31997
31998         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
31999         Protect with __USE_GNU.
32000         (TIOCSET_TEMPT): Likewise.
32001         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32002         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32003         these are already provided in bits/ioctl-types.h
32004
32005 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32006
32007         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32008         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32009
32010         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32011         Use wait4 regardless of [__NR_waitpid].
32012
32013 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32014
32015         PR libgcc/60166
32016         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32017         (_FP_NANSIGN_Q): Set the quiet bit.
32018
32019 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32020
32021         * benchtests/Makefile
32022         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32023         not $(common-objpfx)math/libm.so.
32024         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32025         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32026         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32027         $(common-objpfx)dlfcn/libdl.so.
32028         ($(objpfx)tst-audit8): Depend on $(libm), not
32029         $(common-objpfx)math/libm.so.
32030         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32031         not $(common-objpfx)dlfcn/libdl.so.
32032         * math/Makefile
32033         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32034         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32035         [$(build-shared) = yes].
32036         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32037         $(common-objpfx)nptl/libpthread.so.
32038         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32039         $(common-objpfx)math/libm.so$(libm.so-version) or
32040         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32041         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32042         $(common-objpfx)dlfcn/libdl.so.
32043         * setjmp/Makefile (link-libm): Remove variable.
32044         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32045         * stdio-common/Makefile (link-libm): Remove variable.
32046         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32047         * stdlib/Makefile (link-libm): Remove variable.
32048         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32049         ($(objpfx)tst-strtod-round): Likewise.
32050         ($(objpfx)tst-tininess): Likewise.
32051         ($(objpfx)tst-strtod-underflow): Likewise.
32052         ($(objpfx)tst-strtod6): Likewise.
32053         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32054         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32055         $(common-objpfx)dlfcn/libdl.so.
32056
32057 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32058
32059         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32060         BSD terminal modes definitions.
32061
32062 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32063
32064         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32065         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32066
32067         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32068         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32069         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32070         Don't do #include_next.
32071         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32072         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32073         Don't do #include_next.
32074         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32075         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32076         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32077         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32078
32079 2014-05-16  Allan McRae  <allan@archlinux.org>
32080
32081         * po/sv.po: Update Swedish translation from translation project.
32082
32083         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32084         in sed expression.
32085
32086 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32087
32088         [BZ #16917]
32089         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32090         errno if the TIOCGPTN ioctl fails with an error different than
32091         EINVAL.
32092         * login/tst-ptsname.c: New file.
32093         * login/Makefile (tests): Add tst-ptsname.
32094
32095         [BZ #16943]
32096         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32097         and prlimit64.
32098
32099 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32100
32101         [BZ #16849]
32102         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32103         herrno to return EAI_AGAIN.
32104
32105 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32106
32107         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32108         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32109         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32110         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32111         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32112         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32113         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32114         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32115         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32116         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32117         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32118         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32119         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32120         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32121         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32122         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32123         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32124         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32125         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32126         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32127         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32128         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32129         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32130         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32131         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32132         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32133         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32134         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32135         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32136         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32137         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32138         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32140         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32141         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32142         Moved ...
32143         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32145         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32147         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32149         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32151         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32153         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32154         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32155         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32156         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32157         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32159         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32160         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32161         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32162         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32163         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32164         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32165         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32166         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32167         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32168         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32169         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32170         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32171         Moved ...
32172         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32173         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32174         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32175         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32176         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32177         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32178         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32180         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32182         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32183         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32184         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32185         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32186         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32187         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32188         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32189         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32190         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32192         Moved ...
32193         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32195         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32196
32197         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32198         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32199         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32200         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32201         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32202         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32203         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32204         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32205         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32206         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32207         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32208         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32209         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32210         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32211         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32212         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32213         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32214         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32215         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32216         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32217         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32218         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32219         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32220         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32221         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32222         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32223         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32224         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32225         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32226         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32227         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32228
32229         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32230         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32231
32232         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32233         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32234         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32235         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32236         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32237         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32238         Moved ...
32239         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32240         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32241         Moved ...
32242         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32243         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32244         Moved ...
32245         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32246         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32247         Moved ...
32248         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32249         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32250         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32251         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32252         Moved ...
32253         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32254         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32255         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32256         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32257         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32258         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32259         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32260         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32261         Moved ...
32262         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32263         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32264         Moved ...
32265         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32266         ... here.
32267         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32268         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32269         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32270         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32271         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32272         Moved ...
32273         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32274         ... here.
32275         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32276         Moved ...
32277         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32278         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32279         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32280         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32281         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32282         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32283         Moved ...
32284         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32285         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32286         Moved ...
32287         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32288         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32289         Moved ...
32290         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32291         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32292         Moved ...
32293         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32294         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32295         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32296         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32297         Moved ...
32298         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32299         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32300         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32301         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32302         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32303         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32304         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32305         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32306         Moved ...
32307         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32308         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32309         Moved ...
32310         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32311         ... here.
32312         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32313         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32314         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32315         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32316         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32317         Moved ...
32318         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32319         ... here.
32320         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32321         Moved ...
32322         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32323         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32324         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32325         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32326         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32327         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32328         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32329         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32330         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32331         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32332         Moved ...
32333         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32334         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32335         Moved ...
32336         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32337         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32338         Moved ...
32339         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32340         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32341         Moved ...
32342         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32343         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32344         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32345         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32346         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32347         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32348         Moved ...
32349         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32350         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32351         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32352         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32353         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32354         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32355         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32356         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32357         Moved ...
32358         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32359         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32360         Moved ...
32361         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32362         ... here.
32363         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32364         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32365         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32366         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32367         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32368         Moved ...
32369         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32370         ... here.
32371         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32372         Moved ...
32373         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32374         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32375         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32376         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32377         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32378         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32379         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32380         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32381         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32382         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32383         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32384
32385         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32386         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32387
32388         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32389         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32390
32391         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32392         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32393         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32394         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32395         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32396         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32397         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32398         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32399         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32400         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32401         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32402         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32403         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32404         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32405         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32406         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32407         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32408         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32409         Moved ...
32410         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32411         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32412         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32413         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32414         Moved ...
32415         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32416         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32417         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32418         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32419         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32420         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32421         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32422         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32423         Moved ...
32424         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32425         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32426         Moved ...
32427         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32428         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32429         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32430         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32431         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32432         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32433         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32434         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32435         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32436         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32437         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32438         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32439         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32440         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32441         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32442         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32443         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32444
32445         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32446         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32447         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32448         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32449         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32450
32451         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32452         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32453         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32454         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32455         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32456         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32457         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32458         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32459         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32460         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32461
32462         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32463         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32464
32465         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32466         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32467         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32468         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32469         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32470         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32471         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32472         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32473         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32474         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32475         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32476         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32477         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32478         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32479         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32480         Update #include.
32481         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32482         Likewise.
32483         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32484         Likewise.
32485         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32486         Likewise.
32487         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32488         Likewise.
32489         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32490         Likewise.
32491         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32492         Likewise.
32493         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32494         Likewise.
32495         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32496         Likewise.
32497         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32498         Likewise.
32499         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32500         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32501         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32502         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32503         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32504         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32505         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32506         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32507         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32508         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32509         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32510         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32511         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32512         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32513         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32514
32515         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32516         that was previously under [RESET_PID].
32517         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32518         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32519         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32520
32521         * sysdeps/i386/nptl/Implies: New file.
32522         * sysdeps/x86_64/nptl/Implies: New file.
32523         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32524         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32525         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32526         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32527
32528         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32529         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32530         (__libc_vfork): New strong alias.
32531         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32532         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32533
32534         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32535         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32536         (__libc_vfork): New strong alias.
32537         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32538         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32539
32540         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32541         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32542         (__libc_vfork): New strong alias.
32543         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32544         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32545         * nptl/pt-vfork.c: New file.
32546         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32547         (libpthread: GLIBC_2.20): New version set (empty).
32548
32549 2014-05-14  Will Newton  <will.newton@linaro.org>
32550
32551         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32552         rather than #if.
32553
32554 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32555
32556         [BZ #16564]
32557         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32558         arguments with exponent 65 or above.
32559         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32560         arguments 0x1p113L or above.
32561         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32562         to arguments 0x1p107L or above.
32563         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32564         positive arguments with exponent 65 or above.
32565         * math/auto-libm-test-in: Add more tests of log1p.
32566         * math/auto-libm-test-out: Regenerated.
32567
32568         [BZ #16928]
32569         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32570         non-finite arguments is +0.
32571         * math/s_cacosf.c (__cacosf): Likewise.
32572         * math/s_cacosl.c (__cacosl): Likewise.
32573         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32574         * sysdeps/i386/fpu/libm-test-ulps: Update.
32575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32576
32577         [BZ #16927]
32578         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32579         value.
32580         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32581         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32582         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32583         for explicit high bit of mantissa when testing for argument equal
32584         to 1.
32585         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32586         * sysdeps/i386/fpu/libm-test-ulps: Update.
32587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32588
32589         [BZ #16516]
32590         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32591         (__erf): Scale by 16 instead of 8 in potentially underflowing
32592         case.  Ensure exception if result actually underflows.
32593         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32594         (__erff): Scale by 16 instead of 8 in potentially underflowing
32595         case.  Ensure exception if result actually underflows.
32596         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32597         (efx8): Remove variable.
32598         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32599         case.  Ensure exception if result actually underflows.
32600         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32601         (efx8): Remove variable.
32602         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32603         case.  Ensure exception if result actually underflows.
32604         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32605         (efx8): Remove variable.
32606         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32607         case.  Ensure exception if result actually underflows.
32608         * math/auto-libm-test-in: Add more tests of erf.
32609         * math/auto-libm-test-out: Regenerated.
32610
32611 2014-05-14  Andreas Schwab  <schwab@suse.de>
32612
32613         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32614         Remove code conditionalized on USE___THREAD.
32615
32616         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32617         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32618         not definedness.
32619
32620 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32621
32622         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32623         Define unconditionally.
32624         (__ASSUME_O_CLOEXEC): Likewise.
32625         (__ASSUME_SOCK_CLOEXEC): Likewise.
32626         (__ASSUME_IN_NONBLOCK): Likewise.
32627         (__ASSUME_PIPE2): Likewise.
32628         (__ASSUME_EVENTFD2): Likewise.
32629         (__ASSUME_SIGNALFD4): Likewise.
32630         (__ASSUME_DUP3): Likewise.
32631         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32632         (__ASSUME_DUP3): Do not define.
32633         (__ASSUME_EVENTFD2): Likewise.
32634         (__ASSUME_IN_NONBLOCK): Likewise.
32635         (__ASSUME_O_CLOEXEC): Likewise.
32636         (__ASSUME_PIPE2): Likewise.
32637         (__ASSUME_SIGNALFD4): Likewise.
32638         (__ASSUME_SOCK_CLOEXEC): Likewise.
32639         (__ASSUME_UTIMES): Undefine.
32640         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32641         (__ASSUME_UTIMES): Do not define.
32642         (__ASSUME_O_CLOEXEC): Likewise.
32643         (__ASSUME_SOCK_CLOEXEC): Likewise.
32644         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32645         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32646         0x020621].
32647         (__ASSUME_PIPE2): Likewise.
32648         (__ASSUME_EVENTFD2): Likewise.
32649         (__ASSUME_SIGNALFD4): Likewise.
32650         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32651         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32652         Do not define.
32653         (__ASSUME_EVENTFD2): Likewise.
32654         (__ASSUME_SIGNALFD4): Likewise.
32655         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32656         (__ASSUME_32BITUIDS): Likewise.
32657         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32658         (__ASSUME_IPC64): Likewise.
32659         (__ASSUME_ST_INO_64_BIT): Likewise.
32660         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32661         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32662         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32663         (__ASSUME_UTIMES): Do not define.
32664         (__ASSUME_PSELECT): Likewise.
32665         (__ASSUME_PPOLL): Likewise.
32666         (__ASSUME_O_CLOEXEC): Likewise.
32667         (__ASSUME_SOCK_CLOEXEC): Likewise.
32668         (__ASSUME_IN_NONBLOCK): Likewise.
32669         (__ASSUME_PIPE2): Likewise.
32670         (__ASSUME_EVENTFD2): Likewise.
32671         (__ASSUME_SIGNALFD4): Likewise.
32672         (__ASSUME_DUP3): Likewise.
32673         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32674         (__ASSUME_UTIMES): Likewise.
32675         (__ASSUME_O_CLOEXEC): Likewise.
32676         (__ASSUME_SOCK_CLOEXEC): Likewise.
32677         (__ASSUME_IN_NONBLOCK): Likewise.
32678         (__ASSUME_PIPE2): Likewise.
32679         (__ASSUME_EVENTFD2): Likewise.
32680         (__ASSUME_SIGNALFD4): Likewise.
32681         (__ASSUME_DUP3): Likewise.
32682         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32683         (__ASSUME_UTIMES): Likewise.
32684         (__ASSUME_O_CLOEXEC): Likewise.
32685         (__ASSUME_SOCK_CLOEXEC): Likewise.
32686         (__ASSUME_IN_NONBLOCK): Likewise.
32687         (__ASSUME_PIPE2): Likewise.
32688         (__ASSUME_EVENTFD2): Likewise.
32689         (__ASSUME_SIGNALFD4): Likewise.
32690         (__ASSUME_DUP3): Likewise.
32691         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32692         Likewise.
32693         (__ASSUME_UTIMES): Likewise.
32694         (__ASSUME_EVENTFD2): Likewise.
32695         (__ASSUME_SIGNALFD4): Likewise.
32696         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32697         (__ASSUME_O_CLOEXEC): Likewise.
32698         (__ASSUME_SOCK_CLOEXEC): Likewise.
32699         (__ASSUME_IN_NONBLOCK): Likewise.
32700         (__ASSUME_PIPE2): Likewise.
32701         (__ASSUME_EVENTFD2): Likewise.
32702         (__ASSUME_SIGNALFD4): Likewise.
32703         (__ASSUME_DUP3): Likewise.
32704         (__ASSUME_UTIMES): Undefine.
32705
32706         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32707         feclearexcept.  Remove symbol versioning code.
32708         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32709         symbol versioning code.
32710         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32711         symbol versioning code.
32712         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32713         feupdateenv.  Remove symbol versioning code.
32714         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32715         fegetexceptflag.  Remove symbol versioning code.
32716         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32717         fesetexceptflag.  Remove symbol versioning code.
32718         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32719         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32720         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32721         (__posix_fadvise64_l32): Remove prototype.
32722         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32723         code.
32724
32725 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32726
32727         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32728         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32729         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32730         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32731
32732 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32733
32734         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32735         current working directory
32736
32737 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32738
32739         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32740         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32741         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32742         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32743         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32744         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32745         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32746         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32747         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32748         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32749         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32750         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32751         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32752         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32753         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32754         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32755         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32756         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32757         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32758         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32759         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32760         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32761         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32762         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32763         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32764         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32765         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32766         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32767         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32768         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32769         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32770         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32771         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32772         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32773         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32774         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32775         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32776         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32777         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32778         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32779         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32780         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32781
32782         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32783         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32784
32785         * sysdeps/unix/sysv/linux/arm/Makefile
32786         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32787         Add rt-aeabi_unwind_cpp_pr1.
32788         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32789         Add nptl-aeabi_unwind_cpp_pr1.
32790         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32791         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32792         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32793         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32794         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32795         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32796
32797         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32798         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32799         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32800         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32801
32802         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32803         Deconditionalize the code that was previously under [RESET_PID].
32804         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32805
32806         * sysdeps/generic/exit-thread.h: New file.
32807         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32808         * include/unistd.h (__exit_thread): Remove declaration.
32809         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32810         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32811         * csu/libc-start.c: Include <exit-thread.h>.
32812         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32813         * nptl/pthread_create.c: Include <exit-thread.h>.
32814         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32815         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32816         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32817         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32818         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32819         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32820         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32821         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32822         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32823         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32824         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32825         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32826         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32827         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32828         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32829         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32830         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32831
32832 2014-05-13  Andreas Schwab  <schwab@suse.de>
32833
32834         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32835
32836 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32837
32838         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32839         (__ASSUME_UTIMES): Do not condition on kernel version.
32840         (__ASSUME_PSELECT): Define unconditionally.
32841         (__ASSUME_PPOLL): Likewise.
32842         (__ASSUME_ATFCTS): Likewise.
32843         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32844         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32845         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32846         (__ASSUME_UTIMENSAT): Define unconditionally.
32847         (__ASSUME_PRIVATE_FUTEX): Likewise.
32848         (__ASSUME_FALLOCATE): Likewise.
32849         (__ASSUME_O_CLOEXEC): Likewise.
32850         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
32851         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
32852         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
32853         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
32854         (__ASSUME_IN_NONBLOCK): Likewise.
32855         (__ASSUME_PIPE2): Likewise.
32856         (__ASSUME_EVENTFD2): Likewise.
32857         (__ASSUME_SIGNALFD4): Likewise.
32858         (__ASSUME_DUP3): Likewise.
32859         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32860         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
32861         (__ASSUME_AT_RANDOM): Likewise.
32862         (__ASSUME_PREADV): Likewise.
32863         (__ASSUME_PWRITEV): Likewise.
32864         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
32865         (__ASSUME_F_GETOWN_EX): Define unconditionally.
32866         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
32867         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
32868         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
32869         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32870         (__ASSUME_O_CLOEXEC): Define unconditionally.
32871         (__ASSUME_PSELECT): Do not undefine conditionally.
32872         (__ASSUME_PPOLL): Likewise.
32873         (__ASSUME_ATFCTS): Likewise.
32874         (__ASSUME_SET_ROBUST_LIST): Likewise.
32875         (__ASSUME_UTIMENSAT): Likewise.
32876         (__ASSUME_FDATASYNC): Define unconditionally.
32877         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32878         (__ASSUME_SIGFRAME_V2): Likewise.
32879         )__ASSUME_EVENTFD2): Likewise.
32880         (__ASSUME_SIGNALFD4): Likewise.
32881         (__ASSUME_PSELECT): Do not undefine conditionally.
32882         (__ASSUME_PPOLL): Likewise.
32883         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32884         (__ASSUME_PSELECT): Define unconditionally.
32885         (__ASSUME_PPOLL): Likewise.
32886         (__ASSUME_O_CLOEXEC): Likewise.
32887         (__ASSUME_SOCK_CLOEXEC): Likewise.
32888         (__ASSUME_IN_NONBLOCK): Likewise.
32889         (__ASSUME_PIPE2): Likewise.
32890         (__ASSUME_EVENTFD2): Likewise.
32891         (__ASSUME_SIGNALFD4): Likewise.
32892         (__ASSUME_DUP3): Likewise.
32893         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32894         (__ASSUME_O_CLOEXEC): Likewise.
32895         (__ASSUME_SOCK_CLOEXEC): Likewise.
32896         (__ASSUME_IN_NONBLOCK): Likewise.
32897         (__ASSUME_PIPE2): Likewise.
32898         (__ASSUME_EVENTFD2): Likewise.
32899         (__ASSUME_SIGNALFD4): Likewise.
32900         (__ASSUME_DUP3): Likewise.
32901         * sysdeps/unix/sysv/linux/mips/kernel-features.h
32902         (__ASSUME_EVENTFD2): Likewise.
32903         (__ASSUME_SIGNALFD4): Likewise.
32904         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32905
32906 2014-05-12  Andreas Schwab  <schwab@suse.de>
32907
32908         [BZ #16932]
32909         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
32910         (_nss_nis_gethostbyname4_r): Return error if item length is larger
32911         than maximum RPC packet size.
32912         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
32913         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
32914         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
32915         (_nss_nis_getservbyport_r): Likewise.
32916
32917 2014-05-12  Will Newton  <will.newton@linaro.org>
32918
32919         * malloc/Makefile (tests): Add tst-mallopt.
32920         * malloc/tst-mallopt.c: New file.
32921
32922 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32923
32924         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
32925         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
32926
32927 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32928
32929         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
32930         (tst-tlsmod6.so): Likewise.
32931
32932 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32933
32934         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
32935
32936 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
32937
32938         [BZ #16064]
32939         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
32940         and <dl-procinfo.h>.
32941         (__fegetenv): Save SSE state in envp->__eip if supported.
32942         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
32943         envp->__eip if supported.
32944         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
32945         and <dl-procinfo.h>.
32946         (__fesetenv): Always set __eip, __cs_selector, __opcode,
32947         __data_offset and __data_selector in environment to 0.  Set SSE
32948         state if supported.
32949         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
32950         test-fenv-sse.
32951         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
32952         -mfpmath=sse.
32953         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
32954
32955 2014-05-09  Will Newton  <will.newton@linaro.org>
32956
32957         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
32958         and libc_relro_required for ARM.
32959         * sysdeps/arm/preconfigure: Regenerate.
32960
32961 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32962             Stefan Liebler  <stli@linux.vnet.ibm.com>
32963
32964         * config.make.in (enable-lock-elision): New Makefile variable.
32965         * configure.ac: Likewise.
32966         * configure: Regenerate.
32967         * sysdeps/s390/configure.ac:
32968         Add check for gcc transactions support.
32969         * sysdeps/s390/configure: Regenerate.
32970         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
32971         Build elision files if enabled.
32972         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
32973         Add lock elision support for s390.
32974         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
32975         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
32976         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
32977         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
32978         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
32979         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
32980         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
32981         Likewise.
32982         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
32983         Likewise.
32984         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
32985         Likewise.
32986         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
32987         Likewise.
32988         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
32989         (__lll_timedlock_elision, __lll_lock_elision)
32990         (__lll_unlock_elision, __lll_trylock_elision)
32991         (lll_timedlock_elision, lll_lock_elision)
32992         (lll_unlock_elision, lll_trylock_elision): Add.
32993         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
32994         (pthread_mutex_t): Add lock elision support for s390.
32995
32996 2014-05-14  Wilco  <wdijkstr@arm.com>
32997
32998         * sysdeps/arm/fclrexcpt.c: Cleanup.
32999         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33000         * sysdeps/arm/feenablxcpt.c: Cleanup.
33001         * sysdeps/arm/fegetenv.c: Cleanup.
33002         * sysdeps/arm/fegetexcept.c: Cleanup.
33003         * sysdeps/arm/fegetround.c: Cleanup.
33004         * sysdeps/arm/feholdexcpt.c: Cleanup.
33005         * sysdeps/arm/fesetenv.c: Cleanup.
33006         * sysdeps/arm/fesetround.c: Cleanup.
33007         * sysdeps/arm/feupdateenv.c: Cleanup.
33008         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33009         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33010         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33011         * sysdeps/arm/ftestexcept.c: Cleanup.
33012         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33013         * sysdeps/arm/setfpucw.c: Cleanup.
33014
33015 2014-05-09  Will Newton  <will.newton@linaro.org>
33016
33017         * sysdeps/arm/armv7/strcmp.S: New file.
33018         * NEWS: Mention addition of ARMv7 optimized strcmp.
33019
33020 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33021
33022         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33023         look for %.ac rather than %.in.
33024
33025         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33026         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33027         * sysdeps/mach/hurd/configure: Regenerated.
33028         * sysdeps/unix/sysv/linux/configure: Regenerated.
33029
33030         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33031
33032 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33033
33034         [BZ# 16922]
33035         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33036         (LONG_SUB): Ditto.
33037         (PTR_SUB): Ditto.
33038
33039 2014-05-07  Andreas Schwab  <schwab@suse.de>
33040
33041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33042         when skipping over non-matching result from nscd.
33043
33044 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33045
33046         [BZ #16876]
33047         * nptl/sockperf.c (client): Check socket return value.
33048
33049         [BZ #16877]
33050         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33051         nscd security class.
33052
33053 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33054
33055         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33056         * sysdeps/arm/unwind.h: ... here.
33057
33058 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33059
33060         [BZ# 16916]
33061         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33062         Define.
33063
33064 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33065
33066         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33067         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33068         multiarch strncpy for PPC64.
33069         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33070         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33071         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33072         multiarch optimizations.
33073         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33074         (__libc_ifunc_impl_list): Likewise.
33075         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33076         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33077         multiarch stpncpy for PPC64.
33078         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33079         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33080
33081 2014-05-06  Andreas Schwab  <schwab@suse.de>
33082
33083         [BZ #16912]
33084         * gmon/mcount.c (_MCOUNT_DECL): Use
33085         atomic_compare_and_exchange_bool_acq instead of
33086         catomic_compare_and_exchange_bool_acq.
33087
33088 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33089
33090         * elf/Makefile (others, install-bin): Remove pldd.
33091         (pldd-modules): Variable removed.
33092         ($(objpfx)pldd): Target removed.
33093         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33094         (others, install-bin): Append pldd here.
33095         ($(objpfx)pldd): New target.
33096
33097         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33098         to 0, so the first #if test emitted later doesn't see it undefined.
33099         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33100         * sysdeps/gnu/errlist.c: Regenerated.
33101
33102 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33103
33104         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33105         [libc_hidden_builtin_def]: Define to empty value.
33106         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33107         [libc_hidden_builtin_def]: Likewise.
33108         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33109         [libc_hidden_builtin_def]: Likewise.
33110         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33111         [libc_hidden_builtin_def]: Likewise.
33112         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33113         __redirect_memcpy and define ifunc as default hidden symbol.
33114         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33115         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33116
33117 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33118
33119         * locale/iso-4217.def: Reintroduce XDR currency.
33120
33121 2014-05-04  Allan McRae  <allan@archlinux.org>
33122
33123         * po/eo.po: Update Esperanto translation from translation project.
33124
33125 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33126
33127         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33128         and FEATURE_INDEX_MAX to 1.
33129         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33130
33131 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33132
33133         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33134         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33135         * iconvdata/big5.c (ONE_DIRECTION): Define.
33136         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33137         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33138         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33139         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33140         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33141         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33142         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33143         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33144         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33145         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33146         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33147         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33148         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33149         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33150         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33151         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33152         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33153         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33154         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33155         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33156         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33157         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33158         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33159         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33160         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33161         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33162         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33163         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33164         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33165         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33166         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33167         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33168         * iconvdata/johab.c (ONE_DIRECTION): Define.
33169         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33170         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33171         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33172         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33173         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33174         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33175         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33176         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33177         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33178         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33179
33180 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33181
33182         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33183         (_IO_JUMPS_OFFSET): Define to 0.
33184
33185         * nptl/sysdeps/pthread/bits/libc-lock.h
33186         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33187         (__libc_lock_define_initialized_recursive): Always define using
33188         initializer.  Modern compilers treat uninitialized (implicit zero) and
33189         explicit zero initializers the same (i.e. put the datum in bss).
33190
33191 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33192
33193         * nscd/nscd-client.h: Include <string.h>.
33194
33195 2014-05-01  David S. Miller  <davem@davemloft.net>
33196
33197         [BZ #16885]
33198         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33199         multiple zero bytes exist at the end of a string.
33200         Reported by Aurelien Jarno <aurelien@aurel32.net>
33201
33202         * string/test-strcmp.c (check): Add explicit test for situations where
33203         there are multiple zero bytes after the first.
33204
33205 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33206
33207         [BZ #16890]
33208         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33209         when compiling wprintf.
33210         * stdio-common/tstdiomisc.c (t3): New function.
33211         (main): Call it.
33212
33213 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33214
33215         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33216         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33217         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33218         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33219
33220 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33221
33222         * stdlib/longlong.h: Updated from GCC.
33223
33224 2014-05-01  Will Newton  <will.newton@linaro.org>
33225             Bernard Ogden  <bernie.ogden@linaro.org>
33226
33227         * NEWS: Update fixed bug list.
33228
33229         [BZ #15119]
33230         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33231
33232 2014-04-30  David S. Miller  <davem@davemloft.net>
33233
33234         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33235         (libc_feholdexcept_setround_sparc_ctx): New function.
33236         (libc_fesetenv_sparc_ctx): Likewise.
33237         (libc_feupdateenv_sparc_ctx): Likewise.
33238         (libc_feholdsetround_sparc_ctx): Likewise.
33239         (libc_feholdexcept_setround_ctx): Define.
33240         (libc_feholdexcept_setroundf_ctx): Likewise.
33241         (libc_feholdexcept_setroundl_ctx): Likewise.
33242         (libc_fesetenv_ctx): Likewise.
33243         (libc_fesetenvf_ctx): Likewise.
33244         (libc_fesetenvl_ctx): Likewise.
33245         (libc_feupdateenv_ctx): Likewise.
33246         (libc_feupdateenvf_ctx): Likewise.
33247         (libc_feupdateenvl_ctx): Likewise.
33248         (libc_feresetround_ctx): Likewise.
33249         (libc_feresetroundf_ctx): Likewise.
33250         (libc_feresetroundl_ctx): Likewise.
33251         (libc_feholdsetround_ctx): Likewise.
33252         (libc_feholdsetroundf_ctx): Likewise.
33253         (libc_feholdsetroundl_ctx): Likewise.
33254
33255         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33256         with __USE_GNU instead of XOPEN cpp guards.
33257
33258         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33259         0.
33260
33261         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33262         with XOPEN cpp guards.
33263
33264 2014-04-30  Julian Brown  <julian@codesourcery.com>
33265
33266         [BZ #16888]
33267         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33268         handling.
33269
33270 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33271
33272         [BZ #9894]
33273         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33274         Change to 2.6.32.
33275         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33276         * sysdeps/unix/sysv/linux/configure: Regenerated.
33277         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33278         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33279         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33280         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33281         * README: Update reference to required Linux kernel version.
33282         * manual/install.texi (Linux): Update reference to required Linux
33283         kernel headers version.
33284         * INSTALL: Regenerated.
33285
33286         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33287         header inclusion.
33288         [POSIX] (limits.h): Likewise.
33289         [POSIX] (math.h): Likewise.
33290         [POSIX] (sys/wait.h): Likewise.
33291         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33292         function.
33293         [POSIX] (stddef.h): Do not allow header inclusion.
33294
33295 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33296
33297         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33298
33299 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33300
33301         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33302         Return immediately after lll_futex_wake.
33303
33304 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33305
33306         [BZ #16791]
33307         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33308         structure.
33309         (datahead_init_pos): Call datahead_init_common early.
33310         (datahead_init_neg): Likewise.
33311
33312         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33313         datahead_init_neg): New functions.
33314         * nscd/aicache.c (addhstaiX): Use them.
33315         * nscd/grpcache.c (cache_addgr): Likewise.
33316         * nscd/hstcache.c (cache_addhst): Likewise.
33317         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33318         * nscd/netgroupcache.c (do_notfound): Likewise.
33319         (addgetnetgrentX): Likewise.
33320         (addinnetgrX): Likewise.
33321         * nscd/pwdcache.c (cache_addpw): Likewise.
33322         * nscd/servicescache.c (cache_addserv): Likewise.
33323
33324 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33325             Atsushi Onoe  <atsushi@onoe.org>
33326
33327         [BZ #14308]
33328         [BZ #12994]
33329         [BZ #13651]
33330         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33331         one response is valid.
33332         * resolv/res_send.c (send_dg): Check for validity of other
33333         response if the current response is a referral.
33334
33335 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33336
33337         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33338
33339 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33340
33341         [BZ #16823]
33342         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33343         Always divide by positive zero when computing -Inf result.
33344         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33345         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33346
33347 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33348
33349         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33350         FPSCR if value do not change.
33351         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33352         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33353         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33354         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33355         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33356         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33357         function.
33358
33359 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33360
33361         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33362         * sysdeps/unix/sysv/linux/hppa: Move directory from
33363         ports/systeps/unix/sysv/linux/hppa.
33364         * README: Update listing for hppa-*-linux-gnu.
33365
33366 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33367
33368         [BZ #16754]
33369         * manual/stdio.texi (Hook functions): Fix types of stream hook
33370         functions.
33371         [BZ #16854]
33372         * socket/sys/socket.h: Fix typo in comment.
33373
33374 2014-04-28  Wilco  <wdijkstr@arm.com>
33375
33376         * sysdeps/arm/fenv_private.h: New file.
33377         * sysdeps/arm/math_private.h: New file.
33378         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33379
33380 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33381
33382         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33383         with __int128_t.
33384         (La_x86_64_retval): Likewise.
33385
33386 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33387
33388         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33389         fpsr if value didn't change.
33390         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33391         to fpcr if value didn't change.
33392         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33393         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33394         fpsr or fpcr if value didn't change.
33395         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33396         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33397         fpcr if value didn't change.
33398         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33399         to fpsr if value didn't change.
33400
33401 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33402
33403         * nptl/tst-sem3.c: Use test-skeleton.c
33404         (main): Rename to do_test.  Use return instead of
33405         exit.
33406         * nptl/tst-sem4.c: Use test-skeleton.c
33407         (main): Rename to do_test.
33408
33409 2014-04-22  David S. Miller  <davem@davemloft.net>
33410
33411         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33412         (struct sigaction): New struct member __glibc_reserved0, change
33413         type of sa_flags to int.
33414
33415 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33416
33417         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33418         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33419
33420 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33421
33422         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33423         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33424
33425 2014-04-22  Will Newton  <will.newton@linaro.org>
33426             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33427
33428         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33429         (__longjmp): Add longjmp and longjmp_target SystemTap
33430         probes.
33431         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33432         (__sigsetjmp): Add setjmp SystemTap probe.
33433
33434 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33435
33436         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33437         match manual order.
33438
33439 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33440
33441         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33442
33443         * sysdeps/powerpc/fpu/fenv_private.h
33444         (libc_feholdexcept_setroundl_ctx): Define to
33445         libc_feholdexcept_setround_ppc_ctx.
33446         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33447         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33448         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33449         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33450
33451 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33452
33453         * sysdeps/aarch64/math-tests.h: New file.
33454
33455 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33456
33457         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33458         New.
33459         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33460         Check and set bit_AVX2_Usable.
33461         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33462         macro.
33463         (bit_AVX2): Likewise.
33464         (index_AVX2_Usable): Likewise.
33465         (CPUID_AVX2): Likewise.
33466         (HAS_AVX2): Likewise.
33467
33468 2014-04-17  Will Newton  <will.newton@linaro.org>
33469
33470         * manual/setjmp.texi (System V contexts): Add note that
33471         calling setcontext on a context created by a call to a
33472         signal handler is undefined.  Update text to note that
33473         setcontext from a signal handler is possible but not
33474         recommended.
33475
33476         [BZ #16629]
33477         * stdlib/tst-setcontext.c: Include signal.h.
33478         (main): Check that the signal stack before and
33479         after swapcontext is the same.
33480
33481         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33482         Re-implement to restore registers in user code and avoid
33483         rt_sigreturn system call.
33484
33485 2014-04-17  Wilco  <wdijkstr@arm.com>
33486
33487         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33488         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33489         * math/test-fenv.c: Skip exception trap tests on targets which only
33490         support non-stop mode.
33491
33492 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33493             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33494
33495         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33496         (libc_feholdsetround_aarch64_ctx)
33497         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33498         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33499         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33500         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33501         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33502         (libc_feresetround_noexl_ctx): Define.
33503
33504 2014-04-16  Richard Henderson  <rth@redhat.com>
33505
33506         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33507
33508         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33509         unwind tables.
33510
33511         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33512         const from the non-libc, non-ldso copy.
33513
33514         * sysdeps/alpha/libm-test-ulps: Regenerate.
33515
33516 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33517             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33518
33519         * sysdeps/aarch64/fpu/math_private.h: New file.
33520
33521 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33522
33523         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33524
33525 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33526
33527         [BZ #16275]
33528         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33529         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33530         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33531         Intel MPX bound registers before _dl_profile_fixup.
33532         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33533         registers after _dl_profile_fixup.  Save and restore bound
33534         registers bnd0/bnd1 when calling _dl_call_pltexit.
33535         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33536         (LR_BND_OFFSET): Likewise.
33537         (LRV_BND0_OFFSET): Likewise.
33538         (LRV_BND1_OFFSET): Likewise.
33539
33540 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33541
33542         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33543         to...
33544         * sysdeps/mach/hurd/i386/tls.h: ... here.
33545         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33546         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33547         fields.
33548
33549 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33550
33551         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33552
33553 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33554
33555         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33556
33557 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33558
33559         [BZ #14770]
33560         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33561         * sysdeps/s390/configure: Regenerate.
33562
33563         [BZ #16824]
33564         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33565         Set round-to-nearest internally to reduce error accumulation.
33566
33567 2014-04-16  Alan Modra  <amodra@gmail.com>
33568
33569         [BZ #16740]
33570         [BZ #16619]
33571         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33572         * math/libm-test.inc (frexp_test_data): Add tests.
33573         * NEWS: Update fixed bug list.
33574
33575 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33576
33577         * benchtests/Makefile: Depend on libraries in build directory.
33578         (bench-math): Separate out math tests.
33579         (bench-pthread): Separate out pthread tests.
33580         (bench): Include math and pthread tests.
33581
33582 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33583
33584         [BZ #16831]
33585         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33586         _dl_debug_initialize.
33587
33588         * configure.ac: Remove SELinux header check.
33589         * configure: Regenerate.
33590         * nscd/selinux.c (perms): Array of const char* to permission names.
33591         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33592         default policy. Call string_to_security_class and string_to_av_perm to
33593         translate strings. Enforce default policy and call avs_has_perm with
33594         results of translated strings.
33595
33596 2014-04-13  David S. Miller  <davem@davemloft.net>
33597
33598         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33599
33600 2014-04-12  Allan McRae  <allan@archlinux.org>
33601
33602         [BZ #16838]
33603         * manual/string.texi (Collation Functions): Fix qsort argument
33604         order in example.
33605         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33606
33607 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33608
33609         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33610         Make the test a no-op if there are no exceptions defined.
33611
33612 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33613
33614         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33615         enable-hardcoded-path-in-tests
33616
33617 2014-04-11  Will Newton  <will.newton@linaro.org>
33618
33619         * benchtests/Makefile (extra-objs): Add json-lib.o.
33620         (bench-func): Tidy up JSON output.
33621         * benchtests/bench-skeleton.c: Include json-lib.h.
33622         (main): Use JSON library functions to do output of
33623         benchmark results.
33624         * benchtests/bench-timing-type.c (main): Output the
33625         timing type simply, leaving formatting to the user.
33626         * benchtests/json-lib.c: New file.
33627         * benchtests/json-lib.h: Likewise.
33628
33629 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33630
33631         [BZ #15215]
33632         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33633         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33634         memory barriers.  Add comments.
33635         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33636         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33637         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33638         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33639         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33640         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33641
33642 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33643
33644         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33645         * sysdeps/s390/s390-64/configure.ac: ... this ...
33646         * sysdeps/s390/configure.ac: ... to here.
33647         * sysdeps/s390/s390-32/configure: Delete file.
33648         * sysdeps/s390/s390-64/configure: Delete file.
33649         * sysdeps/s390/configure: Regenerate.
33650
33651 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33652
33653         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33654
33655 2014-04-11  Will Newton  <will.newton@linaro.org>
33656
33657         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33658         to zero if it is not defined elsewhere.  (mtrim): Test
33659         the value of MALLOC_DEBUG with #if rather than #ifdef.
33660
33661 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33662
33663         * benchtests/pthread_once-inputs: New file.
33664         * benchtests/pthread_once-source.c: New file.
33665         * benchtests/README: Update documentation.
33666
33667 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33668             H.J. Lu  <hongjiu.lu@intel.com>
33669
33670         [BZ #16275]
33671         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33672         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33673         * sysdeps/x86_64/configure: Regenerated.
33674         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33675         macro.
33676         (REGISTER_SAVE_RAX): Likewise.
33677         (REGISTER_SAVE_RCX): Likewise.
33678         (REGISTER_SAVE_RDX): Likewise.
33679         (REGISTER_SAVE_RSI): Likewise.
33680         (REGISTER_SAVE_RDI): Likewise.
33681         (REGISTER_SAVE_R8): Likewise.
33682         (REGISTER_SAVE_R9): Likewise.
33683         (REGISTER_SAVE_BND0): Likewise.
33684         (REGISTER_SAVE_BND1): Likewise.
33685         (REGISTER_SAVE_BND2): Likewise.
33686         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33687         bound registers when calling _dl_fixup.
33688
33689 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33690
33691         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33692         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33693         of its definition.
33694         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33695         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33696         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33697         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33698         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33699         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33700         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33701
33702 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33703
33704         [BZ #15514]
33705         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33706         pathconf(_PC_NAME_MAX).
33707
33708 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33709
33710         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33711         Remove macro usage.
33712         (__PTHREAD_SPINS): Move definition to ...
33713         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33714         (__PTHREAD_SPINS): ... here.
33715         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33716         (__PTHREAD_SPIN): Likewise.
33717         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33718         (__PTHREAD_SPIN): Likewise.
33719         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33720         (__PTHREAD_SPIN): Likewise.
33721         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33722         (__PTHREAD_SPIN): Likewise.
33723         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33724         (__PTHREAD_SPIN): Likewise.
33725         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33726         (__PTHREAD_SPIN): Likewise.
33727         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33728         (__PTHREAD_SPIN): Likewise.
33729         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33730         (__PTHREAD_SPIN): Likewise.
33731         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33732         (__PTHREAD_SPIN): Likewise.
33733         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33734         (__PTHREAD_SPIN): Likewise.
33735         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33736         (__PTHREAD_SPIN): Likewise.
33737         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33738         (__PTHREAD_SPIN): Likewise.
33739
33740         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33741         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33742         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33743         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33744         imply folder.
33745         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33746         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33747         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33748         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33749         correct imply path.
33750         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33751         strlen symbol for non multi-arch builds.
33752         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33753         missing hidden_def and weak_alias.
33754
33755 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33756
33757         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33758
33759 2014-04-07  Will Newton  <will.newton@linaro.org>
33760
33761         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33762         and contents.  [!_LIBC] Remove #ifndef and contents.
33763         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33764         * string/memccpy.c (__memccpy): Use ANSI prototype.
33765         * string/memfrob.c (memfrob): Likewise.
33766         * string/strcoll.c (STRCOLL): Likewise.
33767         * string/strlen.c (strlen): Likewise.
33768         * string/strtok.c (STRTOK): Likewise.
33769         * string/strcat.c: Remove unused #include of memcopy.h.
33770         (strcat): Use ANSI prototype.
33771         * string/strchr.c: Remove unused #include of memcopy.h.
33772         (strchr): Use ANSI prototype.
33773         * string/strcmp.c: Remove unused #include of memcopy.h.
33774         (strcmp): Use ANSI prototype.
33775         * string/strcpy.c: Remove unused #include of memcopy.h.
33776         (strcpy): Use ANSI prototype.
33777
33778 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33779
33780         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33781         * config.make.in (config-extra-cppflags): Set it from
33782         libc_extra_cppflags.
33783         * configure.ac (libc_extra_cflags): Make it accumulate over
33784         configure fragments.
33785         (libc_extra_cppflags): New flag.
33786         * configure. Regenerate.
33787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33788         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33789         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33791
33792         [BZ #16815]
33793         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33794         result for FE_DOWNWARD rounding mode.
33795         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33796         Likewise.
33797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33798
33799 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33800
33801         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33802         in function argument name.
33803
33804 2014-04-03  David Svoboda  <svoboda@cert.org>
33805
33806         [BZ #5666]
33807         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33808         explicitly.
33809
33810 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33811
33812         * elf/dl-unmap-segments.h: New file.
33813         * sysdeps/generic/ldsodefs.h
33814         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33815         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33816         * elf/dl-fptr.c: Likewise.
33817         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33818         * sysdeps/aarch64/tlsdesc.c: Likewise.
33819         * sysdeps/arm/tlsdesc.c: Likewise.
33820         * sysdeps/i386/tlsdesc.c: Likewise.
33821         * sysdeps/tile/dl-runtime.c: Likewise.
33822         * sysdeps/x86_64/tlsdesc.c: Likewise.
33823         * elf/dl-load.h: New file.
33824         * elf/dl-load.c: Include it.
33825         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33826         Macros moved to dl-load.h.
33827         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33828         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33829         Use _dl_unmap_segments in place of __munmap.
33830         Break out segment-mapping loop into ...
33831         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33832
33833 2014-04-03  Will Newton  <will.newton@linaro.org>
33834
33835         * elf/dl-lookup.c (do_lookup_x): Remove comment
33836         referring to nested function and move variable
33837         declarations down to before first use.
33838
33839 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33840
33841         [BZ #16799]
33842         [BZ #16800]
33843         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33844         with 0 numerator.
33845         * math/s_catanf.c (__catanf): Likewise.
33846         * math/s_catanh.c (__catanh): Likewise.
33847         * math/s_catanhf.c (__catanhf): Likewise.
33848         * math/s_catanhl.c (__catanhl): Likewise.
33849         * math/s_catanl.c (__catanl): Likewise.
33850         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
33851         by positive zero when computing -Inf result.
33852         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
33853         (catanh_test): Likewise.
33854         * sysdeps/i386/fpu/libm-test-ulps: Update.
33855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33856
33857         [BZ #16789]
33858         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
33859         instead of using underflowing value in computing result.
33860         * math/s_clog10.c (__clog10): Likewise.
33861         * math/s_clog10f.c (__clog10f): Likewise.
33862         * math/s_clog10l.c (__clog10l): Likewise.
33863         * math/s_clogf.c (__clogf): Likewise.
33864         * math/s_clogl.c (__clogl): Likewise.
33865         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
33866         (clog10_test): Likewise.
33867         * sysdeps/i386/fpu/libm-test-ulps: Update.
33868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33869
33870 2014-04-02  Alan Modra  <amodra@gmail.com>
33871
33872         [BZ #16739]
33873         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
33874         output when value is near a power of two.  Use int64_t for lx and
33875         remove casts.  Use decimal rather than hex exponent constants.
33876         Don't use long double multiplication when double will suffice.
33877         * math/libm-test.inc (nextafter_test_data): Add tests.
33878         * NEWS: Add 16739 and 16786 to bug list.
33879
33880         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
33881
33882         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
33883
33884 2014-04-01  Will Newton  <will.newton@linaro.org>
33885
33886         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
33887         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
33888
33889 2014-04-01  Florian Weimer  <fweimer@redhat.com>
33890
33891         [BZ #13347]
33892         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
33893         * nptl/tst-setuid2.c: New file.
33894         * nptl/Makefile (xtests): Add tst-setuid2.
33895
33896 2014-04-01  Alan Modra  <amodra@gmail.com>
33897
33898         [BZ #16786]
33899         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
33900
33901 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33902
33903         [BZ #6803]
33904         [BZ #6804]
33905         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
33906         set errno as appropriate.
33907         * math/w_scalbf.c (__scalbf): Likewise.
33908         * math/w_scalbl.c (__scalbl): Likewise.
33909         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
33910         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
33911         * math/libm-test.inc (scalb_test_data): Add errno expectations.
33912         Add more NaN tests.
33913
33914         [BZ #16349]
33915         * math/w_atan2.c: Include <errno.h>.
33916         (__atan2): Set errno for result underflowing to zero.
33917         * math/w_atan2f.c: Include <errno.h>.
33918         (__atan2f): Set errno for result underflowing to zero.
33919         * math/w_atan2l.c: Include <errno.h>.
33920         (__atan2l): Set errno for result underflowing to zero.
33921         * math/auto-libm-test-in: Don't allow missing errno for some atan2
33922         tests.
33923         * math/auto-libm-test-out: Regenerated.
33924
33925 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33926
33927         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
33928         Encode instruction correctly in little endian.
33929         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
33930         Likewise.
33931         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
33932         Likewise.
33933         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
33934         Likewise.
33935         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
33936         Likewise.
33937
33938 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33939
33940         [BZ #9894]
33941         * sysdeps/unix/sysv/linux/kernel-features.h
33942         [__sparc__ && !__arch64__ && !__sparc_v9__]
33943         (__ASSUME_SET_ROBUST_LIST): Do not define.
33944         [__sparc__ && !__arch64__ && !__sparc_v9__]
33945         (__ASSUME_FUTEX_LOCK_PI): Likewise.
33946         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
33947         Likewise.
33948         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33949         (__ASSUME_FUTEX_LOCK_PI): Undefine.
33950         (__ASSUME_REQUEUE_PI): Likewise.
33951         (__ASSUME_SET_ROBUST_LIST): Likewise.
33952         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33953         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
33954         Undefine.
33955         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33956         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
33957         Likewise.
33958         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
33959         Likewise.
33960         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
33961         Likewise.
33962         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33963         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
33964         Undefine.
33965         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
33966         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
33967         Likewise.
33968
33969         [BZ #16648]
33970         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33971         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
33972         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
33973
33974 2014-03-31  Will Newton  <will.newton@linaro.org>
33975
33976         * benchtests/Makefile (bench): Add ffs and ffsll to list
33977         of tests.
33978         * benchtests/ffs-inputs: New file.
33979         * benchtests/ffsll-inputs: Likewise.
33980
33981 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
33982
33983         [BZ #16770]
33984         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
33985         too large before casting to int.
33986         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
33987         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
33988         * math/libm-test.inc (scalb_test_data): Add more tests.
33989
33990 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
33991
33992         * benchtests/Makefile (DETAILED_OPT): New make option.
33993         (bench-func): Run benchmark program with -d if DETAILED_OPT is
33994         set.
33995         * benchtests/bench-skeleton.c: Include stdbool.h.
33996         (main): Store and print timings per input.
33997         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
33998         member to each argument value.
33999         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34000         (_print_arg_data): Initialize per-input timing to 0.
34001
34002         * benchtests/Makefile (timing-type): New binary.
34003         (bench-clean): Also remove bench-timing-type.
34004         (bench): New target for timing-type.
34005         (bench-func): Print output in JSON format.
34006         * benchtests/bench-skeleton.c (main): Print output in JSON
34007         format.
34008         * benchtests/bench-timing-type.c: New file.
34009         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34010         (TIMING_PRINT_STATS): Remove.
34011         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34012         name separately.
34013
34014         * benchtests/bench-modf.c: Remove.
34015         * benchtests/modf-inputs: New inputs file.
34016
34017 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34018
34019         [BZ #16362]
34020         * math/s_clog10.c (M_PI_LOG10E): New macro.
34021         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34022         imaginary parts are 0.
34023         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34024         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34025         imaginary parts are 0.
34026         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34027         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34028         imaginary parts are 0.
34029         * math/libm-test.inc (clog10_test_data): Update expected results
34030         for when real and imaginary parts are 0.
34031
34032 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34033
34034         * elf/dl-load.c: Finish conversion of __builtin_expect into
34035         __glibc_{un}likely.
34036
34037 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34038
34039         [BZ #16348]
34040         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34041         1+x for argument with exponent below -67.
34042         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34043         Likewise.
34044         * math/auto-libm-test-in: Add more tests of exp.
34045         * math/auto-libm-test-out: Regenerated.
34046
34047 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34048
34049         [BZ #16759]
34050         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34051         (nscd_getnetgrent): Use it.
34052
34053         [BZ #16760]
34054         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34055         of stpcpy.
34056
34057 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34058
34059         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34060         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34061         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34062         (lll_robust_unlock): Remove out of line section. Use cfi
34063         intrinsics.
34064         (LLL_STUB_UNWIND_INFO*): Remove.
34065         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34066         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34067         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34068         (lll_robust_unlock): Remove out of line section. Use cfi
34069         intrinsics.
34070         (LLL_STUB_UNWIND_INFO*): Remove.
34071
34072 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34073
34074         [BZ #16758]
34075         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34076         blank values.
34077
34078 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34079
34080         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34081
34082 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34083
34084         [BZ #16198]
34085         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34086         fnstenv.
34087         * math/test-fenv-preserve.c: New file.
34088         * math/Makefile (tests): Add test-fenv-preserve.
34089
34090 2014-03-26  Will Newton <will.newton@linaro.org>
34091
34092         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34093
34094 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34095
34096         * scripts/versionlist.awk: Partition the version sets and emit all
34097         GLIBC_* (sorted) before all others (sorted).
34098
34099 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34100
34101         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34102         GLIBC_2.2.5 version.
34103
34104 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34105
34106         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34107         calls.
34108
34109         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34110         previous change.
34111
34112         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34113
34114 2014-03-25  Andreas Schwab  <schwab@suse.de>
34115
34116         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34117         label to be used after in6ailist is initialized.
34118
34119 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34120
34121         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34122         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34123
34124 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34125
34126         [BZ #16357]
34127         [BZ #16599]
34128         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34129         min_plus_half.
34130         (fp_formats): Update initializers.
34131         (init_fp_formats): Initialize new field.
34132         (output_for_one_input_case): Allow underflow for results up to
34133         min_plus_half.
34134         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34135         * math/auto-libm-test-in: Don't mark some underflows from asin and
34136         atanh as spurious.
34137         * math/auto-libm-test-out: Regenerated.
34138         * sysdeps/i386/fpu/libm-test-ulps: Update.
34139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34140
34141 2014-03-25  Andreas Schwab  <schwab@suse.de>
34142
34143         * libio/Makefile (tst-ftell-partial-wide-ENV)
34144         (tst-ftell-active-handler-ENV): Define.
34145
34146 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34147
34148         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34149
34150 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34151
34152         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34153
34154 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34155
34156         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34157         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34158         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34159
34160 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34161
34162         [BZ #16634]
34163         * elf/dl-load.c (open_verify): Add mode parameter.
34164         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34165         (open_path): Change from boolean 'secure' to complete flag 'mode'
34166         (_dl_map_object): Adjust.
34167         * elf/Makefile (tests): Add tst-dlopen-aout.
34168         * elf/tst-dlopen-aout.c: New test.
34169
34170 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34171
34172         [BZ #16714]
34173         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34174         (struct stat): Rename member pad0 to __glibc_reserved0.
34175
34176         [BZ #16712]
34177         * sysdeps/s390/s390-32/bits/wordsize.h
34178         (__WORDSIZE32_SIZE_ULONG): New define.
34179         * sysdeps/s390/s390-64/bits/wordsize.h
34180         (__WORDSIZE32_SIZE_ULONG): Likewise.
34181         * sysdeps/generic/stdint.h (SIZE_MAX):
34182         Define as UL if __WORDSIZE32_SIZE_ULONG.
34183
34184         [BZ #16713]
34185         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34186         (__glibc_reserved0): New variable.
34187         (sa_flags): Change type to int.
34188
34189         * posix/Makefile (before-compile): Use += before-compile instead
34190         of a :=.
34191
34192         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34193         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34194
34195 2014-03-20  Andreas Schwab  <schwab@suse.de>
34196
34197         [BZ #16743]
34198         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34199         non-matching result from nscd.
34200
34201 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34202
34203         * scripts/bench.py: Moved to ...
34204         * benchtests/scripts/bench.py: ... here.
34205         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34206
34207 2014-03-24  Andreas Schwab  <schwab@suse.de>
34208
34209         [BZ #16002]
34210         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34211         alloca_account and account alloca use for struct in6ailist.
34212
34213 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34214
34215         [BZ #16284]
34216         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34217         rounding mode to recompute results that overflow to infinity or
34218         underflow to zero.
34219         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34220         bug 16284.
34221         * math/auto-libm-test-out: Regenerated.
34222         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34223         (ccosh_test): Likewise.
34224         (csin_test_data): Use plus_oflow.
34225         (csin_test): Use ALL_RM_TEST.
34226         (csinh_test_data): Use plus_oflow.
34227         (csinh_test): Use ALL_RM_TEST.
34228         * sysdeps/i386/fpu/libm-test-ulps: Update.
34229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34230
34231 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34232
34233         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34234         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34235         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34236
34237         [BZ #16731]
34238         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34239         when x - 1 is zero.
34240         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34241         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34242         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34243         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34244         argument is 1.
34245         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34246         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34247         zero.
34248         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34249         * sysdeps/i386/fpu/libm-test-ulps: Update.
34250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34251
34252 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34253
34254         * scripts/bench.pl: Remove file.
34255         * scripts/bench.py: New benchmark script.
34256         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34257         * benchtests/README: Mention python dependency.
34258         * scripts/pylintrc: New file.
34259         * scripts/pylint: New file.
34260
34261         * bits/mathdef.h: Use #ifdef instead of #if.
34262         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34263         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34264         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34265         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34266         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34267         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34268
34269 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34270             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34271
34272         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34273         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34274         and strpbrk-ppc64 objects.
34275         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34276         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34277         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34278         multiarch strpbrk for POWER7.
34279         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34280         multiarch strpbrk for PPC64.
34281         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34282         ifunc selector.
34283         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34284         strpbrk for POWER7.
34285
34286 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34287
34288         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34289         (atan_test): Likewise.
34290         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34291         (atanh_test): Use ALL_RM_TEST.
34292         (atan2_test_data): Likewise.
34293         (cabs_test): Likewise.
34294         (cacosh_test): Likewise.
34295         (carg_test): Likewise.
34296         (casin_test): Likewise.
34297         (casinh_test): Likewise.
34298         (cbrt_test): Likewise.
34299         (csqrt_test): Likewise.
34300         (erf_test): Likewise.
34301         (erfc_test): Likewise.
34302         (pow10_test): Likewise.
34303         (exp2_test): Likewise.
34304         (hypot_test): Likewise.
34305         (j0_test): Likewise.
34306         (j1_test): Likewise.
34307         (lgamma_test): Likewise.
34308         (gamma_test): Likewise.
34309         (sincos_test): Likewise.
34310         (tanh_test): Likewise.
34311         (y0_test): Likewise.
34312         (y1_test): Likewise.
34313         * sysdeps/i386/fpu/libm-test-ulps: Update.
34314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34315
34316 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34317
34318         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34319         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34320         and strcspn-ppc64 objects.
34321         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34322         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34323         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34324         multiarch strcspn for POWER7.
34325         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34326         multiarch strcspn for PPC64.
34327         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34328         ifunc selector.
34329         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34330         strcspn for POWER7.
34331
34332 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34333
34334         * math/gen-libm-test.pl (generate_testfile): Expect only function
34335         name as argument to AUTO_TESTS_* and pass results for all rounding
34336         modes to parse_args.
34337         (parse_auto_input): Separate inputs of automatic tests from
34338         outputs before storing in %auto_tests.
34339         * math/libm-test.inc (acos_test_data): Update call to
34340         AUTO_TESTS_f_f.
34341         (acos_test): Use ALL_RM_TEST.
34342         (acos_tonearest_test_data): Remove.
34343         (acos_test_tonearest): Likewise.
34344         (acos_towardzero_test_data): Likewise.
34345         (acos_test_towardzero): Likewise.
34346         (acos_downward_test_data): Likewise.
34347         (acos_test_downward): Likewise.
34348         (acos_upward_test_data): Likewise.
34349         (acos_test_upward): Likewise.
34350         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34351         (asin_test_data): Likewise.
34352         (asin_test): Use ALL_RM_TEST.
34353         (asin_tonearest_test_data): Remove.
34354         (asin_test_tonearest): Likewise.
34355         (asin_towardzero_test_data): Likewise.
34356         (asin_test_towardzero): Likewise.
34357         (asin_downward_test_data): Likewise.
34358         (asin_test_downward): Likewise.
34359         (asin_upward_test_data): Likewise.
34360         (asin_test_upward): Likewise.
34361         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34362         (atan_test_data): Likewise.
34363         (atanh_test_data): Likewise.
34364         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34365         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34366         (carg_test_data): Likewise.
34367         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34368         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34369         (ccosh_test_data): Likewise.
34370         (cexp_test_data): Likewise.
34371         (clog_test_data): Likewise.
34372         (clog10_test_data): Likewise.
34373         (cos_test_data): Update call to AUTO_TESTS_f_f.
34374         (cos_test): Use ALL_RM_TEST.
34375         (cos_tonearest_test_data): Remove.
34376         (cos_test_tonearest): Likewise.
34377         (cos_towardzero_test_data): Likewise.
34378         (cos_test_towardzero): Likewise.
34379         (cos_downward_test_data): Likewise.
34380         (cos_test_downward): Likewise.
34381         (cos_upward_test_data): Likewise.
34382         (cos_test_upward): Likewise.
34383         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34384         (cosh_test): Use ALL_RM_TEST.
34385         (cosh_tonearest_test_data): Remove.
34386         (cosh_test_tonearest): Likewise.
34387         (cosh_towardzero_test_data): Likewise.
34388         (cosh_test_towardzero): Likewise.
34389         (cosh_downward_test_data): Likewise.
34390         (cosh_test_downward): Likewise.
34391         (cosh_upward_test_data): Likewise.
34392         (cosh_test_upward): Likewise.
34393         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34394         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34395         (ctan_test_data): Likewise.
34396         (ctan_test): Use ALL_RM_TEST.
34397         (ctan_tonearest_test_data): Remove.
34398         (ctan_test_tonearest): Likewise.
34399         (ctan_towardzero_test_data): Likewise.
34400         (ctan_test_towardzero): Likewise.
34401         (ctan_downward_test_data): Likewise.
34402         (ctan_test_downward): Likewise.
34403         (ctan_upward_test_data): Likewise.
34404         (ctan_test_upward): Likewise.
34405         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34406         (ctanh_test): Use ALL_RM_TEST.
34407         (ctanh_tonearest_test_data): Remove.
34408         (ctanh_test_tonearest): Likewise.
34409         (ctanh_towardzero_test_data): Likewise.
34410         (ctanh_test_towardzero): Likewise.
34411         (ctanh_downward_test_data): Likewise.
34412         (ctanh_test_downward): Likewise.
34413         (ctanh_upward_test_data): Likewise.
34414         (ctanh_test_upward): Likewise.
34415         (erf_test_data): Update call to AUTO_TESTS_f_f.
34416         (erfc_test_data): Likewise.
34417         (exp_test_data): Likewise.
34418         (exp_test): Use ALL_RM_TEST.
34419         (exp_tonearest_test_data): Remove.
34420         (exp_test_tonearest): Likewise.
34421         (exp_towardzero_test_data): Likewise.
34422         (exp_test_towardzero): Likewise.
34423         (exp_downward_test_data): Likewise.
34424         (exp_test_downward): Likewise.
34425         (exp_upward_test_data): Likewise.
34426         (exp_test_upward): Likewise.
34427         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34428         (exp10_test): Use ALL_RM_TEST.
34429         (exp10_tonearest_test_data): Remove.
34430         (exp10_test_tonearest): Likewise.
34431         (exp10_towardzero_test_data): Likewise.
34432         (exp10_test_towardzero): Likewise.
34433         (exp10_downward_test_data): Likewise.
34434         (exp10_test_downward): Likewise.
34435         (exp10_upward_test_data): Likewise.
34436         (exp10_test_upward): Likewise.
34437         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34438         (expm1_test_data): Likewise.
34439         (expm1_test): Use ALL_RM_TEST.
34440         (expm1_tonearest_test_data): Remove.
34441         (expm1_test_tonearest): Likewise.
34442         (expm1_towardzero_test_data): Likewise.
34443         (expm1_test_towardzero): Likewise.
34444         (expm1_downward_test_data): Likewise.
34445         (expm1_test_downward): Likewise.
34446         (expm1_upward_test_data): Likewise.
34447         (expm1_test_upward): Likewise.
34448         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34449         (fma_test): Use ALL_RM_TEST.
34450         (fma_towardzero_test_data): Remove.
34451         (fma_test_towardzero): Likewise.
34452         (fma_downward_test_data): Likewise.
34453         (fma_test_downward): Likewise.
34454         (fma_upward_test_data): Likewise.
34455         (fma_test_upward): Likewise.
34456         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34457         (j0_test_data): Update call to AUTO_TESTS_f_f.
34458         (j1_test_data): Likewise.
34459         (jn_test_data): Update call to AUTO_TESTS_if_f.
34460         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34461         (log_test_data): Update call to AUTO_TESTS_f_f.
34462         (log10_test_data): Likewise.
34463         (log1p_test_data): Likewise.
34464         (log2_test_data): Likewise.
34465         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34466         (pow_tonearest_test_data): Likewise.
34467         (sin_test_data): Update call to AUTO_TESTS_f_f.
34468         (sin_test): Use ALL_RM_TEST.
34469         (sin_tonearest_test_data): Remove.
34470         (sin_test_tonearest): Likewise.
34471         (sin_towardzero_test_data): Likewise.
34472         (sin_test_towardzero): Likewise.
34473         (sin_downward_test_data): Likewise.
34474         (sin_test_downward): Likewise.
34475         (sin_upward_test_data): Likewise.
34476         (sin_test_upward): Likewise.
34477         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34478         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34479         (sinh_test): Use ALL_RM_TEST.
34480         (sinh_tonearest_test_data): Remove.
34481         (sinh_test_tonearest): Likewise.
34482         (sinh_towardzero_test_data): Likewise.
34483         (sinh_test_towardzero): Likewise.
34484         (sinh_downward_test_data): Likewise.
34485         (sinh_test_downward): Likewise.
34486         (sinh_upward_test_data): Likewise.
34487         (sinh_test_upward): Likewise.
34488         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34489         (sqrt_test): Use ALL_RM_TEST.
34490         (sqrt_tonearest_test_data): Remove.
34491         (sqrt_test_tonearest): Likewise.
34492         (sqrt_towardzero_test_data): Likewise.
34493         (sqrt_test_towardzero): Likewise.
34494         (sqrt_downward_test_data): Likewise.
34495         (sqrt_test_downward): Likewise.
34496         (sqrt_upward_test_data): Likewise.
34497         (sqrt_test_upward): Likewise.
34498         (tan_test_data): Update call to AUTO_TESTS_f_f.
34499         (tan_test): Use ALL_RM_TEST.
34500         (tan_tonearest_test_data): Remove.
34501         (tan_test_tonearest): Likewise.
34502         (tan_towardzero_test_data): Likewise.
34503         (tan_test_towardzero): Likewise.
34504         (tan_downward_test_data): Likewise.
34505         (tan_test_downward): Likewise.
34506         (tan_upward_test_data): Likewise.
34507         (tan_test_upward): Likewise.
34508         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34509         (tgamma_test_data): Likewise.
34510         (y0_test_data): Likewise.
34511         (y1_test_data): Likewise.
34512         (yn_test_data): Update call to AUTO_TESTS_if_f.
34513         (main): Do not call removed functions.
34514
34515 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34516
34517         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34518         (ldexp_test_data): Remove.
34519         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34520         scalbn_test_data.
34521         (scalb_test): Use ALL_RM_TEST.
34522
34523 2014-03-19  Andreas Schwab  <schwab@suse.de>
34524
34525         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34526
34527 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34528
34529         [BZ #16649]
34530         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34531         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34532         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34533         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34534         (__ASSUME_PREADV): Undefine.
34535         (__ASSUME_PWRITEV): Likewise.
34536
34537 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34538
34539         * bits/mman-linux.h: Add comment about non-Linux use.
34540         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34541         bits/mman-linux.h resting place.
34542
34543         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34544         * bits/mman-linux.h: ... here.
34545
34546 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34547
34548         * conform/conformtest.pl: Add standard definition when calling C
34549         preprocessor on data files.
34550         (checknamespace): Remove unused variable.
34551
34552 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34553
34554         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34555         minus_oflow, plus_uflow and minus_uflow in expected results.
34556         * math/libm-test.inc (scalbn_test_data): Add more tests of
34557         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34558         minus_uflow.
34559         (scalbn_test): Use ALL_RM_TEST.
34560         (scalbln_test_data): Add more tests of negative arguments.  Use
34561         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34562         (scalbln_test): Use ALL_RM_TEST.
34563
34564 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34565
34566         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34567
34568 2014-03-18  Will Newton  <will.newton@linaro.org>
34569
34570         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34571         inaccurate comment.
34572
34573 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34574
34575         * Makerules [!subdir] (check-abi): Exit with error status if a
34576         test failed.
34577
34578 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34579
34580         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34581         for rint.  Include results for all rounding modes.
34582         (nearbyint_test): Use ALL_RM_TEST.
34583         (rint_test_data): Include all tests used for nearbyint.
34584
34585 2014-03-17  Will Newton  <will.newton@linaro.org>
34586
34587         * nptl/sysdeps/pthread/pthread.h: Revert previous
34588         change.
34589
34590         * sysdeps/generic/ldsodefs.h: Revert previous
34591         change.
34592
34593         * libio/genops.c: Revert previous change.
34594         * libio/libioP.h: Likewise.
34595         * stdio-common/vfprintf.c: Likewise.
34596
34597         * sysdeps/generic/math_private.h: Revert previous
34598         change.
34599
34600         * sysdeps/generic/math_private.h: Check whether
34601         HAVE_RM_CTX is defined with #ifdef rather
34602         than #if.
34603
34604         * argp/argp-fmtstream.h: Check whether
34605         __STRICT_ANSI__ is defined with #ifdef rather
34606         than #if.
34607         * argp/argp.h: Likewise.
34608
34609         * libio/genops.c: Check whether
34610         _IO_JUMPS_OFFSET is defined with #ifdef rather
34611         than #if.
34612         * libio/libioP.h: Likewise.
34613         * stdio-common/vfprintf.c: Likewise.
34614
34615         * sysdeps/generic/ldsodefs.h: Check whether
34616         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34617         than #if.
34618
34619         * nptl/sysdeps/pthread/pthread.h: Check
34620         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34621         its value.
34622
34623 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34624
34625         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34626         setting O_APPEND.
34627         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34628         test case.
34629
34630         [BZ #16680]
34631         * libio/fileops.c (_IO_file_open): Seek to end of file but
34632         don't cache the offset.
34633         (get_file_offset): Remove function.
34634         (do_ftell): Use cached offset when available.
34635         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34636         don't cache the offset.
34637         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34638         case.
34639         (do_one_test): Call it.
34640         (do_ftell_test): Fix up expected old offset for a+ mode.
34641         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34642         available.
34643
34644         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34645         up test status with function return status.
34646         (do_write_test): Likewise.
34647         (do_append_test): Likewise.
34648
34649         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34650         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34651         Remove.
34652
34653 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34654
34655         * math/gen-libm-test.pl (parse_args): Handle results specified for
34656         each rounding mode separately.
34657         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34658         tests and results from lrint_tonearest_test_data,
34659         lrint_towardzero_test_data, lrint_downward_test_data and
34660         lrint_upward_test_data.
34661         (lrint_test): Use ALL_RM_TEST.
34662         (lrint_tonearest_test_data): Remove.
34663         (lrint_test_tonearest): Likewise.
34664         (lrint_towardzero_test_data): Likewise.
34665         (lrint_test_towardzero): Likewise.
34666         (lrint_downward_test_data): Likewise.
34667         (lrint_test_downward): Likewise.
34668         (lrint_upward_test_data): Likewise.
34669         (lrint_test_upward): Likewise.
34670         (llrint_test_data): Merge in per-rounding-mode tests and results
34671         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34672         llrint_downward_test_data and llrint_upward_test_data.
34673         (llrint_test): Use ALL_RM_TEST.
34674         (llrint_tonearest_test_data): Remove.
34675         (llrint_test_tonearest): Likewise.
34676         (llrint_towardzero_test_data): Likewise.
34677         (llrint_test_towardzero): Likewise.
34678         (llrint_downward_test_data): Likewise.
34679         (llrint_test_downward): Likewise.
34680         (llrint_upward_test_data): Likewise.
34681         (llrint_test_upward): Likewise.
34682         (rint_test_data): Merge in per-rounding-mode tests and results
34683         from rint_tonearest_test_data, rint_towardzero_test_data,
34684         rint_downward_test_data and rint_upward_test_data.  Add
34685         per-rounding-mode results for tests not in those arrays.
34686         (rint_test): Use ALL_RM_TEST.
34687         (rint_tonearest_test_data): Remove.
34688         (rint_test_tonearest): Likewise.
34689         (rint_towardzero_test_data): Likewise.
34690         (rint_test_towardzero): Likewise.
34691         (rint_downward_test_data): Likewise.
34692         (rint_test_downward): Likewise.
34693         (rint_upward_test_data): Likewise.
34694         (rint_test_upward): Likewise.
34695         (main): Don't call removed functions.
34696
34697 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34698
34699         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34700         "Compiled on ..." crapola.  It is anti-useful.
34701
34702 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34703
34704         * scripts/evaluate-test.sh: Handle fourth argument to determine
34705         whether test run should stop on failure.
34706         * Makeconfig (stop-on-test-failure): New variable.
34707         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34708         $(stop-on-test-failure).
34709         * Makefile (tests): Give a summary of results from testing and
34710         exit with failure status if they include an ERROR or FAIL.
34711         (xtests): Likewise.
34712         * manual/install.texi (Configuring and compiling): Mention
34713         stop-on-test-failure=y.
34714         * INSTALL: Regenerated.
34715
34716 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34717
34718         * scripts/versionlist.awk: New file.
34719         * Makerules [$(build-shared) = yes]
34720         (postclean-generated): Add Versions.def, not Versions.def.v and
34721         Versions.def.v.i.
34722         ($(common-objpfx)Versions.def.v.i): Target removed.
34723         ($(common-objpfx)Versions.def): New target.
34724         ($(common-objpfx)Versions.all): Depend on that rather that
34725         $(common-objpfx)Versions.def.v.
34726         * Versions.def: File removed.
34727
34728         * Makeconfig (+gccwarn): Add -Wundef.
34729         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34730         a dl-sysdep.h breaking its contract.
34731         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34732         * include/stackinfo.h: New file.
34733         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34734         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34735         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34736         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34737         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34738         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34739         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34740         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34741         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34742         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34743         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34744         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34745         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34746         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34747         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34748
34749 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34750
34751         [BZ #16707]
34752         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34753         implementation.
34754         * math/libm-test.inc (round_test_data): Add more tests.
34755
34756         [BZ #16706]
34757         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34758         implementation.
34759         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34760
34761         [BZ #16701]
34762         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34763         implementation.
34764         * math/libm-test.inc (ceil_test_data): Add more tests.
34765
34766         * math/libm-test.inc (trunc_test_data): Add more tests related to
34767         BZ#16414.
34768
34769 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34770
34771         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34772         with #if rather than #ifdef.
34773         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34774
34775 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34776
34777         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34778         first.  Disable AVX-512 GCC support if assembler doesn't support
34779         it.
34780         * sysdeps/x86_64/configure: Regenerated.
34781
34782 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34783
34784         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34785         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34786         (__old_pthread_attr_setstack): Likewise.
34787         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34788         [!_STACK_GROWS_DOWN]: Likewise.
34789
34790 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34791
34792         * config.make.in (have-bash2): Delete.
34793         * configure.ac (libc_cv_have_bash2): Delete.
34794         * configure: Regenerate.
34795         * elf/Makefile (common-ldd-rewrite): Rename to ...
34796         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34797         (sh-ldd-rewrite): Delete.
34798         (bash-ldd-rewrite): Delete.
34799         (have-bash2): Delete checks.
34800         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34801         ldd-rewrite.
34802
34803         * config.make.in (have-ksh): Delete.
34804         (KSH): Delete.
34805         * configure.ac (libc_cv_have_ksh): Delete.
34806         * configure: Regenerate.
34807
34808         * elf/Makefile: Delete $(have-ksh) check.
34809         ($(objpfx)sotruss): Change KSH to BASH.
34810         * elf/sotruss.ksh: Rename to ...
34811         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34812         function style to match POSIX.  Drop ksh vim mode setting.
34813
34814         * manual/time.texi (Specifying the Time Zone with TZ): Change
34815         Tuesday to Thursday.
34816
34817         * debug/tst-longjmp_chk2.c: Update header comment.
34818         (stackoverflow_handler): Add comment.  Call assert on pass value.
34819
34820 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34821
34822         [BZ #16194]
34823         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34824         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34825         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34826         (La_x86_64_vector): Add zmm.
34827         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34828         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34829         ($(objpfx)tst-audit10): New target.
34830         ($(objpfx)tst-audit10.out): Likewise.
34831         (tst-audit10-ENV): New.
34832         (AVX512-CFLAGS): Likewise.
34833         (CFLAGS-tst-audit10.c): Likewise.
34834         (CFLAGS-tst-auditmod10a.c): Likewise.
34835         (CFLAGS-tst-auditmod10b.c): Likewise.
34836         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34837         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34838         * sysdeps/x86_64/configure: Regenerated.
34839         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34840         AVX-512 zmm register support.
34841         (_dl_x86_64_save_sse): Likewise.
34842         (_dl_x86_64_restore_sse): Likewise.
34843         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34844         size vector registers.
34845         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34846         (ZMM_SIZE): Likewise.
34847         * sysdeps/x86_64/tst-audit10.c: New file.
34848         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
34849         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
34850
34851 2014-03-13  Roland McGrath  <roland@hack.frob.com>
34852
34853         * configure.ac (HAVE_EHDR_START): New check.
34854         * configure: Regenerated.
34855         * config.h.in (HAVE_EHDR_START): New #undef.
34856         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
34857         assuming the lowest-addressed segment maps the start of the file.
34858
34859 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
34860
34861         * INSTALL: Regenerated.
34862
34863 2014-03-13  Will Newton  <will.newton@linaro.org>
34864
34865         * manual/setjmp.texi (System V contexts): Improve
34866         clarity and grammar of documentation.
34867
34868 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
34869
34870         [BZ #16381]
34871         * elf/Makefile (tests): Add tst-pie2.
34872         (tests-pie): Add tst-pie2.
34873         * elf/tst-pie2.c: New file.
34874         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
34875         for ET_EXEC.
34876         * elf/rtld.c (map_doit): Load executable as lt_executable.
34877         (dl_main): Likewise.
34878
34879 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
34880
34881         [BZ #16642]
34882         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34883         (__ASSUME_PSELECT): Undefine.
34884
34885 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34886
34887         [BZ #16689]
34888         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
34889         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
34890         static build.
34891         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
34892         selector for static builds.
34893
34894 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34895
34896         [BZ #16695]
34897         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
34898         key in the buffer.
34899
34900 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34901
34902         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
34903         IFUNC selector for static builds.
34904
34905 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
34906
34907         * sysdeps/mips/math_private.h [__mips_hard_float]
34908         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
34909         libc_feresetround_mips_ctx.
34910         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
34911         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
34912         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
34913
34914         [BZ #16677]
34915         * math/s_nextafter.c (__nextafter): Do not return value from
34916         overflowing computation.
34917         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34918         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
34919         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34920         Likewise.
34921         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
34922         Likewise.
34923         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34924         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
34925
34926 2014-03-11  Roland McGrath  <roland@hack.frob.com>
34927
34928         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
34929         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
34930         Move sfi_sp use from the load-multiple (that no longer sets sp) to
34931         the new mov targetting sp.
34932
34933 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34934
34935         [BZ #16683]
34936         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
34937         Define it for static builds as well.
34938         (NO_BZERO_IMPL): Likewise.
34939
34940 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34941
34942         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
34943         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
34944         multiarch strspn for PPC64.
34945         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
34946         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
34947         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34948         (__libc_ifunc_impl_list): Likewise.
34949         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
34950         multiarch optimizations
34951         * string/strspn.c (strspn): Using macro to redefine symbol name.
34952
34953 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34954             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34955
34956         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
34957         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
34958         multiarch strncat for PPC64.
34959         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
34960         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
34961         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34962         (__libc_ifunc_impl_list): Likewise.
34963         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
34964         multiarch optimizations
34965
34966 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34967
34968         [BZ #16639]
34969         * nscd/nscd.service: Make service type forking.
34970
34971 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34972
34973         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
34974         sign in non default rounding modes.
34975         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
34976
34977 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
34978
34979         * math/libm-test.inc (ALL_RM_TEST): New macro.
34980         (ceil_test): Use ALL_RM_TEST.
34981         (cimag_test): Likewise.
34982         (conj_test): Likewise.
34983         (copysign_test): Likewise.
34984         (cproj_test): Likewise.
34985         (creal_test): Likewise.
34986         (fabs_test): Likewise.
34987         (floor_test): Likewise.
34988         (fmax_test): Likewise.
34989         (fmin_test): Likewise.
34990         (fmod_test): Likewise.
34991         (fpclassify_test): Likewise.
34992         (frexp_test): Likewise.
34993         (ilogb_test): Likewise.
34994         (isfinite_test): Likewise.
34995         (finite_test): Likewise.
34996         (isgreater_test): Likewise.
34997         (isgreaterequal_test): Likewise.
34998         (isinf_test): Likewise.
34999         (isless_test): Likewise.
35000         (islessequal_test): Likewise.
35001         (islessgreater_test): Likewise.
35002         (isnan_test): Likewise.
35003         (isnormal_test): Likewise.
35004         (issignaling_test): Likewise.
35005         (isunordered_test): Likewise.
35006         (logb_test): Likewise.
35007         (logb_downward_test_data): Remove.
35008         (logb_test_downward): Likewise.
35009         (lround_test): Use ALL_RM_TEST.
35010         (llround_test): Likewise.
35011         (modf_test): Likewise.
35012         (nexttoward_test): Likewise.
35013         (remainder_test): Likewise.
35014         (drem_test): Likewise.
35015         (remainder_tonearest_test_data): Likewise.
35016         (remainder_test_tonearest): Likewise.
35017         (drem_test_tonearest): Likewise.
35018         (remainder_towardzero_test_data): Likewise.
35019         (remainder_test_towardzero): Likewise.
35020         (drem_test_towardzero): Likewise.
35021         (remainder_downward_test_data): Likewise.
35022         (remainder_test_downward): Likewise.
35023         (drem_test_downward): Likewise.
35024         (remainder_upward_test_data): Likewise.
35025         (remainder_test_upward): Likewise.
35026         (drem_test_upward): Likewise.
35027         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35028         (round_test): Use ALL_RM_TEST.
35029         (signbit_test): Likewise.
35030         (trunc_test): Likewise.
35031         (significand_test): Likewise.
35032         (main): Don't call removed functions.
35033
35034 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35035
35036         [BZ #16674]
35037         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35038         || __USE_XOPEN2K8].
35039         (ILL_ILLOPN): Likewise.
35040         (ILL_ILLADR): Likewise.
35041         (ILL_ILLTRP): Likewise.
35042         (ILL_PRVOPC): Likewise.
35043         (ILL_PRVREG): Likewise.
35044         (ILL_COPROC): Likewise.
35045         (ILL_BADSTK): Likewise.
35046         (FPE_INTDIV): Likewise.
35047         (FPE_INTOVF): Likewise.
35048         (FPE_FLTDIV): Likewise.
35049         (FPE_FLTOVF): Likewise.
35050         (FPE_FLTUND): Likewise.
35051         (FPE_FLTRES): Likewise.
35052         (FPE_FLTINV): Likewise.
35053         (FPE_FLTSUB): Likewise.
35054         (SEGV_MAPERR): Likewise.
35055         (SEGV_ACCERR): Likewise.
35056         (BUS_ADRALN): Likewise.
35057         (BUS_ADRERR): Likewise.
35058         (BUS_OBJERR): Likewise.
35059         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35060         (TRAP_TRACE): Likewise.
35061         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35062         __USE_XOPEN2K8].
35063         (CLD_KILLED): Likewise.
35064         (CLD_DUMPED): Likewise.
35065         (CLD_TRAPPED): Likewise.
35066         (CLD_STOPPED): Likewise.
35067         (CLD_CONTINUED): Likewise.
35068         (POLL_IN): Likewise.
35069         (POLL_OUT): Likewise.
35070         (POLL_MSG): Likewise.
35071         (POLL_ERR): Likewise.
35072         (POLL_PRI): Likewise.
35073         (POLL_HUP): Likewise.
35074         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35075         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/bits/siginfo.h (ILL_ILLOPC): Likewise.
35114         (ILL_ILLOPN): Likewise.
35115         (ILL_ILLADR): Likewise.
35116         (ILL_ILLTRP): Likewise.
35117         (ILL_PRVOPC): Likewise.
35118         (ILL_PRVREG): Likewise.
35119         (ILL_COPROC): Likewise.
35120         (ILL_BADSTK): Likewise.
35121         (FPE_INTDIV): Likewise.
35122         (FPE_INTOVF): Likewise.
35123         (FPE_FLTDIV): Likewise.
35124         (FPE_FLTOVF): Likewise.
35125         (FPE_FLTUND): Likewise.
35126         (FPE_FLTRES): Likewise.
35127         (FPE_FLTINV): Likewise.
35128         (FPE_FLTSUB): Likewise.
35129         (SEGV_MAPERR): Likewise.
35130         (SEGV_ACCERR): Likewise.
35131         (BUS_ADRALN): Likewise.
35132         (BUS_ADRERR): Likewise.
35133         (BUS_OBJERR): Likewise.
35134         (BUS_MCEERR_AR): Likewise.
35135         (BUS_MCEERR_AO): Likewise.
35136         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35137         (TRAP_TRACE): Likewise.
35138         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35139         __USE_XOPEN2K8].
35140         (CLD_KILLED): Likewise.
35141         (CLD_DUMPED): Likewise.
35142         (CLD_TRAPPED): Likewise.
35143         (CLD_STOPPED): Likewise.
35144         (CLD_CONTINUED): Likewise.
35145         (POLL_IN): Likewise.
35146         (POLL_OUT): Likewise.
35147         (POLL_MSG): Likewise.
35148         (POLL_ERR): Likewise.
35149         (POLL_PRI): Likewise.
35150         (POLL_HUP): Likewise.
35151         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35152         Likewise.
35153         (ILL_ILLOPN): Likewise.
35154         (ILL_ILLADR): Likewise.
35155         (ILL_ILLTRP): Likewise.
35156         (ILL_PRVOPC): Likewise.
35157         (ILL_PRVREG): Likewise.
35158         (ILL_COPROC): Likewise.
35159         (ILL_BADSTK): Likewise.
35160         (ILL_BADIADDR): Likewise.
35161         (ILL_BREAK): Likewise.
35162         (FPE_INTDIV): Likewise.
35163         (FPE_INTOVF): Likewise.
35164         (FPE_FLTDIV): Likewise.
35165         (FPE_FLTOVF): Likewise.
35166         (FPE_FLTUND): Likewise.
35167         (FPE_FLTRES): Likewise.
35168         (FPE_FLTINV): Likewise.
35169         (FPE_FLTSUB): Likewise.
35170         (FPE_DECOVF): Likewise.
35171         (FPE_DECDIV): Likewise.
35172         (FPE_DECERR): Likewise.
35173         (FPE_INVASC): Likewise.
35174         (FPE_INVDEC): Likewise.
35175         (SEGV_MAPERR): Likewise.
35176         (SEGV_ACCERR): Likewise.
35177         (SEGV_PSTKOVF): Likewise.
35178         (BUS_ADRALN): Likewise.
35179         (BUS_ADRERR): Likewise.
35180         (BUS_OBJERR): Likewise.
35181         (BUS_MCEERR_AR): Likewise.
35182         (BUS_MCEERR_AO): Likewise.
35183         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35184         (TRAP_TRACE): Likewise.
35185         (TRAP_BRANCH): Likewise.
35186         (TRAP_HWBKPT): 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/mips/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/s390/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/sparc/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         (FPE_INTDIV): Likewise.
35285         (FPE_INTOVF): Likewise.
35286         (FPE_FLTDIV): Likewise.
35287         (FPE_FLTOVF): Likewise.
35288         (FPE_FLTUND): Likewise.
35289         (FPE_FLTRES): Likewise.
35290         (FPE_FLTINV): Likewise.
35291         (FPE_FLTSUB): Likewise.
35292         (SEGV_MAPERR): Likewise.
35293         (SEGV_ACCERR): Likewise.
35294         (BUS_ADRALN): Likewise.
35295         (BUS_ADRERR): Likewise.
35296         (BUS_OBJERR): Likewise.
35297         (BUS_MCEERR_AR): Likewise.
35298         (BUS_MCEERR_AO): Likewise.
35299         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35300         (TRAP_TRACE): Likewise.
35301         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35302         __USE_XOPEN2K8].
35303         (CLD_KILLED): Likewise.
35304         (CLD_DUMPED): Likewise.
35305         (CLD_TRAPPED): Likewise.
35306         (CLD_STOPPED): Likewise.
35307         (CLD_CONTINUED): Likewise.
35308         (POLL_IN): Likewise.
35309         (POLL_OUT): Likewise.
35310         (POLL_MSG): Likewise.
35311         (POLL_ERR): Likewise.
35312         (POLL_PRI): Likewise.
35313         (POLL_HUP): Likewise.
35314         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35315         (ILL_ILLOPN): Likewise.
35316         (ILL_ILLADR): Likewise.
35317         (ILL_ILLTRP): Likewise.
35318         (ILL_PRVOPC): Likewise.
35319         (ILL_PRVREG): Likewise.
35320         (ILL_COPROC): Likewise.
35321         (ILL_BADSTK): Likewise.
35322         (ILL_DBLFLT): Likewise.
35323         (ILL_HARDWALL): 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         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35355         (ILL_ILLOPN): Likewise.
35356         (ILL_ILLADR): Likewise.
35357         (ILL_ILLTRP): Likewise.
35358         (ILL_PRVOPC): Likewise.
35359         (ILL_PRVREG): Likewise.
35360         (ILL_COPROC): Likewise.
35361         (ILL_BADSTK): Likewise.
35362         (FPE_INTDIV): Likewise.
35363         (FPE_INTOVF): Likewise.
35364         (FPE_FLTDIV): Likewise.
35365         (FPE_FLTOVF): Likewise.
35366         (FPE_FLTUND): Likewise.
35367         (FPE_FLTRES): Likewise.
35368         (FPE_FLTINV): Likewise.
35369         (FPE_FLTSUB): Likewise.
35370         (SEGV_MAPERR): Likewise.
35371         (SEGV_ACCERR): Likewise.
35372         (BUS_ADRALN): Likewise.
35373         (BUS_ADRERR): Likewise.
35374         (BUS_OBJERR): Likewise.
35375         (BUS_MCEERR_AR): Likewise.
35376         (BUS_MCEERR_AO): Likewise.
35377         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35378         (TRAP_TRACE): Likewise.
35379         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35380         __USE_XOPEN2K8].
35381         (CLD_KILLED): Likewise.
35382         (CLD_DUMPED): Likewise.
35383         (CLD_TRAPPED): Likewise.
35384         (CLD_STOPPED): Likewise.
35385         (CLD_CONTINUED): Likewise.
35386         (POLL_IN): Likewise.
35387         (POLL_OUT): Likewise.
35388         (POLL_MSG): Likewise.
35389         (POLL_ERR): Likewise.
35390         (POLL_PRI): Likewise.
35391         (POLL_HUP): Likewise.
35392         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35393         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35394
35395         [BZ #16670]
35396         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35397         before #include of <time.h>.
35398         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35399         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35400         (test-xfail-UNIX98/sched.h/conform): Likewise.
35401
35402 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35403
35404         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35405         error absence of trapping exception support.
35406         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35407
35408 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35409
35410         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35411         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35412         * timezone/Makefile (testdata): Move definition above include of
35413         Rules.
35414         (test-zones): New variable.
35415         (tests-special): Add zone files.
35416         (build-testdata): Use $(evaluate-test).
35417
35418         * elf/Makefile (tests-special): Rename tests to end with .out.
35419         ($(objpfx)noload-mem): Likewise.
35420         ($(objpfx)tst-leaks1-mem): Likewise.
35421         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35422         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35423         $(objpfx)test-iconvconfig.out.
35424         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35425         set -e inside subshell and redirect output to file.
35426         * iconvdata/Makefile (generated): Rename tests to end with .out.
35427         Correct type.
35428         (tests-special): Rename tests to end with .out.
35429         ($(objpfx)mtrace-tst-loading): Likewise.
35430         * intl/Makefile (generated): Likewise.
35431         (tests-special): Likewise.
35432         ($(objpfx)mtrace-tst-gettext): Likewise.
35433         * misc/Makefile (generated): Likewise.
35434         (tests-special): Likewise.
35435         ($(objpfx)tst-error1-mem): Likewise.
35436         * nptl/Makefile (tests-special): Likewise.
35437         ($(objpfx)tst-stack3-mem): Likewise.
35438         (generated): Likewise.
35439         * posix/Makefile (generated): Likewise.
35440         (tests-special): Likewise.
35441         (xtests-special): Likewise.
35442         ($(objpfx)tst-fnmatch-mem): Likewise.
35443         ($(objpfx)bug-regex2-mem): Likewise.
35444         ($(objpfx)bug-regex14-mem): Likewise.
35445         ($(objpfx)bug-regex21-mem): Likewise.
35446         ($(objpfx)bug-regex31-mem): Likewise.
35447         ($(objpfx)tst-vfork3-mem): Likewise.
35448         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35449         ($(objpfx)tst-pcre-mem): Likewise.
35450         ($(objpfx)tst-boost-mem): Likewise.
35451         ($(objpfx)bug-ga2-mem): Likewise.
35452         ($(objpfx)bug-glob2-mem): Likewise.
35453         * resolv/Makefile (generate): Likewise.
35454         (tests-special): Likewise.
35455         (xtests-special): Likewise.
35456         (generated): Likewise.
35457         ($(objpfx)mtrace-tst-leaks): Likewise.
35458         ($(objpfx)mtrace-tst-leaks2): Likewise.
35459
35460         * scripts/merge-test-results.sh: New file.
35461         * Makefile (tests-special-notdir): New variable.
35462         (tests): Run merge-test-results.sh.
35463         (xtests): Likewise.
35464         * Rules (tests-special-notdir): New variable.
35465         (xtests-special-notdir): Likewise.
35466         (tests): Run merge-test-results.sh
35467         (xtests): Likewise.
35468
35469         * Makeconfig (test-xfail-name): New variable.
35470         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35471         compute variable name for expected failures.
35472         * conform/Makefile (conformtest-headers-data): New variable.
35473         (conformtest-standards): Likewise.
35474         (conformtest-headers-ISO): Likewise.
35475         (conformtest-headers-ISO99): Likewise.
35476         (conformtest-headers-ISO11): Likewise.
35477         (conformtest-headers-POSIX): Likewise.
35478         (conformtest-headers-XPG3): Likewise.
35479         (conformtest-headers-XPG4): Likewise.
35480         (conformtest-headers-UNIX98): Likewise.
35481         (conformtest-headers-XOPEN2K): Likewise.
35482         (conformtest-headers-POSIX2008): Likewise.
35483         (conformtest-headers-XOPEN2K8): Likewise.
35484         (conformtest-header-list-base): Likewise.
35485         (conformtest-header-list-tests): Likewise.
35486         (conformtest-header-base): Likewise.
35487         (conformtest-header-tests): Likewise.
35488         (tests-special): Add $(conformtest-header-list-tests).  If
35489         [$(fast-check) && !$(cross-compiling)], add
35490         $(conformtest-header-tests) instead of
35491         $(objpfx)run-conformtest.out.
35492         (generated): Add $(conformtest-header-list-base).  If
35493         [$(fast-check) && !$(cross-compiling)], add
35494         $(conformtest-header-base).  Remove previous setting.
35495         ($(conformtest-header-list-tests)): New target.
35496         (test-xfail-run-conformtest): Remove variable.
35497         ($(objpfx)run-conformtest.out): Remove target.
35498         (test-xfail-ISO11/complex.h/conform): New variable.
35499         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35500         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35501         (test-xfail-XPG3/varargs.h/conform): Likewise.
35502         (test-xfail-XPG4/varargs.h/conform): Likewise.
35503         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35504         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35505         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35506         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35507         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35508         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35509         (test-xfail-XPG3/ftw.h/conform): Likewise.
35510         (test-xfail-XPG3/grp.h/conform): Likewise.
35511         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35512         (test-xfail-XPG3/limits.h/conform): Likewise.
35513         (test-xfail-XPG3/pwd.h/conform): Likewise.
35514         (test-xfail-XPG3/search.h/conform): Likewise.
35515         (test-xfail-XPG3/signal.h/conform): Likewise.
35516         (test-xfail-XPG3/stdio.h/conform): Likewise.
35517         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35518         (test-xfail-XPG3/string.h/conform): Likewise.
35519         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35520         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35521         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35522         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35523         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35524         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35525         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35526         (test-xfail-XPG3/termios.h/conform): Likewise.
35527         (test-xfail-XPG3/time.h/conform): Likewise.
35528         (test-xfail-XPG3/unistd.h/conform): Likewise.
35529         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35530         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35531         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35532         (test-xfail-XPG4/netdb.h/conform): Likewise.
35533         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35534         (test-xfail-XPG4/signal.h/conform): Likewise.
35535         (test-xfail-XPG4/stdio.h/conform): Likewise.
35536         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35537         (test-xfail-XPG4/stropts.h/conform): Likewise.
35538         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35539         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35540         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35541         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35542         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35543         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35544         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35545         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35546         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35547         (test-xfail-XPG4/termios.h/conform): Likewise.
35548         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35549         (test-xfail-XPG4/unistd.h/conform): Likewise.
35550         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35551         (test-xfail-POSIX/sched.h/conform): Likewise.
35552         (test-xfail-POSIX/signal.h/conform): Likewise.
35553         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35554         (test-xfail-POSIX/tar.h/conform): Likewise.
35555         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35556         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35557         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35558         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35559         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35560         (test-xfail-UNIX98/sched.h/conform): Likewise.
35561         (test-xfail-UNIX98/signal.h/conform): Likewise.
35562         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35563         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35564         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35565         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35566         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35567         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35568         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35569         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35570         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35571         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35572         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35573         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35574         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35575         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35576         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35577         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35578         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35579         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35580         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35581         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35582         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35583         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35584         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35585         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35586         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35587         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35588         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35589         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35590         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35591         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35592         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35593         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35594         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35595         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35596         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35597         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35598         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35599         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35600         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35601         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35602         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35603         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35604         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35605         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35606         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35607         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35608         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35609         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35610         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35611         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35612         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35613         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35614         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35615         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35616         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35617         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35618         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35619         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35620         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35621         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35622         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35623         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35624         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35625         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35626         (conformtest-cc-flags): Likewise.
35627         ($(conformtest-header-tests): New target.
35628         * conform/check-header-lists.sh: New file.
35629         * conform/run-conformtest.sh: Remove.
35630
35631         * conform/conformtest.pl: Allow ' and \ in values given for
35632         constants.
35633         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35634         inclusion.
35635         [POSIX] (sys/types.h): Likewise.
35636         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35637         inclusion.
35638         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35639         inclusion.
35640         * conform/data/signal.h-data (SIGIO): Remove expectation.
35641         [XPG3] (SIGBUS): Do not expect.
35642         [POSIX || XPG3] (SIGPOLL): Likewise.
35643         [POSIX || XPG3] (SIGPROF): Likewise.
35644         [POSIX || XPG3] (SIGSYS): Likewise.
35645         [XPG3] (SIGTRAP): Likewise.
35646         [POSIX || XPG3] (SIGURG): Likewise.
35647         [POSIX || XPG3] (SIGVTALRM): Likewise.
35648         [POSIX || XPG3] (SIGXCPU): Likewise.
35649         [POSIX || XPG3] (SIGXFSZ): Likewise.
35650         [POSIX] (SA_SIGINFO): Expect.
35651         [XPG3] (siginfo_t): Do not expect type or contents.
35652         [POSIX] (si_pid): Do not expect element.
35653         [POSIX] (si_uid): Likewise.
35654         [POSIX] (si_addr): Likewise.
35655         [POSIX] (si_status): Likewise.
35656         [POSIX] (si_band): Likewise.
35657         [XPG4] (si_value): Likewise.
35658         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35659         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35660         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35661         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35662         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35663         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35664         [POSIX || XPG3] (ILL_COPROC): Likewise.
35665         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35666         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35667         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35668         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35669         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35670         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35671         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35672         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35673         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35674         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35675         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35676         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35677         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35678         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35679         [POSIX || XPG3] (CLD_EXITED): Likewise.
35680         [POSIX || XPG3] (CLD_KILLED): Likewise.
35681         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35682         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35683         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35684         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35685         [POSIX || XPG3] (POLL_IN): Likewise.
35686         [POSIX || XPG3] (POLL_OUT): Likewise.
35687         [POSIX || XPG3] (POLL_MSG): Likewise.
35688         [POSIX || XPG3] (POLL_ERR): Likewise.
35689         [POSIX || XPG3] (POLL_PRI): Likewise.
35690         [POSIX || XPG3] (POLL_HUP): Likewise.
35691         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35692         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35693         (SIG*): Do not allow.
35694         [XPG3] (si_*): Likewise.
35695         [XPG3] (SI_*): Likewise.
35696         [XPG3 || XPG4] (sigev_*): Likewise.
35697         [XPG3 || XPG4] (SIGEV_*): Likewise.
35698         [XPG3 || XPG4] (sival_*): Likewise.
35699         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35700         [POSIX || XPG3] (BUS_*): Likewise.
35701         [POSIX || XPG3] (CLD_*): Likewise.
35702         [POSIX || XPG3] (FPE_*): Likewise.
35703         [POSIX || XPG3] (ILL_*): Likewise.
35704         [POSIX || XPG3] (POLL_*): Likewise.
35705         [POSIX || XPG3] (SEGV_*): Likewise.
35706         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35707         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35708         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35709         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35710         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35711         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35712         Specify type and value.
35713         (TVERSLEN): Likewise.
35714         (REGTYPE): Likewise.
35715         (AREGTYPE): Likewise.
35716         (LNKTYPE): Likewise.
35717         (SYMTYPE): Likewise.
35718         (CHRTYPE): Likewise.
35719         (BLKTYPE): Likewise.
35720         (DIRTYPE): Likewise.
35721         (FIFOTYPE): Likewise.
35722         (CONTTYPE): Likewise.
35723         (TSUID): Likewise.
35724         (TSGID): Likewise.
35725         (TSVTX): Likewise.
35726         (TUREAD): Likewise.
35727         (TUWRITE): Likewise.
35728         (TUEXEC): Likewise.
35729         (TGREAD): Likewise.
35730         (TGWRITE): Likewise.
35731         (TGEXEC): Likewise.
35732         (TOREAD): Likewise.
35733         (TOWRITE): Likewise.
35734         (TOEXEC): Likewise.
35735         [POSIX] (TSVTX): Expect constant.
35736
35737 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35738
35739         * Makefile (tests): Change dependencies to ....
35740         (tests-special): ... additions to this variable.
35741         (tests): Depend on $(tests-special).
35742         * Makerules (check-abi-list): New variable.
35743         (check-abi): Depend on $(check-abi-list).
35744         [$(subdir) = elf] (tests-special): Add
35745         $(objpfx)check-abi-libc.out.
35746         [$(build-shared) = yes && subdir] (tests-special): Add
35747         $(check-abi-list).
35748         [$(build-shared) = yes && subdir] (tests): Do not depend on
35749         check-abi.
35750         * Rules (tests): Depend on $(tests-special).
35751         (xtests): Depend on $(xtests-special).
35752         * catgets/Makefile (tests): Change dependencies to ....
35753         (tests-special): ... additions to this variable.
35754         * conform/Makefile (tests): Change dependencies to ....
35755         (tests-special): ... additions to this variable.
35756         * elf/Makefile (tests): Change dependencies to ....
35757         (tests-special): ... additions to this variable.
35758         * grp/Makefile (tests): Change dependencies to ....
35759         (tests-special): ... additions to this variable.
35760         * iconv/Makefile (xtests): Change dependencies to ....
35761         (xtests-special): ... additions to this variable.
35762         * iconvdata/Makefile (tests): Change dependencies to ....
35763         (tests-special): ... additions to this variable.
35764         * intl/Makefile (tests): Change dependencies to ....
35765         (tests-special): ... additions to this variable.  Also add
35766         $(objpfx)tst-gettext.out.
35767         * io/Makefile (tests): Change dependencies to ....
35768         (tests-special): ... additions to this variable.
35769         * libio/Makefile (tests): Change dependencies to ....
35770         (tests-special): ... additions to this variable.
35771         * malloc/Makefile (tests): Change dependencies to ....
35772         (tests-special): ... additions to this variable.
35773         * misc/Makefile (tests): Change dependencies to ....
35774         (tests-special): ... additions to this variable.
35775         * nptl/Makefile (tests): Change dependencies to ....
35776         (tests-special): ... additions to this variable.
35777         * nptl_db/Makefile (tests): Change dependencies to ....
35778         (tests-special): ... additions to this variable.
35779         * posix/Makefile (tests): Change dependencies to ....
35780         (tests-special): ... additions to this variable.
35781         (xtests): Change dependencies to ....
35782         (xtests-special): ... additions to this variable.
35783         * resolv/Makefile (tests): Change dependencies to ....
35784         (tests-special): ... additions to this variable.
35785         (xtests): Change dependencies to ....
35786         (xtests-special): ... additions to this variable.
35787         * stdio-common/Makefile (tests): Change dependencies to ....
35788         (tests-special): ... additions to this variable.
35789         (do-tst-unbputc): Remove target.
35790         (do-tst-printf): Likewise.
35791         * stdlib/Makefile (tests): Change dependencies to ....
35792         (tests-special): ... additions to this variable.
35793         * string/Makefile (tests): Change dependencies to ....
35794         (tests-special): ... additions to this variable.
35795         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35796         (tests-special): ... additions to this variable.
35797
35798         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35799         whole file.
35800         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35801         whole file.
35802         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35803         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35804
35805         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35806         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35807         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35808         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35809         * conform/data/libgen.h-data [XPG3]: Likewise.
35810         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35811         * conform/data/ndbm.h-data [XPG3]: Likewise.
35812         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35813         * conform/data/netdb.h-data [XPG3]: Likewise.
35814         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35815         * conform/data/poll.h-data [XPG3]: Likewise.
35816         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35817         * conform/data/strings.h-data [XPG3]: Likewise.
35818         * conform/data/stropts.h-data [XPG3]: Likewise.
35819         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35820         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35821         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35822         Likewise.
35823         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35824         * conform/data/sys/time.h-data [XPG3]: Likewise.
35825         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35826         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35827         * conform/data/sys/un.h-data [XPG3]: Likewise.
35828         * conform/data/syslog.h-data [XPG3]: Likewise.
35829         * conform/data/ucontext.h-data [XPG3]: Likewise.
35830         * conform/data/utmpx.h-data [XPG3]: Likewise.
35831         * conform/data/varargs.h-data [UNIX98]: Enable file.
35832
35833         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35834
35835         * math/libm-test.inc (struct test_f_f_data): Move expected results
35836         into structure for each rounding mode.
35837         (struct test_ff_f_data): Likewise.
35838         (struct test_ff_f_data_nexttoward): Likewise.
35839         (struct test_fi_f_data): Likewise.
35840         (struct test_fl_f_data): Likewise.
35841         (struct test_if_f_data): Likewise.
35842         (struct test_fff_f_data): Likewise.
35843         (struct test_c_f_data): Likewise.
35844         (struct test_f_f1_data): Likewise.
35845         (struct test_fF_f1_data): Likewise.
35846         (struct test_ffI_f1_data): Likewise.
35847         (struct test_c_c_data): Likewise.
35848         (struct test_cc_c_data): Likewise.
35849         (struct test_f_i_data): Likewise.
35850         (struct test_ff_i_data): Likewise.
35851         (struct test_f_l_data): Likewise.
35852         (struct test_f_L_data): Likewise.
35853         (struct test_fFF_11_data): Likewise.
35854         (RM_): New macro.
35855         (RM_FE_DOWNWARD): Likewise.
35856         (RM_FE_TONEAREST): Likewise.
35857         (RM_FE_TOWARDZERO): Likewise.
35858         (RM_FE_UPWARD): Likewise.
35859         (RUN_TEST_LOOP_f_f): Update references to expected results.
35860         (RUN_TEST_LOOP_2_f): Likewise.
35861         (RUN_TEST_LOOP_fff_f): Likewise.
35862         (RUN_TEST_LOOP_c_f): Likewise.
35863         (RUN_TEST_LOOP_f_f1): Likewise.
35864         (RUN_TEST_LOOP_fF_f1): Likewise.
35865         (RUN_TEST_LOOP_fI_f1): Likewise.
35866         (RUN_TEST_LOOP_ffI_f1): Likewise.
35867         (RUN_TEST_LOOP_c_c): Likewise.
35868         (RUN_TEST_LOOP_cc_c): Likewise.
35869         (RUN_TEST_LOOP_f_i): Likewise.
35870         (RUN_TEST_LOOP_f_i_tg): Likewise.
35871         (RUN_TEST_LOOP_ff_i_tg): Likewise.
35872         (RUN_TEST_LOOP_f_b): Likewise.
35873         (RUN_TEST_LOOP_f_b_tg): Likewise.
35874         (RUN_TEST_LOOP_f_l): Likewise.
35875         (RUN_TEST_LOOP_f_L): Likewise.
35876         (RUN_TEST_LOOP_fFF_11): Likewise.
35877         * math/gen-libm-test.pl (parse_args): Output four copies of
35878         expected results for each test.
35879
35880         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35881         (__ASSUME_UTIMES): Remove.
35882         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35883         (__ASSUME_UTIMES): Likewise.
35884
35885         * math/gen-auto-libm-tests.c: Update comment on output format.
35886         (output_for_one_input_case): Generate before-rounding and
35887         after-rounding information as conditions on output flags not
35888         floating-point format.
35889         * math/auto-libm-test-out: Regenerated.
35890         * math/gen-libm-test.pl (cond_value): New function.
35891         (or_cond_value): Use cond_value.
35892         (generate_testfile): Handle conditional exceptions.
35893
35894 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
35895
35896         * math/libm-test.inc (max_valid_error): New variable.
35897         (init_max_error): Take new argument specifying whether function
35898         results are exactly determined.  Set max_valid_error and bound
35899         other variables for errors based on this argument.
35900         (set_max_error): Do not record results above max_valid_error.
35901         (check_float_internal): Only accept errors of up to 0.5ulps if
35902         also at most max_valid_error.
35903         (START): Take new argument EXACT and pass it to init_max_error.
35904         (acos_test): Update call to START.
35905         (acos_test_tonearest): Likewise.
35906         (acos_test_towardzero): Likewise.
35907         (acos_test_downward): Likewise.
35908         (acos_test_upward): Likewise.
35909         (acosh_test): Likewise.
35910         (asin_test): Likewise.
35911         (asin_test_tonearest): Likewise.
35912         (asin_test_towardzero): Likewise.
35913         (asin_test_downward): Likewise.
35914         (asin_test_upward): Likewise.
35915         (asinh_test): Likewise.
35916         (atan_test): Likewise.
35917         (atanh_test): Likewise.
35918         (atan2_test): Likewise.
35919         (cabs_test): Likewise.
35920         (cacos_test): Likewise.
35921         (cacosh_test): Likewise.
35922         (carg_test): Likewise.
35923         (casin_test): Likewise.
35924         (casinh_test): Likewise.
35925         (catan_test): Likewise.
35926         (catanh_test): Likewise.
35927         (cbrt_test): Likewise.
35928         (ccos_test): Likewise.
35929         (ccosh_test): Likewise.
35930         (ceil_test): Likewise.
35931         (cexp_test): Likewise.
35932         (cimag_test): Likewise.
35933         (clog_test): Likewise.
35934         (clog10_test): Likewise.
35935         (conj_test): Likewise.
35936         (copysign_test): Likewise.
35937         (cos_test): Likewise.
35938         (cos_test_tonearest): Likewise.
35939         (cos_test_towardzero): Likewise.
35940         (cos_test_downward): Likewise.
35941         (cos_test_upward): Likewise.
35942         (cosh_test): Likewise.
35943         (cosh_test_tonearest): Likewise.
35944         (cosh_test_towardzero): Likewise.
35945         (cosh_test_downward): Likewise.
35946         (cosh_test_upward): Likewise.
35947         (cpow_test): Likewise.
35948         (cproj_test): Likewise.
35949         (creal_test): Likewise.
35950         (csin_test): Likewise.
35951         (csinh_test): Likewise.
35952         (csqrt_test): Likewise.
35953         (ctan_test): Likewise.
35954         (ctan_test_tonearest): Likewise.
35955         (ctan_test_towardzero): Likewise.
35956         (ctan_test_downward): Likewise.
35957         (ctan_test_upward): Likewise.
35958         (ctanh_test): Likewise.
35959         (ctanh_test_tonearest): Likewise.
35960         (ctanh_test_towardzero): Likewise.
35961         (ctanh_test_downward): Likewise.
35962         (ctanh_test_upward): Likewise.
35963         (erf_test): Likewise.
35964         (erfc_test): Likewise.
35965         (exp_test): Likewise.
35966         (exp_test_tonearest): Likewise.
35967         (exp_test_towardzero): Likewise.
35968         (exp_test_downward): Likewise.
35969         (exp_test_upward): Likewise.
35970         (exp10_test): Likewise.
35971         (exp10_test_tonearest): Likewise.
35972         (exp10_test_towardzero): Likewise.
35973         (exp10_test_downward): Likewise.
35974         (exp10_test_upward): Likewise.
35975         (pow10_test): Likewise.
35976         (exp2_test): Likewise.
35977         (expm1_test): Likewise.
35978         (expm1_test_tonearest): Likewise.
35979         (expm1_test_towardzero): Likewise.
35980         (expm1_test_downward): Likewise.
35981         (expm1_test_upward): Likewise.
35982         (fabs_test): Likewise.
35983         (fdim_test): Likewise.
35984         (floor_test): Likewise.
35985         (fma_test): Likewise.
35986         (fma_test_towardzero): Likewise.
35987         (fma_test_downward): Likewise.
35988         (fma_test_upward): Likewise.
35989         (fmax_test): Likewise.
35990         (fmin_test): Likewise.
35991         (fmod_test): Likewise.
35992         (fpclassify_test): Likewise.
35993         (frexp_test): Likewise.
35994         (hypot_test): Likewise.
35995         (ilogb_test): Likewise.
35996         (isfinite_test): Likewise.
35997         (finite_test): Likewise.
35998         (isgreater_test): Likewise.
35999         (isgreaterequal_test): Likewise.
36000         (isinf_test): Likewise.
36001         (isless_test): Likewise.
36002         (islessequal_test): Likewise.
36003         (islessgreater_test): Likewise.
36004         (isnan_test): Likewise.
36005         (isnormal_test): Likewise.
36006         (issignaling_test): Likewise.
36007         (isunordered_test): Likewise.
36008         (j0_test): Likewise.
36009         (j1_test): Likewise.
36010         (jn_test): Likewise.
36011         (ldexp_test): Likewise.
36012         (lgamma_test): Likewise.
36013         (gamma_test): Likewise.
36014         (lrint_test): Likewise.
36015         (lrint_test_tonearest): Likewise.
36016         (lrint_test_towardzero): Likewise.
36017         (lrint_test_downward): Likewise.
36018         (lrint_test_upward): Likewise.
36019         (llrint_test): Likewise.
36020         (llrint_test_tonearest): Likewise.
36021         (llrint_test_towardzero): Likewise.
36022         (llrint_test_downward): Likewise.
36023         (llrint_test_upward): Likewise.
36024         (log_test): Likewise.
36025         (log10_test): Likewise.
36026         (log1p_test): Likewise.
36027         (log2_test): Likewise.
36028         (logb_test): Likewise.
36029         (logb_test_downward): Likewise.
36030         (lround_test): Likewise.
36031         (llround_test): Likewise.
36032         (modf_test): Likewise.
36033         (nearbyint_test): Likewise.
36034         (nextafter_test): Likewise.
36035         (nexttoward_test): Likewise.
36036         (pow_test): Likewise.
36037         (pow_test_tonearest): Likewise.
36038         (pow_test_towardzero): Likewise.
36039         (pow_test_downward): Likewise.
36040         (pow_test_upward): Likewise.
36041         (remainder_test): Likewise.
36042         (drem_test): Likewise.
36043         (remainder_test_tonearest): Likewise.
36044         (drem_test_tonearest): Likewise.
36045         (remainder_test_towardzero): Likewise.
36046         (drem_test_towardzero): Likewise.
36047         (remainder_test_downward): Likewise.
36048         (drem_test_downward): Likewise.
36049         (remainder_test_upward): Likewise.
36050         (drem_test_upward): Likewise.
36051         (remquo_test): Likewise.
36052         (rint_test): Likewise.
36053         (rint_test_tonearest): Likewise.
36054         (rint_test_towardzero): Likewise.
36055         (rint_test_downward): Likewise.
36056         (rint_test_upward): Likewise.
36057         (round_test): Likewise.
36058         (scalb_test): Likewise.
36059         (scalbn_test): Likewise.
36060         (scalbln_test): Likewise.
36061         (signbit_test): Likewise.
36062         (sin_test): Likewise.
36063         (sin_test_tonearest): Likewise.
36064         (sin_test_towardzero): Likewise.
36065         (sin_test_downward): Likewise.
36066         (sin_test_upward): Likewise.
36067         (sincos_test): Likewise.
36068         (sinh_test): Likewise.
36069         (sinh_test_tonearest): Likewise.
36070         (sinh_test_towardzero): Likewise.
36071         (sinh_test_downward): Likewise.
36072         (sinh_test_upward): Likewise.
36073         (sqrt_test): Likewise.
36074         (sqrt_test_tonearest): Likewise.
36075         (sqrt_test_towardzero): Likewise.
36076         (sqrt_test_downward): Likewise.
36077         (sqrt_test_upward): Likewise.
36078         (tan_test): Likewise.
36079         (tan_test_tonearest): Likewise.
36080         (tan_test_towardzero): Likewise.
36081         (tan_test_downward): Likewise.
36082         (tan_test_upward): Likewise.
36083         (tanh_test): Likewise.
36084         (tgamma_test): Likewise.
36085         (trunc_test): Likewise.
36086         (y0_test): Likewise.
36087         (y1_test): Likewise.
36088         (yn_test): Likewise.
36089         (significand_test): Likewise.
36090
36091         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36092         individual tests in comment.
36093         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36094         (prev_max_error): New variable.
36095         (prev_real_max_error): Likewise.
36096         (prev_imag_max_error): Likewise.
36097         (compare_ulp_data): Don't refer to test names in comment.
36098         (find_test_ulps): Remove function.
36099         (find_function_ulps): Likewise.
36100         (find_complex_function_ulps): Likewise.
36101         (init_max_error): Take function name as argument.  Look up ulps
36102         for that function.
36103         (print_ulps): Remove function.
36104         (print_max_error): Use prev_max_error instead of calling
36105         find_function_ulps.
36106         (print_complex_max_error): Use prev_real_max_error and
36107         prev_imag_max_error instead of calling find_complex_function_ulps.
36108         (check_float_internal): Take max_ulp parameter instead of calling
36109         find_test_ulps.  Don't call print_ulps.
36110         (check_float): Update call to check_float_internal.
36111         (check_complex): Update calls to check_float_internal.
36112         (START): Pass argument to init_max_error.
36113         * math/gen-libm-test.pl (%results): Don't include "kind"
36114         information.
36115         (parse_ulps): Don't handle ulps of individual tests.
36116         (print_ulps_file): Likewise.
36117         (output_ulps): Likewise.
36118         * math/README.libm-test: Update.
36119         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36120         individual tests.
36121         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36122         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36123         * sysdeps/arm/libm-test-ulps: Likewise.
36124         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36125         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36126         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36127         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36128         * sysdeps/microblaze/libm-test-ulps: Likewise.
36129         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36130         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36131         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36132         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36133         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36134         * sysdeps/sh/libm-test-ulps: Likewise.
36135         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36136         * sysdeps/tile/libm-test-ulps: Likewise.
36137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36138
36139 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36140
36141         * math/libm-test.inc (print_complex_max_error): Check separately
36142         whether real and imaginary errors are within allowed range and
36143         pass 0 to print_complex_function_ulps instead of value within
36144         allowed range.
36145
36146 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36147
36148         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36149         formatting.
36150         (get_handles_fopen): Likewise.
36151         (do_write_test): Likewise.
36152
36153         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36154
36155         * libio/fileops.c (do_ftell): Use cached offset when
36156         available.
36157         * libio/iofwide.c (do_ftell_wide): Likewise.
36158         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36159         _IO_file_attach.
36160         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36161
36162         [BZ #16532]
36163         * libio/libioP.h (get_file_offset): New function.
36164         * libio/fileops.c (get_file_offset): Likewise.
36165         (do_ftell): Likewise.
36166         (_IO_new_file_seekoff): Split out ftell logic.
36167         * libio/wfileops.c (do_ftell_wide): Likewise.
36168         (_IO_wfile_seekoff): Split out ftell logic.
36169         * libio/tst-ftell-active-handler.c: New test case.
36170         * libio/Makefile (tests): Add it.
36171
36172 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36173
36174         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36175         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36176
36177 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36178
36179         [BZ #16639]
36180         * nscd/connections.c (nscd_init): Call do_exit.
36181         (start_threads): Call do_exit and notify_parent.
36182         (begin_drop_privileges): Call do_exit.
36183         (finish_drop_privileges): Likewise.
36184         * nscd/selinux.c (preserve_capabilities): Likewise.
36185         (install_real_capabilities): Likewise.
36186         (nscd_selinux_enabled): Likewise.
36187         (avc_create_thread): Likewise.
36188         (avc_alloc_lock): Likewise.
36189         (nscd_avc_init): Likewise.
36190         * nscd/nscd.c (parent_fd): New static variable.
36191         (main): Create a pipe between parent and child processes.
36192         Skip closing parent_fd.
36193         (monitor_child): New function.
36194         (do_exit): Likewise.
36195         (notify_parent): Likewise.
36196         * nscd/nscd.h (notify_parent): Likewise.
36197         (do_exit): Likewise.
36198
36199 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36200
36201         * malloc/malloc.c (__libc_calloc): Revert last change.
36202
36203 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36204
36205         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36206
36207 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36208
36209         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36210         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36211         implementation.
36212         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36213         (__libc_ifunc_impl_list): Likewise.
36214         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36215         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36216         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36217         * string/strrchr.c: Define STRRCHR.
36218
36219 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36220
36221         * benchtest/bench-strtok.c (simple_strtok): Delete.
36222         (strtok_string): Use as benchmark.
36223         * string/strtok (STRTOK): New macro.
36224
36225 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36226
36227         * manual/threads.texi: Add header and standard comments to all
36228         functions.
36229
36230         * elf/dl-lookup.c (check_match): New function.
36231         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36232         (do_lookup_x): Remove nested function check_match. Use non-nested
36233         function check_match.
36234
36235 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36236
36237         * csu/Makefile (generated, before-compile): Use += rather than =.
36238         * catgets/Makefile (generated, generated-dirs): Likewise.
36239         * debug/Makefile (generated): Likewise.
36240         * dlfcn/Makefile (generated): Likewise.
36241         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36242         * iconvdata/Makefile (before-compile, generated): Likewise.
36243         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36244         * libio/Makefile (generated): Likewise.
36245         * malloc/Makefile (generated): Likewise.
36246         * manual/Makefile (generated, generated-dirs): Likewise.
36247         * misc/Makefile (generated): Likewise.
36248         * posix/Makefile (generated): Likewise.
36249         * resolv/Makefile (generated): Likewise.
36250         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36251         * timezone/Makefile (generated, generated-dirs): Likewise.
36252
36253         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36254
36255 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36256
36257         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36258         power8 implementation.
36259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36260         file: POWER8 llround ifunc implementation.
36261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36262         (__lllround): Add POWER8 implementation.
36263         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36264         POWER8 llround implementation.
36265
36266         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36267         power8 implementation.
36268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36269         file: POWER8 llrint ifunc implementation.
36270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36271         Add POWER8 implementation.
36272         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36273         POWER8 llrint implementation.
36274
36275         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36276         power8 implementation.
36277         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36278         file: POWER8 finite ifunc implementation.
36279         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36280         Add POWER8 implementation.
36281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36282         Likewise.
36283         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36284         POWER8 finite implementation.
36285         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36286
36287         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36288         power8 implementation.
36289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36290         file: POWER8 isinf ifunc implementation.
36291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36292         POWER8 implementation.
36293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36294         Likewise.
36295         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36296         isinf implementation.
36297         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36298
36299         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36300         (INIT_ARCH): Add hwcap2 initialization.
36301         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36302         power8 implementation.
36303         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36304         file: POWER8 isnan ifunc implementation.
36305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36306         POWER8 implementation.
36307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36308         Likewise.
36309         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36310         isnan implementation.
36311         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36312
36313 2014-02-27  Joey Ye  <joey.ye@arm.com>
36314
36315         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36316         (_FP_NANFRAC_Q): Set to zero.
36317
36318 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36319
36320         [BZ #16623]
36321         * math/auto-libm-test-in: New test inputs.
36322         * math/auto-libm-test-out: Regenerate.
36323         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36324         and DA.
36325         (__cos): Likewise.
36326         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36327
36328 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36329
36330         * scripts/evaluate-test.sh: Take new argument indicating whether
36331         failure is expected.
36332         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36333         indicating whether failure is expected.
36334         * conform/Makefile (test-xfail-run-conformtest): New variable.
36335         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36336         level.
36337         * posix/Makefile (test-xfail-annexc): New variable.
36338         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36339
36340 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36341
36342         * argp/Makefile: Include Makeconfig immediately after defining
36343         subdir.
36344         * assert/Makefile: Likewise.
36345         * benchtests/Makefile: Likewise.
36346         * catgets/Makefile: Likewise.
36347         * conform/Makefile: Likewise.
36348         * crypt/Makefile: Likewise.
36349         * csu/Makefile: Likewise.
36350         (all): Remove target.
36351         * ctype/Makefile: Include Makeconfig immediately after defining
36352         subdir.
36353         * debug/Makefile: Likewise.
36354         * dirent/Makefile: Likewise.
36355         * dlfcn/Makefile: Likewise.
36356         * gmon/Makefile: Likewise.
36357         * gnulib/Makefile: Likewise.
36358         * grp/Makefile: Likewise.
36359         * gshadow/Makefile: Likewise.
36360         * hesiod/Makefile: Likewise.
36361         * hurd/Makefile: Likewise.
36362         (all): Remove target.
36363         * iconvdata/Makefile: Include Makeconfig immediately after
36364         defining subdir.
36365         * inet/Makefile: Likewise.
36366         * intl/Makefile: Likewise.
36367         * io/Makefile: Likewise.
36368         * libio/Makefile: Likewise.
36369         (all): Remove target.
36370         * locale/Makefile: Include Makeconfig immediately after defining
36371         subdir.
36372         * login/Makefile: Likewise.
36373         * mach/Makefile: Likewise.
36374         (all): Remove target.
36375         * malloc/Makefile: Include Makeconfig immediately after defining
36376         subdir.
36377         (all): Remove target.
36378         * manual/Makefile: Include Makeconfig immediately after defining
36379         subdir.
36380         * math/Makefile: Likewise.
36381         * misc/Makefile: Likewise.
36382         * nis/Makefile: Likewise.
36383         * nss/Makefile: Likewise.
36384         * po/Makefile: Likewise.
36385         (all): Remove target.
36386         * posix/Makefile: Include Makeconfig immediately after defining
36387         subdir.
36388         * pwd/Makefile: Likewise.
36389         * resolv/Makefile: Likewise.
36390         * resource/Makefile: Likewise.
36391         * rt/Makefile: Likewise.
36392         * setjmp/Makefile: Likewise.
36393         * shadow/Makefile: Likewise.
36394         * signal/Makefile: Likewise.
36395         * socket/Makefile: Likewise.
36396         * soft-fp/Makefile: Likewise.
36397         * stdio-common/Makefile: Likewise.
36398         * stdlib/Makefile: Likewise.
36399         * streams/Makefile: Likewise.
36400         * string/Makefile: Likewise.
36401         * sunrpc/Makefile: Likewise.
36402         (all): Remove target.
36403         * sysvipc/Makefile: Include Makeconfig immediately after defining
36404         subdir.
36405         * termios/Makefile: Likewise.
36406         * time/Makefile: Likewise.
36407         * timezone/Makefile: Likewise.
36408         (all): Remove target.
36409         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36410         subdir.
36411         * wctype/Makefile: Likewise.
36412
36413 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36414
36415         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36416         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36417         (libc_feholdexcept_setround_mips): Ditto.
36418         (libc_feholdsetround): New.
36419         (libc_feholdsetroundf): New.
36420         (libc_feholdsetroundl): New.
36421         (libc_feupdateenv_test_mips): New.
36422         (libc_feupdateenv_test): New.
36423         (libc_feupdateenv_testf): New.
36424         (libc_feupdateenv_testl): New.
36425         (libc_feresetround): New.
36426         (libc_feresetroundf): New.
36427         (libc_feresetroundl): New.
36428         (libc_fetestexcept_mips): New.
36429         (libc_fetestexcept): New.
36430         (libc_fetestexceptf): New.
36431         (libc_fetestexceptl): New.
36432         (HAVE_RM_CTX): New.
36433         (libc_feholdexcept_setround_mips_ctx): New.
36434         (libc_feholdexcept_setround_ctx): New.
36435         (libc_feholdexcept_setroundf_ctx): New.
36436         (libc_feholdexcept_setroundl_ctx): New.
36437         (libc_fesetenv_mips_ctx): New.
36438         (libc_fesetenv_ctx): New.
36439         (libc_fesetenv_ctxf): New.
36440         (libc_fesetenv_ctxl): New.
36441         (libc_feupdateenv_mips_ctx): New.
36442         (libc_feupdateenv_ctx): New.
36443         (libc_feupdateenvf_ctx): New.
36444         (libc_feupdateenvl_ctx): New.
36445         (libc_feholdsetround_mips_ctx): New.
36446         (libc_feholdsetround_ctx): New.
36447         (libc_feholdsetroundf_ctx): New.
36448         (libc_feholdsetroundl_ctx): New.
36449         (libc_feresetround_mips_ctx): New.
36450         (libc_feresetround_ctx): New.
36451         (libc_feresetroundf_ctx): New.
36452         (libc_feresetroundl_ctx): New.
36453
36454 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36455
36456         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36457
36458         * manual/ipc.texi: New file.
36459         * manual/Makefile (chapters): Add ipc.
36460         * manual/job.texi: Add "Inter-Process Communication" to next.
36461         * manual/process.texi: Add "Inter-Process Communication" to prev.
36462
36463 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36464
36465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36466
36467 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36468
36469         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36470
36471         * manual/arith.texi: Fix spaces after sentences.
36472         * manual/charset.texi: Likewise.
36473         * manual/errno.texi: Likewise.
36474         * manual/install.texi: Likewise.
36475         * manual/llio.texi: Likewise.
36476         * manual/locale.texi: Likewise.
36477         * manual/maint.texi: Likewise.
36478         * manual/math.texi: Likewise.
36479         * manual/memory.texi: Likewise.
36480         * manual/message.texi: Likewise.
36481         * manual/probes.texi: Likewise.
36482         * manual/resource.texi: Likewise.
36483         * manual/signal.texi: Likewise.
36484         * manual/socket.texi: Likewise.
36485         * manual/stdio.texi: Likewise.
36486         * manual/string.texi: Likewise.
36487         * manual/time.texi: Likewise.
36488         * manual/users.texi: Likewise.
36489
36490 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36491
36492         [BZ #16632]
36493         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36494         _DEFAULT_SOURCE is defined.
36495
36496 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36497             Carlos O'Donell  <carlos@redhat.com>
36498
36499         [BZ #16613]
36500         * elf/dl-tls.c (_dl_count_modids): New function.
36501         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36502         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36503         audit library and increment generation counter.
36504         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36505         * elf/tst-audit9.c: New file.
36506         * elf/tst-auditmod9a.c: New file.
36507         * elf/tst-auditmod9b.c: New file.
36508         * elf/Makefile: Add rules to build and run tst-audit9.
36509
36510 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36511
36512         [BZ #15347]
36513         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36514
36515 2014-02-25  Will Newton  <will.newton@linaro.org>
36516
36517         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36518         (__longjmp): Restore sp and lr before restoring callee
36519         saved registers.  Add longjmp and longjmp_target
36520         SystemTap probe point.
36521         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36522         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36523         Define to zero to match jmpbuf layout.
36524         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36525         (__sigsetjmp): Save sp and lr before saving callee
36526         saved registers.  Add setjmp SystemTap probe point.
36527
36528 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36529
36530         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36531
36532 2014-02-24  Andreas Schwab  <schwab@suse.de>
36533
36534         [BZ #15804]
36535         * elf/pldd.c (wait_for_ptrace_stop): New function.
36536         (main): Call it after attaching.
36537
36538 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36539
36540         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36541         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36542         Versions files is now verboten.
36543         * hurd/Versions (libc: GLIBC_2.0):
36544         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36545         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36546         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36547         * mach/Versions: Likewise.
36548
36549         * csu/Versions: Remove unused %include.
36550         * resolv/Versions: Likewise.
36551
36552 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36553
36554         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36555         ($(objpfx)check-local-headers.out): Likewise.
36556         ($(objpfx)begin-end-check.out): Likewise.
36557         * Makerules (check-abi-%.out): Likewise.
36558         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36559         ($(objpfx)test2.cat): Likewise.
36560         ($(objpfx)de/libc.cat): Likewise.
36561         ($(objpfx)test-gencat.out): Likewise.
36562         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36563         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36564         ($(objpfx)noload-mem): Likewise.
36565         ($(objpfx)tst-pathopt.out): Likewise.
36566         ($(objpfx)tst-rtld-load-self.out): Likewise.
36567         ($(objpfx)tst-array1-cmp.out): Likewise.
36568         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36569         ($(objpfx)tst-array2-cmp.out): Likewise.
36570         ($(objpfx)tst-array3-cmp.out): Likewise.
36571         ($(objpfx)tst-array4-cmp.out): Likewise.
36572         ($(objpfx)tst-array5-cmp.out): Likewise.
36573         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36574         ($(objpfx)check-textrel.out): Likewise.
36575         ($(objpfx)check-execstack.out): Likewise.
36576         ($(objpfx)check-localplt.out): Likewise.
36577         ($(objpfx)order2-cmp.out): Likewise.
36578         ($(objpfx)tst-leaks1-mem): Likewise.
36579         ($(objpfx)tst-leaks1-static-mem): Likewise.
36580         ($(objpfx)tst-initorder-cmp.out): Likewise.
36581         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36582         ($(objpfx)tst-unused-dep.out): Likewise.
36583         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36584         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36585         * iconv/Makefile (test-iconvconfig): Likewise.
36586         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36587         ($(objpfx)iconv-test.out): Likewise.
36588         ($(objpfx)tst-tables.out): Likewise.
36589         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36590         ($(objpfx)tst-gettext.out): Likewise.
36591         ($(objpfx)tst-translit.out): Likewise.
36592         ($(objpfx)tst-gettext2.out): Likewise.
36593         ($(objpfx)tst-gettext4.out): Likewise.
36594         ($(objpfx)tst-gettext6.out): Likewise.
36595         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36596         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36597         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36598         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36599         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36600         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36601         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36602         ($(objpfx)wordexp-tst.out): Likewise.
36603         ($(objpfx)annexc.out): Likewise.
36604         ($(objpfx)tst-fnmatch-mem): Likewise.
36605         ($(objpfx)bug-regex2-mem): Likewise.
36606         ($(objpfx)bug-regex14-mem): Likewise.
36607         ($(objpfx)bug-regex21-mem): Likewise.
36608         ($(objpfx)bug-regex31-mem): Likewise.
36609         ($(objpfx)tst-vfork3-mem): Likewise.
36610         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36611         ($(objpfx)tst-pcre-mem): Likewise.
36612         ($(objpfx)tst-boost-mem): Likewise.
36613         ($(objpfx)tst-getconf.out): Likewise.
36614         ($(objpfx)bug-ga2-mem): Likewise.
36615         ($(objpfx)bug-glob2-mem): Likewise.
36616         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36617         ($(objpfx)mtrace-tst-leaks2): Likewise.
36618         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36619         ($(objpfx)tst-printf.out): Likewise.
36620         ($(objpfx)tst-setvbuf1.out): Likewise.
36621         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36622         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36623         ($(objpfx)tst-fmtmsg.out): Likewise.
36624         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36625         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36626
36627         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36628         * bits/sigaction.h [__USE_MISC]: Likewise.
36629         * bits/waitstatus.h: Update #endif comments.
36630         * ctype/ctype.h: Likewise.
36631         * dirent/dirent.h: Likewise.
36632         [__USE_MISC]: Remove redundant conditionals.
36633         * grp/grp.h: Update #endif comments.
36634         [__USE_GNU]: Remove redundant conditionals.
36635         [__USE_MISC]: Likewise.
36636         * inet/netinet/in.h [__USE_GNU]: Likewise.
36637         * io/sys/stat.h [__USE_MISC]: Likewise.
36638         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36639         * libio/bits/stdio.h: Update #endif comments.
36640         [__USE_MISC]: Remove redundant conditionals.
36641         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36642         * libio/stdio.h: Update #endif comments.
36643         [__USE_MISC]: Remove redundant conditionals.
36644         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36645         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36646         * math/math.h: Update #else and #endif comments.
36647         [__USE_MISC]: Remove redundant conditionals.
36648         * misc/sys/uio.h: Update #endif comments.
36649         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36650         * posix/glob.h [__USE_MISC]: Likewise.
36651         * posix/sys/types.h: Update #endif comments.
36652         [__USE_MISC]: Remove redundant conditionals.
36653         * posix/sys/wait.h: Update #endif comments.
36654         [__USE_MISC]: Remove redundant conditionals.
36655         * posix/unistd.h: Update #endif comments.
36656         [__USE_MISC]: Remove redundant conditionals.
36657         * pwd/pwd.h [__USE_GNU]: Likewise.
36658         [__USE_MISC]: Likewise.
36659         * resolv/netdb.h [__USE_GNU]: Likewise.
36660         * signal/signal.h: Update #endif comments.
36661         [__USE_MISC]: Remove redundant conditionals.
36662         * stdlib/stdlib.h: Update #else and #endif comments.
36663         [__USE_MISC]: Remove redundant conditionals.
36664         [__USE_GNU]: Likewise.
36665         * string/bits/string2.h [__USE_MISC]: Likewise.
36666         * string/string.h: Update #endif comments.
36667         [__USE_MISC]: Remove redundant conditionals.
36668         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36669         Likewise.
36670         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36671         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36672         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36673         Likewise.
36674         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36675         Likewise.
36676         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36677         comments.
36678         [__USE_MISC]: Remove redundant conditionals.
36679         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36680         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36681         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36682         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36683         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36684         Likewise.
36685         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36686         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36687         Likewise.
36688         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36689         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36690         Likewise.
36691         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36692         Likewise.
36693         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36694         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36695         Likewise.
36696         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36697         Likewise.
36698         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36699         * sysdeps/x86/bits/string.h: Update #endif comments.
36700         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36701         conditionals.
36702         * time/sys/time.h: Update #endif comments.
36703         * time/time.h: Likewise.
36704         [__USE_MISC]: Remove redundant conditionals.
36705
36706 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36707
36708         [BZ #16600]
36709         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36710
36711 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36712
36713         * Versions.def (librt): Add GLIBC_2.17.
36714
36715 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36716
36717         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36718         synonym for _SYS_AUXV_H to allow direct inclusion.
36719         * sysdeps/sparc/bits/hwcap.h: Likewise.
36720         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36721         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36722         * sysdeps/sparc/sysdep.h: Likewise.
36723
36724 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36725
36726         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36727
36728 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36729
36730         * benchtests/bench-strrchr.c: Print length instead of position.
36731
36732 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36733
36734         [BZ #16611]
36735         * sysdeps/unix/sysv/linux/kernel-features.h
36736         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36737         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36738         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36739         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36740         Likewise.
36741         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36742         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36743         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36744         (__ASSUME_SENDMMSG): Define instead of using previous
36745         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36746         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36747         (__ASSUME_SENDMMSG_SYSCALL): Define.
36748         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36749         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36750         Likewise.
36751         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36752         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36753         Likewise.
36754         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36755         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36756         Likewise.
36757         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36758         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36759         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36760         [__ASSUME_SENDMMSG]: Change conditionals to
36761         [__ASSUME_SENDMMSG_SOCKETCALL].
36762         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36763         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36764         Define.
36765         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36766         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36767         Likewise.
36768         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36769         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36770         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36771         [!__ASSUME_SENDMMSG]: Change conditional to
36772         [!__ASSUME_SENDMMSG_SOCKETCALL].
36773         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36774         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36775         Define.
36776
36777         [BZ #16610]
36778         * sysdeps/unix/sysv/linux/kernel-features.h
36779         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36780         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36781         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36782         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36783         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36784         [__i386__ || __sparc__]
36785         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36786         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36787         (__ASSUME_RECVMMSG): Define instead of using previous
36788         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36789         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36790         (__ASSUME_RECVMMSG_SYSCALL): Define.
36791         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36792         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36793         Likewise.
36794         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36795         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36796         Likewise.
36797         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36798         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36799         Likewise.
36800         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36801         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36802         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36803         [__ASSUME_RECVMMSG]: Change condition to
36804         [__ASSUME_RECVMMSG_SOCKETCALL].
36805         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36806         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36807         Define.
36808         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36809         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36810         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36811         Likewise.
36812         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
36813         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36814         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36815         [!__ASSUME_RECVMMSG]: Change condition to
36816         [!__ASSUME_RECVMMSG_SOCKETCALL].
36817         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36818         (__ASSUME_RECVMMSG_SYSCALL): Define.
36819
36820         [BZ #16609]
36821         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36822         __powerpc__ || __s390__ || __sh__ || __sparc__]
36823         (__ASSUME_SOCKETCALL): Define.
36824         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36825         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36826         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36827         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36828         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36829         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36830         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36831         (__ASSUME_ACCEPT4): Define instead of using previous
36832         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36833         __powerpc__ || __sparc__ || __s390__)] condition.
36834         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36835         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36836         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36837         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36838         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36839         [!__ASSUME_ACCEPT4]: Change condition to
36840         [!__ASSUME_ACCEPT4_SOCKETCALL].
36841         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36842         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36843         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36844         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36845         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36846         __ASSUME_ACCEPT4_SYSCALL.
36847         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36848         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
36849         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36850         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
36851         __ASSUME_ACCEPT4_SYSCALL.
36852         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
36853         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36854         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36855         [__ASSUME_ACCEPT4]: Change condition to
36856         [__ASSUME_ACCEPT4_SOCKETCALL].
36857         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36858         (__ASSUME_SOCKETCALL): Define.
36859         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
36860         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36861         (__ASSUME_SOCKETCALL): Define.
36862         (__ASSUME_ACCEPT4): Remove.
36863         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
36864         Define.
36865         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36866         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
36867         Likewise.
36868         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36869         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36870
36871         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
36872         macro.
36873         (HWCAP_ARM_LPAE): Likewise.
36874         (HWCAP_ARM_EVTSTRM): Likewise.
36875         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
36876         Add vpfd32, lpae and evtstrm.
36877         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
36878         Increase to 22.
36879
36880 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
36881
36882         * math/auto-libm-test-in: Add tests of clog10.
36883         * math/auto-libm-test-out: Regenerated.
36884         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
36885         * sysdeps/i386/fpu/libm-test-ulps: Update.
36886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36887
36888 2014-02-18  Andreas Schwab  <schwab@suse.de>
36889
36890         [BZ #16574]
36891         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
36892         Store non-zero if the second buffer was newly allocated.
36893         (send_dg): Likewise.
36894         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
36895         to send_vc and send_dg.
36896         (res_nsend): Pass NULL for ansp2_malloced.
36897         * resolv/res_query.c (__libc_res_nquery): Add parameter
36898         answerp2_malloced and pass it down to __libc_res_nsend.
36899         (res_nquery): Pass additional NULL to __libc_res_nquery.
36900         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
36901         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
36902         second answer buffer if answerp2_malloced was set.
36903         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
36904         (__libc_res_nquerydomain): Add parameter
36905         answerp2_malloced and pass it down to __libc_res_nquery.
36906         (res_nquerydomain): Pass additional NULL to
36907         __libc_res_nquerydomain.
36908         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
36909         additional NULL to __libc_res_nsend and __libc_res_nquery.
36910         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
36911         additional NULL to __libc_res_nsearch.
36912         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
36913         parameter of __libc_res_nsearch to check for separately allocated
36914         second buffer.
36915         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
36916         __libc_res_nquery.
36917         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
36918         additional NULL to __libc_res_nquery.
36919         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
36920         __libc_res_nsearch.
36921         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
36922         * include/resolv.h: Update prototypes of __libc_res_nquery,
36923         __libc_res_nsearch, __libc_res_nsend.
36924
36925 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
36926
36927         * math/auto-libm-test-in: Add tests of fma.
36928         * math/auto-libm-test-out: Regenerated.
36929         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
36930         (fma_towardzero_test_data): Likewise.
36931         (fma_downward_test_data): Likewise.
36932         (fma_upward_test_data): Likewise.
36933         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
36934         mpc_mode.
36935         (rounding_modes): Add values for new field.
36936         (func_calc_method): Add value mpfr_fff_f.
36937         (func_calc_desc): Add mpfr_fff_f union field.
36938         (test_function): Add field exact_args.
36939         (FUNC): Add macro argument EXACT_ARGS.
36940         (FUNC_mpfr_f_f): Update call to FUNC.
36941         (FUNC_mpfr_f_f): Likewise.
36942         (FUNC_mpfr_ff_f): Likewise.
36943         (FUNC_mpfr_if_f): Likewise.
36944         (FUNC_mpc_c_f): Likewise.
36945         (FUNC_mpc_c_c): Likewise.
36946         (test_functions): Add fma.  Update calls to FUNC.
36947         (handle_input_arg): Add argument exact_args.
36948         (add_test): Update call to handle_input_arg.
36949         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
36950         (output_for_one_input_case): Update call to calc_generic_results.
36951         Recalculate exact zero results in each rounding mode.
36952
36953         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
36954         non-negative before setting low bit.
36955         * math/auto-libm-test-in: Mark one asin test possibly having
36956         spurious underflow.
36957         * math/auto-libm-test-out: Regenerated.
36958         * sysdeps/i386/fpu/libm-test-ulps: Update.
36959         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36960
36961 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
36962
36963         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
36964         * sysdeps/unix/sysv/linux/microblaze: Move directory from
36965         ports/sysdeps/unix/sysv/linux/microblaze.
36966         * README: Add missing listing for microblaze*-*-linux-gnu.
36967
36968 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
36969
36970         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
36971         duplicate code
36972
36973 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
36974
36975         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
36976         * sysdeps/unix/sysv/linux/ia64: Move directory from
36977         ports/sysdeps/unix/sysv/linux/ia64.
36978         * README: Update listing for ia64-*-linux-gnu.
36979
36980 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
36981             Joseph Myers  <joseph@codesourcery.com>
36982
36983         * Makeconfig (test-name): New variable.
36984         (evaluate-test): Likewise.
36985         * Makerules (do-test-clean): Remove .test-result files.
36986         (common-mostlyclean): Likewise.
36987         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
36988         * scripts/evaluate-test.sh: New file.
36989
36990 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
36991
36992         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
36993         separate $(objpfx)tst-fopenloc-cmp.out and
36994         $(objpfx)tst-fopenloc-mem.out targets.
36995         (tests): Update dependencies.
36996         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
36997         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
36998         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
36999         (tst-rxspencer-no-utf8-ARGS): New variable.
37000         (tst-rxspencer-no-utf8-ENV): Likewise.
37001         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37002         instead of $(objpfx)tst-rxspencer-mem.
37003         ($(objpfx)tst-rxspencer-mem): Change target to
37004         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37005         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37006         * posix/tst-rxspencer-no-utf8.c: New file.
37007
37008         * elf/Makefile ($(objpfx)order.out): Remove rule.
37009         [$(run-built-tests) = yes] (tests): Depend on
37010         $(objpfx)order-cmp.out.
37011         ($(objpfx)order-cmp.out): New rule.
37012         [$(run-built-tests) = yes] (tests): Depend on
37013         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37014         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37015         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37016         $(objpfx)tst-array5-static-cmp.out.
37017         ($(objpfx)tst-array1.out): Remove rule.
37018         ($(objpfx)tst-array1-cmp.out): New rule.
37019         ($(objpfx)tst-array1-static.out): Remove rule.
37020         ($(objpfx)tst-array1-static-cmp.out): New rule.
37021         ($(objpfx)tst-array2.out): Remove rule.
37022         ($(objpfx)tst-array2-cmp.out): New rule.
37023         ($(objpfx)tst-array3.out): Remove rule.
37024         ($(objpfx)tst-array3-cmp.out): New rule.
37025         ($(objpfx)tst-array4.out): Remove rule.
37026         ($(objpfx)tst-array4-cmp.out): New rule.
37027         ($(objpfx)tst-array5.out): Remove rule.
37028         ($(objpfx)tst-array5-cmp.out): New rule.
37029         ($(objpfx)tst-array5-static.out): Remove rule.
37030         ($(objpfx)tst-array5-static-cmp.out): New rule.
37031         [$(run-built-tests) = yes] (tests): Depend on
37032         $(objpfx)order2-cmp.out.
37033         ($(objpfx)order2.out): Remove rule.
37034         ($(objpfx)order2-cmp.out): New rule.
37035         ($(objpfx)tst-initorder.out): Remove rule.
37036         [$(run-built-tests) = yes] (tests): Depend on
37037         $(objpfx)tst-initorder-cmp.out.
37038         ($(objpfx)tst-initorder-cmp.out): New rule.
37039         ($(objpfx)tst-initorder2.out): Remove rule.
37040         [$(run-built-tests) = yes] (tests): Depend on
37041         $(objpfx)tst-initorder2-cmp.out.
37042         ($(objpfx)tst-initorder2-cmp.out): New rule.
37043         [$(run-built-tests) = yes] (tests): Depend on
37044         $(objpfx)tst-unused-dep-cmp.out.
37045         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37046         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37047         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37048         on $(objpfx)tst-setvbuf1-cmp.out.
37049         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37050         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37051         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37052         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37053         ($(objpfx)tst-svc.out): Remove rule.
37054         ($(objpfx)tst-svc-cmp.out): New rule.
37055
37056 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37057
37058         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37059         * ctype/ctype.h [__USE_MISC]: Likewise.
37060         * dirent/dirent.h [__USE_MISC]: Likewise.
37061         * grp/grp.h [__USE_MISC]: Likewise.
37062         * io/fcntl.h [__USE_MISC]: Likewise.
37063         * io/sys/stat.h [__USE_MISC]: Likewise.
37064         * libio/stdio.h [__USE_MISC]: Likewise.
37065         * posix/unistd.h [__USE_MISC]: Likewise.
37066         * pwd/pwd.h [__USE_MISC]: Likewise.
37067         * stdlib.h [__USE_MISC]: Likewise.
37068         * string/bits/string2.h [__USE_MISC]: Likewise.
37069         * string/string.h [__USE_MISC]: Likewise.
37070         * time/time.h [__USE_MISC]: Likewise.
37071
37072 2014-02-13  Andreas Schwab  <schwab@suse.de>
37073
37074         [BZ #16574]
37075         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37076         second answer buffer if it was separately allocated.
37077
37078 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37079
37080         * sysdeps/mips/math-tests.h: Include <features.h>.
37081         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37082         (ROUNDING_TESTS_long_double): Do not define.
37083         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37084         (EXCEPTION_TESTS_long_double): Likewise.
37085         * sysdeps/mips/mips64/libm-test-ulps: Update.
37086
37087         * include/features.h (__USE_BSD): Remove macro definitions.
37088         (__USE_SVID): Likewise.
37089         (_BSD_SOURCE): Likewise.
37090         (_SVID_SOURCE): Likewise.
37091         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37092         from definition of _DEFAULT_SOURCE.
37093         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37094         [_DEFAULT_SOURCE].
37095         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37096         * bits/mman.h [__USE_BSD]: Likewise.
37097         * bits/termios.h [__USE_BSD]: Likewise.
37098         * bits/waitstatus.h [__USE_BSD]: Likewise.
37099         * ctype/ctype.h [__USE_SVID]: Likewise.
37100         * dirent/dirent.h [__USE_BSD]: Likewise.
37101         * grp/grp.h [__USE_SVID]: Likewise.
37102         [__USE_BSD]: Likewise.
37103         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37104         * io/fcntl.h [__USE_BSD]: Likewise.
37105         * io/ftw.h [__USE_BSD]: Likewise.
37106         * io/sys/stat.h [__USE_BSD]: Likewise.
37107         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37108         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37109         * libio/stdio.h [__USE_SVID]: Likewise.
37110         [__USE_BSD]: Likewise.
37111         * math/math.h [__USE_SVID]: Likewise.
37112         [__USE_BSD]: Likewise.
37113         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37114         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37115         * misc/search.h [__USE_SVID]: Likewise.
37116         * misc/sys/mman.h [__USE_BSD]: Likewise.
37117         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37118         * misc/sys/uio.h [__USE_BSD]: Likewise.
37119         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37120         * posix/glob.h [__USE_BSD]: Likewise.
37121         * posix/regex.h [__USE_BSD]: Likewise.
37122         * posix/sys/types.h [__USE_BSD]: Likewise.
37123         [__USE_SVID]: Likewise.
37124         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37125         * posix/sys/wait.h [__USE_BSD]: Likewise.
37126         [__USE_SVID]: Likewise.
37127         * posix/unistd.h [__USE_BSD]: Likewise.
37128         [__USE_SVID]: Likewise.
37129         * pwd/pwd.h [__USE_SVID]: Likewise.
37130         * resolv/netdb.h [__USE_BSD]: Likewise.
37131         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37132         * signal/signal.h [__USE_BSD]: Likewise.
37133         [__USE_SVID]: Likewise.
37134         * socket/sys/socket.h [__USE_BSD]: Likewise.
37135         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37136         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37137         [__USE_SVID]: Likewise.
37138         * string/bits/string2.h [__USE_BSD]: Likewise.
37139         [__USE_SVID]: Likewise.
37140         * string/bits/string3.h [__USE_BSD]: Likewise.
37141         * string/endian.h [__USE_BSD]: Likewise.
37142         * string/string.h [__USE_SVID]: Likewise.
37143         [__USE_BSD]: Likewise.
37144         * string/strings.h [__USE_BSD]: Likewise.
37145         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37146         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37147         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37148         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37149         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37150         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37151         Likewise.
37152         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37153         Likewise.
37154         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37155         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37156         Likewise.
37157         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37158         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37159         Likewise.
37160         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37161         Likewise.
37162         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37163         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37164         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37165         Likewise.
37166         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37167         Likewise.
37168         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37169         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37170         * termios/termios.h [__USE_BSD]: Likewise.
37171         * time/sys/time.h [__USE_BSD]: Likewise.
37172         * time/time.h [__USE_BSD]: Likewise.
37173         [__USE_SVID]: Likewise.
37174
37175         * Makefile (subdir_targets): Remove subdir_lint.out.
37176
37177         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37178         (do-tst-printf): Likewise.
37179         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37180         $(objpfx)tst-printf.out.
37181
37182         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37183
37184         * Makerules (check-abi-%): Change target to
37185         $(objpfx)check-abi-%.out.
37186         (check-abi target): Update dependencies.
37187         (check-abi-pattern variable): Redirect output of diff to $@.
37188         (check-abi variable): Likewise.
37189         * elf/Makefile (check-abi): Update dependencies.
37190
37191         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37192         unused.
37193         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37194         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37195         subnormal range.
37196         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37197         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37198         value has largest subnormal exponent.
37199         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37200         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37201         * sysdeps/aarch64/soft-fp/sfp-machine.h
37202         (_FP_TININESS_AFTER_ROUNDING): New macro.
37203         * sysdeps/alpha/soft-fp/sfp-machine.h
37204         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37205         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37206         Likewise.
37207         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37208         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37209         * sysdeps/mips/soft-fp/sfp-machine.h
37210         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37211         * sysdeps/powerpc/soft-fp/sfp-machine.h
37212         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37213         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37214         Likewise.
37215         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37216         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37217         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37218         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37219         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37220         Likewise.
37221
37222 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37223
37224         [BZ #16545]
37225         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37226         model 1.
37227
37228 2014-02-12  Richard Henderson  <rth@redhat.com>
37229
37230         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37231         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37232         * sysdeps/unix/sysv/linux/alpha: Move directory from
37233         ports/sysdeps/unix/sysv/linux/alpha.
37234         * README: Update listing for alpha-*-linux-gnu.
37235
37236 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37237
37238         * include/features.h: Update comment documenting feature test
37239         macros.
37240         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37241         _DEFAULT_SOURCE.
37242         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37243         (_SVID_SOURCE): Likewise.
37244         (_DEFAULT_SOURCE): Update description of default features.
37245         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37246         with _GNU_SOURCE.
37247         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37248         (S_ISVTX): Likewise.
37249         * manual/math.texi (Mathematical Constants): Likewise.
37250         * manual/signal.texi (Interrupted Primitives): Likewise.
37251         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37252         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37253         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37254         Don't refer to _SVID_SOURCE in warning text.
37255
37256         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37257
37258         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37259         already defined.
37260         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37261         * sysdeps/mips/dl-lookup.c: Remove.
37262         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37263
37264 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37265
37266         [BZ #16447]
37267         * math/auto-libm-test-in: Add testcase for expl.
37268         * math/auto-libm-test-out: Regenerate.
37269         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37270         calculation of unsafe.
37271         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37272
37273 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37274
37275         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37276         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37277         ports/sysdeps/unix/sysv/linux/aarch64.
37278         * README: Update listing for aarch64*-*-linux-gnu.
37279
37280 2014-02-11  Will Newton  <will.newton@linaro.org>
37281
37282         * manual/probes.texi (Mathematical Function Probes): Use
37283         "triggered" instead of "hit".
37284
37285         * manual/probes.texi (Internal Probes): Add documentation
37286         of setjmp, longjmp and longjmp_target probes.
37287
37288         * include/stap-probe.h: Add comment about probe argument
37289         format.
37290
37291         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37292         definition.  (tr_where, tr_freehook, tr_mallochook,
37293         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37294
37295 2014-02-11  David S. Miller  <davem@davemloft.net>
37296
37297         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37298         processing int_tests.
37299
37300 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37301
37302         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37303         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37304         * sysdeps/unix/sysv/linux/mips: Move directory from
37305         ports/sysdeps/unix/sysv/linux/mips.
37306         * README: Update listing for mips-*-linux-gnu and
37307         mips64-*-linux-gnu.
37308
37309 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37310
37311         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37312         * sysdeps/unix/sysv/linux/m68k: Move directory from
37313         ports/sysdeps/unix/sysv/linux/m68k.
37314         * README: Update listing for m68k-*-linux-gnu.
37315
37316 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37317
37318         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37319         * sysdeps/unix/sysv/linux/generic: Move directory from
37320         ports/sysdeps/unix/sysv/linux/generic.
37321         * sysdeps/unix/sysv/linux/tile: Move directory from
37322         ports/sysdeps/unix/sysv/linux/tile.
37323         * README: Update listing for tile*-*-linux-gnu.
37324
37325 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37326
37327         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37328         __builtin_expect.
37329         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37330         * catgets/open_catalog.c (__open_catalog): Likewise.
37331         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37332         * debug/confstr_chk.c: Likewise.
37333         * debug/fread_chk.c (__fread_chk): Likewise.
37334         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37335         * debug/getgroups_chk.c: Likewise.
37336         * debug/mbsnrtowcs_chk.c: Likewise.
37337         * debug/mbsrtowcs_chk.c: Likewise.
37338         * debug/mbstowcs_chk.c: Likewise.
37339         * debug/memcpy_chk.c: Likewise.
37340         * debug/memmove_chk.c: Likewise.
37341         * debug/mempcpy_chk.c: Likewise.
37342         * debug/memset_chk.c: Likewise.
37343         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37344         * debug/strcat_chk.c (__strcat_chk): Likewise.
37345         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37346         * debug/strncat_chk.c (__strncat_chk): Likewise.
37347         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37348         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37349         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37350         * debug/wcpncpy_chk.c: Likewise.
37351         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37352         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37353         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37354         * debug/wcsncpy_chk.c: Likewise.
37355         * debug/wcsnrtombs_chk.c: Likewise.
37356         * debug/wcsrtombs_chk.c: Likewise.
37357         * debug/wcstombs_chk.c: Likewise.
37358         * debug/wmemcpy_chk.c: Likewise.
37359         * debug/wmemmove_chk.c: Likewise.
37360         * debug/wmempcpy_chk.c: Likewise.
37361         * debug/wmemset_chk.c: Likewise.
37362         * dirent/scandirat.c (SCANDIRAT): Likewise.
37363         * dlfcn/dladdr1.c (dladdr1): Likewise.
37364         * dlfcn/dladdr.c (dladdr): Likewise.
37365         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37366         * dlfcn/dlerror.c (__dlerror): Likewise.
37367         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37368         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37369         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37370         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37371         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37372         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37373         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37374         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37375         Likewise.
37376         * elf/dl-conflict.c: Likewise.
37377         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37378         * elf/dl-dst.h: Likewise.
37379         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37380         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37381         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37382         * elf/dl-init.c (call_init, _dl_init): Likewise.
37383         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37384         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37385         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37386         Likewise.
37387         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37388         Likewise.
37389         * elf/dl-minimal.c (__libc_memalign): Likewise.
37390         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37391         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37392         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37393         * elf/dl-sym.c (do_sym): Likewise.
37394         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37395         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37396         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37397         * elf/dl-writev.h (_dl_writev): Likewise.
37398         * elf/ldconfig.c (search_dir): Likewise.
37399         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37400         (dl_main): Likewise.
37401         * elf/setup-vdso.h (setup_vdso): Likewise.
37402         * grp/compat-initgroups.c (compat_call): Likewise.
37403         * grp/fgetgrent.c (fgetgrent): Likewise.
37404         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37405         * grp/putgrent.c (putgrent): Likewise.
37406         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37407         Likewise.
37408         * hurd/hurdinit.c: Likewise.
37409         * iconvdata/8bit-gap.c (struct): Likewise.
37410         * iconvdata/ansi_x3.110.c : Likewise.
37411         * iconvdata/big5.c : Likewise.
37412         * iconvdata/big5hkscs.c : Likewise.
37413         * iconvdata/cp1255.c: Likewise.
37414         * iconvdata/cp1258.c : Likewise.
37415         * iconvdata/cp932.c : Likewise.
37416         * iconvdata/euc-cn.c: Likewise.
37417         * iconvdata/euc-jisx0213.c : Likewise.
37418         * iconvdata/euc-jp.c: Likewise.
37419         * iconvdata/euc-jp-ms.c : Likewise.
37420         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37421         * iconvdata/gb18030.c : Likewise.
37422         * iconvdata/gbbig5.c (const): Likewise.
37423         * iconvdata/gbgbk.c: Likewise.
37424         * iconvdata/gbk.c : Likewise.
37425         * iconvdata/ibm1364.c : Likewise.
37426         * iconvdata/ibm930.c : Likewise.
37427         * iconvdata/ibm932.c: Likewise.
37428         * iconvdata/ibm933.c : Likewise.
37429         * iconvdata/ibm935.c : Likewise.
37430         * iconvdata/ibm937.c : Likewise.
37431         * iconvdata/ibm939.c : Likewise.
37432         * iconvdata/ibm943.c: Likewise.
37433         * iconvdata/iso_11548-1.c: Likewise.
37434         * iconvdata/iso-2022-cn.c : Likewise.
37435         * iconvdata/iso-2022-cn-ext.c : Likewise.
37436         * iconvdata/iso-2022-jp-3.c: Likewise.
37437         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37438         * iconvdata/iso-2022-kr.c : Likewise.
37439         * iconvdata/iso646.c (gconv_end): Likewise.
37440         * iconvdata/iso_6937-2.c : Likewise.
37441         * iconvdata/iso_6937.c : Likewise.
37442         * iconvdata/iso8859-1.c: Likewise.
37443         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37444         * iconvdata/shift_jisx0213.c : Likewise.
37445         * iconvdata/sjis.c : Likewise.
37446         * iconvdata/t.61.c : Likewise.
37447         * iconvdata/tcvn5712-1.c : Likewise.
37448         * iconvdata/tscii.c: Likewise.
37449         * iconvdata/uhc.c : Likewise.
37450         * iconvdata/unicode.c (gconv_end): Likewise.
37451         * iconvdata/utf-16.c (gconv_end): Likewise.
37452         * iconvdata/utf-32.c (gconv_end): Likewise.
37453         * iconvdata/utf-7.c (base64): Likewise.
37454         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37455         * iconv/gconv_close.c (__gconv_close): Likewise.
37456         * iconv/gconv_open.c (__gconv_open): Likewise.
37457         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37458         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37459         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37460         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37461         (ucs4le_internal_loop_single): Likewise.
37462         * iconv/iconv.c (iconv): Likewise.
37463         * iconv/iconv_close.c: Likewise.
37464         * iconv/loop.c (SINGLE): Likewise.
37465         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37466         * include/atomic.h: Likewise.
37467         * inet/inet6_option.c (option_alloc): Likewise.
37468         * intl/bindtextdom.c (set_binding_values): Likewise.
37469         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37470         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37471         * intl/localealias.c (read_alias_file): Likewise.
37472         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37473         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37474         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37475         * libio/fmemopen.c (fmemopen): Likewise.
37476         * libio/iofgets.c (_IO_fgets): Likewise.
37477         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37478         * libio/iofgetws.c (fgetws): Likewise.
37479         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37480         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37481         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37482         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37483         * locale/findlocale.c (_nl_find_locale): Likewise.
37484         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37485         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37486         Likewise.
37487         * locale/setlocale.c (setlocale): Likewise.
37488         * login/programs/pt_chown.c (main): Likewise.
37489         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37490         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37491         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37492         (mmap, mmap64, mremap, munmap): Likewise.
37493         * math/e_exp2l.c: Likewise.
37494         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37495         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37496         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37497         * math/s_catan.c (__catan): Likewise.
37498         * math/s_catanf.c (__catanf): Likewise.
37499         * math/s_catanh.c (__catanh): Likewise.
37500         * math/s_catanhf.c (__catanhf): Likewise.
37501         * math/s_catanhl.c (__catanhl): Likewise.
37502         * math/s_catanl.c (__catanl): Likewise.
37503         * math/s_ccosh.c (__ccosh): Likewise.
37504         * math/s_ccoshf.c (__ccoshf): Likewise.
37505         * math/s_ccoshl.c (__ccoshl): Likewise.
37506         * math/s_cexp.c (__cexp): Likewise.
37507         * math/s_cexpf.c (__cexpf): Likewise.
37508         * math/s_cexpl.c (__cexpl): Likewise.
37509         * math/s_clog10.c (__clog10): Likewise.
37510         * math/s_clog10f.c (__clog10f): Likewise.
37511         * math/s_clog10l.c (__clog10l): Likewise.
37512         * math/s_clog.c (__clog): Likewise.
37513         * math/s_clogf.c (__clogf): Likewise.
37514         * math/s_clogl.c (__clogl): Likewise.
37515         * math/s_csin.c (__csin): Likewise.
37516         * math/s_csinf.c (__csinf): Likewise.
37517         * math/s_csinh.c (__csinh): Likewise.
37518         * math/s_csinhf.c (__csinhf): Likewise.
37519         * math/s_csinhl.c (__csinhl): Likewise.
37520         * math/s_csinl.c (__csinl): Likewise.
37521         * math/s_csqrt.c (__csqrt): Likewise.
37522         * math/s_csqrtf.c (__csqrtf): Likewise.
37523         * math/s_csqrtl.c (__csqrtl): Likewise.
37524         * math/s_ctan.c (__ctan): Likewise.
37525         * math/s_ctanf.c (__ctanf): Likewise.
37526         * math/s_ctanh.c (__ctanh): Likewise.
37527         * math/s_ctanhf.c (__ctanhf): Likewise.
37528         * math/s_ctanhl.c (__ctanhl): Likewise.
37529         * math/s_ctanl.c (__ctanl): Likewise.
37530         * math/w_pow.c: Likewise.
37531         * math/w_powf.c: Likewise.
37532         * math/w_powl.c: Likewise.
37533         * math/w_scalb.c (sysv_scalb): Likewise.
37534         * math/w_scalbf.c (sysv_scalbf): Likewise.
37535         * math/w_scalbl.c (sysv_scalbl): Likewise.
37536         * misc/error.c (error_tail): Likewise.
37537         * misc/pselect.c (__pselect): Likewise.
37538         * nis/nis_callback.c (__nis_create_callback): Likewise.
37539         * nis/nis_call.c (__nisfind_server): Likewise.
37540         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37541         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37542         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37543         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37544         * nis/nis_lookup.c (nis_lookup): Likewise.
37545         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37546         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37547         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37548         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37549         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37550         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37551         * nis/nss_compat/compat-initgroups.c (add_group)
37552         (internal_getgrent_r): Likewise.
37553         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37554         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37555         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37556         (internal_getspnam_r): Likewise.
37557         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37558         (_nss_nis_getaliasbyname_r): Likewise.
37559         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37560         (_nss_nis_getntohost_r): Likewise.
37561         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37562         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37563         (_nss_nis_getgrgid_r): Likewise.
37564         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37565         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37566         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37567         (_nss_nis_gethostbyname4_r): Likewise.
37568         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37569         (initgroups_netid): Likewise.
37570         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37571         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37572         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37573         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37574         (_nss_nis_getprotobynumber_r): Likewise.
37575         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37576         (_nss_nis_getsecretkey): Likewise.
37577         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37578         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37579         (_nss_nis_getpwuid_r): Likewise.
37580         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37581         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37582         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37583         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37584         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37585         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37586         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37587         Likewise.
37588         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37589         (_nss_nisplus_getntohost_r): Likewise.
37590         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37591         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37592         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37593         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37594         Likewise.
37595         * nis/nss_nisplus/nisplus-initgroups.c
37596         (_nss_nisplus_initgroups_dyn): Likewise.
37597         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37598         (_nss_nisplus_getnetbyaddr_r): Likewise.
37599         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37600         (_nss_nisplus_getprotobynumber_r): Likewise.
37601         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37602         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37603         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37604         Likewise.
37605         * nis/nss_nisplus/nisplus-service.c
37606         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37607         (_nss_nisplus_getservbyport_r): Likewise.
37608         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37609         (_nss_nisplus_getspnam_r): Likewise.
37610         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37611         Likewise.
37612         * nscd/aicache.c (addhstaiX): Likewise.
37613         * nscd/cache.c (cache_search, prune_cache): Likewise.
37614         * nscd/connections.c (register_traced_file, send_ro_fd)
37615         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37616         (main_loop_epoll): Likewise.
37617         * nscd/grpcache.c (addgrbyX): Likewise.
37618         * nscd/hstcache.c (addhstbyX): Likewise.
37619         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37620         * nscd/mem.c (gc, mempool_alloc): Likewise.
37621         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37622         (addinnetgrX): Likewise.
37623         * nscd/nscd-client.h (__nscd_acquire_maplock)
37624         (__nscd_drop_map_ref): Likewise.
37625         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37626         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37627         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37628         Likewise.
37629         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37630         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37631         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37632         (__nscd_get_map_ref): Likewise.
37633         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37634         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37635         Likewise.
37636         * nscd/pwdcache.c (addpwbyX): Likewise.
37637         * nscd/selinux.c (preserve_capabilities): Likewise.
37638         * nscd/servicescache.c (addservbyX): Likewise.
37639         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37640         * posix/fnmatch.c (fnmatch): Likewise.
37641         * posix/getopt.c (_getopt_internal_r): Likewise.
37642         * posix/glob.c (glob, glob_in_dir): Likewise.
37643         * posix/wordexp.c (exec_comm_child): Likewise.
37644         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37645         (getanswer_r, gaih_getanswer_slice): Likewise.
37646         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37647         * resolv/res_init.c: Likewise.
37648         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37649         * resolv/res_query.c (__libc_res_nquery): Likewise.
37650         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37651         Likewise.
37652         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37653         * stdio-common/perror.c (perror): Likewise.
37654         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37655         * stdio-common/tmpnam.c (tmpnam): Likewise.
37656         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37657         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37658         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37659         Likewise.
37660         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37661         * stdlib/putenv.c (putenv): Likewise.
37662         * stdlib/setenv.c (__add_to_environ): Likewise.
37663         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37664         * stdlib/strtol_l.c (INTERNAL): Likewise.
37665         * string/memmem.c (memmem): Likewise.
37666         * string/strerror.c (strerror): Likewise.
37667         * string/strnlen.c (__strnlen): Likewise.
37668         * string/test-memmem.c (simple_memmem): Likewise.
37669         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37670         * sunrpc/pm_getport.c (__get_socket): Likewise.
37671         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37672         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37673         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37674         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37675         Likewise.
37676         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37677         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37678         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37679         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37680         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37681         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37682         Likewise.
37683         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37684         Likewise.
37685         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37686         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37687         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37688         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37689         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37690         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37691         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37692         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37693         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37694         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37695         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37696         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37697         Likewise.
37698         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37699         Likewise.
37700         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37701         Likewise.
37702         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37703         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37704         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37705         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37706         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37707         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37708         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37709         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37710         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37711         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37712         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37713         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37714         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37715         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37716         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37717         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37718         Likewise.
37719         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37720         Likewise.
37721         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37722         Likewise.
37723         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37724         Likewise.
37725         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37726         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37727         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37728         Likewise.
37729         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37730         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37731         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37732         * sysdeps/posix/sleep.c: Likewise.
37733         * sysdeps/posix/tempname.c: Likewise.
37734         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37735         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37736         Likewise.
37737         * sysdeps/powerpc/powerpc32/dl-machine.h
37738         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37739         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37740         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37741         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37742         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37743         Likewise.
37744         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37745         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37746         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37747         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37748         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37749         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37750         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37751         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37752         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37753         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37754         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37755         (elf_machine_lazy_rel): Likewise.
37756         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37757         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37758         (elf_machine_lazy_rel): Likewise.
37759         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37760         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37761         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37762         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37763         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37764         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37765         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37766         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37767         Likewise.
37768         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37769         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37770         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37771         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37772         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37773         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37774         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37775         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37776         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37777         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37778         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37779         Likewise.
37780         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37781         (__posix_fallocate64_l64): Likewise.
37782         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37783         (posix_fallocate): Likewise.
37784         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37785         Likewise.
37786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37787         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37788         (getifaddrs_internal): Likewise.
37789         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37790         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37791         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37792         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37793         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37794         (__posix_fallocate64_l64): Likewise.
37795         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37796         Likewise.
37797         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37798         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37799         (__get_clockfreq): Likewise.
37800         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37801         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37802         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37803         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37804         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37805         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37806         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37807         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37808         Likewise.
37809         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37810         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37811         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37812         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37813         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37814         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37815         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37816         Likewise.
37817         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37818         (posix_fallocate): Likewise.
37819         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37820         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37821         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37822         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37823         (elf_machine_rela, elf_machine_rela_relative)
37824         (elf_machine_lazy_rel): Likewise.
37825         * time/asctime.c (asctime_internal): Likewise.
37826         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37827         * time/tzset.c (__tzset_parse_tz): Likewise.
37828         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37829         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37830         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37831         * wcsmbs/wcsmbsload.h: Likewise.
37832
37833         [BZ #15894]
37834         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37835
37836         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37837         (arena_get2): Remove THREAD_STATS conditionals.
37838         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37839         (__malloc_stats, int): Likewise.
37840
37841 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37842
37843         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37844         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37845
37846         * manual/setjmp.texi: Fix typos/grammar errors.
37847
37848         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
37849         Only return early when n is <= 0.  Delete unused return statement.
37850
37851         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
37852         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
37853         * debug/tst-longjmp_chk3.c: New file.
37854
37855         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
37856         (test_main): Replace code with set_fortify_handler call.
37857         * debug/test-strcpy_chk.c: Likewise.
37858         * debug/tst-chk1.c: Likewise.
37859         * debug/tst-longjmp_chk.c: Likewise.
37860         * test-skeleton.c: Include fcntl.h & paths.h
37861         (set_fortify_handler): Define.
37862
37863         * debug/tst-longjmp_chk.c: Add header comment and include
37864         ../test-skeleton.c.
37865         (do_test): Mark static.
37866         (TEST_FUNCTION): Define.
37867
37868         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
37869         (IP_PMTUDISC_INTERFACE): Likewise.
37870         (IP_MULTICAST_IF): Likewise.
37871         (IP_MULTICAST_TTL): Likewise.
37872         (IP_MULTICAST_LOOP): Likewise.
37873         (IP_ADD_MEMBERSHIP): Likewise.
37874         (IP_DROP_MEMBERSHIP): Likewise.
37875         (IP_UNBLOCK_SOURCE): Likewise.
37876         (IP_BLOCK_SOURCE): Likewise.
37877         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
37878         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
37879         (IP_MSFILTER): Likewise.
37880         (MCAST_JOIN_GROUP): Likewise.
37881         (MCAST_BLOCK_SOURCE): Likewise.
37882         (MCAST_UNBLOCK_SOURCE): Likewise.
37883         (MCAST_LEAVE_GROUP): Likewise.
37884         (MCAST_JOIN_SOURCE_GROUP): Likewise.
37885         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
37886         (MCAST_MSFILTER): Likewise.
37887         (IP_MULTICAST_ALL): Likewise.
37888         (IP_UNICAST_IF): Likewise.
37889
37890         * timezone/Makefile: Delete $(have-ksh) check.
37891         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
37892         * timezone/tzselect.ksh: Add +x mode bits.
37893
37894         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
37895         (ANON_INODE_FS_MAGIC): Likewise.
37896         (BDEVFS_MAGIC): Likewise.
37897         (BINFMTFS_MAGIC): Likewise.
37898         (BTRFS_TEST_MAGIC): Likewise.
37899         (CRAMFS_MAGIC_WEND): Likewise.
37900         (DEBUGFS_MAGIC): Likewise.
37901         (ECRYPTFS_SUPER_MAGIC): Likewise.
37902         (EXT3_SUPER_MAGIC): Likewise.
37903         (EXT4_SUPER_MAGIC): Likewise.
37904         (FUTEXFS_SUPER_MAGIC): Likewise.
37905         (HOSTFS_SUPER_MAGIC): Likewise.
37906         (HUGETLBFS_MAGIC): Likewise.
37907         (MINIX3_SUPER_MAGIC): Likewise.
37908         (MTD_INODE_FS_MAGIC): Likewise.
37909         (NILFS_SUPER_MAGIC): Likewise.
37910         (OPENPROM_SUPER_MAGIC): Likewise.
37911         (PIPEFS_MAGIC): Likewise.
37912         (PSTOREFS_MAGIC): Likewise.
37913         (QNX6_SUPER_MAGIC): Likewise.
37914         (RAMFS_MAGIC): Likewise.
37915         (REISERFS_SUPER_MAGIC_STRING): Likewise.
37916         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
37917         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
37918         (SECURITYFS_MAGIC): Likewise.
37919         (SELINUX_MAGIC): Likewise.
37920         (SMACK_MAGIC): Likewise.
37921         (SOCKFS_MAGIC): Likewise.
37922         (SQUASHFS_MAGIC): Likewise.
37923         (STACK_END_MAGIC): Likewise.
37924         (TMPFS_MAGIC): Likewise.
37925         (USBDEVICE_SUPER_MAGIC): Likewise.
37926         (V9FS_MAGIC): Likewise.
37927         (XENFS_SUPER_MAGIC): Likewise.
37928         (CRAMFS_MAGIC): Fix typo in comment.
37929         (EXT2_SUPER_MAGIC): Update comment.
37930         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
37931
37932 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
37933
37934         * sysdeps/arm: Move directory from ports/sysdeps/arm.
37935         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
37936         * sysdeps/unix/sysv/linux/arm: Move directory from
37937         ports/sysdeps/unix/sysv/linux/arm.
37938         * README: Update listing for arm-*-linux-gnueabi.
37939
37940         * README: Remove mention of am33.
37941
37942 2014-02-07  Roland McGrath  <roland@hack.frob.com>
37943
37944         * bits/sigset.h (__sigemptyset): Use a statement expression rather
37945         than the comma operator, to avoid "rhs of comma has no effect"
37946         compiler warnings.
37947         (__sigfillset, __sigandset, __sigorset): Likewise.
37948         * include/signal.h (__sigemptyset): Likewise.
37949         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
37950
37951 2014-02-07  Allan McRae  <allan@archlinux.org>
37952
37953         * version.h (RELEASE): Set to "development".
37954         (VERSION): Set to "2.19.90"
37955         * NEWS: Add 2.20 section.
37956
37957 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
37958
37959         [BZ #16529]
37960         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
37961
37962 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
37963
37964         * manual/contrib.texi: Update entry for Carlos O'Donell,
37965         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
37966
37967 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
37968
37969         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
37970
37971         * sysdeps/unix/sysv/linux/kernel-features.h
37972         [__LINUX_KERNEL_VERSION >= 0x020621]
37973         (__ASSUME_PROC_PID_TASK_COMM): Define.
37974
37975 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
37976
37977         [BZ #16398]
37978         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
37979         conversion when destination buffer does not have enough space.
37980         * libio/tst-ftell-partial-wide.c: New test case.
37981         * libio/Makefile (tests): Add tst-ftell-partial-wide.
37982
37983         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
37984         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
37985         Leonard and Allan McRae.
37986
37987 2014-02-04  David S. Miller  <davem@davemloft.net>
37988
37989         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
37990         32-bit.
37991
37992 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37993
37994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
37995         New file
37996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
37997         New file
37998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
37999         New file.
38000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38001         New file.
38002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38003         New file.
38004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38005         New file.
38006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38007         New file.
38008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38009         New file.
38010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38011         New file.
38012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38013         New file.
38014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38015         New file.
38016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38017         New file.
38018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38019         New file.
38020
38021 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38022
38023         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38024         * shlib-versions: Likewise.
38025
38026 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38027             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38028
38029         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38030         (abilist-pattern): New variable, set to %-le.abilist.
38031
38032         * Makerules (abilist-pattern): New variable.
38033         (vpath): Use $(abilist-pattern) in place of %.abilist.
38034         (check-abi-% pattern rule): Likewise.
38035         (check-abi, update-abi): Likewise.
38036
38037 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38038
38039         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38040
38041 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38042
38043         * manual/startup.texi: Add next, previous, and top entries for
38044         the `Program Arguments' and `Environment Variables' nodes.
38045
38046 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38047
38048         * manual/macros.texi: Add comments before MTASC-safety macros.
38049
38050         * manual/users.texi: Document MTASC-safety properties.
38051
38052         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38053         (pthread_getspecific, pthread_setspecific): Format with
38054         @deftypefun, and add @safety note.
38055         * manual/signal.texi: Move comments that analyze the above
38056         functions to their home place.
38057
38058 2014-02-03  Allan McRae  <allan@archlinux.org>
38059
38060         * po/sl.po: Update Slovenian translation from translation project.
38061
38062 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38063
38064         * manual/time.texi (timegm): Add missing blank after @c.
38065         Reported by Joseph Myers <joseph@codesourcery.com>.
38066
38067 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38068
38069         * manual/check-safety.sh: New.
38070         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38071
38072         * manual/terminal.texi: Document MTASC-safety properties.
38073
38074         * manual/filesys.texi: Document MTASC-safety properties.
38075
38076         * manual/errno.texi: Document MTASC-safety properties.
38077
38078         * manual/intro.texi: Document safety identifiers and
38079         conditionals.
38080
38081         * manual/string.texi (wcstok): Fix prototype.
38082         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38083
38084         * manual/time.texi: Document MTASC-safety properties.
38085
38086         * manual/string.texi: Document MTASC-safety properties.
38087
38088         * manual/threads.texi: Document MTASC-safety properties.
38089
38090         * manual/stdio.texi: Document MTASC-safety properties.
38091
38092         * manual/syslog.texi: Document MTASC-safety properties.
38093
38094         * manual/sysinfo.texi: Document MTASC-safety properties.
38095
38096         * manual/startup.texi: Document MTASC-safety properties.
38097
38098         * manual/socket.texi: Document MTASC-safety properties.
38099
38100         * manual/signal.texi: Document MTASC-safety properties.
38101
38102 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38103
38104         * manual/setjmp.texi: Document MTASC-safety properties.
38105
38106         * manual/search.texi: Document MTASC-safety properties.
38107
38108         * manual/resource.texi: Document MTASC-safety properties.
38109
38110         * manual/process.texi: Document MTASC-safety properties.
38111
38112         * manual/platform.texi: Document MTASC-safety properties.
38113
38114         * manual/pipe.texi: Document MTASC-safety properties.
38115
38116         * manual/pattern.texi: Document MTASC-safety properties.
38117
38118         * manual/message.texi: Document MTASC-safety properties.
38119
38120         [BZ #12751]
38121         * manual/memory.texi: Document MTASC-safety properties.
38122
38123         * manual/math.texi: Document MTASC-safety properties.
38124
38125         * manual/locale.texi: Document MTASC-safety properties.
38126
38127         * manual/llio.texi: Document MTASC-safety properties.
38128
38129         * manual/libdl.texi: New.
38130
38131         * manual/lang.texi: Document MTASC-safety properties.
38132
38133         * manual/job.texi: Document MTASC-safety properties.
38134
38135         * manual/getopt.texi: Document MTASC-safety properties.
38136
38137         * manual/ctype.texi: Document MTASC-safety properties.
38138
38139 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38140
38141         [BZ #16046]
38142         * csu/libc-tls.c (static_map): Remove variable.
38143         (__libc_setup_tls): Use main executable's link map for TLS data.
38144         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38145         casing for LM_ID_BASE and GL(dl_nns).
38146         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38147         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38148         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38149         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38150         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38151         member.
38152         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38153         l_phnum members.
38154
38155 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38156
38157         * manual/debug.texi: Document MTASC-safety properties.
38158
38159 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38160
38161         [BZ #16510]
38162         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38163         of __x86_64__ when disabling x87 inline functions.
38164
38165 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38166
38167         * manual/charset.texi: Document MTASC-safety properties.
38168
38169         * manual/crypt.texi: Document MTASC-safety properties.
38170
38171         * manual/conf.texi: Document MTASC-safety properties.
38172
38173         * manual/arith.texi: Document MTASC-safety properties.
38174
38175         * manual/argp.texi: Document MTASC-safety properties.
38176
38177         * manual/macros.texi: Introduce macros to document multi
38178         thread, asynchronous signal and asynchronous cancellation
38179         safety properties.
38180         * manual/intro.texi: Introduce the properties themselves.
38181
38182 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38183
38184         * sysdeps/sh/sh4/Makefile: New file.
38185
38186 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38187
38188         * math/gen-libm-test.pl ($srcdir): New variable.
38189         ($auto_input): Use it.
38190
38191 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38192
38193         [BZ #16506]
38194         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38195         access beyond array bounds when parsing netgroups file.
38196
38197         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38198         the old buffer before realloc.
38199
38200 2014-01-27  Allan McRae  <allan@archlinux.org>
38201
38202         * po/fr.po: Update French translation from translation project.
38203
38204 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38205
38206         * sysdeps/sh/libm-test-ulps: Regenerate.
38207
38208 2014-01-24  David S. Miller  <davem@davemloft.net>
38209
38210         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38211
38212 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38213
38214         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38215         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38216
38217 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38218
38219         [BZ #16474]
38220         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38221         string pointers after reallocation.
38222
38223 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38224
38225         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38226         __SH4A__ instead of __SH_FPU_ANY__.
38227
38228 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38229
38230         * sysdeps/sh/fpu_control.h: New file.
38231         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38232         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38233         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38234         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38235         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38236         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38237         * sysdeps/sh/sys/ucontext.h: Remove.
38238         * sysdeps/sh/sys: Remove directory.
38239
38240 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38241
38242         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38243         s390/sys/ucontext.h.
38244         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38245         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38246
38247 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38248
38249         [BZ #15605]
38250         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38251
38252 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38253
38254         [BZ#16431]
38255         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38256         Adjust the vDSO correctly for internal calls.
38257         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38258
38259 2014-01-20  Allan McRae  <allan@archlinux.org>
38260
38261         * po/ca.po: Update Catalan translation from translation project.
38262
38263 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38264
38265         * sysdeps/s390/sotruss-lib.c: New file.
38266
38267 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38268
38269         [BZ#16430]
38270         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38271         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38272         local calls issues by not having a PLT stub required for IFUNC calls.
38273         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38274
38275 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38276
38277         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38278         * math/test-fpucw-static.c: Likewise.
38279
38280 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38281
38282         [BZ #16453]
38283         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38284
38285 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38286
38287         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38288         implementation for powerpc.
38289
38290 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38291
38292         [BZ #14782]
38293         * sysdeps/posix/system.c (__libc_system): Do not enable
38294         asynchronous cancellation.
38295
38296 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38297
38298         [BZ #16427]
38299         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38300         handling only for numbers special also in the IEEE case.
38301
38302 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38303
38304         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38305
38306 2014-01-11  Allan McRae  <allan@archlinux.org>
38307
38308         * po/bg.po: Update Bulgarian translation from translation project.
38309
38310         * po/de.po: Update German translation from translation project.
38311
38312 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38313
38314         * sysdeps/generic/gcc-compat.h: New file.
38315
38316 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38317
38318         * benchtests/asin-inputs: Correct slow inputs.
38319         * benchtests/acos-inputs: Likewise.
38320
38321 2014-01-10  Allan McRae  <allan@archlinux.org>
38322
38323         * po:sv.po: Update Swedish translation from translation project.
38324
38325         * po/vi.po: Update Vietnamese translation from translation project.
38326
38327         * po/eo.po: Update Esperanto translation from translation project.
38328
38329         * po/cs.po: Update Czech translation from translation project.
38330
38331         * po/nl.po: Update Dutch translation from translation project.
38332
38333         * po/pl.po: Update Polish translation from translation project.
38334
38335         * po/ru.po: Update Russian translation from translation project.
38336
38337         * po/uk.po: Update Ukrainian translation from translation project.
38338
38339 2014-01-08  Brooks Moses  <bmoses@google.com>
38340
38341         * elf/dl-load.c: Fix comment typo.
38342
38343 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38344
38345         * po/header.pot: Rename to...
38346         * po/pot.header: ... this.
38347         * po/Makefile: Use pot.header.
38348
38349 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38350             Maxim Kuvyrkov  <maxim@kugelworks.com>
38351
38352         [BZ #16394]
38353         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38354         SRC and DEST against LEN.
38355
38356 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38357
38358         [BZ #16414]
38359         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38360         implementation.
38361         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38362
38363 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38364
38365         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38366
38367 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38368
38369         [BZ #16408]
38370         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38371         for large positive arguments.
38372
38373 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38374
38375         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38376
38377         * math/auto-libm-test-in: Mark various tests with
38378         xfail-rounding:ldbl-128ibm.
38379         * math/auto-libm-test-out: Regenerated.
38380
38381         [BZ #16407]
38382         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38383         Increase overflow threshold.
38384
38385 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38386
38387         [BZ #14286]
38388         * stdio-common/vfprintf.c: Check for integer overflow.
38389
38390 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38391
38392         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38393         the first argument and return value of __tls_get_addr_internal.
38394
38395 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38396
38397         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38398         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38399
38400 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38401
38402         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38403         * sysdeps/s390/rtld-global-offsets.sym: New file.
38404         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38405         GLIBC_2.19 symbol.
38406         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38407         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38408         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38409         ... this.
38410         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38411         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38412         ... this.
38413         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38414         Regenerate.
38415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38416         Regenerate.
38417         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38418         halfs of GPRs for high_gprs contexts.
38419         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38420         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38421         field.
38422         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38423         uc_flags field.
38424         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38425         64 bit versions:
38426         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38427         for high GPRs (uc_high_gprs) and for future extensions
38428         (__reserved).
38429         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38430         for future extensions (__reserved).
38431         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38432         64 bit versions:
38433         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38434         SC_HIGHGPRS offset definition.
38435         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38436         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38437
38438         * Versions.def: Add GLIBC_2.19 for libpthread.
38439         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38440         siglongjmp for libpthread with GLIBC_2.19 symver.
38441         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38442         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38443         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38444         * sysdeps/s390/__longjmp.c: New file.
38445         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38446         * sysdeps/s390/longjmp.c: New file.
38447         * sysdeps/s390/setjmp.S: New file.
38448         * sysdeps/s390/sigjmp.S: New file.
38449         * sysdeps/s390/v1-longjmp.c: New file.
38450         * sysdeps/s390/v1-setjmp.h: New file.
38451         * sysdeps/s390/v1-sigjmp.c: New file.
38452         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38453         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38454         GLIBC_2.19 version.
38455         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38456         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38457         versioned symbols for ____longjmp_chk.
38458         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38459         Likewise.
38460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38461         Regenerate.
38462         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38463         Regenerate.
38464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38465         Regenerate.
38466         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38467         Regenerate.
38468         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38469         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38470         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38471         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38472         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38473         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38474         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38475         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38476         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38477         * sysdeps/s390/rtld-__longjmp.c: New file.
38478         * sysdeps/s390/rtld-setjmp.S: New file.
38479
38480 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38481
38482         [BZ #16400]
38483         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38484         Return -__logl (x) for small positive arguments without evaluating
38485         a polynomial.
38486
38487 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38488
38489         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38490         Rename to ...
38491         (__ptrace_peeksiginfo_args): ... this.
38492         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38493         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38494         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38495
38496 2014-01-06  Allan McRae  <allan@archlinux.org>
38497
38498         * inet/netinet/in.h: Fix typo in comment.
38499
38500 2014-01-05  Andreas Jaeger  <aj@suse.de>
38501
38502         * sysdeps/i386/fpu/libm-test-ulps: Update.
38503
38504 2014-01-05  Allan McRae  <allan@archlinux.org>
38505
38506         * po/libc.pot: Regenerated.
38507
38508         * malloc/memusagestat.c: Fix gettext call formatting.
38509
38510 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38511
38512         * nscd/nscd.c: Improve usage() output.
38513
38514 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38515
38516         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38517         * sysdeps/unix/sysv/linux/configure: Regenerated.
38518         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38519         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38520
38521 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38522
38523         [BZ #16390]
38524         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38525         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38526
38527 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38528
38529         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38530         extra tokens at end of #undef directive.
38531         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38532         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38533         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38534
38535 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38536
38537         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38538
38539         * math/auto-libm-test-in: Mark various tests with
38540         xfail-rounding:ldbl-128ibm.
38541         * math/auto-libm-test-out: Regenerated.
38542
38543 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38544
38545         [BZ #16386]
38546         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38547         numbers with subnormal high part when calculating exponent.
38548
38549         [BZ #16385]
38550         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38551         fabs.
38552
38553         [BZ #16384]
38554         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38555         M_LN2l.
38556         (__ieee754_acoshl): Use __log1pl not __log1p.
38557
38558 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38559
38560         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38561         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38562         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38563         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38564         (reused_arena, arena_get2): Convert to GNU style.
38565         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38566         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38567         (memalign_check, __malloc_set_state): Likewise.
38568         * malloc/mallocbug.c (main): Likewise.
38569         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38570         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38571         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38572         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38573         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38574         (__posix_memalign, malloc_info): Likewise.
38575         * malloc/malloc.h: Likewise.
38576         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38577         (mallochook, memalignhook, reallochook, mabort): Likewise.
38578         * malloc/mcheck.h: Likewise.
38579         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38580         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38581         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38582         * malloc/morecore.c (__default_morecore): Likewise.
38583         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38584         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38585         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38586         (print_and_abort): Likewise.
38587         * malloc/obstack.h: Likewise.
38588         * malloc/set-freeres.c (__libc_freeres): Likewise.
38589         * malloc/tst-mallocstate.c (main): Likewise.
38590         * malloc/tst-mtrace.c (main): Likewise.
38591         * malloc/tst-realloc.c (do_test): Likewise.
38592
38593 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38594
38595         [BZ #16366]
38596         * nscd/netgroupcache.c (do_notfound): New function.
38597         (addgetnetgrentX): Use it.
38598
38599         [BZ # 16365]
38600         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38601         NSS_STATUS_NOTFOUND.
38602
38603 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38604
38605         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38607
38608 2014-01-01  Allan McRae  <allan@archlinux.org>
38609
38610         * scripts/update-copyrights: Update configure input file suffix.
38611
38612         * NEWS: Update copyright year.
38613         * catgets/gencat.c: Likewise.
38614         * csu/version.c: Likewise.
38615         * debug/catchsegv.sh: Likewise.
38616         * debug/pcprofiledump.c: Likewise.
38617         * debug/xtrace.sh: Likewise.
38618         * elf/ldconfig.c: Likewise.
38619         * elf/ldd.bash.in: Likewise.
38620         * elf/pldd.c: Likewise.
38621         * elf/sotruss.ksh: Likewise.
38622         * elf/sprof.c: Likewise.
38623         * iconv/iconv_prog.c: Likewise.
38624         * iconv/iconvconfig.c: Likewise.
38625         * locale/programs/locale.c: Likewise.
38626         * locale/programs/localedef.c: Likewise.
38627         * login/programs/pt_chown.c: Likewise.
38628         * malloc/memusage.sh: Likewise.
38629         * malloc/memusagestat.c: Likewise.
38630         * malloc/mtrace.pl: Likewise.
38631         * manual/libc.texinfo: Likewise.
38632         * nscd/nscd.c: Likewise.
38633         * nss/getent.c: Likewise.
38634         * nss/makedb.c: Likewise.
38635         * posix/getconf.c: Likewise.
38636         * scripts/test-installation.pl: Likewise.
38637
38638         * All files with FSF copyright notices: Update copyright dates
38639         using scripts/update-copyrights.
38640         * intl/plural.c: Regenerated.
38641         * locale/programs/charmap-kw.h: Likewise.
38642         * locale/programs/locfile-kw.h: Likewise.
38643
38644 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38645
38646         * sysdeps/unix/sysv/linux/configure: Regenerated.
38647         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38648         the linux/fanotify.h header.
38649         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38650         HAVE_LINUX_FANOTIFY_H is defined.
38651
38652 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38653
38654         * benchtests/cos-inputs: New inputs.
38655         * benchtests/sin-inputs: Likewise.
38656
38657         * benchtests/atan-inputs: New inputs. Fix name of multiple
38658         precision fallback inputs.
38659
38660         * benchtests/atanh-inputs: New inputs.
38661         * benchtests/tanh-inputs: Likewise.
38662
38663         * benchtests/acosh-inputs: New inputs.
38664         * benchtests/asinh-inputs: Likewise.
38665
38666         * benchtests/cosh-inputs: New inputs.
38667         * benchtests/sinh-inputs: Likewise.
38668
38669         * benchtests/acos-inputs: Add more inputs.
38670         * benchtests/asin-inputs: Likewise.
38671
38672 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38673
38674         [BZ #16375]
38675         * manual/arith.texi: Fix spelling.
38676         * manual/charset.texi: Likewise.
38677         * manual/errno.texi: Likewise.
38678         * manual/filesys.texi: Likewise.
38679         * manual/lang.texi: Likewise.
38680         * manual/llio.texi: Likewise.
38681         * manual/locale.texi: Likewise.
38682         * manual/message.texi: Likewise.
38683         * manual/resource.texi: Likewise.
38684         * manual/search.texi: Likewise.
38685         * manual/setjmp.texi: Likewise.
38686         * manual/stdio.texi: Likewise.
38687         * manual/string.texi: Likewise.
38688         * manual/sysinfo.texi: Likewise.
38689         * manual/time.texi: Likewise.
38690
38691 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38692
38693         * po/sl.po: New file.
38694
38695 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38696
38697         * .gitignore: Add core/.gdbinit/.gdb_history.
38698
38699 2013-12-27  Allan McRae  <allan@archlinux.org>
38700
38701         [BZ #16369]
38702         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38703         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38704
38705 2013-12-24  Brooks Moses  <bmoses@google.com>
38706
38707         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38708         all compilers that claim C++98 compliance, not just GCC.
38709         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38710         Likewise.
38711
38712 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38713
38714         * NEWS: Restore accidentally deleted bug-fix entries.
38715
38716 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38717             Ondřej Bílka  <neleai@seznam.cz>
38718
38719         [BZ #15073]
38720         * malloc/malloc.c (_int_free): Perform sanity check only if we
38721         have_lock.
38722
38723 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38724
38725         [BZ #12986]
38726         * manual/stdio.texi (String Input Conversions): Clarify that character
38727         classes are not supported.
38728
38729 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38730
38731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38732
38733 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38734
38735         [BZ #16337]
38736         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38737         Calculate results for small negative arguments directly rather
38738         than using reflection formula with special underflow handling.
38739
38740         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38741         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38742         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38743         (fchflags): Likewise.
38744         (revoke): Likewise.
38745         (setlogin): Likewise.
38746         (sigaltstack): Likewise.
38747         (wait4): Likewise.
38748         (sigblock): Remove.
38749         (sigsetmask): Likewise.
38750         (wait3): Likewise.
38751         (waitpid): Likewise.
38752         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38753         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38754         file.
38755         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38756         * sysdeps/unix/bsd/Makefile: ... here.
38757         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38758         * sysdeps/unix/bsd/Versions: ... here.
38759         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38760         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38761         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38762         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38763         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38764         * sysdeps/unix/bsd/sigblock.c: ... here.
38765         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38766         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38767         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38768         * sysdeps/unix/bsd/sigvec.c: ... here.
38769         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38770         * sysdeps/unix/bsd/tcdrain.c: ... here.
38771         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38772         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38773         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38774         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38775         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38776         * sysdeps/unix/bsd/wait.c: ... here.
38777         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38778         * sysdeps/unix/bsd/wait3.c: ... here.
38779         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38780         * sysdeps/unix/bsd/waitpid.c: ... here.
38781
38782 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38783
38784         [BZ #16356]
38785         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38786         round-to-nearest for [!USE_AS_EXPM1L].
38787         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38788         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38789         more tests of exp and exp10.  Expect some exp10 tests to miss
38790         exceptions or fail in directed rounding modes.
38791         * math/auto-libm-test-out: Regenerated.
38792         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38793         (exp10_test_tonearest): New function.
38794         (exp10_towardzero_test_data): New array.
38795         (exp10_test_towardzero): New function.
38796         (exp10_downward_test_data): New array.
38797         (exp10_test_downward): New function.
38798         (exp10_upward_test_data): New array.
38799         (exp10_test_upward): New function.
38800         (main): Call the new functions.
38801         * sysdeps/i386/fpu/libm-test-ulps: Update.
38802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38803
38804 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38805
38806         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38807         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38808         * math/auto-libm-test-out: Regenerated.
38809         * math/libm-test.inc (acosh_test_data): Add more tests.
38810         (atanh_test_data): Likewise.
38811         (ceil_test_data): Likewise.
38812         (copysign_test_data): Likewise.
38813         * sysdeps/i386/fpu/libm-test-ulps: Update.
38814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38815
38816         * timezone/checktab.awk: Update from tzcode 2013i.
38817         * timezone/private.h: Likewise.
38818         * timezone/scheck.c: Likewise.
38819         * timezone/tzfile.h: Likewise.
38820         * timezone/tzselect.ksh: Likewise.
38821         * timezone/zdump.c: Likewise.
38822         * timezone/zic.c: Likewise.
38823
38824         * math/auto-libm-test-in: Add tests of cpow.
38825         * math/auto-libm-test-out: Regenerated.
38826         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38827         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38828         mpc_cc_c.
38829         (func_calc_desc): Add mpc_cc_c union field.
38830         (test_functions): Add cpow.
38831         (special_fill_2pi): New function.
38832         (special_real_inputs): Add 2pi.
38833         (calc_generic_results): Handle mpc_cc_c.
38834         * sysdeps/i386/fpu/libm-test-ulps: Update.
38835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38836
38837         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38838         csqrt, ctan and ctanh.
38839         * math/auto-libm-test-out: Regenerated.
38840         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38841         (TEST_COND_x86): Likewise.
38842         (ccos_test_data): Use AUTO_TESTS_c_c.
38843         (ccosh_test_data): Likewise.
38844         (cexp_test_data): Likewise.
38845         (clog_test_data): Likewise.
38846         (csqrt_test_data): Likewise.
38847         (ctan_test_data): Likewise.
38848         (ctan_tonearest_test_data): Likewise.
38849         (ctan_towardzero_test_data): Likewise.
38850         (ctan_downward_test_data): Likewise.
38851         (ctan_upward_test_data): Likewise.
38852         (ctanh_test_data): Likewise.
38853         (ctanh_tonearest_test_data): Likewise.
38854         (ctanh_towardzero_test_data): Likewise.
38855         (ctanh_downward_test_data): Likewise.
38856         (ctanh_upward_test_data): Likewise.
38857         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38858         mpc_c_c.
38859         (func_calc_desc): Add mpc_c_c union field.
38860         (FUNC_mpc_c_c): New macro.
38861         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
38862         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
38863         ctanh.
38864         (special_fill_min_subnorm_p120): New function.
38865         (special_real_inputs): Add min_subnorm_p120.
38866         (calc_generic_results): Handle mpc_c_c.
38867         * sysdeps/i386/fpu/libm-test-ulps: Update.
38868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38869
38870 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
38871
38872         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
38873         (do_sin_slow): New functions.
38874         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
38875         (cslow2, csloww1, csloww2): Use the new functions.
38876
38877         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
38878         Use M to change sign of result instead of X.  Assume X is
38879         positive.
38880         (csloww1): Likewise.
38881         (__sin): Adjust.
38882         (__cos): Adjust.
38883
38884         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
38885         arguments A and DA.
38886         (__sin): Adjust.
38887         (__cos): Likewise.
38888
38889         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
38890         (__cos): Likewise.
38891         (sloww1): Don't adjust sign of DX.
38892         (csloww1): Likewise.
38893         (sloww2): Use X directly and don't adjust sign of DX.
38894         (csloww2): Likewise.
38895
38896 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38897
38898         * math/auto-libm-test-in: Add tests of cabs and carg.
38899         * math/auto-libm-test-out: Regenerated.
38900         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
38901         (carg_test_data): Likewise.
38902         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38903         mpc_c_f.
38904         (func_calc_desc): Add mpc_c_f union field.
38905         (test_functions): Add cabs and carg.
38906         (calc_generic_results): Handle mpc_c_f.
38907
38908         * sysdeps/powerpc/powerpc32/libgcc-compat.S
38909         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
38910         as a macro and a compat symbol.
38911         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
38912         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
38913         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
38914         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
38915         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
38916         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
38917         not use .hidden.
38918         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
38919         Likewise.
38920         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
38921         Likewise.
38922         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
38923         Likewise.
38924         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
38925         Likewise.
38926         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
38927         Likewise.
38928         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
38929         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
38930         from GLIBC_2.3.2.
38931
38932 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38933
38934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38935
38936 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38937
38938         * manual/texinfo.tex: Update to version 2013-11-26.10 with
38939         trailing whitespace removed.
38940         * scripts/config.guess: Update to version 2013-11-29.
38941         * scripts/config.sub: Update to version 2013-10-01.
38942
38943         * math/auto-libm-test-in: Add tests of sincos.
38944         * math/auto-libm-test-out: Regenerated.
38945         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
38946         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38947         mpfr_f_11.
38948         (func_calc_desc): Add mpfr_f_11 union field.
38949         (test_functions): Add sincos.
38950         (calc_generic_results): Handle mpfr_f_11.
38951         * sysdeps/i386/fpu/libm-test-ulps: Update.
38952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38953
38954 2013-12-19  Andreas Schwab  <schwab@suse.de>
38955
38956         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
38957         CALL_MCOUNT.
38958         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
38959         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
38960         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
38961
38962 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38963
38964         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
38965         * sysdeps/i386/fpu/libm-test-ulps: Update.
38966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38967
38968         [BZ #16293]
38969         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
38970         round-to-nearest mode when using frndint.
38971         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
38972         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
38973         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
38974         Likewise.
38975         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
38976         sinh test to fail.
38977         * math/auto-libm-test-out: Regenerated.
38978         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
38979         (TEST_COND_x86): Likewise.
38980         (expm1_tonearest_test_data): New array.
38981         (expm1_test_tonearest): New function.
38982         (expm1_towardzero_test_data): New array.
38983         (expm1_test_towardzero): New function.
38984         (expm1_downward_test_data): New array.
38985         (expm1_test_downward): New function.
38986         (expm1_upward_test_data): New array.
38987         (expm1_test_upward): New function.
38988         (main): Run the new test functions.
38989         * sysdeps/i386/fpu/libm-test-ulps: Update.
38990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38991
38992         * include/features.h: Update comment documenting feature test
38993         macros.  Mention _DEFAULT_SOURCE in comment.
38994         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
38995         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
38996         _BSD_SOURCE and _SVID_SOURCE.
38997         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
38998         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
38999         !_SVID_SOURCE]: Likewise.
39000         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39001         (__USE_POSIX_IMPLICITLY): Define.
39002         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39003         (_POSIX_SOURCE): Undefine and redefine.
39004         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39005         (_POSIX_C_SOURCE): Likewise.
39006         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39007         (Feature Test Macros): Update documentation of default features.
39008
39009 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39010
39011         * benchtests/Makefile: Add bench-strtok.
39012         * benchtests/bench-strtok.c: New file: strtok benchtest.
39013
39014 2013-12-19  Allan McRae  <allan@archlinux.org>
39015
39016         * manual/install.texi: Suppress menu for plain text output.
39017         * INSTALL: Regenerated.
39018
39019 2013-12-18  Brooks Moses  <bmoses@google.com>
39020
39021         [BZ #15846]
39022         * misc/getauxval.c: Include errno.h.
39023         (__getauxval): Set errno to ENOENT if the requested type is not
39024         found.
39025         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39026         don't declare with __attribute_const__.
39027         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39028         * manual/startup.texi: Document that getauxval sets errno.
39029
39030 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39031
39032         * math/auto-libm-test-in: Add tests of jn and yn.
39033         * math/auto-libm-test-out: Regenerated.
39034         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39035         (yn_test_data): Likewise.
39036         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39037         mpfr_if_f.
39038         (func_calc_desc): Add mpfr_if_f union field.
39039         (FUNC_mpfr_if_f): New macro.
39040         (test_functions): Add jn and yn.
39041         (calc_generic_results): Assert type of second input for
39042         mpfr_ff_f.  Handle mpfr_if_f.
39043         (output_for_one_input_case): Disable all checking for arguments
39044         fitting floating-point types in case of an integer argument.
39045         * sysdeps/i386/fpu/libm-test-ulps: Update.
39046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39047
39048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39049         Don't expect fegetround reference in libm.so.
39050
39051 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39052
39053         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39054         $(config-cflags-nofma).
39055
39056 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39057
39058         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39059         * math/auto-libm-test-out: Regenerated.
39060
39061         [BZ #16338]
39062         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39063         to determine exponent and adjust argument to have exponent of -1.
39064         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39065         log2.
39066         * math/auto-libm-test-out: Regenerated.
39067         * sysdeps/i386/fpu/libm-test-ulps: Update.
39068         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39069
39070 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39071
39072         * manual/probes.texi: Remove cases when per-thread arenas are
39073         disabled.
39074
39075 2013-12-18  Andreas Schwab  <schwab@suse.de>
39076
39077         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39078         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39079         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39080         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39081         * sysdeps/i386/i686/multiarch/Makefile: Update.
39082         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39083
39084 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39085
39086         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39087         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39088
39089 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39090
39091         [BZ #15968]
39092         Support TZ transition times < 00:00:00.
39093         This is needed for version-3 tz-format files; it supports time
39094         stamps past 2037 for America/Godthab (the only entry in the tz
39095         database for which this change is relevant).
39096         * manual/time.texi (TZ Variable): Document transition times
39097         from -167:59:59 through -00:00:01.
39098         * time/tzset.c (tz_rule): Time of day is now signed.
39099         (__tzset_parse_tz): Parse negative time of day.
39100
39101         Document TZ transition times >= 25:00:00.
39102         * manual/time.texi (TZ Variable): Document transition times from
39103         25:00:00 through 167:59:59.  These are already supported, and this
39104         support will help with version-3 tz-format files.
39105
39106         * manual/time.texi (TZ Variable): Modernize North America example
39107         to reflect current (i.e., 2007-and-later) daylight saving rules.
39108
39109         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39110
39111 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39112
39113         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39114         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39115         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39116         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39117         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39118         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39119         * sysdeps/unix/bsd/clock.c: Likewise.
39120         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39121         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39122         * sysdeps/unix/bsd/init-posix.c: Likewise.
39123         * sysdeps/unix/bsd/poll.c: Likewise.
39124         * sysdeps/unix/bsd/ptsname.c: Likewise.
39125         * sysdeps/unix/bsd/seekdir.c: Likewise.
39126         * sysdeps/unix/bsd/setegid.c: Likewise.
39127         * sysdeps/unix/bsd/seteuid.c: Likewise.
39128         * sysdeps/unix/bsd/setgid.c: Likewise.
39129         * sysdeps/unix/bsd/setrgid.c: Likewise.
39130         * sysdeps/unix/bsd/setruid.c: Likewise.
39131         * sysdeps/unix/bsd/setsid.c: Likewise.
39132         * sysdeps/unix/bsd/setuid.c: Likewise.
39133         * sysdeps/unix/bsd/sigaction.c: Likewise.
39134         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39135         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39136         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39137         * sysdeps/unix/bsd/telldir.c: Likewise.
39138         * sysdeps/unix/bsd/times.c: Likewise.
39139         * sysdeps/unix/bsd/usleep.c: Likewise.
39140
39141         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39142         ($(objpfx)libbsd-compat.a): Remove rule.
39143
39144         * include/features.h (__FAVOR_BSD): Do not define.
39145         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39146         features conflicting with POSIX.
39147         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39148         (_BSD_SOURCE): Remove description of not being a subset of other
39149         feature test macros.
39150         * manual/job.texi (getpgrp): Do not document BSD version.
39151         (getpgid): Do not document by reference to BSD getpgrp.
39152         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39153         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39154         * signal/signal.h [__FAVOR_BSD]: Likewise.
39155         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39156         instead of making contents conditional on [__FAVOR_BSD].
39157         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39158
39159 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39160
39161         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39162
39163 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39164
39165         [BZ #16314]
39166         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39167         values below 2**-450, not 2**-500.
39168         * math/auto-libm-test-in: Don't allow spurious underflow from
39169         hypot.
39170         * math/auto-libm-test-out: Regenerated.
39171
39172         [BZ #16316]
39173         [BZ #16330]
39174         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39175         values of ha and hb and sort them after adjusting subnormal
39176         arguments.
39177         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39178         Likewise.
39179         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39180         values of ea and eb and sort them after adjusting subnormal
39181         arguments.
39182         * math/auto-libm-test-in: Do not expect some hypot tests of
39183         subnormals to fail.  Add more hypot tests.
39184         * math/auto-libm-test-out: Regenerated.
39185
39186 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39187
39188         [BZ #13304]
39189         * sysdeps/sh/s_fma.c: New file.
39190         * sysdeps/sh/s_fmaf.c: New file.
39191         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39192         version.
39193         * sysdeps/sh/Implies: Add sh/soft-fp.
39194
39195 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39196
39197         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39198         level of indirection to members `objname', `errstring', `malloced'.
39199         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39200         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39201         it as the __longjmp argument (just pass 1 instead).
39202         (_dl_catch_error): Initialize C with argument pointers and address of
39203         volatile local ERRCODE rather than copying values out of C at return.
39204
39205 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39206
39207         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39208         * math/auto-libm-test-out: Regenerated.
39209         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39210         (hypot_test_data): Likewise.
39211         (pow_test_data): Likewise.
39212         (pow_tonearest_test_data): Likewise.
39213         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39214         mpfr_ff_f.
39215         (func_calc_desc): Add mpfr_ff_f union field.
39216         (FUNC_mpfr_ff_f): New macro.
39217         (test_functions): Add atan2, hypot and pow.
39218         (special_fill_min): New function.
39219         (special_fill_minus_min): Likewise.
39220         (special_fill_min_subnorm): Likewise.
39221         (special_fill_minus_min_subnorm): Likewise.
39222         (special_real_inputs): Add min, -min, min_subnorm and
39223         -min_subnorm.
39224         (calc_generic_results): Handle mpfr_ff_f.
39225         * sysdeps/i386/fpu/libm-test-ulps: Update.
39226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39227
39228 2013-12-16  Will Newton  <will.newton@linaro.org>
39229
39230         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39231         (Aligned Memory Blocks): Add documentation for aligned_alloc
39232         and suggest it as an alternative to posix_memalign.
39233         (Hooks for Malloc): Document __memalign_hook is also called
39234         for aligned_alloc.  (Summary of Malloc): Add summary for
39235         aligned alloc.  Document __memalign_hook is also called
39236         for aligned_alloc.
39237
39238 2013-12-16  Will Newton  <will.newton@linaro.org>
39239
39240         * manual/memory.texi (Malloc Examples): Clarify default
39241         alignment documentation.  Suggest posix_memalign rather
39242         than memalign or valloc.
39243         (Aligned Memory Blocks): Remove suggestion to use memalign
39244         or valloc.  Remove obsolete comment about BSD.
39245         Document memalign errno values and mark the function obsolete.
39246         Document posix_memalign returned error codes.  Mark valloc
39247         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39248         called for posix_memalign and valloc.
39249         (Summary of Malloc): Add posix_memalign to function summary.
39250         __memalign_hook is also called for posix_memalign and valloc.
39251
39252 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39253
39254         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39255         TAYLOR_SIN.
39256         (__sin): Adjust.
39257         (__cos): Likewise.
39258         (sloww): Use mynumber union.  Expand ternary operator into
39259         if-else statements.
39260         (cslow): use mynumber union.
39261
39262 2013-12-16  Allan McRae  <allan@archlinux.org>
39263
39264         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39265         * configure: Regenerated.
39266
39267         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39268
39269         [BZ #14120]
39270         * configure.ac: Added --enable-maintainer-mode. Check for
39271         autoconf when enabled.
39272         * configure: Regenerated.
39273
39274         * nscd/nscd.service: New file.
39275         * nscd/nscd.tmpfiles: New file.
39276
39277 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39278
39279         [BZ #12100]
39280         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39281         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39282         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39283         (strstr): Add __strstr_sse2_unaligned ifunc.
39284         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39285         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39286         (strcasestr): Remove __strcasestr_sse42 ifunc.
39287         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39288         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39289         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39290
39291 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39292
39293         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39294         * sysdeps/sh/bits/fenv.h: ... here.
39295         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39296
39297 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39298
39299         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39300
39301         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39302         hypotf multiarch implementations.
39303         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39304         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39305         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39306         multiarch hypot for PPC64.
39307         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39308         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39309         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39310         multiarch hypotf for PPC64.
39311
39312         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39313         modff multiarch implementations.
39314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39317         multiarch modf for PPC64.
39318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39321         multiarch modff for PPC64.
39322
39323         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39324         and logl multiarch implementations.
39325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39328         multiarch logb for PPC64.
39329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39332         multiarch logb for PPC64.
39333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39336         multiarch logb for PPC64.
39337
39338         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39339         isinff multiarch implementation.
39340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39341         file.
39342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39344         multiarch isinf for PPC64.
39345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39346         file.
39347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39348         multiarch isinff for PPC64.
39349
39350         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39351         finitef multiarch implementation.
39352         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39353         file.
39354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39356         multiarch finite for PPC64.
39357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39358         file.
39359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39360         multiarch finitef for PPC64.
39361
39362         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39363         lrint multiarch implementation.
39364         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39365         file.
39366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39368         multiarch llrint for PPC64.
39369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39370         multiarch lrint for PPC64.
39371
39372         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39373         copysignf multiarch implementation.
39374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39375         file.
39376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39377         file.
39378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39379         multiarch copysign for PPC64.
39380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39381         multiarch copysignf for PPC64.
39382
39383         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39384         multiarch implementation.
39385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39386         file.
39387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39388         file.
39389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39390         file.
39391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39392         file.
39393         multiarch llround for PPC64.
39394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39395         multiarch trunc for PPC64.
39396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39397         multiarch truncf for PPC64.
39398
39399         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39400         multiarch implementation.
39401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39402         file.
39403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39404         file.
39405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39406         file.
39407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39408         file.
39409         multiarch llround for PPC64.
39410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39411         multiarch round for PPC64.
39412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39413         multiarch roundf for PPC64.
39414
39415         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39416         multiarch implementation.
39417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39418         file.
39419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39420         file.
39421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39422         file.
39423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39424         file.
39425         multiarch llround for PPC64.
39426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39427         multiarch floor for PPC64.
39428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39429         multiarch floorf for PPC64.
39430
39431         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39432         multiarch implementation.
39433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39434         file.
39435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39436         file.
39437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39438         file.
39439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39440         file.
39441         multiarch llround for PPC64.
39442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39443         multiarch ceil for PPC64.
39444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39445         multiarch ceilf for PPC64.
39446
39447         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39448         multiarch implementation.
39449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39450         file.
39451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39452         file.
39453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39454         file.
39455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39456         multiarch llround for PPC64.
39457         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39458         multiarch lround for PPC64.
39459
39460         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39461         multiarch implementation.
39462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39465         file.
39466         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39469         multiarch isnan for PPC64.
39470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39471         multiarch isnanf for PPC64.
39472
39473         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39474         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39475         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39476         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39477         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39479
39480         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39481         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39482         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39483         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39484
39485         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39486         multiarch implementations.
39487         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39488         (__libc_ifunc_impl_list): Likewise.
39489         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39490         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39491         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39492         multiarch stpcpy for PPC64.
39493
39494         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39495         multiarch implementations.
39496         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39497         (__libc_ifunc_impl_list): Likewise.
39498         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39499         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39500         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39501         multiarch strcpy for PPC64.
39502
39503         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39504         redefine function name.
39505         (_wordcopy_fwd_dest_aligned): Likewise.
39506         (_wordcopy_bwd_aligned): Likewise.
39507         (_wordcopy_bwd_dest_aligned): Likewise.
39508         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39509         multiarch implementations.
39510         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39511         (__libc_ifunc_impl_list): Likewise.
39512         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39513         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39514         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39515         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39516         multiarch wcscpy for PPC64.
39517
39518         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39519         multiarch implementations.
39520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39521         (__libc_ifunc_impl_list): Likewise.
39522         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39523         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39524         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39525         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39526         multiarch wcscpy for PPC64.
39527
39528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39529         multiarch implementations.
39530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39531         (__libc_ifunc_impl_list): Likewise.
39532         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39533         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39534         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39535         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39536         multiarch wcsrchr for PPC64.
39537
39538         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39539         multiarch implementations.
39540         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39541         (__libc_ifunc_impl_list): Likewise.
39542         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39543         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39544         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39545         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39546         multiarch wcschr for PPC64.
39547
39548         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39549         multiarch implementations.
39550         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39551         (__libc_ifunc_impl_list): Likewise.
39552         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39553         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39554         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39555         multiarch strchrnul for PPC64.
39556
39557         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39558         implementations.
39559         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39560         (__libc_ifunc_impl_list): Likewise.
39561         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39562         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39563         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39564         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39565         strchr for PPC64.
39566
39567         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39568         implementations.
39569         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39570         (__libc_ifunc_impl_list): Likewise.
39571         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39572         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39573         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39574         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39575         strncmp for PPC64.
39576
39577         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39578         multiarch implementations.
39579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39580         (__libc_ifunc_impl_list): Likewise.
39581         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39582         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39583         strncasecmp for PPC64.
39584         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39585         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39586         multiarch strncasecmp_l for PPC64.
39587
39588         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39589         multiarch implementations.
39590         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39591         (__libc_ifunc_impl_list): Likewise.
39592         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39593         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39594         multiarch strcasecmp for PPC64.
39595         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39596         file.
39597         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39598         multiarch strcasecmp_l for PPC64.
39599
39600         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39601         implementations.
39602         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39603         (__libc_ifunc_impl_list): Likewise.
39604         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39605         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39606         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39607         strnlen for PPC64.
39608
39609         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39610         implementations.
39611         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39612         (__libc_ifunc_impl_list): Likewise.
39613         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39614         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39615         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39616         strlen for PPC64.
39617
39618         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39619         implementations.
39620         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39621         (__libc_ifunc_impl_list): Likewise.
39622         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39623         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39624         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39625         rawmemrchr for PPC64.
39626
39627         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39628         implementation.
39629         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39630         (__libc_ifunc_impl_list): Likewise.
39631         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39632         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39633         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39634         memrchr for PPC64.
39635
39636         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39637         implementation.
39638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39639         (__libc_ifunc_impl_list): Likewise.
39640         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39641         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39642         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39643         memchr for PPC64.
39644
39645         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39646         implementation.
39647         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39648         (__libc_ifunc_impl_list): Likewise.
39649         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39650         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39651         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39652         mempcpy for PPC64.
39653
39654         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39655         avoid cretion of __bzero symbol.
39656         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39657         Likewise.
39658         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39659         Likewise.
39660         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39661         Likewise.
39662         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39663         multiarch implementations.
39664         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39665         (__libc_ifunc_impl_list): Likewise.
39666         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39667         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39668         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39669         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39670         bzero for PPC32.
39671         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39672         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39673         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39674         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39675         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39676         memset for PPC64.
39677         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39678
39679         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39680         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39681         implementations.
39682         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39683         (__libc_ifunc_impl_list): Likewise.
39684         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39685         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39686         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39687         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39688         memcmp for PPC64.
39689
39690         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39691         multiarch for POWER/PPC64.
39692         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39693         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39694         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39695         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39696         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39697         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39698         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39699         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39700         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39701         memcpy for PPC64.
39702
39703         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39704         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39705         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39706         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39707         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39708         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39709         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39710         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39711         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39712         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39713         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39714         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39715         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39716         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39717         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39725
39726 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39727
39728         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39729
39730 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39731
39732         * benchtests/Makefile (bench): Add exp2 and log2.
39733         (LDLIBS-bench-exp2): Add -lm.
39734         (LDLIBS-bench-log2): Likewise.
39735         * benchtests/exp2-inputs: New inputs file.
39736         * benchtests/log2-inputs: New inputs file.
39737         * benchtests/log-inputs: Add new inputs.
39738         * benchtests/tan-inputs: Likewise.
39739
39740 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39741
39742         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39743         definition...
39744         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39745         (csloww2): ... from here.
39746
39747         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39748         instead of structures.
39749         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39750         (POLYNOMIAL): Likewise.
39751         (TAYLOR_SLOW): Likewise.
39752         (__sin): Likewise.
39753         (__cos): Likewise.
39754         (slow1): Likewise.
39755         (slow2): Likewise.
39756         (sloww): Likewise.
39757         (sloww1); Likewise.
39758         (sloww2): Likewise.
39759         (bsloww1): Likewise.
39760         (bsloww2): Likewise.
39761         (cslow2): Likewise.
39762         (csloww): Likewise.
39763         (csloww1): Likewise.
39764         (csloww2): Likewise.
39765
39766 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39767
39768         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39769         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39770         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39771         * malloc/hooks.c (realloc_check): Likewise.
39772
39773         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39774         * malloc/arena.c: Remove PER_THREAD conditional.
39775         [!PER_THREAD]: Remove code.
39776         (ptmalloc_unlock_all2): Likewise.
39777         (ptmalloc_init): Likewise.
39778         (_int_new_arena): Likewise.
39779         (arena_get2): Likewise.
39780         * malloc/hooks.c (__malloc_get_state): Likewise.
39781         (__malloc_set_state): Likewise.
39782         * malloc/malloc.c: Likewise.
39783         (struct malloc_state): Likewise.
39784         (struct malloc_par): Likewise.
39785         (__libc_realloc): Likewise.
39786         (__libc_mallopt): Likewise.
39787
39788 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39789
39790         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39791
39792 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39793
39794         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39795         macro to a function.  Check for zero perturb_byte.
39796         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39797
39798         * malloc/malloc.c: (force_reg): Remove.
39799         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39800         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39801         force_reg by atomic_forced_read.
39802         * malloc/arena.c (ptmalloc_init): Likewise.
39803         * malloc/hooks.c (top_check): Likewise.
39804
39805 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39806
39807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39808
39809 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39810
39811         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39812
39813 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39814
39815         * math/auto-libm-test-in: Add tests of lgamma.
39816         * math/auto-libm-test-out: Regenerated.
39817         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39818         (M_LOG_2_SQRT_PIl): Likewise.
39819         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39820         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39821         mpfr_f_f1.
39822         (func_calc_desc): Add mpfr_f_f1 union field.
39823         (ARGS1): New macro.
39824         (ARGS2): Likewise.
39825         (ARGS3): Likewise.
39826         (ARGS4): Likewise.
39827         (RET1): Likewise.
39828         (RET2): Likewise.
39829         (CALC): Likewise.
39830         (FUNC): Likewise.
39831         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39832         (test_functions): Add lgamma.
39833         (calc_generic_results): Handle mpfr_f_f1.
39834         * sysdeps/i386/fpu/libm-test-ulps: Update.
39835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39836
39837 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39838
39839         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39840         __mpn_add_n for PowerPC64/POWER7.
39841         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39842         __mpn_sub_n for PowerPC64/POWER7.
39843
39844         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39845         __mpn_addmul_1 for PowerPC64.
39846         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39847         __mpn_submul_1 for PowerPC64.
39848         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
39849         for PowerPC64.
39850         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
39851         for PowerPC64.
39852
39853 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
39854
39855         [BZ #15089]
39856         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
39857
39858 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39859
39860         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
39861
39862         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
39863         add multiarch folders.
39864         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
39865         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
39866         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
39867         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
39868         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
39869         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
39870         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
39871         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
39872         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
39873         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
39874         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
39875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
39876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
39877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
39878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
39879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
39880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
39881
39882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39883         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
39884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
39885         New file.
39886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
39887         New file.
39888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
39889         multiarch __ieee754_hypot for PowerPC32.
39890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
39891         New file.
39892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
39893         New file.
39894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
39895         multiarch __ieee754_hypotf for PowerPC32.
39896
39897         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
39898         long_double_symbol only if __logbl is defined.
39899         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
39900         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
39901         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
39902         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
39903         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
39904         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
39905         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
39906         path for implementation.
39907         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
39908         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
39909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
39910         logb, and logbl multiarch implementations for PowerPC32.
39911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
39912         file.
39913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
39914         file.
39915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
39916         multiarch logb for PowerPC32.
39917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
39918         file.
39919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
39920         file.
39921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
39922         multiarch logbf for PowerPC32.
39923         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
39924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
39925         file.
39926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
39927         multiarch logbl implementation for PowerPC32.
39928
39929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
39930         and modff multiarch implementations.
39931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
39932         New file.
39933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
39934         New file.
39935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
39936         multiarch modf for PowerPC32.
39937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
39938         New file.
39939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
39940         New file.
39941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
39942         multiarch modff for PowerPC32.
39943
39944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
39945         and lrintf multiarch implementations.
39946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
39947         New file.
39948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
39949         New file.
39950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
39951         multiarch lrint for PowerPC32.
39952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
39953         file: multiarch lrintf for PowerPC32.
39954
39955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
39956         and lroundf multiarch implementations.
39957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
39958         New file.
39959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
39960         New file.
39961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
39962         New file.
39963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
39964         multiarch lround for PowerPC32.
39965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
39966         file: multiarch lroundf for PowerPC32.
39967
39968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39969         copysign and copysignf multiarch implementations.
39970         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
39971         New file.
39972         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
39973         New file.
39974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
39975         file: multiarch copysign for PowerPC32.
39976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
39977         file: multiarch copysignf for PowerPC32.
39978
39979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
39980         and truncf multiarch implementations.
39981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
39982         New file.
39983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
39984         file.
39985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
39986         multiarch trunc for PowerPC32.
39987         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
39988         New file.
39989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
39990         New file.
39991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
39992         multiarch truncf for PowerPC32.
39993
39994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
39995         and roundf multiarch implementations.
39996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
39997         New file.
39998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
39999         file.
40000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40001         multiarch round for PowerPC32.
40002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40003         New file.
40004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40005         New file.
40006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40007         multiarch roundf for PowerPC32.
40008
40009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40010         and floorf multiarch implementations.
40011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40012         New file.
40013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40014         file.
40015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40016         multiarch floor for PowerPC32.
40017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40018         New file.
40019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40020         New file.
40021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40022         multiarch floorf for PowerPC32.
40023
40024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40025         and ceilf multiarch implementations.
40026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40027         New file.
40028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40029         file.
40030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40031         multiarch ceil for PowerPC32.
40032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40033         New file.
40034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40035         file.
40036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40037         multiarch ceilf for PowerPC32.
40038
40039         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40040         is defined.
40041         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40042         FINITEF is defined.
40043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40044         and finitef multiarch implementations.
40045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40046         New file.
40047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40048         file.
40049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40050         multiarch finite for PowerPC32.
40051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40052         New file.
40053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40054         file: multiarch finitef for PowerPC32.
40055
40056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40057         and isinff multiarch implementations.
40058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40059         file.
40060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40061         file.
40062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40063         multiarch isinf for PowerPC32.
40064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40065         New file.
40066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40067         multiarch isinff for PowerPC32.
40068
40069         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40070         alias when __isnan is defined.
40071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40072         and isnanf multiarch implementations.
40073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40074         file.
40075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40076         file.
40077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40078         file.
40079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40080         file.
40081         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40082         multiarch isnan for PowerPC32.
40083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40084         New file.
40085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40086         New file.
40087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40088         multiarch isnanf for PowerPC32.
40089
40090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40091         and sqrtf multiarch implementations.
40092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40093         file.
40094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40095         file.
40096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40097         multiarch sqrt for PowerPC32.
40098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40099         file.
40100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40101         file.
40102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40103         multiarch sqrtf for PowerPC32.
40104
40105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40106         and llroundf multiarch implementations.
40107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40108         New file.
40109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40110         New file.
40111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40112         New file.
40113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40114         file: multiarch llround for PowerPC32.
40115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40116         file: multiarch llroundf for PowerPC32.
40117
40118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40119         multiarch PowerPC32 fpu implementations.
40120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40121         New file.
40122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40123         New file.
40124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40125         multiarch llrint for PowerPC32.
40126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40127         New file.
40128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40129         New file.
40130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40131         file.
40132
40133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40134
40135         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40136         file.
40137         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40138         file.
40139         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40140         file.
40141         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40142         multiarch wordcopy for PPC32.
40143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40144         wordcopy objects.
40145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40146         (__libc_ifunc_impl_list): Likewise.
40147         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40148         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40149         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40150         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40151         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40152         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40153
40154         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40155         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40156         file.
40157         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40158         file.
40159         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40160         file.
40161         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40162         multiarch wcscpy for PPC32.
40163         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40164         multiarch objects.
40165         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40166         (__libc_ifunc_impl_list): Likewise.
40167         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40168         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40169         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40170         sysdeps/powerpc/power6/wcscpy.c.
40171
40172         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40173         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40174         file.
40175         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40176         file.
40177         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40178         file.
40179         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40180         multiarch wcsrchr for PPC32.
40181         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40182         multiarch objects.
40183         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40184         (__libc_ifunc_impl_list): Likewise.
40185         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40186         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40187         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40188         sysdeps/powerpc/power6/wcsrchr.c.
40189
40190         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40191         file.
40192         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40193         file.
40194         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40196         multiarch wcschr for PPc32.
40197         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40198         multiarch objects.
40199         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40200         (__libc_ifunc_impl_list): Likewise.
40201         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40202         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40203         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40204         sysdeps/powerpc/power6/wcschr.c.
40205
40206         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40207         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40208         file.
40209         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40210         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40211         file: multiarch strchr for PPC32.
40212         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40213         multiarch objects.
40214         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40215         (__libc_ifunc_impl_list): Likewise.
40216
40217         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40218         name.
40219         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40220         file.
40221         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40222         file.
40223         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40224         multiarch strchrnul for PPC32.
40225         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40226         multiarch objects.
40227         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40228         (__libc_ifunc_impl_list): Likewise.
40229
40230         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40231         file.
40232         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40233         multiarch strncasecmp for PPC32.
40234         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40235         file.
40236         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40237         multiarch strncasecmp_l for PPC32.
40238         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40239         strncasecmp multiarch objects.
40240         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40241         (__libc_ifunc_impl_list): Likewise.
40242
40243         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40244         file.
40245         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40246         multiarch strncasecmp for PPC32.
40247         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40248         New file.
40249         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40250         multiarch strcasecmp_l for PPC32.
40251         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40252         multiarch objects.
40253         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40254         (__libc_ifunc_impl_list): Likewise.
40255
40256         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40257         file.
40258         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40259         file.
40260         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40261         multiarch strncmp for PPC32.
40262         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40263         multiarch objects.
40264         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40265         (__libc_ifunc_impl_list): Likewise.
40266
40267         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40268         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40269         file.
40270         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40271         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40272         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40273         multiarch objects.
40274         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40275         (__libc_ifunc_impl_list): Likewise.
40276
40277         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40278         file.
40279         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40280         file.
40281         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40282         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40283         multiarch objects.
40284         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40285         (__libc_ifunc_impl_list): Likewise.
40286
40287         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40288         file.
40289         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40290         file.
40291         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40292         multiarch rawmemchr for PPC32.
40293         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40294         multiarch objects.
40295         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40296         (__libc_ifunc_impl_list): Likewise.
40297
40298         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40299         file.
40300         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40301         file.
40302         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40303         file: memrchr multiarch for PPC32.
40304         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40305         multiarch objects.
40306         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40307         (__libc_ifunc_impl_list): Likewise.
40308
40309         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40310         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40311         file.
40312         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40313         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40314         multiarch memchr for PPC32.
40315         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40316         multiarch objects.
40317         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40318         (__libc_ifunc_impl_list): Likewise.
40319
40320         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40321         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40322         file.
40323         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40324         file.
40325         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40326         file: multiarch mempcpy for PPC32.
40327         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40328         multiarch objects.
40329         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40330         (__libc_ifunc_impl_list): Likewise.
40331
40332         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40333         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40334         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40335         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40336         multiarch bzero for PPC32.
40337         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40338         file.
40339         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40340         file.
40341         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40342         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40343         file: multiarch memset for PPC32.
40344         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40345         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40346         memset multiarch objects.
40347         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40348         (__libc_ifunc_impl_list): Likewise.
40349
40350         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40351         file.
40352         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40353         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40354         memcmp for PPC32.
40355         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40356         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40357         multiarch objects.
40358         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40359         (__libc_ifunc_impl_list): Likewise.
40360
40361         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40362         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40363         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40364         file.
40365         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40366         file.
40367         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40368         file.
40369         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40370         multiarch memcpy for PPC32.
40371         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40372         multiarch objects.
40373         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40374         (__libc_ifunc_impl_list): Likewise.
40375
40376         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40377         support multiarch for POWER/PPC32.
40378         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40379         Likewise.
40380         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40382         Implies file to make multiarch folder appers before the fpu and
40383         default folder for power4 configuration.
40384
40385 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40386
40387         * scripts/bench.pl: Append volatile keyword to type.
40388
40389 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40390
40391         * sysdeps/sh/sotruss-lib.c: New file.
40392         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40393
40394 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40395
40396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40397
40398 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40399
40400         [BZ #6810]
40401         * math/w_tgamma.c: Include <errno.h>.
40402         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40403         * math/w_tgammaf.c: Include <errno.h>.
40404         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40405         * math/w_tgammal.c: Include <errno.h>.
40406         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40407         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40408         underflow.  Add more tgamma tests.
40409         * math/auto-libm-test-out: Regenerated.
40410         * sysdeps/i386/fpu/libm-test-ulps: Update.
40411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40412
40413         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40414         sin, sinh, tan, tanh, tgamma, y0 and y1.
40415         * math/auto-libm-test-out: Regenerated.
40416         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40417         (TEST_COND_x86): Likewise.
40418         (M_E2l): Remove macro.
40419         (M_E3l): Likewise.
40420         (M_2_SQRT_PIl): Likewise.
40421         (M_SQRT_PIl): Likewise.
40422         (M_1_DIV_El): Likewise.
40423         (log_test_data): Use AUTO_TESTS_f_f.
40424         (log10_test_data): Likewise.
40425         (log1p_test_data): Likewise.
40426         (log2_test_data): Likewise.
40427         (sin_test_data): Likewise.
40428         (sin_tonearest_test_data): Likewise.
40429         (sin_towardzero_test_data): Likewise.
40430         (sin_downward_test_data): Likewise.
40431         (sin_upward_test_data): Likewise.
40432         (sinh_test_data): Likewise.
40433         (sinh_tonearest_test_data): Likewise.
40434         (sinh_towardzero_test_data): Likewise.
40435         (sinh_downward_test_data): Likewise.
40436         (sinh_upward_test_data): Likewise.
40437         (tan_test_data): Likewise.
40438         (tan_tonearest_test_data): Likewise.
40439         (tan_towardzero_test_data): Likewise.
40440         (tan_downward_test_data): Likewise.
40441         (tan_upward_test_data): Likewise.
40442         (tanh_test_data): Likewise.
40443         (tgamma_test_data): Likewise.
40444         (y0_test_data): Likewise.
40445         (y1_test_data): Likewise.
40446         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40447         (special_real_inputs): Add pi/4.
40448         * sysdeps/i386/fpu/libm-test-ulps: Update.
40449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40450
40451 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40452
40453         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40454         "longjmp_target" static probes.
40455         (__longjmp): Rename to __longjmp_symbol.
40456         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40457         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40458         on which longjmp to generate.
40459         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40460         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40461         probe.
40462         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40463         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40464         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40465         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40466         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40467         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40469         __longjmp_symbol based on which __longjmp to generate.
40470         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40471         probe.
40472         (setjmp): Rename to setjmp_symbol.
40473         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40474         (_setjmp): Rename to _setjmp_symbol.
40475         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40476         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40477         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40478         which setjmp to generate.
40479         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40480         "longjmp_target" static probes.
40481
40482 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40483
40484         * benchtests/README: Add note about output arguments.
40485         * benchtests/bench-sincos.c: Remove file.
40486         * benchtests/sincos-inputs: New file.
40487         * scripts/bench.pl: Identify output arguments and define
40488         static variables for them.
40489
40490         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40491
40492         [BZ #15941]
40493         * Makefile (INSTALL): Add install-plain.texi as the primary
40494         dependency.
40495         * manual/install-plain.texi: New file.
40496         * manual/install.texi: Include node directive only for
40497         non-plaintext output.
40498
40499 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40500
40501         * stdlib/longlong.h: Update from GCC.
40502
40503         [BZ #6807]
40504         [BZ #15901]
40505         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40506         * math/w_j0f.c (y0f): Likewise.
40507         * math/w_j0l.c (__y0l): Likewise.
40508         * math/w_j1.c (y1): Likewise.
40509         * math/w_j1f.c (y1f): Likewise.
40510         * math/w_j1l.c (__y1l): Likewise.
40511         * math/w_jn.c (yn): Likewise.
40512         * math/w_jnf.c (ynf): Likewise.
40513         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40514         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40515         value for Bessel function domain errors outside _SVID_ mode.
40516         Adjust sign of return value for yn (negative integer, 0).
40517         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40518         by zero in return for negative x and set sign appropriately for
40519         negative n.
40520         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40521         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40522         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40523         expectations in error cases.
40524         (y1_test_data): Likewise.
40525         (yn_test_data): Likewise.
40526         * sysdeps/i386/fpu/libm-test-ulps: Update.
40527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40528
40529 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40530
40531         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40532         "64" to "64-v1".  Add "64-v2".
40533         (abi-64-options): Rename to ...
40534         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40535         (abi-64-condition): Rename to ...
40536         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40537         (abi-64-ld-soname): Rename to ...
40538         (abi-64-v1-ld-soname): ... this.
40539         (abi-64-v2-options): Define.
40540         (abi-64-v2-condition): Likewise.
40541         (abi-64-v2-ld-soname): Likewise.
40542         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40543         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40547
40548 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40549             Alan Modra  <amodra@gmail.com>
40550
40551         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40552         New versions for use with the ELFv2 ABI.
40553         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40554         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40555         declaration.
40556         (struct La_ppc64v2_retval): Likewise.
40557         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40558         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40559         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40560         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40561         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40562         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40563         Do not save or restore CR.
40564         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40565         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40566         return values for ELFv2 ABI.  Fix location of FPR return registers.
40567         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40568         updated values for _CALL_ELF == 2.
40569         (La_regs, La_retval, int_retval): Likewise.
40570
40571 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40572
40573         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40574         (FRAME_MIN_SIZE_PARM): Likewise.
40575         (FRAME_BACKCHAIN): Likewise.
40576         (FRAME_CR_SAVE): Likewise.
40577         (FRAME_LR_SAVE): Likewise.
40578         (FRAME_TOC_SAVE): Likewise.
40579         (FRAME_PARM_SAVE): Likewise.
40580         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40581         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40582         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40583         (call_mcount_parm_offset): New macro.
40584         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40585         (PROF): Use symbolic stack frame offsets.
40586         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40587         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40588         Redefine in terms of FRAME_MIN_SIZE.
40589         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40590         (_dl_profile_resolve): Likewise.  Update comment.
40591         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40592         symbols stack frame offsets.
40593         (__sigsetjmp): Likewise.
40594         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40595         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40596         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40597         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40598
40599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40600         (FRAME_BACKCHAIN): Remove.
40601         (FRAME_CR_SAVE): Likewise.
40602         (FRAME_LR_SAVE): Likewise.
40603         (FRAME_COMPILER_DW): Likewise.
40604         (FRAME_LINKER_DW): Likewise.
40605         (FRAME_TOC_SAVE): Likewise.
40606         (FRAME_PARM_SAVE): Likewise.
40607         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40608         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40609         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40611         (CHECK_SP): Use symbolic stack frame offsets.
40612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40613         zone" instead of caller's parameter save area for temp storage.
40614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40615         Likewise.  Also, use symbolic stack frame offsets.
40616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40617         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40618         our own stack frame instead of the caller's.
40619         (__socket): Use symbolic stack frame offsets.
40620
40621 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40622             Alan Modra  <amodra@gmail.com>
40623
40624         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40625         Define.
40626         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40627         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40628         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40629         New function.
40630         (elf_machine_fixup_plt): Call it.
40631         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40632         reloc arguments.
40633         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40634         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40635         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40636         r2 before calling target.
40637
40638 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40639             Alan Modra  <amodra@gmail.com>
40640
40641         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40642         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40643         versions of macros to support ELFv2 ABI.
40644         (LOCALENTRY): New macro.
40645         (ENTRY, EALIGN): Use it.
40646         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40647         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40648         fall through into ENTRY entry point.
40649         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40650         Only define if _CALL_ELF != 2.
40651
40652         (elf_machine_matches_host): Verify ABI version matches.
40653         (RTLD_START): Use LOCALENTRY.
40654         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40655         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40656         (PLT_ENTRY_WORDS): New macro.
40657         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40658         (elf_machine_runtime_setup): Support ELFv2 ABI.
40659         (elf_machine_fixup_plt): Likewise.
40660         (elf_machine_plt_conflict): Likewise.
40661         (resolve_ifunc): Likewise.
40662         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40663         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40664         Likewise.
40665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40666         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40668         (makecontext): Support ELFv2 ABI.
40669         * elf/elf.h (EF_PPC64_ABI): Define.
40670
40671 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40672
40673         * sysdeps/powerpc/powerpc64/sysdep.h
40674         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40675         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40676         (ENTRY) [ASSEMBLER]: ... but instead here ...
40677         (EALIGN) [ASSEMBLER]: ... and here.
40678         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40679         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40680         (ENTRY_2) [!ASSEMBLER]: Use it.
40681         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40682         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40683         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40684         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40685         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40687         Use PPC64_LOAD_FUNCPTR.
40688
40689         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40690
40691 2013-12-04  Alan Modra  <amodra@gmail.com>
40692
40693         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40694         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40695         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40696         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40697
40698         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40699         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40700         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40701         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40702         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40703         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40704
40705 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40706
40707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40708         (__makecontext): Fix incorrect CFI when backtracing out of
40709         context created via makecontext.
40710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40711         (__setcontext): Fix incorrect CFI during switch to new context.
40712         (__novec_setcontext): Likewise.
40713
40714 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40715
40716         [BZ #4772]
40717         * time/strptime_l.c (__strptime_internal): Allow modifiers
40718         in strptime.
40719         * time/tst-strptime.c (day_tests): Add testcase.
40720
40721 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40722
40723         * scripts/bench.pl: Skip over blank lines.
40724
40725 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40726
40727         [BZ #926]
40728         * manual/time.texi (Calendar Time): Clarify what timezone functions
40729         use.
40730
40731 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40732
40733         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40734
40735 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40736
40737         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40738         implementation.
40739         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40740         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40741         * debug/memset_chk.c (__memset_chk): Likewise.
40742         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40743         * debug/strncpy_chk.c: Likewise.
40744
40745 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40746
40747         [BZ #15268]
40748         [BZ #15425]
40749         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40750         (__ieee754_exp): For possibly underflowing results, check size of
40751         result and force underflow exception if required.
40752         * math/auto-libm-test-in: Add more tests of exp.
40753         * math/auto-libm-test-out: Regenerated.
40754         * sysdeps/i386/fpu/libm-test-ulps: Update.
40755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40756
40757         [BZ #16283]
40758         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40759         * math/w_exp2f.c (__exp2f): Likewise.
40760         * math/w_exp2l.c (__exp2l): Likewise.
40761         * math/auto-libm-test-in: Do not allow missing errno on exp2
40762         underflow.
40763         * math/auto-libm-test-out: Regenerated.
40764
40765 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40766
40767         [BZ #16274]
40768         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40769         handle filename validation.
40770         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40771         (do_open): Delete.
40772
40773 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40774
40775         [BZ #6786]
40776         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40777         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40778         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40779         <float.h>.
40780         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40781         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40782         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40783         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40784         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40785         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40786         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40787         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40788         Add more erfc tests.
40789         * math/auto-libm-test-out: Regenerated.
40790         * sysdeps/i386/fpu/libm-test-ulps: Update.
40791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40792
40793         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40794         exp2, expm1, j0 and j1.
40795         * math/auto-libm-test-out: Regenerated.
40796         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40797         (erfc_test_data): Likewise.
40798         (exp_test_data): Likewise.
40799         (exp_tonearest_test_data): Likewise.
40800         (exp_towardzero_test_data): Likewise.
40801         (exp_downward_test_data): Likewise.
40802         (exp_upward_test_data): Likewise.
40803         (exp10_test_data): Likewise.
40804         (exp2_test_data): Likewise.
40805         (expm1_test_data): Likewise.
40806         (j0_test_data): Likewise.
40807         (j1_test_data): Likewise.
40808         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40809         (input_flag_type): Add flag_xfail_rounding.
40810         (input_flags): Add xfail-rounding.
40811         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40812         (output_for_one_input_case): Handle flag_xfail_rounding.
40813         * sysdeps/i386/fpu/libm-test-ulps: Update.
40814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40815
40816 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40817
40818         [BZ #16289]
40819         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40820         division by 0.
40821
40822 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40823
40824         [BZ #16195]
40825         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40826         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40827         (STAP_PROBE0): New macro.
40828         (STAP_PROBE1): Likewise.
40829         (STAP_PROBE2): Likewise.
40830         (STAP_PROBE3): Likewise.
40831         (STAP_PROBE4): Likewise.
40832
40833 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40834
40835         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40836
40837 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40838
40839         * benchtests/Makefile (bench): Add sqrt.
40840         (LDLIBS-bench-sqrt): New.
40841         * benchtests/sqrt-input: New.
40842
40843 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40844
40845         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40846         (GAIH_EAI): Likewise.
40847         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40848         (gaih_inet): Likewise.
40849         (getaddrinfo): Don't use GAIH_EAI.
40850
40851         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
40852         (struct gaih): Remove definition.
40853
40854 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
40855
40856         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
40857         Use HERRNOP directly.
40858
40859 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40860
40861         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40862
40863 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
40864
40865         * math/gen-auto-libm-tests.c (test_functions): Add more
40866         single-argument functions.
40867         (special_fill_pi_2): New function.
40868         (special_fill_minus_pi_2): Likewise.
40869         (special_fill_pi_6): Likewise.
40870         (special_fill_minus_pi_6): Likewise.
40871         (special_fill_pi_3): Likewise.
40872         (special_fill_2pi_3): Likewise.
40873         (special_fill_e): Likewise.
40874         (special_fill_1_e): Likewise.
40875         (special_fill_e_minus_1): Likewise.
40876         (special_real_inputs): Add more special inputs.
40877         (output_for_one_input_case): Do not require ERANGE on underflow to
40878         zero if round-to-nearest result does not underflow to zero, unless
40879         exact results required.
40880         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
40881         atan, atanh, cbrt, cos and cosh.
40882         * math/auto-libm-test-out: Regenerated.
40883         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
40884         (acos_tonearest_test_data): Likewise.
40885         (acos_towardzero_test_data): Likewise.
40886         (acos_downward_test_data): Likewise.
40887         (acos_upward_test_data): Likewise.
40888         (acosh_test_data): Likewise.
40889         (asin_test_data): Likewise.
40890         (asin_tonearest_test_data): Likewise.
40891         (asin_towardzero_test_data): Likewise.
40892         (asin_upward_test_data): Likewise.
40893         (asinh_test_data): Likewise.
40894         (atan_test_data): Likewise.
40895         (atanh_test_data): Likewise.
40896         (cbrt_test_data): Likewise.
40897         (cos_test_data): Likewise.
40898         (cos_tonearest_test_data): Likewise.
40899         (cos_towardzero_test_data): Likewise.
40900         (cos_downward_test_data): Likewise.
40901         (cos_upward_test_data): Likewise.
40902         (cosh_test_data): Likewise.
40903         (cosh_tonearest_test_data): Likewise.
40904         (cosh_towardzero_test_data): Likewise.
40905         (cosh_downward_test_data): Likewise.
40906         (cosh_upward_test_data): Likewise.
40907         * sysdeps/i386/fpu/libm-test-ulps: Update.
40908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40909
40910 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
40911
40912         [BZ #6787]
40913         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
40914         * math/w_exp10f.c (__exp10f): Likewise.
40915         * math/w_exp10l.c (__exp10l): Likewise.
40916         * math/libm-test.inc (exp10_test_data): Add more tests and expect
40917         errno settings in existing tests.
40918
40919         [BZ #14032]
40920         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
40921         precision control set to double precision.
40922         * sysdeps/i386/fpu/w_sqrt.c: New file.
40923         * math/auto-libm-test-in: Add more tests.
40924         * math/auto-libm-test-out: Update.
40925
40926         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
40927         (sqrt_test_tonearest): New function.
40928         (sqrt_towardzero_test_data): New variable.
40929         (sqrt_test_towardzero): New function.
40930         (sqrt_downward_test_data): New variable.
40931         (sqrt_test_downward): New function.
40932         (sqrt_upward_test_data): New variable.
40933         (sqrt_test_upward): New function.
40934         (main): Call the new functions.
40935
40936         * math/gen-auto-libm-tests.c: New file.
40937         * math/auto-libm-test-in: Likewise.
40938         * math/auto-libm-test-out: New generated file.
40939         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
40940         variables.
40941         (%beautify): Add generated representations of zero.
40942         (top level): Set $auto_input and call parse_auto_input.
40943         (beautify): Remove trailing "f" from hex float constants.
40944         (parse_args): Handle XFAIL_TEST.
40945         (convert_condition): New function.
40946         (or_value): Likewise.
40947         (or_cond_value): Likewise.
40948         (generate_testfile): Handle AUTO_TESTS_* lines.
40949         (parse_auto_input): New function.
40950         * math/libm-test.inc (XFAIL_TEST): New macro.
40951         (ERRNO_UNCHANGED): Update value.
40952         (ERRNO_EDOM): Likewise.
40953         (ERRNO_ERANGE): Likewise.
40954         (IGNORE_RESULT): Likewise.
40955         (TEST_COND_flt_32): New macro.
40956         (TEST_COND_dbl_64): Likewise.
40957         (TEST_COND_ldbl_96_intel): Likewise.
40958         (TEST_COND_ldbl_96_m68k): Likewise.
40959         (TEST_COND_ldbl_128): Likewise.
40960         (TEST_COND_ldbl_128ibm): Likewise.
40961         (TEST_COND_long32): Likewise.
40962         (TEST_COND_long64): Likewise.
40963         (TEST_COND_before_rounding): Likewise.
40964         (TEST_COND_after_rounding): Likewise.
40965         (enable_test): Handle XFAIL_TEST flag.
40966         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
40967         with finite results.
40968         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
40969         auto-libm-test-out.
40970
40971 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40972             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40973
40974         [BZ #16214]
40975         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
40976         __tls_get_addr_internal instead of __tls_get_offset in order to
40977         avoid GOT pointer dependency.  Make rtld export
40978         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
40979         __tls_get_addr since we are a __tls_get_offset platform.
40980         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
40981         GOT pointer being set up before.
40982         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
40983
40984 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
40985
40986         * manual/math.texi (Errors in Math Functions): Document accuracy
40987         goals.
40988
40989         [BZ #15004]
40990         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
40991         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
40992         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
40993         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
40994         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
40995         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
40996         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
40997         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
40998         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
40999         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41000         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41001         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41002         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41003         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41004         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41005         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41006
41007         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41008         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41009         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41010         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41011         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41012         Likewise.
41013         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41014         Likewise.
41015         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41016         Likewise.
41017         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41018         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41019         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41020         atomic-feupdateenv and flt-rounds.
41021         * sysdeps/powerpc/nofpu/Versions (libc): Add
41022         __atomic_feholdexcept, __atomic_feclearexcept,
41023         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41024         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41025         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41026         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41027         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41028         here.
41029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41030         Update.
41031
41032         * manual/arith.texi (FP Exceptions): Document that exceptions may
41033         not be raised when matherr is used.
41034         (Math Error Reporting): Document overflow in directed rounding
41035         modes.  Document that errno may not be set when finite values are
41036         returned on overflow.  Document intent to set errno on underflow
41037         only for underflow to zero.
41038
41039         [BZ #16271]
41040         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41041         round-to-nearest then adjust result for other rounding modes.
41042         * include/fenv.h (fegetround): Use libm_hidden_proto.
41043         * math/fegetround.c (fegetround): Use libm_hidden_def.
41044         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41045         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41046         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41047         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41048         Likewise.
41049         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41050         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41051         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41052         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41053
41054 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41055
41056         [BZ #16077]
41057         * nss/Versions (libnss_files): Add
41058         _nss_files_gethostbyname3_r.
41059         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41060         New function.
41061         (HOST_DB_LOOKUP): Remove macro.
41062         (_nss_files_gethostbyname_r): Implement function without the
41063         HOST_DB_LOOKUP macro.
41064         (_nss_files_gethostbyname2_r): Likewise.
41065
41066 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41067
41068         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41069
41070 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41071
41072         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41073         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41074         warning.
41075
41076 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41077
41078         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41079         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41080         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41081         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41082         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41083         __fe_nomask_env_priv and attribute_hidden.
41084         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41085         (libc_feupdateenv_test_ppc): Likewise.
41086         (libc_feresetround_ppc): Likewise.
41087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41088         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41089         compat_symbol macro.
41090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41091         (__fe_nomask_env): Likewise.
41092         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41093
41094 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41095
41096         * string/Makefile: Remove ifunc tests.
41097         * string/test-string.h: Define TEST_IFUNC.
41098         * string/test-bcopy-ifunc.c: Remove.
41099         * string/test-bzero-ifunc.c: Likewise.
41100         * string/test-memccpy-ifunc.c: Likewise.
41101         * string/test-memchr-ifunc.c: Likewise.
41102         * string/test-memcmp-ifunc.c: Likewise.
41103         * string/test-memcpy-ifunc.c: Likewise.
41104         * string/test-memmem-ifunc.c: Likewise.
41105         * string/test-memmove-ifunc.c: Likewise.
41106         * string/test-mempcpy-ifunc.c: Likewise.
41107         * string/test-memrchr-ifunc.c: Likewise.
41108         * string/test-memset-ifunc.c: Likewise.
41109         * string/test-rawmemchr-ifunc.c: Likewise.
41110         * string/test-stpcpy-ifunc.c: Likewise.
41111         * string/test-stpncpy-ifunc.c: Likewise.
41112         * string/test-strcasecmp-ifunc.c: Likewise.
41113         * string/test-strcasestr-ifunc.c: Likewise.
41114         * string/test-strcat-ifunc.c: Likewise.
41115         * string/test-strchr-ifunc.c: Likewise.
41116         * string/test-strchrnul-ifunc.c: Likewise.
41117         * string/test-strcmp-ifunc.c: Likewise.
41118         * string/test-strcpy-ifunc.c: Likewise.
41119         * string/test-strcspn-ifunc.c: Likewise.
41120         * string/test-strlen-ifunc.c: Likewise.
41121         * string/test-strncasecmp-ifunc.c: Likewise.
41122         * string/test-strncat-ifunc.c: Likewise.
41123         * string/test-strncmp-ifunc.c: Likewise.
41124         * string/test-strncpy-ifunc.c: Likewise.
41125         * string/test-strnlen-ifunc.c: Likewise.
41126         * string/test-strpbrk-ifunc.c: Likewise.
41127         * string/test-strrchr-ifunc.c: Likewise.
41128         * string/test-strspn-ifunc.c: Likewise.
41129         * string/test-strstr-ifunc.c: Likewise.
41130
41131 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41132
41133         * benchtests/Makefile: Remove ifunc tests.
41134         * benchtests/bench-string.h: Define TEST_IFUNC.
41135         * benchtests/bench-bcopy-ifunc.c: Remove.
41136         * benchtests/bench-bzero-ifunc.c: Likewise.
41137         * benchtests/bench-memccpy-ifunc.c: Likewise.
41138         * benchtests/bench-memchr-ifunc.c: Likewise.
41139         * benchtests/bench-memcmp-ifunc.c: Likewise.
41140         * benchtests/bench-memcpy-ifunc.c: Likewise.
41141         * benchtests/bench-memmem-ifunc.c: Likewise.
41142         * benchtests/bench-memmove-ifunc.c: Likewise.
41143         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41144         * benchtests/bench-memrchr-ifunc.c: Likewise.
41145         * benchtests/bench-memset-ifunc.c: Likewise.
41146         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41147         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41148         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41149         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41150         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41151         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41152         * benchtests/bench-strcat-ifunc.c: Likewise.
41153         * benchtests/bench-strchr-ifunc.c: Likewise.
41154         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41155         * benchtests/bench-strcmp-ifunc.c: Likewise.
41156         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41157         * benchtests/bench-strcpy-ifunc.c: Likewise.
41158         * benchtests/bench-strcspn-ifunc.c: Likewise.
41159         * benchtests/bench-strlen-ifunc.c: Likewise.
41160         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41161         * benchtests/bench-strncat-ifunc.c: Likewise.
41162         * benchtests/bench-strncmp-ifunc.c: Likewise.
41163         * benchtests/bench-strncpy-ifunc.c: Likewise.
41164         * benchtests/bench-strnlen-ifunc.c: Likewise.
41165         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41166         * benchtests/bench-strrchr-ifunc.c: Likewise.
41167         * benchtests/bench-strsep-ifunc.c: Likewise.
41168         * benchtests/bench-strspn-ifunc.c: Likewise.
41169         * benchtests/bench-strstr-ifunc.c: Likewise.
41170
41171 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41172
41173         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41174
41175 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41176
41177         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41178         * rt/aio.h: Likewise.
41179         * sysdeps/gnu/bits/utmp.h: Likewise.
41180         * sysdeps/gnu/bits/utmpx.h: Likewise.
41181         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41182         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41183         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41184         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41185         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41186         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41187         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41188         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41189         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41190         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41191         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41192         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41193         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41195         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41196         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41197         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41198         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41199         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41200         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41201         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41202         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41203         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41204         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41205         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41206         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41207         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41208         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41209         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41210         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41211         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41212         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41213         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41214         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41215         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41216         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41217         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41218         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41219         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41220         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41221         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41222         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41223
41224 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41225
41226         [BZ #16245]
41227         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41228         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41229
41230 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41231
41232         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41233         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41234         Likewise.
41235
41236 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41237
41238         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41239         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41240         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41241         (__fesetround): Remove define.
41242         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41243         rounding and exceptions handling.
41244         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41245         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41246         (__fe_nomask_env): Likewise.
41247         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41248         __fegetround instead of fegetround.
41249         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41250         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41251
41252 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41253
41254         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41255         it's there.
41256
41257         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41258
41259 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41260
41261         [BZ #11157]
41262         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41263         (encrypt_r): Likewise.
41264         * malloc/obstack.h (obstack_free): Likewise.
41265         * posix/unistd.h (encrypt): Likewise.
41266
41267 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41268
41269         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41270         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41271         DL_CALL_DT_FINI() that call the functions directly.
41272         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41273         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41274         * elf/dl-fini.c: Likewise.
41275
41276 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41277
41278         * malloc/hooks.c (memalign_check): Add alignment rounding.
41279         * malloc/malloc.c (_mid_memalign): New function.
41280         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41281         Implement by calling _mid_memalign.
41282         * manual/probes.texi (Memory Allocation Probes): Remove
41283         memory_valloc_retry and memory_pvalloc_retry.
41284
41285 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41286
41287         * locale/programs/locarchive.c (open_archive): Add const
41288         qualifier to ARCHIVEFNAME and copy default fname to
41289         DEFAULT_FNAME.
41290
41291         [BZ #15601]
41292         * libio/tst-widetext.input: Rename Oriya to Odia.
41293         * locale/iso-639.def: Likewise.
41294
41295         * manual/probes.texi (Mathematical Function Probes): Add
41296         documentation for sin, cos, asin and acos probes.
41297         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41298         (__sin32): Add slowasin probe.
41299         (__cos32): Add slowacos probe.
41300         (__mpsin): Add slowsin probe.
41301         (__mpcos): Add slowcos probe.
41302
41303 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41304
41305         [BZ #15483]
41306         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41307         thread-local __sim_exceptions_thread and global
41308         __sim_exceptions_global.
41309         (__sim_disabled_exceptions): Change to thread-local
41310         __sim_disabled_exceptions_thread and global
41311         __sim_disabled_exceptions_global.
41312         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41313         and global __sim_round_mode_global.
41314         (__simulate_exceptions): Use thread-local floating-point state and
41315         set global state from it as needed.
41316         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41317         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41318         __sim_round_mode_thread.
41319         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41320         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41321         and global __sim_exceptions_global.
41322         (__sim_disabled_exceptions): Change to thread-local
41323         __sim_disabled_exceptions_thread and global
41324         __sim_disabled_exceptions_global.
41325         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41326         and global __sim_round_mode_global.
41327         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41328         (SIM_SET_GLOBAL): Likewise.
41329         * sysdeps/powerpc/soft-fp/sfp-machine.h
41330         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41331         __sim_round_mode_thread.
41332         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41333         __sim_disabled_exceptions_thread.
41334         (__sim_exceptions): Change to __sim_exceptions_thread.
41335         (__sim_disabled_exceptions): Change to
41336         __sim_disabled_exceptions_thread.
41337         (__sim_round_mode): Change to __sim_round_mode_thread.
41338         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41339         thread-local floating-point state and set global state from it as
41340         needed.
41341         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41342         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41343         (__sim_disabled_exceptions): Remove extern declaration.
41344         (feenableexcept): Use thread-local floating-point state and set
41345         global state from it as needed.
41346         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41347         extern declaration.
41348         (__sim_disabled_exceptions): Likewise.
41349         (__sim_round_mode): Likewise.
41350         (__fegetenv): Use thread-local floating-point state.
41351         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41352         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41353         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41354         floating-point state and set global state from it as needed.
41355         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41356         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41357         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41358         Likewise.
41359         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41360         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41361         Likewise.
41362         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41363         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41364         Use __sim_round_mode_thread.
41365         * math/test-fenv-tls.c: New file.
41366         * math/Makefile (tests): Add test-fenv-tls.
41367         ($(objpfx)test-fenv-tls): Depend on
41368         $(common-objpfx)nptl/libpthread.so.
41369
41370 2013-11-19  Andreas Schwab  <schwab@suse.de>
41371
41372         * locale/programs/locale.c (show_info): Decode wordarray elements.
41373         * locale/categories.def (LC_MONETARY): Add element for
41374         _NL_MONETARY_CRNCYSTR.
41375         * locale/C-monetary.c (conversion_rate): New variable.
41376         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41377         element.
41378
41379 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41380
41381         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41382         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41383
41384 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41385
41386         * elf/Makefile (tst-auxv): New test.
41387         * elf/tst-auxv.c: New
41388         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41389
41390 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41391
41392         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41393         (hidden_proto): Caller changed.
41394         (hidden_tls_proto): New macro.
41395         (libc_hidden_tls_proto): Likewise.
41396         (rtld_hidden_tls_proto): Likewise.
41397         (libm_hidden_tls_proto): Likewise.
41398         (libresolv_hidden_tls_proto): Likewise.
41399         (librt_hidden_tls_proto): Likewise.
41400         (libdl_hidden_tls_proto): Likewise.
41401         (libnss_files_hidden_tls_proto): Likewise.
41402         (libnsl_hidden_tls_proto): Likewise.
41403         (libnss_nisplus_hidden_tls_proto): Likewise.
41404         (libutil_hidden_tls_proto): Likewise.
41405
41406 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41407
41408         [BZ #10253]
41409         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41410         (decompose_rpath): Defer expansion to fillin_rpath.
41411         (_dl_init_paths): Pass linkmap to fillin_rpath.
41412
41413 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41414
41415         * benchtests/Makefile: Add strsep.
41416         * benchtests/bench-strsep.c: New file: strsep benchtest.
41417         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41418
41419 2013-11-18  Andreas Schwab  <schwab@suse.de>
41420
41421         * locale/programs/locale.c (show_info) [case byte]: Check for
41422         '\377' instead of '\177'.
41423         * locale/C-monetary.c (not_available): Always use "\377".
41424         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41425         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41426         detect unavailable sign_posn locale elements.
41427         * locale/localeconv.c (__localeconv): For grouping and
41428         mon_grouping handle "\177" and "\377" like no grouping.
41429         (INT_ELEM): New macro.  Use it to set all numeric members.
41430         * locale/programs/ld-monetary.c (monetary_read)
41431         <tok_mon_grouping>: Normalize single -1 to the empty string.
41432         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41433         Likewise.
41434
41435 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41436
41437         [BZ #16055]
41438         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41439         when we match (nil).
41440         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41441
41442 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41443
41444         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41445         (NO_TEST_INLINE): Update value.
41446         (ERRNO_UNCHANGED): Likewise.
41447         (ERRNO_EDOM): Likewise.
41448         (ERRNO_ERANGE): Likewise.
41449         (IGNORE_RESULT): Likewise.
41450         (check_float_internal): Check signs of NaN results if
41451         TEST_NAN_SIGN used.
41452         (check_complex): Pass TEST_NAN_SIGN flag through to second
41453         check_float_internal call.
41454         (copysign_test_data): Add tests with quiet NaNs as second
41455         argument.  Use TEST_NAN_SIGN.
41456         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41457         TEST_NAN_SIGN.
41458         (signbit_test_data): Add tests of quiet NaN argument.
41459         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41460
41461         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41462         $ignore_result.
41463         (parse_args): Handle function results specified as IGNORE.
41464         * math/libm-test.inc (IGNORE_RESULT): New macro.
41465         (check_float_internal): Do not check numerical result if flag
41466         IGNORE_RESULT set.
41467         (check_complex): Pass through IGNORE_RESULT to second
41468         check_float_internal call.
41469         (check_int): Do not check numerical result if flag IGNORE_RESULT
41470         set.
41471         (check_long): Likewise.
41472         (check_bool): Likewise.
41473         (check_longlong): Likewise.
41474         (lrint_test_data): Add tests of infinite and NaN arguments.
41475         (lrint_tonearest_test_data): Likewise.
41476         (lrint_towardzero_test_data): Likewise.
41477         (lrint_downward_test_data): Likewise.
41478         (lrint_upward_test_data): Likewise.
41479         (llrint_test_data): Likewise.
41480         (llrint_tonearest_test_data): Likewise.
41481         (llrint_towardzero_test_data): Likewise.
41482         (llrint_downward_test_data): Likewise.
41483         (llrint_upward_test_data): Likewise.
41484         (lround_test_data): Likewise.
41485         (llround_test_data): Likewise.
41486
41487         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41488         (ERRNO_UNCHANGED): Update value.
41489         (ERRNO_EDOM): Likewise.
41490         (ERRNO_ERANGE): Likewise.
41491         (NO_TEST_INLINE_FLOAT): New macro.
41492         (NO_TEST_INLINE_DOUBLE): Likewise.
41493         (enable_test): New function.
41494         (RUN_TEST_f_f): Check enable_test before running test.
41495         (RUN_TEST_2_f): Likewise.
41496         (RUN_TEST_fff_f): Likewise.
41497         (RUN_TEST_c_f): Likewise.
41498         (RUN_TEST_f_f1): Likewise.
41499         (RUN_TEST_fF_f1): Likewise.
41500         (RUN_TEST_fI_f1): Likewise.
41501         (RUN_TEST_ffI_f1): Likewise.
41502         (RUN_TEST_c_c): Likewise.
41503         (RUN_TEST_cc_c): Likewise.
41504         (RUN_TEST_f_i): Likewise.
41505         (RUN_TEST_f_i_tg): Likewise.
41506         (RUN_TEST_ff_i_tg): Likewise.
41507         (RUN_TEST_f_b): Likewise.
41508         (RUN_TEST_f_b_tg): Likewise.
41509         (RUN_TEST_f_l): Likewise.
41510         (RUN_TEST_f_L): Likewise.
41511         (RUN_TEST_fFF_11): Likewise.
41512         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41513         conditionals.
41514         (cosh_test_data): Likewise.
41515         (exp_test_data): Likewise.
41516         (expm1_test_data): Likewise.
41517         (hypot_test_data): Likewise.
41518         (pow_test_data): Likewise.
41519         (sinh_test_data): Likewise.
41520         (tanh_test_data): Likewise.
41521         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41522         flags argument.
41523
41524         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41525         tests with quiet NaN input and output.
41526         (acosh_test_data): Likewise.
41527         (asin_test_data): Likewise.
41528         (asinh_test_data): Likewise.
41529         (atan_test_data): Likewise.
41530         (atanh_test_data): Likewise.
41531         (atan2_test_data): Likewise.
41532         (cbrt_test_data): Likewise.
41533         (cos_test_data): Likewise.
41534         (cosh_test_data): Likewise.
41535         (erf_test_data): Likewise.
41536         (erfc_test_data): Likewise.
41537         (exp_test_data): Likewise.
41538         (exp10_test_data): Likewise.
41539         (exp2_test_data): Likewise.
41540         (expm1_test_data): Likewise.
41541         (hypot_test_data): Likewise.
41542         (j0_test_data): Likewise.
41543         (j1_test_data): Likewise.
41544         (jn_test_data): Likewise.
41545         (lgamma_test_data): Likewise.
41546         (log_test_data): Likewise.
41547         (log10_test_data): Likewise.
41548         (log1p_test_data): Likewise.
41549         (log2_test_data): Likewise.
41550         (pow_test_data): Likewise.
41551         (scalb_test_data): Likewise.
41552         (sin_test_data): Likewise.
41553         (sincos_test_data): Likewise.
41554         (sinh_test_data): Likewise.
41555         (tan_test_data): Likewise.
41556         (tanh_test_data): Likewise.
41557         (tgamma_test_data): Likewise.
41558         (y0_test_data): Likewise.
41559         (y1_test_data): Likewise.
41560         (yn_test_data): Likewise.
41561
41562         [BZ #16167]
41563         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41564         argument being NaN and avoid computations with second argument in
41565         that case.
41566         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41567         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41568         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41569
41570 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41571
41572         * locale/iso-639.def: Add Chitwani Tharu (the).
41573
41574 2013-11-14  Andreas Schwab  <schwab@suse.de>
41575
41576         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41577         word instead of empty string.
41578
41579 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41580
41581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41582         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41584         (__fe_nomask_env): Likewise.
41585
41586 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41587
41588         * benchtests/bench-timing.h: Include time.h.
41589
41590 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41591
41592         [BZ #15997]
41593         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41594         to 3.4.0 for x32.
41595         * sysdeps/unix/sysv/linux/configure: Regenerated.
41596
41597 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41598
41599         [BZ #16151]
41600         * stdlib/strtod_l.c (round_and_return): Do not consider
41601         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41602         exponent one less than half the least subnormal exponent.
41603         * stdlib/test-strtod-round-data: Add more tests.
41604         * stdlib/tst-strtod-round.c (tests): Regenerated.
41605
41606 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41607
41608         [BZ #14143]
41609         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41610         (__fe_mask_env): Likewise.
41611         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41612         libm_hidden_proto and add function prototype.
41613         (__fe_mask_env): Add function prototype.
41614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41615         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41617         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41619         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41620
41621 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41622
41623         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41624         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41625
41626 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41627
41628         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41629         of htab_find_slot().
41630
41631 2013-11-11  David S. Miller  <davem@davemloft.net>
41632
41633         [BZ #16150]
41634         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41635         symbol in the non-vis3 case in static builds.
41636         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41637         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41638         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41639         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41640
41641 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41642
41643         [BZ #387]
41644         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41645         it is empty.
41646
41647 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41648
41649         * benchtests/Makefile: Add bench-strtod.
41650         * benchtests/bench-strtod.c: New file: strtod benchtest
41651
41652 2013-11-11  Andreas Schwab  <schwab@suse.de>
41653
41654         [BZ #16153]
41655         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41656         terminating NUL in key length.
41657
41658 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41659
41660         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41661         Add artificial ODP entry for vDSO symbol for PPC64.
41662         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41663         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41664
41665 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41666
41667         [BZ #15374]
41668         * nss/getent.c (services_keys): Recognize services starting with digit.
41669
41670 2013-11-06  David S. Miller  <davem@davemloft.net>
41671
41672         [BZ #15985]
41673         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41674         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41675
41676 2013-11-06  Will Newton  <will.newton@linaro.org>
41677
41678         * manual/memory.texi (Malloc Examples): Remove register
41679         keyword from examples.
41680
41681 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41682
41683         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41684
41685 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41686
41687         [BZ #6981]
41688         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41689         depending on [__GCC_IEC_559 > 0].
41690         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41691         depending on [__GCC_IEC_559_COMPLEX > 0].
41692
41693 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41694
41695         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41696         to iso-639.def.
41697
41698 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41699
41700         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41701
41702 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41703
41704         [BZ #16112]
41705         * malloc/malloc (malloc_info): Do not handle first bin as
41706         special case.
41707
41708 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41709
41710         * locale/iso-639.def: Add Central Nahuatl (nhn).
41711
41712 2013-11-01  Bruno Haible  <bruno@clisp.org>
41713
41714         [BZ #7003]
41715         * manual/math.texi (BSD Random): Specify range upper bound as
41716         in POSIX.
41717
41718 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41719
41720         * locale/iso-639.def: Add Meadow Mari (mhr).
41721
41722 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41723
41724         [BZ #14752], [BZ #15763]
41725         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41726         Validate name.
41727         * rt/tst_shm.c: Add test for escaping directory.
41728
41729 2013-10-31  Andreas Schwab  <schwab@suse.de>
41730
41731         [BZ #15917]
41732         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41733         followed by 'x' as part of digit sequence.
41734         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41735
41736 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41737
41738         [BZ #16037]
41739         * configure.ac: allow GNU Make 4.0 and greater.
41740         * configure: Regenerated.
41741
41742 2013-10-30  Will Newton  <will.newton@linaro.org>
41743
41744         [BZ #16038]
41745         * malloc/hooks.c (memalign_check): Limit alignment to the
41746         maximum representable power of two.
41747         * malloc/malloc.c (__libc_memalign): Likewise.
41748         * malloc/tst-memalign.c (do_test): Add test for very
41749         large alignment values.
41750         * malloc/tst-posix_memalign.c (do_test): Likewise.
41751
41752 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41753
41754         [BZ #11087]
41755         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41756         (munmap_chunk): Likewise.
41757         (mremap_chunk): Likewise.
41758
41759 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41760
41761         [BZ #15799]
41762         * stdlib/div.c (div): Remove obsolete code.
41763         * stdlib/ldiv.c (ldiv): Likewise.
41764         * stdlib/lldiv.c (lldiv): Likewise.
41765
41766 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41767
41768         [BZ #16071]
41769         * nss/nss_files/files-XXX.c (get_contents_ret): New
41770         enumerator.
41771         (get_contents): New function.
41772         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41773
41774 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41775
41776         * configure.in: Moved to ...
41777         * configure.ac: ... here. Change reference to configure.in
41778         to configure.ac.
41779         * sysdeps/arm/preconfigure.ac: ... here.
41780         configure.in to configure.ac.
41781         * sysdeps/gnu/configure.in: Moved to ...
41782         * sysdeps/gnu/configure.ac: ... here.
41783         * sysdeps/i386/configure.in: Moved to ...
41784         * sysdeps/i386/configure.ac: ... here.
41785         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41786         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41787         * sysdeps/mach/configure.in: Moved to ...
41788         * sysdeps/mach/configure.ac: ... here.
41789         * sysdeps/mach/hurd/configure.in: Moved to ...
41790         * sysdeps/mach/hurd/configure.ac: ... here.
41791         * sysdeps/powerpc/configure.in: Moved to ...
41792         * sysdeps/powerpc/configure.ac: ... here.
41793         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41794         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41795         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41796         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41797         * sysdeps/s390/s390-32/configure.in: Moved to ...
41798         * sysdeps/s390/s390-32/configure.ac: ... here.
41799         * sysdeps/s390/s390-64/configure.in: Moved to ...
41800         * sysdeps/s390/s390-64/configure.ac: ... here.
41801         * sysdeps/sh/configure.in: Moved to ...
41802         * sysdeps/sh/configure.ac: ... here.
41803         * sysdeps/sparc/configure.in: Moved to ...
41804         * sysdeps/sparc/configure.ac: ... here.
41805         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41806         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41807         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41808         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41809         * sysdeps/x86_64/configure.in: Moved to ...
41810         * sysdeps/x86_64/configure.ac: ... here.
41811         * sysdeps/x86_64/preconfigure.in: Moved to ...
41812         * sysdeps/x86_64/preconfigure.ac: ... here.
41813         * aclocal.m4: Change reference to configure.in to configure.ac.
41814         * config.h.in: Likewise.
41815         * manual/install.texi: Likewise.
41816         * manual/maint.texi: Likewise.
41817         * Makefile: Likewise.
41818         * malloc/Makefile: Likewise.
41819         * nscd/Makefile: Likewise.
41820         * Makeconfig: Change reference to configure.in and
41821         preconfigure.in to configure.ac and preconfigure.ac
41822         respectively.
41823         * INSTALL: Regenerated.
41824         * configure: Likewise.
41825         * sysdeps/gnu/configure: Likewise.
41826         * sysdeps/i386/configure: Likewise.
41827         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41828         * sysdeps/mach/configure: Likewise.
41829         * sysdeps/mach/hurd/configure: Likewise.
41830         * sysdeps/powerpc/configure: Likewise.
41831         * sysdeps/powerpc/powerpc32/configure: Likewise.
41832         * sysdeps/powerpc/powerpc64/configure: Likewise.
41833         * sysdeps/s390/s390-32/configure: Likewise.
41834         * sysdeps/s390/s390-64/configure: Likewise.
41835         * sysdeps/sh/configure: Likewise.
41836         * sysdeps/sparc/configure: Likewise.
41837         * sysdeps/unix/sysv/linux/configure: Likewise.
41838         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41839         * sysdeps/x86_64/configure: Likewise.
41840         * sysdeps/x86_64/preconfigure: Likewise.
41841
41842 2013-10-29  Andreas Schwab  <schwab@suse.de>
41843
41844         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41845
41846 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41847
41848         * benchtests/pow-inputs: Add new inputs.
41849
41850         * benchtests/exp-inputs: Add new inputs.
41851
41852         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
41853         conditional check for return value.
41854         (__cos32): Likewise.
41855
41856 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41857
41858         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
41859         to provide a boost for large inputs with word alignment.
41860         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
41861         implementation based on optimized PPC64 strcpy.
41862         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
41863         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
41864         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
41865         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
41866
41867 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41868
41869         [BZ #2801]
41870         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
41871
41872 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41873
41874         [BZ #14876]
41875         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
41876         * time/tst-strptime.c (day_tests): Add testcase.
41877
41878 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41879
41880         [BZ #14029]
41881         * manual/pattern.texi: Acknowledge that fnmatch can fail.
41882
41883 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
41884
41885         [BZ #16074]
41886         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
41887         MAP_FAILED on error.
41888
41889 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
41890
41891         [BZ #16072]
41892         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
41893         heap for large requests.
41894
41895 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
41896
41897         [BZ #9954]
41898         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
41899         result if the result has no associated interface.
41900         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
41901         interface for all 127.X.Y.Z addresses.
41902
41903 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
41904
41905         * locale/iso-639.def: Add Ligurian (lij)
41906
41907 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
41908
41909         [BZ #15825]
41910         * sunrpc/rpc_main.c: Document rpcgen -5.
41911
41912 2013-10-19  Michael Stahl  <mstahl@redhat.com>
41913
41914         * elf/rtld.c (do_preload): Print the reason why preloading failed.
41915
41916 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41917
41918         [BZ #10278]
41919         * posix/glob.c: Match only directories when trailing slash is present.
41920         * posix/tst-gnuglob.c (my_opendir): Do not open files.
41921         (main): Add testcase.
41922
41923 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41924
41925         [BZ #15670]
41926         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
41927
41928 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
41929
41930         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
41931         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
41932         AUTH_DES and cindex for FIPS 140-2.
41933         (DES Encryption): Add cindex FIPS 46-3.
41934
41935         * locale/locarchive.h (struct locarhandle): Add fname.
41936         * locale/programs/localedef.c (main): Pass ARGV[remaining]
41937         if an optional argument was specified to --list-archive,
41938         otherwise NULL.
41939         * locale/programs/locarchive.c (show_archive_content): Take new
41940         argument fname and pass it via ah.fname to open_archive.
41941         * locale/programs/localedef.h: Update decl.
41942         (open_archive): If AH->fname is non-null, open that file
41943         rather than the default file name, and don't ignore ENOENT.
41944         (create_archive): Set AH.fname to NULL.
41945         (delete_locales_from_archive): Likewise.
41946         (add_locales_to_archive): Likewise.
41947         * locale/programs/locfile.c (write_all_categories): Likewise.
41948
41949 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
41950             Aldy Hernandez  <aldyh@redhat.com>
41951
41952         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
41953         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
41954         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
41955         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
41956         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
41957         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
41958         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
41959         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
41960         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
41961         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
41962         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
41963         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
41964         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
41965         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
41966         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
41967         Likewise.
41968         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
41969         Likewise.
41970         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
41971         Likewise.
41972         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
41973         Likewise.
41974         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
41975         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
41976         Likewise.
41977         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
41978         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
41979         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
41980         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
41981         Likewise.
41982         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
41983         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
41984         * sysdeps/powerpc/preconfigure: Likewise.
41985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
41986         Likewise.
41987         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
41988         Replace contents of file by #include of <fenv_libc.h>.
41989         * sysdeps/powerpc/soft-fp/sfp-machine.h
41990         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
41991         and <sys/prctl.h>.
41992         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
41993         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
41994         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
41995         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
41996         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
41997         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
41998         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
41999         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42000         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42001         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42002         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42003         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42005         Allow copysignl PLT reference to be missing.
42006
42007 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42008             Joseph Myers  <joseph@codesourcery.com
42009
42010         [BZ #15948]
42011         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42012         single character.
42013         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42014
42015 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42016
42017         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42018         * elf/tst-tls1.c: Likewise.
42019         * elf/tst-tls10.h: Likewise.
42020         * elf/tst-tls14.c: Likewise.
42021         * elf/tst-tls2.c: Likewise.
42022         * elf/tst-tls3.c: Likewise.
42023         * elf/tst-tls4.c: Likewise.
42024         * elf/tst-tls5.c: Likewise.
42025         * elf/tst-tls6.c: Likewise.
42026         * elf/tst-tls7.c: Likewise.
42027         * elf/tst-tls8.c: Likewise.
42028         * elf/tst-tls9.c: Likewise.
42029         * elf/tst-tlsmod1.c: Likewise.
42030         * elf/tst-tlsmod13.c: Likewise.
42031         * elf/tst-tlsmod13a.c: Likewise.
42032         * elf/tst-tlsmod14a.c: Likewise.
42033         * elf/tst-tlsmod16a.c: Likewise.
42034         * elf/tst-tlsmod16b.c: Likewise.
42035         * elf/tst-tlsmod2.c: Likewise.
42036         * elf/tst-tlsmod3.c: Likewise.
42037         * elf/tst-tlsmod4.c: Likewise.
42038         * elf/tst-tlsmod5.c: Likewise.
42039         * elf/tst-tlsmod6.c: Likewise.
42040
42041 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42042
42043         [BZ #12486]
42044         * malloc/malloc.c: remove checks for statistics.
42045
42046 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42047
42048         [BZ #15277]
42049         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42050         * inet/tst-network.c: Add testcase.
42051
42052 2013-10-17  Andreas Schwab  <schwab@suse.de>
42053
42054         [BZ #15218]
42055         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42056         to determine canonical name.
42057
42058 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42059
42060         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42061         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42062         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42063         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42064         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42065         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42066         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42067         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42068         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42069         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42070         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42071         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42072         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42073         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42074         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42075         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42076         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42077         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42078         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42079         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42080         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42081         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42082         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42083         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42084         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42085         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42086         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42087         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42088         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42089         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42090         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42091         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42092         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42093         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42094         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42095         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42096         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42097         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42098         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42099         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42100         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42101         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42102         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42103         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42104         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42105         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42106         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42107         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42108         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42109         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42110         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42111         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42112         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42113         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42114         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42115         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42116         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42117         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42118
42119 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42120
42121         [BZ #16041]
42122         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42123         make result into a quiet NaN.
42124
42125 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42126
42127         * soft-fp/adddf3.c: Fix horizontal whitespace.
42128         * soft-fp/addsf3.c: Likewise.
42129         * soft-fp/addtf3.c: Likewise.
42130         * soft-fp/divdf3.c: Likewise.
42131         * soft-fp/divsf3.c: Likewise.
42132         * soft-fp/divtf3.c: Likewise.
42133         * soft-fp/double.h: Likewise.
42134         * soft-fp/eqdf2.c: Likewise.
42135         * soft-fp/eqsf2.c: Likewise.
42136         * soft-fp/eqtf2.c: Likewise.
42137         * soft-fp/extenddftf2.c: Likewise.
42138         * soft-fp/extended.h: Likewise.
42139         * soft-fp/extendsfdf2.c: Likewise.
42140         * soft-fp/extendsftf2.c: Likewise.
42141         * soft-fp/extendxftf2.c: Likewise.
42142         * soft-fp/fixdfdi.c: Likewise.
42143         * soft-fp/fixdfsi.c: Likewise.
42144         * soft-fp/fixdfti.c: Likewise.
42145         * soft-fp/fixsfdi.c: Likewise.
42146         * soft-fp/fixsfsi.c: Likewise.
42147         * soft-fp/fixsfti.c: Likewise.
42148         * soft-fp/fixtfdi.c: Likewise.
42149         * soft-fp/fixtfsi.c: Likewise.
42150         * soft-fp/fixtfti.c: Likewise.
42151         * soft-fp/fixunsdfdi.c: Likewise.
42152         * soft-fp/fixunsdfsi.c: Likewise.
42153         * soft-fp/fixunsdfti.c: Likewise.
42154         * soft-fp/fixunssfdi.c: Likewise.
42155         * soft-fp/fixunssfsi.c: Likewise.
42156         * soft-fp/fixunssfti.c: Likewise.
42157         * soft-fp/fixunstfdi.c: Likewise.
42158         * soft-fp/fixunstfsi.c: Likewise.
42159         * soft-fp/fixunstfti.c: Likewise.
42160         * soft-fp/floatdidf.c: Likewise.
42161         * soft-fp/floatdisf.c: Likewise.
42162         * soft-fp/floatditf.c: Likewise.
42163         * soft-fp/floatsidf.c: Likewise.
42164         * soft-fp/floatsisf.c: Likewise.
42165         * soft-fp/floatsitf.c: Likewise.
42166         * soft-fp/floattidf.c: Likewise.
42167         * soft-fp/floattisf.c: Likewise.
42168         * soft-fp/floattitf.c: Likewise.
42169         * soft-fp/floatundidf.c: Likewise.
42170         * soft-fp/floatundisf.c: Likewise.
42171         * soft-fp/floatunditf.c: Likewise.
42172         * soft-fp/floatunsidf.c: Likewise.
42173         * soft-fp/floatunsisf.c: Likewise.
42174         * soft-fp/floatunsitf.c: Likewise.
42175         * soft-fp/floatuntidf.c: Likewise.
42176         * soft-fp/floatuntisf.c: Likewise.
42177         * soft-fp/floatuntitf.c: Likewise.
42178         * soft-fp/fmadf4.c: Likewise.
42179         * soft-fp/fmasf4.c: Likewise.
42180         * soft-fp/fmatf4.c: Likewise.
42181         * soft-fp/gedf2.c: Likewise.
42182         * soft-fp/gesf2.c: Likewise.
42183         * soft-fp/getf2.c: Likewise.
42184         * soft-fp/ledf2.c: Likewise.
42185         * soft-fp/lesf2.c: Likewise.
42186         * soft-fp/letf2.c: Likewise.
42187         * soft-fp/muldf3.c: Likewise.
42188         * soft-fp/mulsf3.c: Likewise.
42189         * soft-fp/multf3.c: Likewise.
42190         * soft-fp/negdf2.c: Likewise.
42191         * soft-fp/negsf2.c: Likewise.
42192         * soft-fp/negtf2.c: Likewise.
42193         * soft-fp/op-1.h: Likewise.
42194         * soft-fp/op-2.h: Likewise.
42195         * soft-fp/op-4.h: Likewise.
42196         * soft-fp/op-8.h: Likewise.
42197         * soft-fp/op-common.h: Likewise.
42198         * soft-fp/quad.h: Likewise.
42199         * soft-fp/single.h: Likewise.
42200         * soft-fp/soft-fp.h: Likewise.
42201         * soft-fp/sqrtdf2.c: Likewise.
42202         * soft-fp/sqrtsf2.c: Likewise.
42203         * soft-fp/sqrttf2.c: Likewise.
42204         * soft-fp/subdf3.c: Likewise.
42205         * soft-fp/subsf3.c: Likewise.
42206         * soft-fp/subtf3.c: Likewise.
42207         * soft-fp/truncdfsf2.c: Likewise.
42208         * soft-fp/trunctfdf2.c: Likewise.
42209         * soft-fp/trunctfsf2.c: Likewise.
42210         * soft-fp/trunctfxf2.c: Likewise.
42211         * soft-fp/unorddf2.c: Likewise.
42212         * soft-fp/unordsf2.c: Likewise.
42213         * soft-fp/unordtf2.c: Likewise.
42214
42215 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42216
42217         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42218         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42219
42220 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42221
42222         * elf/dl-libc.c: Clear initfini list after freeing.
42223
42224 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42225
42226         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42227         * soft-fp/addsf3.c: Likewise.
42228         * soft-fp/addtf3.c: Likewise.
42229         * soft-fp/divdf3.c: Likewise.
42230         * soft-fp/divsf3.c: Likewise.
42231         * soft-fp/divtf3.c: Likewise.
42232         * soft-fp/double.h: Likewise.
42233         * soft-fp/eqdf2.c: Likewise.
42234         * soft-fp/eqsf2.c: Likewise.
42235         * soft-fp/eqtf2.c: Likewise.
42236         * soft-fp/extenddftf2.c: Likewise.
42237         * soft-fp/extended.h: Likewise.
42238         * soft-fp/extendsfdf2.c: Likewise.
42239         * soft-fp/extendsftf2.c: Likewise.
42240         * soft-fp/extendxftf2.c: Likewise.
42241         * soft-fp/fixdfdi.c: Likewise.
42242         * soft-fp/fixdfsi.c: Likewise.
42243         * soft-fp/fixdfti.c: Likewise.
42244         * soft-fp/fixsfdi.c: Likewise.
42245         * soft-fp/fixsfsi.c: Likewise.
42246         * soft-fp/fixsfti.c: Likewise.
42247         * soft-fp/fixtfdi.c: Likewise.
42248         * soft-fp/fixtfsi.c: Likewise.
42249         * soft-fp/fixtfti.c: Likewise.
42250         * soft-fp/fixunsdfdi.c: Likewise.
42251         * soft-fp/fixunsdfsi.c: Likewise.
42252         * soft-fp/fixunsdfti.c: Likewise.
42253         * soft-fp/fixunssfdi.c: Likewise.
42254         * soft-fp/fixunssfsi.c: Likewise.
42255         * soft-fp/fixunssfti.c: Likewise.
42256         * soft-fp/fixunstfdi.c: Likewise.
42257         * soft-fp/fixunstfsi.c: Likewise.
42258         * soft-fp/fixunstfti.c: Likewise.
42259         * soft-fp/floatdidf.c: Likewise.
42260         * soft-fp/floatdisf.c: Likewise.
42261         * soft-fp/floatditf.c: Likewise.
42262         * soft-fp/floatsidf.c: Likewise.
42263         * soft-fp/floatsisf.c: Likewise.
42264         * soft-fp/floatsitf.c: Likewise.
42265         * soft-fp/floattidf.c: Likewise.
42266         * soft-fp/floattisf.c: Likewise.
42267         * soft-fp/floattitf.c: Likewise.
42268         * soft-fp/floatundidf.c: Likewise.
42269         * soft-fp/floatundisf.c: Likewise.
42270         * soft-fp/floatunsidf.c: Likewise.
42271         * soft-fp/floatunsisf.c: Likewise.
42272         * soft-fp/floatuntidf.c: Likewise.
42273         * soft-fp/floatuntisf.c: Likewise.
42274         * soft-fp/floatuntitf.c: Likewise.
42275         * soft-fp/fmadf4.c: Likewise.
42276         * soft-fp/fmasf4.c: Likewise.
42277         * soft-fp/fmatf4.c: Likewise.
42278         * soft-fp/gedf2.c: Likewise.
42279         * soft-fp/gesf2.c: Likewise.
42280         * soft-fp/getf2.c: Likewise.
42281         * soft-fp/ledf2.c: Likewise.
42282         * soft-fp/lesf2.c: Likewise.
42283         * soft-fp/letf2.c: Likewise.
42284         * soft-fp/muldf3.c: Likewise.
42285         * soft-fp/mulsf3.c: Likewise.
42286         * soft-fp/multf3.c: Likewise.
42287         * soft-fp/negdf2.c: Likewise.
42288         * soft-fp/negsf2.c: Likewise.
42289         * soft-fp/negtf2.c: Likewise.
42290         * soft-fp/op-1.h: Likewise.
42291         * soft-fp/op-2.h: Likewise.
42292         * soft-fp/op-4.h: Likewise.
42293         * soft-fp/op-8.h: Likewise.
42294         * soft-fp/op-common.h: Likewise.
42295         * soft-fp/quad.h: Likewise.
42296         * soft-fp/single.h: Likewise.
42297         * soft-fp/soft-fp.h: Likewise.
42298         * soft-fp/sqrtdf2.c: Likewise.
42299         * soft-fp/sqrtsf2.c: Likewise.
42300         * soft-fp/sqrttf2.c: Likewise.
42301         * soft-fp/subdf3.c: Likewise.
42302         * soft-fp/subsf3.c: Likewise.
42303         * soft-fp/subtf3.c: Likewise.
42304         * soft-fp/truncdfsf2.c: Likewise.
42305         * soft-fp/trunctfdf2.c: Likewise.
42306         * soft-fp/trunctfsf2.c: Likewise.
42307         * soft-fp/trunctfxf2.c: Likewise.
42308         * soft-fp/unorddf2.c: Likewise.
42309         * soft-fp/unordsf2.c: Likewise.
42310         * soft-fp/unordtf2.c: Likewise.
42311
42312 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42313
42314         [BZ #15672]
42315         * misc/error.c (error_tail): Fix possible buffer overflow.
42316
42317 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42318
42319         [BZ #13028]
42320         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42321         address.
42322
42323 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42324
42325         [BZ #832]
42326         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42327         testing pipefail option.
42328
42329 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42330
42331         * soft-fp/double.h: Indent preprocessor directives inside #if.
42332         * soft-fp/extended.h: Likewise.
42333         * soft-fp/op-2.h: Likewise.
42334         * soft-fp/op-4.h: Likewise.
42335         * soft-fp/op-common.h: Likewise.
42336         * soft-fp/quad.h: Likewise.
42337         * soft-fp/single.h: Likewise.
42338         * soft-fp/soft-fp.h: Likewise.
42339
42340 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42341
42342         * iconv/iconv_prog.c: Fix typos.
42343         * stdio-common/psiginfo-data.h: Likewise.
42344
42345 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42346
42347         [BZ #15764]
42348         * locale/setlocale.c: Fix typo.
42349
42350 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42351
42352         [BZ #16036]
42353         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42354         signaling NaN arguments.
42355         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42356         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42357
42358         [BZ #14910]
42359         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42360         unordered operands.
42361         * soft-fp/gesf2.c (__gesf2): Likewise.
42362         * soft-fp/getf2.c (__getf2): Likewise.
42363         * soft-fp/ledf2.c (__ledf2): Likewise.
42364         * soft-fp/lesf2.c (__lesf2): Likewise.
42365         * soft-fp/letf2.c (__letf2): Likewise.
42366
42367         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42368         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42369         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42370         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42371         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42372         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42373         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42374         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42375         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42376         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42377         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42378         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42379         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42380         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42381         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42382         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42383         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42384         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42385         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42386         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42387         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42388         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42389         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42390         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42391         * soft-fp/floattidf.c (__floattidf): Likewise.
42392         * soft-fp/floattisf.c (__floattisf): Likewise.
42393         * soft-fp/floattitf.c (__floattitf): Likewise.
42394         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42395         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42396         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42397         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42398         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42399         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42400         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42401         * soft-fp/gesf2.c (__gesf2): Likewise.
42402         * soft-fp/getf2.c (__getf2): Likewise.
42403         * soft-fp/ledf2.c (__ledf2): Likewise.
42404         * soft-fp/lesf2.c (__lesf2): Likewise.
42405         * soft-fp/letf2.c (__letf2): Likewise.
42406
42407         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42408         Undefine and redefine.
42409         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42410         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42411         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42412         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42413         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42414         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42415         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42416         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42417         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42418         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42419         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42420         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42421         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42422         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42423         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42424
42425         [BZ #16032]
42426         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42427         without decrementing exponent if mantissa >= that for the
42428         denominator, not >.
42429         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42430         denominator, not >.  Decrement exponent in < case instead of
42431         incrementing in >= case.
42432         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42433         without decrementing exponent if mantissa >= that for the
42434         denominator, not >.
42435
42436         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42437         computing saturated result for unsigned overflow.
42438
42439 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42440             Jeff Law  <law@redhat.com>
42441
42442         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42443         (atan2Mp): Add systemtap probe marker.
42444         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42445         (__ieee754_log): Add systemtap probe marker.
42446         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42447         (atanMp): Add systemtap probe marker.
42448         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42449         (tanMp): Add systemtap probe marker.
42450         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42451         (__slowexp): Add systemtap probe marker.
42452         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42453         (__slowpow): Add systemtap probe marker.
42454         * manual/probes.texi: Document probes.
42455
42456 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42457
42458         [BZ #15362]
42459         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42460         written.
42461         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42462         written.
42463         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42464         written to buffer but not flushed.
42465         * libio/iofwrite_u.c:  Likewise.
42466         * libio/iopadn.c:  Return bytes returned even if EOF was
42467         encountered.
42468         * libio/iowpadn.c:  Likewise.
42469         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42470         if _IO_padn does not write the whole buffer.
42471         [!COMPILE_WPRINTF] (PAD): Likewise.
42472
42473 2013-10-10  David S. Miller  <davem@davemloft.net>
42474
42475         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42476         directory block.
42477
42478 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42479
42480         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42481         instead of FSF address.
42482         * soft-fp/fixdfti.c: Likewise.
42483         * soft-fp/fixsfti.c: Likewise.
42484         * soft-fp/fixtfti.c: Likewise.
42485         * soft-fp/fixunsdfti.c: Likewise.
42486         * soft-fp/fixunssfti.c: Likewise.
42487         * soft-fp/fixunstfti.c: Likewise.
42488         * soft-fp/floattidf.c: Likewise.
42489         * soft-fp/floattisf.c: Likewise.
42490         * soft-fp/floattitf.c: Likewise.
42491         * soft-fp/floatuntidf.c: Likewise.
42492         * soft-fp/floatuntisf.c: Likewise.
42493         * soft-fp/floatuntitf.c: Likewise.
42494         * soft-fp/trunctfxf2.c: Likewise.
42495
42496         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42497         * soft-fp/fixdfti.c: Likewise.
42498         * soft-fp/fixsfti.c: Likewise.
42499         * soft-fp/fixtfti.c: Likewise.
42500         * soft-fp/fixunsdfti.c: Likewise.
42501         * soft-fp/fixunssfti.c: Likewise.
42502         * soft-fp/fixunstfti.c: Likewise.
42503         * soft-fp/floattidf.c: Likewise.
42504         * soft-fp/floattisf.c: Likewise.
42505         * soft-fp/floattitf.c: Likewise.
42506         * soft-fp/floatuntidf.c: Likewise.
42507         * soft-fp/floatuntisf.c: Likewise.
42508         * soft-fp/floatuntitf.c: Likewise.
42509         * soft-fp/trunctfxf2.c: Likewise.
42510
42511 2013-10-10  David S. Miller  <davem@davemloft.net>
42512
42513         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42514
42515 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42516
42517         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42518         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42519         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42520         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42521         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42522         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42523         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42524
42525         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42526         for NaNs before doing comparisons on argument.
42527         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42528         Likewise.
42529
42530 2013-10-10  Will Newton  <will.newton@linaro.org>
42531
42532         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42533         passed to _int_memalign does not overflow.
42534
42535 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42536
42537         * scripts/bench.pl: Add include-sources directive.
42538         * benchtests/README: Update documentation.
42539
42540 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42541
42542         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42543         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42544         instead of FP_INIT_ROUNDMODE.
42545         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42546         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42547
42548         [BZ #16034]
42549         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42550         copy class of input value.
42551         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42552         not handle exceptions.
42553         * soft-fp/negsf2.c (__negsf2): Likewise.
42554         * soft-fp/negtf2.c (__negtf2): Likewise.
42555         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42556
42557 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42558
42559         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42560         semicolon.  From Linux kernel.
42561
42562 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42563
42564         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42565
42566 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42567
42568         [BZ #156]
42569         * manual/socket.texi: Added statement about buffer
42570         for gethostbyname2_r.
42571
42572 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42573
42574         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42575         Use .p2align directive instead, throughout.
42576         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42577         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42578         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42579         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42580         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42581         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42582         * sysdeps/x86_64/strchr.S: Likewise.
42583         * sysdeps/x86_64/strrchr.S: Likewise.
42584
42585 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42586
42587         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42588
42589         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42590
42591         * sysdeps/generic/math_private.h (__mpsin1): Remove
42592         declaration.
42593         (__mpcos1): Likewise.
42594         (__mpsin): New argument __range_reduce.
42595         (__mpcos): Likewise.
42596         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42597         (slow): Use __mpsin and __mpcos.
42598         (slow1): Likewise.
42599         (slow2): Likewise.
42600         (sloww): Likewise.
42601         (sloww1): Likewise.
42602         (sloww2): Likewise.
42603         (bsloww): Likewise.
42604         (bsloww1): Likewise.
42605         (bsloww2): Likewise.
42606         (cslow2): Likewise.
42607         (csloww): Likewise.
42608         (csloww1): Likewise.
42609         (csloww2): Likewise.
42610         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42611         range_reduce.  Merge in __mpsin1.
42612         (__mpcos): Likewise.
42613         (__mpsin1): Remove.
42614         (__mpcos1): Likewise.
42615
42616 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42617
42618         * locale/loadlocale.c (_nl_intern_locale_data): Use
42619         LOCFILE_ALIGNED_P.
42620         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42621         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42622         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42623         obstack data is appropriately aligned.
42624         (obstack_int32_grow_fast): Likewise.
42625         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42626         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42627         (add_locale_uint32_array): Likewise.
42628
42629 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42630
42631         * benchtests/Makefile: Remove ARGLIST and RET variables.
42632         ($(objpfx)bench-%.c): Pass only function name to the script.
42633         * benchtests/README: Update documentation.
42634         * benchtests/acos-inputs: Add new directives.
42635         * benchtests/acosh-inputs: Likewise.
42636         * benchtests/asin-inputs: Likewise.
42637         * benchtests/asinh-inputs: Likewise.
42638         * benchtests/atan-inputs: Likewise.
42639         * benchtests/atanh-inputs: Likewise.
42640         * benchtests/cos-inputs: Likewise.
42641         * benchtests/cosh-inputs: Likewise.
42642         * benchtests/exp-inputs: Likewise.
42643         * benchtests/log-inputs: Likewise.
42644         * benchtests/pow-inputs: Likewise.
42645         * benchtests/rint-inputs: Likewise.
42646         * benchtests/sin-inputs: Likewise.
42647         * benchtests/sinh-inputs: Likewise.
42648         * benchtests/tan-inputs: Likewise.
42649         * benchtests/tanh-inputs: Likewise.
42650         * scripts/bench.pl: Add support for new directives.
42651
42652 2013-10-07  Alan Modra  <amodra@gmail.com>
42653
42654         * README: Fix careless merge.
42655
42656 2013-10-05  Alan Modra  <amodra@gmail.com>
42657
42658         * NEWS: Mention powerpc64le support and bugs fixed.
42659         * README: Both big-endian and little-endian powerpc64 supported.
42660
42661 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42662
42663         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42664         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42665         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42666         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42667
42668 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42669
42670         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42671         match prototype.
42672
42673 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42674
42675         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42676         Move -mhard-float appending from
42677         ports/sysdeps/powerpc/powerpc32/Makefile.
42678         [$(with-fp) = yes] (ASFLAGS): Likewise.
42679         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42680         * sysdeps/powerpc/nofpu: Move directory from
42681         ports/sysdeps/powerpc/nofpu.
42682         * sysdeps/powerpc/soft-fp: Move directory from
42683         ports/sysdeps/powerpc/soft-fp.
42684         * sysdeps/powerpc/powerpc32/405: Move directory from
42685         ports/sysdeps/powerpc/powerpc32/405.
42686         * sysdeps/powerpc/powerpc32/440: Move directory from
42687         ports/sysdeps/powerpc/powerpc32/440.
42688         * sysdeps/powerpc/powerpc32/464: Move directory from
42689         ports/sysdeps/powerpc/powerpc32/464.
42690         * sysdeps/powerpc/powerpc32/476: Move directory from
42691         ports/sysdeps/powerpc/powerpc32/476.
42692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42693         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42695         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42697         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42699         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42701         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42702         * README: Update for powerpc-*-linux-gnu software floating point
42703         support in libc.
42704
42705         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42706         case to powerpc/powerpc32*.
42707         * sysdeps/unix/sysv/linux/configure: Regenerated.
42708
42709         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42710         (_FPU_MASK_OM): Define as 0x04.
42711         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42712         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42713         0x00c10080.
42714         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42715         0x0000003c.
42716         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42717
42718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42719         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42720         getcontext_e500.
42721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42722         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42723         setcontext_e500.
42724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42725         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42726         and setcontext_e500.
42727
42728 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42729
42730         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42731
42732 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42733
42734         * manual/threads.texi (Default Thread Attributes): Fix typo.
42735
42736 2013-10-04  Will Newton  <will.newton@linaro.org>
42737
42738         * malloc/Makefile: Add tst-memalign.
42739         * malloc/tst-memalign.c: New file.
42740
42741         * malloc/tst-posix_memalign.c: Add comments.
42742         (do_test): Add comments and call free on all potentially
42743         allocated pointers. Add space after cast.
42744
42745         * malloc/tst-pvalloc.c: Add comments.
42746         (do_test): Add comments and call free on all potentially
42747         allocated pointers. Remove duplicate check for NULL pointer.
42748         Add space after cast.
42749
42750         * malloc/tst-valloc.c: Add comments.
42751         (do_test): Add comments and call free on all potentially
42752         allocated pointers. Remove duplicate check for NULL pointer.
42753         Add space after cast.
42754
42755 2013-10-04  Alan Modra  <amodra@gmail.com>
42756
42757         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42758         Use stdint types in rather than __attribute__((mode())).
42759         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42760
42761 2013-10-04  Alan Modra  <amodra@gmail.com>
42762
42763         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42764         Correct handling of unaligned relocs for little-endian.
42765         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42766
42767 2013-10-04  Alan Modra  <amodra@gmail.com>
42768
42769         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42770         * configure: Regenerate.
42771         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42772         * shlib-versions: Likewise.
42773
42774 2013-10-04  Alan Modra  <amodra@gmail.com>
42775
42776         * string/tester.c (test_memrchr): Increment reported test cycle.
42777
42778 2013-10-04  Alan Modra  <amodra@gmail.com>
42779
42780         * string/test-memcpy.c (do_one_test): When reporting errors, print
42781         string address and don't overrun end of string.
42782
42783 2013-10-04  Alan Modra  <amodra@gmail.com>
42784
42785         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42786         insrdi.  Make better use of reg selection to speed exit slightly.
42787         Schedule entry path a little better.  Remove useless "are we done"
42788         checks on entry to main loop.  Handle wrapping around zero address.
42789         Correct main loop count.  Handle single left-over word from main
42790         loop inline rather than by using loop_small.  Remove extra word
42791         case in loop_small caused by wrong loop count.  Add little-endian
42792         support.
42793         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42794         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42795         cache hint.
42796         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42797         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42798         support.  Avoid rlwimi.
42799         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42800
42801 2013-10-04  Alan Modra  <amodra@gmail.com>
42802
42803         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42804         insrdi.  Formatting.
42805         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42806         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42807         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42808         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42809         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42810         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42811
42812 2013-10-04  Alan Modra  <amodra@gmail.com>
42813
42814         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42815         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42816         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42817         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42818         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42819         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42820         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42821         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42822         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42823         use of regs.  Use power7 mtocrf.  Tidy function tails.
42824
42825 2013-10-04  Alan Modra  <amodra@gmail.com>
42826
42827         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42828         Formatting.  Consistently use rXXX register defines or rN defines.
42829         Use early exit labels that avoid restoring unused non-volatile regs.
42830         Make cr field use more consistent with rWORDn compares.  Rename
42831         regs used as shift registers for unaligned loop, using rN defines
42832         for short lifetime/multiple use regs.
42833         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42834         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42835         addi 1,1,64 to pop stack frame.  Simplify return value code.
42836         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42837
42838 2013-10-04  Alan Modra  <amodra@gmail.com>
42839
42840         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42841         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42842         rather than rlwimi.
42843         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42844         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42845         little-endian support.  Correct typos.
42846         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42847         rather than rlwimi.
42848         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
42849         in loop and entry code to keep "and." results.
42850         (strchr): Add little-endian support.  Comment.  Move cntlzd
42851         earlier in tail.
42852         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
42853
42854 2013-10-04  Alan Modra  <amodra@gmail.com>
42855
42856         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
42857         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
42858         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
42859         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
42860
42861 2013-10-04  Alan Modra  <amodra@gmail.com>
42862
42863         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
42864         (rTMP): Define as r11.
42865         (strcmp): Add little-endian support.  Optimise tail.
42866         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
42867         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
42868         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
42869         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42870         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
42871         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42872         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42873
42874 2013-10-04  Alan Modra  <amodra@gmail.com>
42875
42876         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
42877         little-endian support.  Remove unnecessary "are we done" tests.
42878         Handle "s" wrapping around zero and extremely large "size".
42879         Correct main loop count.  Handle single left-over word from main
42880         loop inline rather than by using small_loop.  Correct comments.
42881         Delete "zero" tail, use "end_max" instead.
42882         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
42883
42884 2013-10-04  Alan Modra  <amodra@gmail.com>
42885
42886         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
42887         support.  Don't branch over align.
42888         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
42889         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
42890         support.  Rearrange tmp reg use to suit.  Comment.
42891         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
42892
42893 2013-10-04  Alan Modra  <amodra@gmail.com>
42894
42895         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
42896
42897 2013-10-04  Alan Modra  <amodra@gmail.com>
42898
42899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
42900         conditional form of branch and link when obtaining pc.
42901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42902
42903 2013-10-04  Alan Modra  <amodra@gmail.com>
42904
42905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
42906         HIWORD/LOWORD.
42907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
42908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
42909
42910 2013-10-04  Alan Modra  <amodra@gmail.com>
42911
42912         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
42913         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
42914         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
42915         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
42916         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
42917         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
42918         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
42919         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
42920         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
42921         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
42922
42923 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42924             Alistair Popple <alistair@ozlabs.au.ibm.com>
42925             Alan Modra <amodra@gmail.com>
42926
42927         [BZ #15723]
42928         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
42929         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
42930         _dl_hwcap access for little-endian.
42931         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
42932         destroy vmx regs when saving unaligned.
42933         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
42934         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
42935         destroy vmx regs when saving unaligned.
42936
42937 2013-10-04  Alan Modra  <amodra@gmail.com>
42938
42939         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
42940         Don't use a union to pack hi/low value.
42941
42942 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42943
42944         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
42945         for little-endian.
42946         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
42947         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
42948         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
42949         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
42950         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
42951
42952 2013-10-04  Alan Modra  <amodra@gmail.com>
42953
42954         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
42955         constants to usual value for .cst8 section, and remove redundant
42956         high address load.
42957         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
42958         constant for 0x1p52.  Load little-endian words of double from
42959         correct stack offsets.
42960
42961 2013-10-04  Alan Modra  <amodra@gmail.com>
42962
42963         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
42964         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
42965         words of double from correct stack offsets.
42966         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
42967         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
42968         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
42969         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
42970         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
42971         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
42972         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
42973         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
42974         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
42975         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
42976         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
42977         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
42978         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
42979         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
42980         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
42981         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
42982         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
42983
42984 2013-10-04  Alan Modra  <amodra@gmail.com>
42985
42986         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
42987         64-bit int/double union.
42988         (_FPU_SETCW): Likewise.
42989         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
42990         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
42991
42992 2013-10-04  Alan Modra  <amodra@gmail.com>
42993
42994         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
42995         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
42996
42997 2013-10-04  Alan Modra  <amodra@gmail.com>
42998
42999         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43000         use vector int constants.
43001         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43002
43003 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43004
43005         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43006         array with long long.
43007         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43008         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43009         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43010         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43011         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43012         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43013         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43014         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43015         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43016         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43017         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43018         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43019         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43020
43021 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43022
43023         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43024         (__signbit): Likewise.  Correct for little-endian.
43025         (__signbitl): Call __signbit.
43026         (lrint): Correct for little-endian.
43027         (lrintf): Call lrint.
43028
43029 2013-10-04  Alan Modra  <amodra@gmail.com>
43030
43031         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43032         union 32-bit int array member with 64-bit int array.
43033         (t515, tm256): Double rather than long double.
43034         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43035
43036 2013-10-04  Alan Modra  <amodra@gmail.com>
43037
43038         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43039         Delete.
43040         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43041         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43042         version of math_ldbl.h.
43043
43044 2013-10-04  Alan Modra  <amodra@gmail.com>
43045
43046         [BZ #15734], [BZ #15735]
43047         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43048         all uses of ieee875 long double macros and unions.  Simplify test
43049         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43050         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43051         normalize after ldbl_extract_mantissa, and don't add hidden bit
43052         already handled.  Don't treat low word of ieee854 mantissa like
43053         low word of IBM long double and mask off bit when testing for
43054         zero.
43055         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43056         all uses of ieee875 long double macros and unions.  Simplify tests
43057         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43058         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43059         two1022, instead use their values.  Recognise that tests for large
43060         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43061         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43062         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43063         test for 0.0L and nan.  Correct negation.
43064         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43065         ieee875 long double macros and unions.  Correct output for large
43066         magnitude x.  Correct absolute value calculation.
43067         (__erfcl): Likewise.
43068         * math/libm-test.inc: Add tests for errors discovered in IBM long
43069         double versions of fmodl, remainderl, erfl and erfcl.
43070
43071 2013-10-04  Alan Modra  <amodra@gmail.com>
43072
43073         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43074         all uses of ieee854 long double macros and unions.  Simplify tests
43075         for long doubles that are fully specified by the high double.
43076         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43077         Likewise.
43078         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43079         Remove dead code too.
43080         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43081         (__ieee754_ynl): Likewise.
43082         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43083         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43084         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43085         Remove dead code too.
43086         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43087         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43088         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43089         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43090         Simplify.
43091         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43092         Simplify.
43093         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43094         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43095         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43096         Comment on variable precision.
43097         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43099         Likewise.
43100         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43101         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43102         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43103         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43104         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43105
43106 2013-10-04  Alan Modra  <amodra@gmail.com>
43107
43108         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43109         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43110         all uses of ieee854 long double macros and unions.
43111         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43112         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43113         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43114         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43115         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43116         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43117         Likewise.
43118         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43119         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43120         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43121         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43122         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43123         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43124         Simplify sign and nan test too.
43125         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43126         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43127         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43128         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43129         Likewise.
43130         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43131         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43132         Likewise.
43133         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43134         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43135         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43136         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43137         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43138         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43139
43140 2013-10-04  Alan Modra  <amodra@gmail.com>
43141
43142         * stdio-common/printf_size.c (__printf_size): Don't use
43143         union ieee854_long_double in fpnum union.
43144         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43145         signbit macro to retrieve sign from long double.
43146         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43147         retrieve sign from long double.
43148         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43149         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43150         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43151         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43152         * math/test-misc.c (main): Don't use union ieee854_long_double.
43153
43154 2013-10-04  Alan Modra  <amodra@gmail.com>
43155
43156         [BZ #15680]
43157         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43158         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43159         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43160         calculation.  Remove unnecessary test for denormal exponent.
43161         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43162         Correct handling of denormals.  Avoid undefined shift behaviour.
43163         Correct normalisation of low mantissa when low double is denormal.
43164         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43165         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43166         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43167         Correct normalisation of low mantissa.  Test for overflow of high
43168         mantissa and normalise.
43169         (ldbl_nearbyint): Use more readable constant for two52.
43170         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43171         (__mpn_construct_long_double): Fix test for overflow of high
43172         mantissa and correct normalisation.  Avoid undefined shift.
43173
43174 2013-10-04  Alan Modra  <amodra@gmail.com>
43175
43176         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43177         (union ibm_extended_long_double): Define as an array of ieee754_double.
43178         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43179         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43180         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43181         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43182         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43183         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43184         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43185         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43186         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43187         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43188         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43189
43190 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43191
43192         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43193         page size instead of calling getpagesize.
43194
43195         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43196         (LOCFILE_ALIGN_MASK): Likewise.
43197         (LOCFILE_ALIGN_UP): Likewise.
43198         (LOCFILE_ALIGNED_P): Likewise.
43199         * locale/programs/ld-collate.c (collate_output): Use the new
43200         macros instead of __alignof__ (int32_t).
43201         * locale/weight.h (findidx): Likewise.
43202
43203 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43204
43205         [BZ #431]
43206         * manual/string.texi: Fix strncat and wcsncat.
43207
43208 2013-10-03  Brooks Moses  <bmoses@google.com>
43209
43210         [BZ #15915]
43211         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43212         * Makerules: ...here, and adjust associated comments.
43213
43214 2013-10-02  Will Newton  <will.newton@linaro.org>
43215
43216         * malloc/Makefile: Add tst-pvalloc.
43217         * malloc/tst-pvalloc.c: New file.
43218
43219 2013-10-02  Will Newton  <will.newton@linaro.org>
43220
43221         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43222         improve test coverage.
43223
43224 2013-10-02  Will Newton  <will.newton@linaro.org>
43225
43226         * malloc/Makefile: Add tst-posix_memalign.
43227         * malloc/tst-posix_memalign.c: New file.
43228
43229 2013-10-01  Eric Blake  <eblake@redhat.com>
43230
43231         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43232         Use __THROWNL rather than __THROW on static functions.
43233
43234 2013-09-30  Petr Machata  <pmachata@redhat.com>
43235
43236         * elf/elf.h (R_AARCH64_ABS16): New macro.
43237         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43238         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43239         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43240         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43241         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43242         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43243         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43244         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43245         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43246         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43247         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43248         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43249         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43250         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43251         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43252         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43253         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43254         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43255         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43256         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43257         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43258         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43259         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43260         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43261         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43262         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43263         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43264         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43265         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43266         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43267         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43268         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43269         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43270         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43271         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43272         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43273         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43274         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43275         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43276         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43277         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43278         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43279         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43280         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43281         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43282         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43283         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43284         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43285         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43286         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43287         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43288         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43289         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43290         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43291         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43292         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43293         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43294         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43295         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43296         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43297         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43298         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43299         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43300         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43301         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43302         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43303         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43304         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43305         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43306         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43307         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43308         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43309         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43310         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43311         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43312         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43313         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43314         (R_AARCH64_TLSDESC_LDR): Likewise.
43315         (R_AARCH64_TLSDESC_ADD): Likewise.
43316         (R_AARCH64_TLSDESC_CALL): Likewise.
43317
43318 2013-09-30  Andreas Schwab  <schwab@suse.de>
43319
43320         [BZ #15048]
43321         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43322         the nss database lookup.
43323         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43324         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43325
43326 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43327
43328         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43329
43330 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43331
43332         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43333         ${Bash-specific parameter/pattern/string} parameter expansion.
43334         * sysdeps/unix/make-syscalls.sh: Likewise.
43335
43336 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43337
43338         * sysdeps/sh/stackguard-macros.h: New file.
43339
43340 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43341
43342         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43343         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43344         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43345         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43346         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43347         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43348
43349 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43350
43351         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43352         Fix thread ID register.
43353
43354 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43355
43356         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43357         [POSIX || UNIX98]: Require rather than permitting all symbols from
43358         <time.h>.
43359         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43360         element of struct sched_param.
43361         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43362         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43363         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43364         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43365         constant.
43366
43367 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43368
43369         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43370         argument calculation.
43371
43372 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43373
43374         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43375         Expect macro.
43376         [POSIX] (pthread_attr_t): Do not require type.
43377         [POSIX] (pthread_cond_t): Likewise.
43378         [POSIX] (pthread_condattr_t): Likewise.
43379         [POSIX] (pthread_key_t): Likewise.
43380         [POSIX] (pthread_mutex_t): Likewise.
43381         [POSIX] (pthread_mutexattr_t): Likewise.
43382         [POSIX] (pthread_once_t): Likewise.
43383         [POSIX] (pthread_t): Likewise.
43384         [POSIX-based standards] (pthread_atfork): Expect function.
43385
43386 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43387             Richard Sandiford  <richard@codesourcery.com>
43388
43389         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43390         (swap_endianness_p): New extern variable.
43391         (set_big_endian): New inline function.
43392         (maybe_swap_uint32): Likewise.
43393         (maybe_swap_uint32_array): Likewise.
43394         (maybe_swap_uint32_obstack): Likewise.
43395         * locale/programs/locfile.c: Include <stdbool.h>.
43396         (swap_endianness_p): New variable.
43397         (add_locale_uint32): Call maybe_swap_uint32.
43398         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43399         (write_locale_data): Call maybe_swap_uint32_array.
43400         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43401         maybe_swap_uint32.
43402         (obstack_int32_grow_fast): Likewise.
43403         (output_weightwc): Call maybe_swap_uint32_obstack.
43404         (collate_output): Likewise.
43405         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43406         (OPT_LITTLE_ENDIAN): Likewise.
43407         (options): Add --little-endian and --big-endian options.
43408         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43409         * locale/programs/locarchive.c: Include "locfile.h".
43410         (GET): New macro.
43411         (SET): Likewise.
43412         (INC): Likewise.
43413         (create_archive): Use the new macros to access fields of
43414         structures directly mapped from or written to locale archives.
43415         (oldlocrecentcmp): Likewise.
43416         (enlarge_archive): Likewise.
43417         (insert_name): Likewise.
43418         (add_alias): Likewise.
43419         (add_locale): Likewise.
43420         (delete_locales_from_archive): Likewise.
43421         (show_archive_content): Likewise.
43422         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43423         locale data.
43424
43425 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43426
43427         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43428         http://www.gnu.org/doc/freemanuals.texi.
43429         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43430
43431 2013-09-24  Will Newton  <will.newton@linaro.org>
43432
43433         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43434         macro.
43435
43436 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43437
43438         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43439         unsigned char.
43440
43441 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43442
43443         * manual/threads.texi (POSIX Threads): Fix a typo.
43444
43445 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43446
43447         [BZ #14547]
43448         * string/tst-strcoll-overflow.c: New test case.
43449         * string/Makefile (xtests): Add tst-strcoll-overflow.
43450         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43451         cache if string sizes may cause integer overflow.
43452
43453         [BZ #14547]
43454         * string/strcoll_l.c (coll_seq): New members rule, idx,
43455         save_idx and back_us.
43456         (get_next_seq_nocache): New function.
43457         (do_compare_nocache): New function.
43458         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43459         when malloc fails.
43460
43461 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43462
43463         [BZ #15754]
43464         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43465         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43466         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43467
43468         [BZ #15754]
43469         * elf/Makefile (tests): Add tst-ptrguard1.
43470         (tests-static): Add tst-ptrguard1-static.
43471         (tst-ptrguard1-ARGS): Define.
43472         (tst-ptrguard1-static-ARGS): Define.
43473         * elf/tst-ptrguard1.c: New file.
43474         * elf/tst-ptrguard1-static.c: New file.
43475         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43476         * sysdeps/i386/stackguard-macros.h: Likewise.
43477         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43478         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43479         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43480         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43481         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43482         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43483
43484 2013-09-23  Hector Marco  <hecmargi@upv.es>
43485             Ismael Ripoll  <iripoll@disca.upv.es>
43486             Carlos O'Donell  <carlos@redhat.com>
43487
43488         [BZ #15754]
43489         * sysdeps/generic/stackguard-macros.h: Define
43490         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43491         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43492         Define __pointer_chk_guard_local.
43493         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43494         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43495
43496 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43497
43498         [BZ #15859]
43499         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43500
43501 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43502
43503         * include/string.h (__ffs): Declare as hidden.
43504         * string/ffs.c (__ffs): Define as hidden.
43505         * sysdeps/i386/ffs.c (__ffs): Likewise.
43506         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43507         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43508         * sysdeps/s390/ffs.c (__ffs): Likewise.
43509         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43510
43511 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43512
43513         * NEWS: Mention malloc probes.
43514
43515         * malloc/arena.c (new_heap): New memory_heap_new probe.
43516         (grow_heap): New memory_heap_more probe.
43517         (shrink_heap): New memory_heap_less probe.
43518         (heap_trim): New memory_heap_free probe.
43519         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43520         (systrim): New memory_sbrk_less probe.
43521         * manual/probes.texi: Document them.
43522
43523         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43524         * manual/probes.texi: Document it.
43525
43526         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43527         (__libc_realloc): Add memory_realloc_retry probe.
43528         (__libc_memalign): Add memory_memalign_retry probe.
43529         (__libc_valloc): Add memory_valloc_retry probe.
43530         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43531         (__libc_calloc): Add memory_calloc_retry probe.
43532         * manual/probes.texi: Document them.
43533
43534         * malloc/arena.c (get_free_list): Add probe
43535         memory_arena_reuse_free_list.
43536         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43537         and memory_arena_reuse.
43538         (arena_get2) [!PER_THREAD]: Likewise.
43539         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43540         memory_arena_reuse_realloc.
43541         * manual/probes.texi: Document them.
43542
43543         * malloc/malloc.c (__libc_free): Add
43544         memory_mallopt_free_dyn_thresholds probe.
43545         (__libc_mallopt): Add multiple memory_mallopt probes.
43546         * manual/probes.texi: Document them.
43547
43548         * malloc/malloc.c: Include stap-probe.h.
43549         (__libc_mallopt): Add memory_mallopt probe.
43550         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43551         * manual/probes.texi: New.
43552         * manual/Makefile (chapters): Add probes.
43553         * manual/threads.texi: Set next node.
43554
43555 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43556
43557         [BZ #15963, #13985]
43558         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43559         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43560         Add `Chinese' to `nan' entry name.
43561
43562 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43563
43564         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43565         (POLYNOMIAL): Likewise.
43566         (TAYLOR_SINCOS): Likewise.
43567         (TAYLOR_SLOW): Likewise.
43568         (__sin): Use TAYLOR_SINCOS.
43569         (__cos): Likewise.
43570         (slow): Use TAYLOR_SLOW.
43571         (sloww): Likewise.
43572         (bsloww): Likewise.
43573         (csloww): Likewise.
43574
43575 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43576
43577         * stdlib/strtod_l.c: Fix buffer overrun.
43578
43579 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43580
43581         * benchtests/Makefile (bench): Add sincos.
43582         * benchtests/bench-sincos.c: New file.
43583
43584         * math/libm-test.inc (cos_test_data): New test inputs.
43585         (sin_test_data): Likewise.
43586
43587         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43588         macro.
43589         (__sin): Use it.
43590         (__cos): Likewise.
43591         (slow1): Likewise.
43592         (slow2): Likewise.
43593         (sloww1): Likewise.
43594         (sloww2): Likewise.
43595         (bsloww1): Likewise.
43596         (bsloww2): Likewise.
43597         (cslow2): Likewise.
43598         (csloww1): Likewise.
43599         (csloww2): Likewise.
43600
43601         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43602         function.
43603         (__sin): Use it.
43604         (__cos): Likewise.
43605
43606         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43607         gotos.
43608         (__cos): Likewise.
43609
43610 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43611
43612         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43613         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43614         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43615         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43616         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43617         * elf/cache.c (print_entry): Handle the new cache flags.
43618
43619 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43620             Aldy Hernandez  <aldyh@redhat.com>
43621
43622         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43623         Change condition to [_SOFT_FLOAT].
43624         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43625         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43626         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43627         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43628         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43629         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43630         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43631         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43632         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43633         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43634         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43635         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43636         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43637         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43638         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43639         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43640         declaration.
43641
43642 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43643
43644         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43645         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43646         (__longjmp): Use LOAD_GP to load saved GPRs.
43647         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43648         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43649         (__sigsetjmp): Use SAVE_GP to save GPRs.
43650
43651         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43652         Do not append -msoft-float.
43653         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43654
43655 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43656
43657         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43658
43659 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43660
43661         [BZ #15966]
43662         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43663         (_FPU_GETCW): Use initial "__" on variable and field names but not
43664         on macro parameter name.
43665         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43666         parentheses around reference to macro parameter.
43667
43668 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43669
43670         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43671         prototype.
43672         (ctype_startup): Use uint32_t in cast and sizeof for
43673         ctype->charnames.
43674
43675 2013-09-11  Jia Liu  <proljc@gmail.com>
43676
43677         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43678         __daddr_t_defined.
43679         [__FreeBSD__]: Likewise.
43680
43681 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43682
43683         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43684         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43685         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43686         (strchr): Remove __strchr_sse42 ifunc selection.
43687         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43688         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43689
43690 2013-09-11  Will Newton  <will.newton@linaro.org>
43691
43692         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43693         parameter to RES. Remove hardcoded 1000 value.
43694         * benchtests/bench-skeleton.c (main): Pass RES parameter
43695         to TIMING_INIT and multiply result by 1000.
43696
43697 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43698
43699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43700
43701 2013-09-11  Andreas Schwab  <schwab@suse.de>
43702
43703         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43704         if not defined.
43705         (O_TMPFILE) [__USE_GNU]: Define.
43706         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43707         Define.
43708
43709 2013-09-11  Will Newton  <will.newton@linaro.org>
43710
43711         [BZ #15857]
43712         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43713         does not overflow.
43714
43715 2013-09-11  Will Newton  <will.newton@linaro.org>
43716
43717         [BZ #15856]
43718         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43719         does not overflow.
43720
43721 2013-09-11  Will Newton  <will.newton@linaro.org>
43722
43723         [BZ #15855]
43724         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43725         does not overflow.
43726
43727 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43728
43729         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43730         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43731         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43732         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43733         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43734
43735 2013-09-10  Allan McRae  <allan@archlinux.org>
43736
43737         [BZ #15748]
43738         * manual/arith.texi (Parsing of Floats): Clarify
43739         cross-reference.
43740
43741         [BZ #15849]
43742         * manual/install.texi (Running make install): Mention
43743         --enable-pt-chown.
43744         * INSTALL: Regenerated.
43745
43746 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43747
43748         * csu/init-first.c (_init): Remove the !SHARED condition around
43749         FPU control word initialization.
43750         * elf/dl-support.c (_dl_fpu_control): New variable.
43751         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43752         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43753         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43754         * math/test-fpucw-static.c: New file.
43755         * math/test-fpucw-ieee.c: New file.
43756         * math/test-fpucw-ieee-static.c: New file.
43757         * math/Makefile (tests): Add `test-fpucw-ieee' and
43758         `$(tests-static)'.
43759         (tests-static): New variable.
43760         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43761         dependency to...
43762         [($(build-shared),yes)]
43763         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43764         ... this.
43765         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43766         New dependency.
43767
43768 2013-09-09  Allan McRae  <allan@archlinux.org>
43769
43770         [BZ #15939]
43771         * manual/string.texi (Collation Functions): Fix typo in
43772         strcoll example.
43773         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43774
43775         [BZ #15893]
43776         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43777
43778         [BZ #15892]
43779         * libio/memstream.c (open_memstream): Fix memory leak.
43780         * libio/wmemstream.c (open_wmemstream): Likewise.
43781
43782         [BZ #15895]
43783         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43784
43785 2013-09-09  Will Newton  <will.newton@linaro.org>
43786
43787         * malloc/Makefile: Add tst-realloc to tests.
43788         * malloc/tst-realloc.c: New file.
43789
43790 2013-09-09  Allan McRae  <allan@archlinux.org>
43791
43792         [BZ #15844]
43793         * COPYING: Update from GNU website to fix FSF address.
43794         * COPYING.LIB: Likewise.
43795
43796 2013-09-06  David S. Miller  <davem@davemloft.net>
43797
43798         * po/zh_TW.po: Update Chinese (traditional) translation from
43799         translation project.
43800
43801 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43802             Joseph Myers  <joseph@codesourcery.com>
43803
43804         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43805         "localeinfo.h".
43806         (obstack_chunk_alloc): New macro.
43807         (obstack_chunk_free): Likewise.
43808         (record_offset): New function.
43809         (init_locale_data): Likewise.
43810         (align_locale_data): Likewise.
43811         (add_locale_empty): Likewise.
43812         (add_locale_raw_data): Likewise.
43813         (add_locale_raw_obstack): Likewise.
43814         (add_locale_string): Likewise.
43815         (add_locale_wstring): Likewise.
43816         (add_locale_uint32): Likewise.
43817         (add_locale_uint32_array): Likewise.
43818         (add_locale_char): Likewise.
43819         (start_locale_structure): Likewise.
43820         (end_locale_structure): Likewise.
43821         (start_locale_prelude): Likewise.
43822         (end_locale_prelude): Likewise.
43823         (write_locale_data): Take locale_file structure rather than an
43824         iovec.
43825         * locale/programs/locfile.h: Include "obstack.h".
43826         (struct locale_file): Change to store locale file contents instead
43827         of header.
43828         (init_locale_data): New prototype.
43829         (align_locale_data): Likewise.
43830         (add_locale_empty): Likewise.
43831         (add_locale_raw_data): Likewise.
43832         (add_locale_raw_obstack): Likewise.
43833         (add_locale_string): Likewise.
43834         (add_locale_wstring): Likewise.
43835         (add_locale_uint32): Likewise.
43836         (add_locale_uint32_array): Likewise.
43837         (add_locale_char): Likewise.
43838         (start_locale_structure): Likewise.
43839         (end_locale_structure): Likewise.
43840         (start_locale_prelude): Likewise.
43841         (end_locale_prelude): Likewise.
43842         (write_locale_data): Update prototype.
43843         * locale/programs/3level.h (struct TABLE): Remove result field.
43844         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43845         Use new locale_file interface.
43846         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43847         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43848         * locale/programs/ld-address.c (address_output): Use new
43849         locale_file interface.
43850         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
43851         NO_ADD_LOCALE.
43852         (collate_finish): Don't call collseq_table_finalize.
43853         (collate_output): Use new locale_file interface.
43854         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
43855         in file.
43856         (NO_FINALIZE): Change to NO_ADD_LOCALE.
43857         (TABLE): Move defines earlier in file.
43858         (ELEMENT): Likewise.
43859         (DEFAULT): Likewise.
43860         (wctrans_table_add): Move macro and inline function earlier in
43861         file.
43862         (struct wctype_table): Move type earlier in file.
43863         (add_locale_wctype_table): New static prototype.
43864         (struct locale_ctype_t): Use logical types instead of struct iovec
43865         pointers for members.
43866         (ctype_output): Use new locale_file interface.
43867         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
43868         new locale_file interface.
43869         (allocate_arrays): Update for use of new locale_file interface.
43870         * locale/programs/ld-identification.c (identification_output): Use
43871         new locale_file interface.
43872         * locale/programs/ld-measurement.c (measurement_output): Likewise.
43873         * locale/programs/ld-messages.c (messages_output): Likewise.
43874         * locale/programs/ld-monetary.c (monetary_output): Likewise.
43875         * locale/programs/ld-name.c (name_output): Likewise.
43876         * locale/programs/ld-numeric.c (numeric_output): Likewise.
43877         * locale/programs/ld-paper.c (paper_output): Likewise.
43878         * locale/programs/ld-telephone.c (telephone_output): Likewise.
43879         * locale/programs/ld-time.c (time_output): Likewise.
43880
43881 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43882
43883         * benchtests/Makefile: Add memrchr benchmark.
43884         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
43885         benchmark as memrchr.
43886         * benchtests/bench-memrchr-ifunc.c: New file.
43887         * benchtests/bench-memrchr.c: New file.
43888
43889 2013-09-06   Will Newton  <will.newton@linaro.org>
43890
43891         * benchtests/Makefile (string-bench): Add memcpy.
43892
43893 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
43894             Cong Wang  <amwang@redhat.com>
43895
43896         [BZ #15850]
43897         * sysdeps/unix/sysv/linux/bits/in.h
43898         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
43899         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
43900         before __USE_KERNEL_IPV6_DEFS uses.
43901         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
43902         IPPROTO_BEETPH.
43903         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
43904         sockaddr_in6, or ipv6_mreq.
43905
43906 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43907
43908         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
43909         memory access for final bytes in some large inputs.
43910         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
43911
43912 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43913
43914         * string/test-memrchr.c: New file.
43915         * string/test-memrchr-ifunc.c: New file.
43916         * string/Makefile: Add new memrchr testcase.
43917
43918 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
43919
43920         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
43921         fanotify_init returns EPERM.
43922
43923 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43924
43925         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
43926         errors.
43927         (top level): Treat second token from macro or constant entries for
43928         allowed headers as allowed.
43929         * include/complex.h: Condition internal declarations on
43930         [!_ISOMAC].
43931         * include/fenv.h: Condition include of <stdbool.h> and internal
43932         declarations on [!_ISOMAC].
43933
43934 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
43935
43936         [BZ #15923]
43937         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
43938
43939 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43940
43941         * configure.in (--enable-versioning): Remove configure option.
43942         (libc_cv_asm_symver_directive): Remove configure test.
43943         (libc_cv_ld_version_script_option): Likewise.
43944         (VERSIONING): Remove variable and AC_SUBST.
43945         (DO_VERSIONING): Remove AC_DEFINE.
43946         * configure: Regenerated.
43947         * config.h.in (DO_VERSIONING): Remove macro.
43948         * Makerules [$(versioning) = yes]: Change conditionals to
43949         [$(build-shared) = yes].
43950         * config.make.in (versioning): Remove variable.
43951         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
43952         [$(build-shared) = yes].
43953         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
43954         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
43955         * elf/Makefile [$(versioning) = yes]: Change conditionals to
43956         [$(build-shared) = yes].
43957         * extra-lib.mk [$(versioning) = yes]: Likewise.
43958         * hurd/Makefile [$(versioning) = yes]: Likewise.
43959         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
43960         [SHARED].
43961         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
43962         [SHARED].
43963         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43964         [SHARED && !NO_HIDDEN].
43965         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
43966         [SHARED].
43967         [SHARED && DO_VERSIONING]: Likewise..
43968         * libio/Makefile [$(versioning) = yes]: Change conditionals to
43969         [$(build-shared) = yes].
43970         * manual/install.texi (--disable-versioning): Remove
43971         documentation.
43972         * INSTALL: Regenerated.
43973         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
43974         to [SHARED].
43975         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
43976         [$(build-shared) = yes].
43977         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
43978         * sysdeps/i386/i686/multiarch/strstr-c.c
43979         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43980         [SHARED && !NO_HIDDEN].
43981         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
43982         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
43983         * sysdeps/powerpc/powerpc32/dl-machine.c
43984         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
43985         * sysdeps/powerpc/powerpc32/sysdep.h
43986         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
43987         to [SHARED && PIC && !NO_HIDDEN].
43988         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
43989         conditional to [SHARED].
43990
43991 2013-09-04   Will Newton  <will.newton@linaro.org>
43992
43993         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
43994         * benchtests/bench-string.h: Include bench-timing.h instead
43995         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
43996         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
43997         call to HP_TIMING_DIFF_INIT.
43998         * benchtests/bench-memccpy.c: Use bench-timing.h macros
43999         instead of hp-timing.h macros.
44000         * benchtests/bench-memchr.c: Likewise.
44001         * benchtests/bench-memcmp.c: Likewise.
44002         * benchtests/bench-memcpy.c: Likewise.
44003         * benchtests/bench-memmem.c: Likewise.
44004         * benchtests/bench-memmove.c: Likewise.
44005         * benchtests/bench-memset.c: Likewise.
44006         * benchtests/bench-rawmemchr.c: Likewise.
44007         * benchtests/bench-strcasecmp.c: Likewise.
44008         * benchtests/bench-strcasestr.c: Likewise.
44009         * benchtests/bench-strcat.c: Likewise.
44010         * benchtests/bench-strchr.c: Likewise.
44011         * benchtests/bench-strcmp.c: Likewise.
44012         * benchtests/bench-strcpy.c: Likewise.
44013         * benchtests/bench-strcpy_chk.c: Likewise.
44014         * benchtests/bench-strlen.c: Likewise.
44015         * benchtests/bench-strncasecmp.c: Likewise.
44016         * benchtests/bench-strncat.c: Likewise.
44017         * benchtests/bench-strncmp.c: Likewise.
44018         * benchtests/bench-strncpy.c: Likewise.
44019         * benchtests/bench-strnlen.c: Likewise.
44020         * benchtests/bench-strpbrk.c: Likewise.
44021         * benchtests/bench-strrchr.c: Likewise.
44022         * benchtests/bench-strspn.c: Likewise.
44023         * benchtests/bench-strstr.c: Likewise.
44024
44025 2013-09-04  Will Newton  <will.newton@linaro.org>
44026
44027         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44028
44029 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44030
44031         [BZ #15427]
44032         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44033         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44034         * math/libm-test.inc (lgamma_test_data): Add more tests.
44035         * sysdeps/i386/fpu/libm-test-ulps: Update.
44036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44037
44038 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44039
44040         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44041         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44042         Add ifunc.
44043         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44044         Add strcmp-sse2-unaligned
44045         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44046
44047 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44048
44049         * Versions.def (libc): Add GLIBC_2.19.
44050
44051 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44052
44053         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44054         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44055
44056 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44057
44058         [BZ #14155]
44059         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44060         intermediate calculations in recurrence.
44061         (__ieee754_ynf): Likewise.
44062         * math/libm-test.inc (jn_test_data): Do not allow spurious
44063         underflow exception.  Add more tests.
44064         (yn_test_data): Add more tests.
44065         * sysdeps/i386/fpu/libm-test-ulps: Update.
44066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44067
44068 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44069
44070         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44071
44072 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44073
44074         * csu/init-first.c: Fix then/than typos.
44075         * locale/programs/ld-collate.c: Likewise.
44076         * locale/programs/linereader.h: Likewise.
44077         * manual/charset.texi: Likewise.
44078         * manual/filesys.texi: Likewise.
44079         * manual/stdio.texi: Likewise.
44080         * manual/string.texi: Likewise.
44081         * stdlib/fmtmsg.c: Likewise.
44082         * sysdeps/i386/stpncpy.S: Likewise.
44083         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44084         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44085         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44086         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44087
44088 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44089
44090         * elf/dl-open.c: Fix typos.
44091         * iconvdata/gbbig5.c: Likewise.
44092         * iconvdata/iso-2022-jp.c: Likewise.
44093         * iconv/gconv_int.h: Likewise.
44094         * iconv/loop.c: Likewise.
44095         * nis/rpcsvc/nis.h: Likewise.
44096         * resolv/ns_name.c: Likewise.
44097         * stdio-common/vfscanf.c: Likewise.
44098         * streams/stropts.h: Likewise.
44099         * sunrpc/rpc_thread.c: Likewise.
44100         * sysdeps/i386/strpbrk.S: Likewise.
44101         * sysdeps/ieee754/k_standard.c: Likewise.
44102         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44103         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44104         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44105         * sysdeps/mach/hurd/profil.c: Likewise.
44106         * sysdeps/s390/dl-procinfo.h: Likewise.
44107         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44108         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44109         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44110         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44111         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44112
44113 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44114
44115         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44116         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44117
44118 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44119
44120         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44121         aix specific files.
44122         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44123         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44124         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44125         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44126         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44127         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44128         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44129         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44130
44131 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44132             Roland McGrath  <roland@hack.frob.com>
44133
44134         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44135         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44136
44137 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44138
44139         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44140         __executable_start symbol instead of _start.
44141
44142 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44143
44144         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44145         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44146         Move macros to...
44147         * sysdeps/gnu/ldsodefs.h: ... this new file.
44148
44149         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44150         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44151         instead of ELFOSABI_LINUX.
44152
44153         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44154         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44155         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44156         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44157         Likewise.
44158         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44159         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44160         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44161         Likewise.
44162         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44163         (ibm_extended_long_double): Add ieee_nan member.
44164         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44165         (do_test): New function.
44166
44167         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44168         TEST_TRUNC.
44169         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44170         functions, renamed from truncdfsf_test, trunctfsf_test,
44171         trunctfdf_test.
44172         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44173         functions.
44174         (do_test): Run all these.
44175
44176 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44177
44178         * argp/argp-help.c: Fix typos.
44179         * argp/argp-parse.c: Likewise.
44180         * debug/backtracesyms.c: Likewise.
44181         * elf/elf.h: Likewise.
44182         * malloc/malloc.c: Likewise.
44183         * nis/nis_print.c: Likewise.
44184         * resolv/res_comp.c: Likewise.
44185         * stdlib/stdlib.h: Likewise.
44186         * sunrpc/clnt_tcp.c: Likewise.
44187         * sunrpc/clnt_udp.c: Likewise.
44188         * sunrpc/clnt_unix.c: Likewise.
44189         * sysdeps/unix/bsd/ptsname.c: Likewise.
44190         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44191         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44193         Likewise.
44194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44195         Likewise.
44196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44197         Likewise.
44198         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44199
44200 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44201
44202         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44203         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44204
44205 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44206
44207         [BZ #15897]
44208         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44209         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44210         ($(objpfx)bug-dl-leaf): New rule.
44211         ($(objpfx)bug-dl-leaf.so): Likewise.
44212         ($(objpfx)bug-dl-leaf.out): Likewise.
44213         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44214         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44215         * dlfcn/bug-dl-leaf.c: New test.
44216         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44217         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44218         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44219         (dlclose): Likewise.
44220         (dlmopen): Likewise.
44221
44222 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44223
44224         * include/netdb.h [!_ISOMAC]:
44225         Don't include <tls.h>.
44226         (h_errno, __libc_h_errno): Move declaration and macros out of
44227         [_LIBC_REENTRANT].
44228
44229         * include/resolv.h [_RESOLV_H_]:
44230         Don't include <tls.h>.
44231         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44232         * resolv/res_libc.c: Don't include <tls.h>.
44233         (_res): Use __attribute__ ((nocommon)) in place of
44234         __attribute__ ((section (".bss"))).
44235
44236         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44237         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44238
44239         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44240
44241         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44242         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44243
44244         * resolv/res_mkquery.c: Include <sys/time.h>.
44245
44246         * inet/ifreq.c: Moved to ...
44247         * sysdeps/unix/ifreq.c: ... here.
44248         * inet/ifreq.c: New file, true stub version.
44249
44250         * socket/sa_len.c: New file.
44251         * socket/Makefile (aux): Add it.
44252         * sysdeps/unix/sysv/linux/Makefile
44253         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44254         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44255         and #include <socket/sa_len.c>.
44256         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44257         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44258
44259         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44260         * bits/socket.h: ... here.
44261
44262         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44263         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44264         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44265
44266 2013-08-27  Andreas Schwab  <schwab@suse.de>
44267
44268         [BZ #15736]
44269         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44270         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44271         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44272         * string/test-strcasecmp.c (test_main): Run tests in several
44273         locales.
44274         * string/test-strncasecmp.c (test_main): Likewise.
44275
44276         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44277         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44278         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44279         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44280         (__strncasecmp_ssse3) [PIC]: Likewise.
44281
44282 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44283
44284         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44285
44286         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44287         instead of explicitly declaring xdecrypt.
44288         * nis/nss_nis/nis-publickey.c: Likewise.
44289
44290 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44291
44292         [BZ #15890]
44293         * nscd/aicache.c: Include res_hconf.h.
44294         (addhstaiX): Initialize res_hconf.
44295
44296 2013-08-26  Andreas Schwab  <schwab@suse.de>
44297
44298         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44299         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44300
44301 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44302
44303         * nscd/aicache.c (addhstaiX): Fix indentation.
44304
44305 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44306
44307         * configure.ac: Quote $build_pt_chown test.
44308         * configure: Regenerated.
44309
44310 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44311
44312         [BZ #15532]
44313         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44314         * math/s_cexpf.c (__cexpf): Likewise.
44315         * math/s_cexpl.c (__cexpl): Likewise.
44316         * math/libm-test.inc (cexp_test_data): Correct expected return
44317         value for NaN + i0.  Add another test.
44318
44319 2013-08-22  David S. Miller  <davem@davemloft.net>
44320
44321         * po/ca.po: Update Catalan translation from translation project.
44322         * po/uk.po: Add Ukrainian translations from translation project.
44323
44324 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44325
44326         [BZ #15797]
44327         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44328         is infinite, not alongside NaN test.
44329         * math/s_fdimf.c (__fdimf): Likewise.
44330         * math/s_fdiml.c (__fdiml): Likewise.
44331         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44332         errno is unchanged.
44333
44334 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44335
44336         * argp/argp-help.c: Fix typos.
44337         * crypt/speeds.c: Likewise.
44338         * csu/check_fds.c: Likewise.
44339         * elf/dl-load.c: Likewise.
44340         * elf/dl-open.c: Likewise.
44341         * elf/reldep3.c: Likewise.
44342         * elf/reldep.c: Likewise.
44343         * elf/sprof.c: Likewise.
44344         * iconv/iconv_charmap.c: Likewise.
44345         * iconv/skeleton.c: Likewise.
44346         * iconv/strtab.c: Likewise.
44347         * io/lockf64.c: Likewise.
44348         * libio/libioP.h: Likewise.
44349         * resolv/gai_notify.c: Likewise.
44350         * resolv/ns_name.c: Likewise.
44351         * resolv/ns_samedomain.c: Likewise.
44352         * resolv/res_send.c: Likewise.
44353         * stdlib/random.c: Likewise.
44354         * sunrpc/rpc/xdr.h: Likewise.
44355         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44356         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44357         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44358         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44359         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44360         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44361         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44362         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44363         * sysdeps/mach/hurd/check_fds.c: Likewise.
44364         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44365         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44366         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44367         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44368         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44369         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44370         * sysdeps/pthread/aio_notify.c: Likewise.
44371         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44372         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44373         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44374         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44375         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44376
44377 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44378
44379         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44380         version if bit_Slow_SSE4_2 is set.
44381         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44382         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44383
44384 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44385
44386         [BZ #15867]
44387         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44388         trampoline stack frame information.
44389         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44390         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44391         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44392         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44393         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44394         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44395         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44396         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44397         sa_flags value.
44398         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44399         interrupting a syscall and set with option SA_SIGINFO.
44400
44401 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44402
44403         [BZ #15531]
44404         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44405         argument is infinite.
44406         * math/s_cprojf.c (__cprojf): Likewise.
44407         * math/s_cprojl.c (__cprojl): Likewise.
44408         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44409         * math/libm-test.inc (cproj_test_data): Add more tests.
44410
44411         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44412
44413         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44414         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44415         size.  Use __ffs to determine corresponding shift.
44416
44417 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44418             Roland McGrath  <roland@hack.frob.com>
44419
44420         * Makefile (INSTALL): Remove trailing blank lines from output of
44421         makeinfo.
44422
44423 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44424
44425         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44426         Align 32 bit compat elf_greg to 8 bytes.
44427
44428 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44429
44430         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44431
44432 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44433
44434         * string/strcoll_l.c (coll_seq): New structure.
44435         (get_next_seq_cached): New function.
44436         (get_next_seq): New function.
44437         (do_compare): New function.
44438         (STRCOLL): Use GNU style definition.  Simplify implementation
44439         by using get_next_seq, get_next_seq_cached and do_compare.
44440
44441 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44442
44443         [BZ #14699]
44444         CVE-2013-4237
44445         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44446         member.
44447         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44448         member.
44449         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44450         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44451         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44452         conditional.
44453         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44454         GETDENTS_64BIT_ALIGNED.
44455         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44456         * manual/filesys.texi (Reading/Closing Directory): Document
44457         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44458         strongly.
44459         * manual/conf.texi (Limits for Files): Add portability note to
44460         NAME_MAX, PATH_MAX.
44461         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44462
44463 2013-08-13  Andreas Schwab  <schwab@suse.de>
44464
44465         [BZ #15749]
44466         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44467         of fabs.
44468         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44469         LDBL_MAX_EXP >= 16384]: Add tests for it.
44470
44471 2013-08-12  David S. Miller  <davem@davemloft.net>
44472
44473         * version.h (RELEASE): Set to "development".
44474         (VERSION): Set to "2.18.90".
44475         * NEWS: Add 2.19 section.
44476
44477 2013-08-03  David S. Miller  <davem@davemloft.net>
44478
44479         * po/ko.po: Update Korean translation from translation project.
44480
44481 2013-08-01  David S. Miller  <davem@davemloft.net>
44482
44483         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44484         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44485         Bilka.
44486
44487 2013-07-30  David S. Miller  <davem@davemloft.net>
44488
44489         * po/fr.po: Update French translation from translation project.
44490
44491 2013-07-28  David S. Miller  <davem@davemloft.net>
44492
44493         * po/cs.po: Update Czech translation from translation project.
44494
44495         * po/sv.po: Update Swedish translation from translation project.
44496
44497 2013-07-27  David S. Miller  <davem@davemloft.net>
44498
44499         * po/eo.po: Update Esperanto translation from translation project.
44500
44501         * po/vi.po: Update Vietnamese translation from translation project.
44502
44503         * po/de.po: Update German translation from translation project.
44504
44505 2013-07-26  David S. Miller  <davem@davemloft.net>
44506
44507         * po/bg.po: Update Bulgarian translation from translation project.
44508
44509         * po/nl.po: Update Dutch translation from translation project.
44510         * po/pl.po: Update Polish translation from translation project.
44511         * po/ru.po: Update Russian translation from translation project.
44512
44513 2013-07-24  David S. Miller  <davem@davemloft.net>
44514
44515         * po/libc.pot: Update.
44516
44517 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44518
44519         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44520         variable page size.
44521         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44522         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44523         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44524
44525 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44526
44527         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44528
44529 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44530             Andreas Schwab  <schwab@suse.de>
44531             Roland McGrath  <roland@hack.frob.com>
44532             Joseph Myers  <joseph@codesourcery.com>
44533             Carlos O'Donell  <carlos@redhat.com>
44534
44535         [BZ #15755]
44536         * config.h.in: Define HAVE_PT_CHOWN.
44537         * config.make.in (build-pt-chown): New variable.
44538         * configure.in (--enable-pt_chown): New configure option.
44539         * configure: Regenerate.
44540         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44541         build-pt-chown is enabled.
44542         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44543         pt_chown to fix pty ownership.
44544         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44545         CLOSE_ALL_FDS.
44546         * manual/install.texi (Configuring and compiling): Mention
44547         --enable-pt_chown. Add @findex for grantpt.
44548         * INSTALL: Regenerate.
44549
44550 2013-07-20  David S. Miller  <davem@davemloft.net>
44551
44552         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44553         difference between 32-bit and 64-bit.
44554
44555 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44556
44557         [BZ #15711]
44558         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44559         Avoid system header dependency with -ffreestanding.
44560         ($(objpfx)bits/syscall%d): Likewise.
44561
44562 2013-07-13  David S. Miller  <davem@davemloft.net>
44563
44564         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44565         underflows from atanl/atan2l due to bug 15319.
44566         (casinh_test_data): Likewise.
44567
44568 2013-07-07  David S. Miller  <davem@davemloft.net>
44569
44570         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44571
44572 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44573
44574         * sysdeps/i386/fpu/libm-test-ulps: Update.
44575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44576
44577 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44578
44579         * configure.in (--enable-lock-elision): Fix message text.
44580         * INSTALL: Regenerate.
44581         * configure: Regenerate.
44582
44583 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44584
44585         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44586
44587 2013-07-03  Andreas Jaeger  <aj@suse.de>
44588
44589         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44590         define.
44591         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44592         (ptrace_peeksiginfo_args): Add.
44593         (__ptrace_peeksiginfo_flags): Add.
44594         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44595         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44596         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44597
44598 2013-07-03  Allan McRae  <allan@archlinux.org>
44599
44600         * sysdeps/i386/fpu/libm-test-ulps: Update.
44601
44602 2013-07-02  David S. Miller  <davem@davemloft.net>
44603
44604         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44605
44606 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44607
44608         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44609
44610 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44611
44612         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44614
44615 2013-07-02  Andi Kleen <ak@linux.intel.com>
44616
44617         * config.h.in (ENABLE_LOCK_ELISION): Add.
44618         * configure.in (--enable-lock-elision): Add option.
44619         * manual/install.texi: Document --enable lock elision.
44620         * configure: Regenerate
44621         * INSTALL: Regenerate.
44622
44623 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44624
44625         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44626         SSE4.2 strcasecmp for libc.a.
44627         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44628
44629 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44630
44631         [BZ #13304]
44632         * soft-fp/op-common.h (_FP_FMA): New macro.
44633         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44634         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44635         (_FP_MUL_MEAT_1_imm): ... here.
44636         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44637         (_FP_MUL_MEAT_1_wide): ... here.
44638         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44639         (_FP_MUL_MEAT_1_hard): ... here.
44640         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44641         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44642         (_FP_MUL_MEAT_2_wide): ... here.
44643         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44644         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44645         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44646         (_FP_MUL_MEAT_2_gmp): ... here.
44647         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44648         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44649         (_FP_MUL_MEAT_4_wide): ... here.
44650         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44651         (_FP_MUL_MEAT_4_gmp): ... here.
44652         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44653         (_FP_WFRACBITS_DW_S): Likewise.
44654         (_FP_WFRACXBITS_DW_S): Likewise.
44655         (_FP_HIGHBIT_DW_S): Likewise.
44656         (FP_FMA_S): Likewise.
44657         (_FP_FRAC_HIGH_DW_S): Likewise.
44658         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44659         (_FP_WFRACBITS_DW_D): Likewise.
44660         (_FP_WFRACXBITS_DW_D): Likewise.
44661         (_FP_HIGHBIT_DW_D): Likewise.
44662         (FP_FMA_D): Likewise.
44663         (_FP_FRAC_HIGH_DW_D): Likewise.
44664         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44665         (_FP_WFRACBITS_DW_E): Likewise.
44666         (_FP_WFRACXBITS_DW_E): Likewise.
44667         (_FP_HIGHBIT_DW_E): Likewise.
44668         (FP_FMA_E): Likewise.
44669         (_FP_FRAC_HIGH_DW_E): Likewise.
44670         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44671         (_FP_WFRACBITS_DW_Q): Likewise.
44672         (_FP_WFRACXBITS_DW_Q): Likewise.
44673         (_FP_HIGHBIT_DW_Q): Likewise.
44674         (FP_FMA_Q): Likewise.
44675         (_FP_FRAC_HIGH_DW_Q): Likewise.
44676         * soft-fp/fmasf4.c: New file.
44677         * soft-fp/fmadf4.c: Likewise.
44678         * soft-fp/fmatf4.c: Likewise.
44679
44680 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44681
44682         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44683         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44684         Silvermont.
44685         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44686         macro.
44687         (index_Slow_SSE4_2): Likewise.
44688         (index_Prefer_PMINUB_for_stringop): Likewise.
44689         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44690         bit_Slow_SSE4_2 is set.
44691         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44692         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44693
44694 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44695
44696         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44697         rtld_global._dl_hwcap2.
44698         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44699         POWER8.
44700         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44701         POWER8 feature descriptions defined in _dl_hwcap2.
44702         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44703         string handling for POWER8 feature bits.
44704         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44705         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44706         _dl_powerpc_cap_flags.
44707         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44708         * sysdeps/powerpc/rtld-global-offsets.sym
44709         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44710         _dl_hwcap2 in the rtld_global_ro structure.
44711
44712 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44713
44714         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44715         hardware capabilities in support of AT_HWCAP2.
44716         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44717         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44718         GLRO(dl_hwcap2).
44719         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44720         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44721         explicitly the unknown a_type display mechanism is used.
44722         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44723         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44724         struct member.
44725         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44726         to macro prototype for AT_HWCAP2 support.
44727         * sysdeps/i386/dl-procinfo.h: Likewise.
44728         * sysdeps/s390/dl-procinfo.h: Likewise.
44729         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44730         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44731         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44732         return -1 for unknown a_type display fallback.
44733         * sysdeps/sparc/dl-procinfo.h: Likewise.
44734         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44735         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44736
44737 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44738
44739         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44740         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44741
44742 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44743
44744         [BZ #12492]
44745         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44746         mprotect making __stack_prot writable.
44747
44748 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44749             Joseph Myers  <joseph@codesourcery.com>
44750
44751         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44752         as being properly aligned.
44753
44754 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44755
44756         * dlfcn/modstatic5.c: New file.
44757         * dlfcn/tststatic5.c: New file.
44758         * dlfcn/Makefile (tests): Add tststatic5.
44759         (tests-static): Likewise.
44760         (modules-names): Add modstatic5.
44761         (tststatic5-ENV): New variable.
44762         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44763
44764         [BZ #15022]
44765         * elf/dl-support.c (_dl_main_map): New variable.
44766         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44767         (_dl_nns, _dl_load_adds): Set to 1.
44768         (_dl_initial_searchlist): Refer to _dl_main_map.
44769         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44770         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44771         call to _dl_get_origin.
44772         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44773         around call_map.
44774         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44775         * dlfcn/modstatic3.c: New file.
44776         * dlfcn/tststatic3.c: New file.
44777         * dlfcn/tststatic4.c: New file.
44778         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44779         (tests-static): Likewise.
44780         (modules-names): Add modstatic3.
44781         (tststatic3-ENV, tststatic4-ENV): New variables.
44782         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44783         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44784
44785 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44786
44787         * configure.in (CC): Require GCC version 4.4 or later.
44788         * configure: Regenerated.
44789         * manual/install.texi (Tools for Compilation): Update GCC version
44790         requirement.
44791         * INSTALL: Regenerated.
44792
44793 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44794
44795         [BZ #15674]
44796         * string/test-memcmp.c (check2): New.
44797         (main): Call check2.
44798
44799         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44800
44801 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44802
44803         [BZ #15022]
44804         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44805         over to...
44806         (dl_open_worker) [!SHARED]: ... here.
44807
44808 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44809
44810         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44811
44812 2013-06-25  Richard Henderson  <rth@redhat.com>
44813
44814         * locale/programs/locarchive.c: Include <libc-internal.h>
44815
44816 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44817
44818         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44819         trailing whitespace removed.
44820
44821 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44822
44823         [BZ #10283]
44824         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44825         * locale/programs/locarchive.c: Include libc-mmap.h.
44826         (prepare_address_space): Take two new outputs (the mmap base and len).
44827         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44828         values.
44829         (create_archive): Declare new mmap base and len values for
44830         prepare_address_space, and store the result in ah.
44831         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44832         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44833         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44834         Declare new mmap base and len values for
44835         prepare_address_space, and store the result in new_ah.
44836         (open_archive): Declare new mmap base and len values for
44837         prepare_address_space, and store the result in ah.
44838         (close_archive): If ah->mmap_base is not NULL, use that and
44839         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44840         * sysdeps/generic/libc-mmap.h: New file.
44841
44842 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44843
44844         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44845         (ALIGN_UP): Likewise.
44846         (PTR_ALIGN_DOWN): Likewise.
44847         (PTR_ALIGN_UP): Likewise.
44848
44849 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44850
44851         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
44852         entry mapped to PPC_PLATFORM_POWER8.
44853         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
44854         POWER8.
44855         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
44856         (_dl_string_platform): Add case for exporting platform position for
44857         POWER8.
44858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
44859         search path to sysdeps/powerpc/powerpc32/power8 directory.
44860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
44861         search path to sysdeps/powerpc/powerpc64/power8 directory.
44862         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
44863         power7 directories.
44864         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
44865         power7 directories.
44866
44867 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44868
44869         * INSTALL: Regenerate.
44870
44871         * nscd/connections.c (nscd_init): Fix comment.
44872
44873 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
44874
44875         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
44876
44877         [BZ #15667]
44878         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
44879         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
44880
44881 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44882
44883         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
44884         DL_DST_REQ_STATIC.
44885         (DL_DST_REQ_STATIC): Remove macro.
44886
44887 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
44888
44889         [BZ #7006]
44890         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
44891         with a shift of 0 bits.
44892
44893 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44894
44895         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
44896         $(tststatic-ENV).
44897
44898 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44899
44900         [BZ #15655]
44901         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
44902
44903 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44904
44905         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
44906         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
44907         accepts -fno-tree-loop-distribute-patterns.
44908         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
44909         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
44910         recursive call.
44911         * string/memset.c (memset): Likewise.
44912         * string/test-memmove.c (simple_memmove): Disable loop transformation
44913         to library calls.
44914         * string/test-memset.c (simple_memset): Likewise.
44915         * benchtests/bench-memmove.c (simple_memmove): Likewise.
44916         * benchtests/bench-memset.c (simple_memset): Likewise.
44917         * configure: Regenerated.
44918
44919 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
44920
44921         * math/test-misc.c (main): Ignore fesetround failure when failures
44922         of subsequent rounding tests would be ignored.
44923
44924         [BZ #15654]
44925         * math/fedisblxcpt.c (fedisableexcept): Return 0.
44926         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
44927         * math/fegetenv.c (__fegetenv): Return 0.
44928         * math/fegetexcept.c (fegetexcept): Return 0.
44929         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
44930         FE_TONEAREST.
44931         * math/feholdexcpt.c (feholdexcept): Return 0.
44932         * math/fesetenv.c (__fesetenv): Return 0.
44933         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
44934         argument FE_TONEAREST.
44935         * math/feupdateenv.c (__feupdateenv): Return 0.
44936         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
44937
44938 2013-06-18  Roland McGrath  <roland@hack.frob.com>
44939
44940         * elf/rtld-Rules (rtld-compile-command.S): New variable.
44941         (rtld-compile-command.s, rtld-compile-command.c): New variables.
44942         ($(objpfx)rtld-%.os rules): Use them.
44943
44944 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44945
44946         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
44947         fields.
44948
44949 2013-06-17  Roland McGrath  <roland@hack.frob.com>
44950
44951         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
44952         length of target pattern, then descending length of dependency pattern.
44953         * configure.in (AWK): Require gawk 3.1.2 or newer.
44954         * manual/install.texi (Tools for Compilation): Say that we do.
44955         * configure: Regenerated.
44956
44957         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
44958         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
44959         * scripts/sysd-rules.awk: ... this new script.
44960         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
44961         than a glob-style pattern.
44962
44963 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
44964
44965         * math/test-misc.c (main): Do not treat incorrectly rounded
44966         conversions as failure unless ROUNDING_TESTS passes.
44967
44968 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
44969
44970         [BZ #15631]
44971         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
44972         restore exception state around main square root computation, then
44973         check for inexactness explicitly.
44974
44975         * math/libm-test.inc (fma_test_data): Add another test.
44976
44977 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
44978
44979         * manual/threads.texi (Non-POSIX Extensions): New document
44980         node.  Document pthread_getattr_default_np and
44981         pthread_setattr_default_np.
44982
44983         * Versions.def (libpthread): Add GLIBC_2.18.
44984         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
44985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
44986         Likewise.
44987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
44988         Likewise.
44989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
44990         Likewise.
44991         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
44992         Likewise.
44993         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
44994         Likewise.
44995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
44996         Likewise.
44997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
44998         Likewise.
44999         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45000         Likewise.
45001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45002         Likewise.
45003
45004 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45005
45006         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45007         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45008
45009 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45010             H.J. Lu  <hjl.tools@gmail.com>
45011
45012         [BZ #15627]
45013         * sysdeps/x86_64/rtld-memset.c: Remove file.
45014         * sysdeps/x86_64/rtld-memset.S: New file.
45015
45016 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45017
45018         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45019         (test_in_one_mode): Take arguments for whether the rounding mode
45020         is supported for each floating-point type.
45021         (do_test): Pass new arguments to test_in_one_mode using
45022         ROUNDING_TESTS.
45023
45024 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45025
45026         * posix/tst-waitid.c (do_test): Distinguish different instances of
45027         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45028         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45029         before entering the kernel for waitpid.
45030
45031 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45032
45033         * NEWS: Fix note on clock function precision.  Text by Roland
45034         McGrath.
45035
45036 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45037
45038         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45039         it into place only when and if the sanity check passes.
45040
45041 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45042
45043         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45044         output for whether conversion result is exact.  Take argument
45045         indicating whether type is IBM long double.
45046         (round_for_all): Change need_exact field to ibm_ld.
45047         * stdlib/tst-strtod-round.c (struct exactness): New type.
45048         (struct test): Change bool ld_ok field to struct exactness exact.
45049         (TEST): Update all definitions for change to field.
45050         (tests): Regenerate array contents.
45051         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45052         field value.  Check for IBM long double here.
45053         (do_test): Update calls to test_in_one_mode.
45054
45055 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45056
45057         [BZ #12515]
45058         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45059         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45060
45061 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45062
45063         [BZ #15605]
45064         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45065         generated by the compiler on loop optimizations.
45066         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45067         general definitions.
45068
45069 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45070
45071         * math/bug-nextafter.c: Include <math-tests.h>.
45072         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45073         the relevant type.
45074         * math/bug-nexttoward.c: Include <math-tests.h>.
45075         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45076         the relevant type.
45077         * math/test-misc.c: Include <math-tests.h>.
45078         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45079         the relevant type.
45080
45081 2013-06-12  Andreas Jaeger  <aj@suse.de>
45082
45083         * po/ia.po: Update Interlingua translation from translation
45084         project.
45085
45086 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45087
45088         * include/fenv.h: Include stdbool.h.
45089         (struct rm_ctx): New structure.
45090         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45091         Define macro.
45092         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45093         (SET_RESTORE_ROUNDF): Likewise.
45094         (SET_RESTORE_ROUNDL): Likewise.
45095         (SET_RESTORE_ROUND_NOEX): Likewise.
45096         (SET_RESTORE_ROUND_NOEXF): Likewise.
45097         (SET_RESTORE_ROUND_NOEXL): Likewise.
45098         (SET_RESTORE_ROUND_53BIT): Likewise.
45099         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45100         (libc_feresetround_noexf_ctx): Likewise.
45101         (libc_feresetround_noexl_ctx): Likewise.
45102         (libc_feholdsetround_53bit_ctx): Likewise.
45103         (libc_feresetround_53bit_ctx): Likewise.
45104         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45105         (libc_feholdexcept_setround_sse_ctx): New function.
45106         (libc_fesetenv_sse_ctx): Likewise.
45107         (libc_feupdateenv_sse_ctx): Likewise.
45108         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45109         (libc_feholdexcept_setround_387_ctx): Likewise.
45110         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45111         (libc_feholdsetround_387_prec_ctx): Likewise.
45112         (libc_feholdsetround_387_ctx): Likewise.
45113         (libc_feholdsetround_387_53bit_ctx): Likewise.
45114         (libc_feholdsetround_sse_ctx): Likewise.
45115         (libc_feresetround_sse_ctx): Likewise.
45116         (libc_feresetround_387_ctx): Likewise.
45117         (libc_feupdateenv_387_ctx): Likewise.
45118         (libc_feholdexcept_setroundf_ctx): Define macro.
45119         (libc_fesetenvf_ctx): Likewise.
45120         (libc_feupdateenvf_ctx): Likewise.
45121         (libc_feholdsetroundf_ctx): Likewise.
45122         (libc_feresetroundf_ctx): Likewise.
45123         (libc_feholdexcept_setround_ctx): Likewise.
45124         (libc_fesetenv_ctx): Likewise.
45125         (libc_feupdateenv_ctx): Likewise.
45126         (libc_feholdsetround_ctx): Likewise.
45127         (libc_feresetround_ctx): Likewise.
45128         (libc_feholdexcept_setroundl_ctx): Likewise.
45129         (libc_feupdateenvl_ctx): Likewise.
45130         (libc_feholdsetroundl_ctx): Likewise.
45131         (libc_feresetroundl_ctx): Likewise.
45132         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45133         (libc_feresetround_53bit_ctx): Likewise.
45134
45135 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45136
45137         * locale/iso-639.def: Convert to UTF-8.
45138
45139 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45140
45141         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45142         (EXCEPTION_TESTS_double): Likewise.
45143         (EXCEPTION_TESTS_long_double): Likewise.
45144         (EXCEPTION_TESTS): Likewise.
45145         * math/libm-test.inc (test_exceptions): Only test exceptions if
45146         EXCEPTION_TESTS (FLOAT).
45147
45148 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45149
45150         * benchtests/Makefile (string-bench): Add strcpy_chk and
45151         stpcpy_chk.
45152         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45153         * benchtests/bench-stpcpy_chk.c: New file.
45154         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45155         * benchtests/bench-strcpy_chk.c: New file.
45156         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45157         code.
45158         (do_test): Likewise.
45159
45160 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45161
45162         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45163         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45164         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45165         with tabs where appropriate.
45166         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45167         dl-procinfo.h.
45168         [PPC_PLATFORM_PPC440]: Likewise.
45169         [PPC_PLATFORM_PPC464]: Likewise.
45170         [PPC_PLATFORM_PPC476]: Likewise.
45171         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45172         ppc464, and ppc476 platform strings merging from ports/
45173         dl-procinfo.h.
45174
45175 2013-06-11  Andreas Schwab  <schwab@suse.de>
45176
45177         [BZ #14991]
45178         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45179         (from_ucs4_idx): Regenerate.
45180         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45181         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45182         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45183         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45184         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45185         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45186         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45187         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45188         from FROM_LOOP and TO_LOOP specific macros.
45189         (BODY): Handle combining characters.
45190         * iconvdata/BIG5HKSCS.irreversible: Update.
45191         * iconvdata/BIG5HKSCS.precomposed: New file.
45192         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45193         characters.
45194         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45195
45196 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45197
45198         * include/sys/time.h: Fix indentation and add copyright header.
45199
45200         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45201         (do_test): Likewise.
45202         * string/test-memchr.c (do_one_test): Likewise.
45203         (do_test): Likewise.
45204         * string/test-memcmp.c (do_one_test): Likewise.
45205         (do_test): Likewise.
45206         * string/test-memcpy.c (do_one_test): Likewise.
45207         (do_test): Likewise.
45208         * string/test-memmem.c (do_one_test): Likewise.
45209         (do_test): Likewise.
45210         (do_random_tests): Likewise.
45211         * string/test-memmove.c (do_one_test): Likewise.
45212         (do_test): Likewise.
45213         * string/test-memset.c (do_one_test): Likewise.
45214         (do_test): Likewise.
45215         * string/test-rawmemchr.c (do_one_test): Likewise.
45216         (do_test): Likewise.
45217         * string/test-strcasecmp.c (do_one_test): Likewise.
45218         (do_test): Likewise.
45219         * string/test-strcasestr.c (do_one_test): Likewise.
45220         (do_test): Likewise.
45221         * string/test-strcat.c (do_one_test): Likewise.
45222         (do_test): Likewise.
45223         * string/test-strchr.c (do_one_test): Likewise.
45224         (do_test): Likewise.
45225         * string/test-strcmp.c (do_one_test): Likewise.
45226         (do_test): Likewise.
45227         * string/test-strcpy.c (do_one_test): Likewise.
45228         (do_test): Likewise.
45229         * string/test-string.h: Likewise.
45230         (test_init): Likewise.
45231         * string/test-strlen.c (do_one_test): Likewise.
45232         (do_test): Likewise.
45233         * string/test-strncasecmp.c (do_one_test): Likewise.
45234         (do_test): Likewise.
45235         * string/test-strncat.c (do_one_test): Likewise.
45236         (do_test): Likewise.
45237         * string/test-strncmp.c (do_one_test): Likewise.
45238         (do_test_limit): Likewise.
45239         (do_test): Likewise.
45240         * string/test-strncpy.c (do_one_test): Likewise.
45241         (do_test): Likewise.
45242         * string/test-strnlen.c (do_one_test): Likewise.
45243         (do_test): Likewise.
45244         * string/test-strpbrk.c (do_one_test): Likewise.
45245         (do_test): Likewise.
45246         * string/test-strrchr.c (do_one_test): Likewise.
45247         (do_test): Likewise.
45248         * string/test-strspn.c (do_one_test): Likewise.
45249         (do_test): Likewise.
45250         * string/test-strstr.c (do_one_test): Likewise.
45251         (do_test): Likewise.
45252
45253         * benchtests/Makefile (string-bench): Add string benchmarks.
45254         * benchtests/bench-bcopy-ifunc.c: New file.
45255         * benchtests/bench-bcopy.c: New file.
45256         * benchtests/bench-bzero-ifunc.c: New file.
45257         * benchtests/bench-bzero.c: New file.
45258         * benchtests/bench-memccpy-ifunc.c: New file.
45259         * benchtests/bench-memccpy.c: New file.
45260         * benchtests/bench-memchr-ifunc.c: New file.
45261         * benchtests/bench-memchr.c: New file.
45262         * benchtests/bench-memcmp-ifunc.c: New file.
45263         * benchtests/bench-memcmp.c: New file.
45264         * benchtests/bench-memmem-ifunc.c: New file.
45265         * benchtests/bench-memmem.c: New file.
45266         * benchtests/bench-memmove-ifunc.c: New file.
45267         * benchtests/bench-memmove.c: New file.
45268         * benchtests/bench-mempcpy-ifunc.c: New file.
45269         * benchtests/bench-mempcpy.c: New file.
45270         * benchtests/bench-memset-ifunc.c: New file.
45271         * benchtests/bench-memset.c: New file.
45272         * benchtests/bench-rawmemchr-ifunc.c: New file.
45273         * benchtests/bench-rawmemchr.c: New file.
45274         * benchtests/bench-stpcpy-ifunc.c: New file.
45275         * benchtests/bench-stpcpy.c: New file.
45276         * benchtests/bench-stpncpy-ifunc.c: New file.
45277         * benchtests/bench-stpncpy.c: New file.
45278         * benchtests/bench-strcasecmp-ifunc.c: New file.
45279         * benchtests/bench-strcasecmp.c: New file.
45280         * benchtests/bench-strcasestr-ifunc.c: New file.
45281         * benchtests/bench-strcasestr.c: New file.
45282         * benchtests/bench-strcat-ifunc.c: New file.
45283         * benchtests/bench-strcat.c: New file.
45284         * benchtests/bench-strchr-ifunc.c: New file.
45285         * benchtests/bench-strchr.c: New file.
45286         * benchtests/bench-strchrnul-ifunc.c: New file.
45287         * benchtests/bench-strchrnul.c: New file.
45288         * benchtests/bench-strcmp-ifunc.c: New file.
45289         * benchtests/bench-strcmp.c: New file.
45290         * benchtests/bench-strcpy-ifunc.c: New file.
45291         * benchtests/bench-strcpy.c: New file.
45292         * benchtests/bench-strcspn-ifunc.c: New file.
45293         * benchtests/bench-strcspn.c: New file.
45294         * benchtests/bench-strlen-ifunc.c: New file.
45295         * benchtests/bench-strlen.c: New file.
45296         * benchtests/bench-strncasecmp-ifunc.c: New file.
45297         * benchtests/bench-strncasecmp.c: New file.
45298         * benchtests/bench-strncat-ifunc.c: New file.
45299         * benchtests/bench-strncat.c: New file.
45300         * benchtests/bench-strncmp-ifunc.c: New file.
45301         * benchtests/bench-strncmp.c: New file.
45302         * benchtests/bench-strncpy-ifunc.c: New file.
45303         * benchtests/bench-strncpy.c: New file.
45304         * benchtests/bench-strnlen-ifunc.c: New file.
45305         * benchtests/bench-strnlen.c: New file.
45306         * benchtests/bench-strpbrk-ifunc.c: New file.
45307         * benchtests/bench-strpbrk.c: New file.
45308         * benchtests/bench-strrchr-ifunc.c: New file.
45309         * benchtests/bench-strrchr.c: New file.
45310         * benchtests/bench-strspn-ifunc.c: New file.
45311         * benchtests/bench-strspn.c: New file.
45312         * benchtests/bench-strstr-ifunc.c: New file.
45313         * benchtests/bench-strstr.c: New file.
45314
45315         * benchtests/Makefile: Disable parallel execution of targets.
45316         (string-bench): Add memcpy.
45317         (benchset): New variable to store a list of benchmark sets.
45318         (bench-func): Renamed from bench.
45319         (bench-set): New target.
45320         (bench): Depend on bench-func and bench-set.
45321         * benchtests/README: Add section on benchmark sets.
45322         * benchtests/bench-memcpy-ifunc.c: New file.
45323         * benchtests/bench-memcpy.c: New file.
45324         * benchtests/bench-string.h: New file.
45325
45326 2013-06-11  Andreas Schwab  <schwab@suse.de>
45327
45328         [BZ #15577]
45329         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45330         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45331         values in the triple.
45332         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45333         terminator in the group key.
45334
45335 2013-06-11  Andreas Jaeger  <aj@suse.de>
45336
45337         * po/zh_TW.po: Update Chinese (traditional) translation from
45338         translation project.
45339
45340 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45341
45342         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45343         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45344         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45345         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45346         (clock_getcpuclockid): Likewise.
45347         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45348         Add weak_alias and libc_hidden_def.
45349         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45350         * rt/clock_gettime.c (clock_gettime): Rename to
45351         __clock_gettime.  Add weak_alias and libc_hidden_def.
45352         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45353         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45354         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45355         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45356         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45357         Likewise.
45358         * rt/clock_settime.c (clock_settime): Rename to
45359         __clock_settime.  Add weak_alias and libc_hidden_def.
45360         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45361
45362 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45363
45364         * mach/err_boot.sub: Remove trailing whitespace.
45365         * mach/err_ipc.sub: Likewise.
45366         * mach/err_mach.sub: Likewise.
45367
45368         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45369         (ROUNDING_TESTS_double): Likewise.
45370         (ROUNDING_TESTS_long_double): Likewise.
45371         (ROUNDING_TESTS): Likewise.
45372         * math/libm-test.inc: Include <math-tests.h>.
45373         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45374         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45375         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45376         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45377
45378 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45379
45380         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45381         of assigning.
45382
45383 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45384
45385         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45386         otherwise empty TRANS lines.
45387         * sysdeps/gnu/errlist.c: Regenerated.
45388
45389         * catgets/gencat.c (error_print): Use (void) in function
45390         definition.
45391         * crypt/crypt_util.c (__init_des): Likewise.
45392         * crypt/speeds.c (Stop): Likewise.
45393         (main): Likewise.
45394         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45395         * inet/ruserpass.c (token): Likewise.
45396         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45397         * intl/localealias.c (extend_alias_table): Likewise.
45398         * intl/plural-exp.c (init_germanic_plural): Likewise.
45399         * libio/fcloseall.c (__fcloseall): Likewise.
45400         * libio/genops.c (_IO_flush_all): Likewise.
45401         (_IO_flush_all_linebuffered): Likewise.
45402         (_IO_cleanup): Likewise.
45403         (_IO_iter_begin): Likewise.
45404         (_IO_iter_end): Likewise.
45405         (_IO_list_lock): Likewise.
45406         (_IO_list_unlock): Likewise.
45407         (_IO_list_resetlock): Likewise.
45408         * libio/getchar.c (getchar): Likewise.
45409         * libio/getchar_u.c (getchar_unlocked): Likewise.
45410         * libio/getwchar.c (getwchar): Likewise.
45411         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45412         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45413         * login/getpt.c (__getpt): Likewise.
45414         * login/tst-utmp.c (main): Likewise.
45415         * malloc/hooks.c (__malloc_check_init): Likewise.
45416         * malloc/malloc.c (__malloc_stats): Likewise.
45417         * malloc/mtrace.c (tr_break): Likewise.
45418         (mtrace): Likewise.
45419         (muntrace): Likewise.
45420         * misc/fstab.c (endfsent): Likewise.
45421         * misc/getclktck.c (__getclktck): Likewise.
45422         * misc/getdtsz.c (__getdtablesize): Likewise.
45423         * misc/gethostid.c (gethostid): Likewise.
45424         * misc/getpagesize.c (__getpagesize): Likewise.
45425         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45426         (__get_nprocs): Likewise.
45427         (__get_phys_pages): Likewise.
45428         (__get_avphys_pages): Likewise.
45429         * misc/getttyent.c (getttyent): Likewise.
45430         (setttyent): Likewise.
45431         (endttyent): Likewise.
45432         * misc/getusershell.c (getusershell): Likewise.
45433         (endusershell): Likewise.
45434         (setusershell): Likewise.
45435         (initshells): Likewise.
45436         * misc/hsearch.c (__hdestroy): Likewise.
45437         * misc/sync.c (sync): Likewise.
45438         * misc/syslog.c (closelog_internal): Likewise.
45439         (closelog): Likewise.
45440         * misc/ttyslot.c (ttyslot): Likewise.
45441         * misc/vhangup.c (vhangup): Likewise.
45442         * posix/fork.c (__fork): Likewise.
45443         * posix/getegid.c (__getegid): Likewise.
45444         * posix/geteuid.c (__geteuid): Likewise.
45445         * posix/getgid.c (__getgid): Likewise.
45446         * posix/getpid.c (__getpid): Likewise.
45447         * posix/getppid.c (__getppid): Likewise.
45448         * posix/getuid.c (__getuid): Likewise.
45449         * posix/pause.c (pause): Likewise.
45450         * posix/setpgrp.c (setpgrp): Likewise.
45451         * posix/setsid.c (__setsid): Likewise.
45452         * posix/test-vfork.c (noop): Likewise.
45453         * resolv/gethnamaddr.c (_endhtent): Likewise.
45454         (_gethtent): Likewise.
45455         (ht_endhostent): Likewise.
45456         (gethostent): Likewise.
45457         (dns_service): Likewise.
45458         * stdlib/drand48.c (drand48): Likewise.
45459         * stdlib/lrand48.c (lrand48): Likewise.
45460         * stdlib/mrand48.c (mrand48): Likewise.
45461         * stdlib/rand.c (rand): Likewise.
45462         * stdlib/random.c (__random): Likewise.
45463         * stdlib/setenv.c (clearenv): Likewise.
45464         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45465         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45466         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45467         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45468         (__get_nprocs): Likewise.
45469         (__get_phys_pages): Likewise.
45470         (__get_avphys_pages): Likewise.
45471         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45472         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45473         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45474         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45475         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45476         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45477         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45478         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45479         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45480         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45481         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45482         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45483         * sysdeps/posix/clock.c (clock): Likewise.
45484         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45485         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45486         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45487         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45488         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45489         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45490         (__get_nprocs_conf): Likewise.
45491         (__get_phys_pages): Likewise.
45492         (__get_avphys_pages): Likewise.
45493         * time/clock.c (clock): Likewise.
45494         * time/tzset.c (__tzname_max): Likewise.
45495
45496 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45497
45498         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45499         (__bswap_32): Do not use "register".
45500         * crypt/crypt.c (_ufc_doit_r): Likewise.
45501         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45502         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45503         * gmon/gmon.c (__monstartup): Likewise.
45504         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45505         * hurd/hurdmalloc.c (more_memory): Likewise.
45506         (malloc): Likewise.
45507         (free): Likewise.
45508         (realloc): Likewise.
45509         (malloc_fork_prepare): Likewise.
45510         (malloc_fork_parent): Likewise.
45511         (malloc_fork_child): Likewise.
45512         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45513         (_svcauth_des): Likewise.
45514         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45515         * inet/inet_net.c (inet_network): Likewise.
45516         * inet/inet_netof.c (inet_netof): Likewise.
45517         * inet/rcmd.c (__validuser2_sa): Likewise.
45518         * io/fts.c (fts_open): Likewise.
45519         (fts_load): Likewise.
45520         (fts_close): Likewise.
45521         (fts_read): Likewise.
45522         (fts_children): Likewise.
45523         (fts_build): Likewise.
45524         (fts_stat): Likewise.
45525         (fts_sort): Likewise.
45526         (fts_alloc): Likewise.
45527         (fts_lfree): Likewise.
45528         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45529         (_IO_file_xsgetn): Likewise.
45530         (_IO_file_xsgetn_mmap): Likewise.
45531         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45532         (_IO_cookie_write): Likewise.
45533         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45534         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45535         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45536         * malloc/obstack.c (_obstack_begin): Likewise.
45537         (_obstack_begin_1): Likewise.
45538         (_obstack_newchunk): Likewise.
45539         (_obstack_allocated_p): Likewise.
45540         (obstack_free): Likewise.
45541         (_obstack_memory_used): Likewise.
45542         * misc/getttyent.c (getttynam): Likewise.
45543         (getttyent): Likewise.
45544         (skip): Likewise.
45545         (value): Likewise.
45546         * misc/getusershell.c (initshells): Likewise.
45547         * misc/syslog.c (__vsyslog_chk): Likewise.
45548         * misc/ttyslot.c (ttyslot): Likewise.
45549         * nis/nis_hash.c (__nis_hash): Likewise.
45550         * posix/fnmatch_loop.c (FCT): Likewise.
45551         * posix/getconf.c (print_all): Likewise.
45552         (main): Likewise.
45553         * posix/getopt.c (exchange): Likewise.
45554         * posix/glob.c (globfree): Likewise.
45555         (prefix_array): Likewise.
45556         (__glob_pattern_type): Likewise.
45557         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45558         (NS_GET32): Likewise.
45559         (NS_PUT16): Likewise.
45560         (NS_PUT32): Likewise.
45561         * resolv/gethnamaddr.c (getanswer): Likewise.
45562         (gethostbyname2): Likewise.
45563         (gethostbyaddr): Likewise.
45564         (_gethtent): Likewise.
45565         (_gethtbyname2): Likewise.
45566         (_gethtbyaddr): Likewise.
45567         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45568         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45569         * resolv/res_init.c (__res_vinit): Likewise.
45570         (net_mask): Likewise.
45571         * resolv/res_mkquery.c (outchar): Likewise.
45572         (PRINT): Likewise.
45573         * stdio-common/printf_fp.c (outchar): Likewise.
45574         (PRINT): Likewise.
45575         * stdio-common/printf_fphex.c (outchar): Likewise.
45576         (PRINT): Likewise.
45577         * stdio-common/printf_size.c (outchar): Likewise.
45578         (PRINT): Likewise.
45579         * stdio-common/test_rdwr.c (main): Likewise.
45580         * stdio-common/tfformat.c (matches): Likewise.
45581         * stdio-common/vfprintf.c (outchar): Likewise.
45582         (printf_unknown): Likewise.
45583         (buffered_vfprintf): Likewise.
45584         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45585         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45586         (ReadFile): Likewise.
45587         * stdlib/qsort.c (SWAP): Likewise.
45588         (_quicksort): Likewise.
45589         * stdlib/setenv.c (__add_to_environ): Likewise.
45590         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45591         * stdlib/strtol_l.c (__strtol_l): Likewise.
45592         * stdlib/tst-strtod.c (main): Likewise.
45593         * stdlib/tst-strtol.c (main): Likewise.
45594         * stdlib/tst-strtoll.c (main): Likewise.
45595         * string/bits/string2.h (__strcmp_cc): Likewise.
45596         (__strcmp_cg): Likewise.
45597         (__strcspn_c1): Likewise.
45598         (__strcspn_c2): Likewise.
45599         (__strcspn_c3): Likewise.
45600         (__strspn_c1): Likewise.
45601         (__strspn_c2): Likewise.
45602         (__strspn_c3): Likewise.
45603         (__strsep_1c): Likewise.
45604         (__strsep_2c): Likewise.
45605         (__strsep_3c): Likewise.
45606         * string/memccpy.c (__memccpy): Likewise.
45607         * string/stpcpy.c (__stpcpy): Likewise.
45608         * string/strcmp.c (strcmp): Likewise.
45609         * string/strrchr.c (strrchr): Likewise.
45610         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45611         Likewise.
45612         * sysdeps/mach/hurd/getcwd.c
45613         (_hurd_canonicalize_directory_name_internal): Likewise.
45614         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45615         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45616         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45617         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45618         Likewise, in both definitions.
45619         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45620         definitions.
45621         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45622         64] (__bswap_64): Likewise.
45623         * time/test_time.c (main): Likewise.
45624         * time/tzfile.c (__tzfile_read): Likewise.
45625         (__tzfile_compute): Likewise.
45626         * time/tzset.c (__tzset_parse_tz): Likewise.
45627         (tzset_internal): Likewise.
45628         (compute_change): Likewise.
45629         * wcsmbs/wcscat.c (__wcscat): Likewise.
45630         * wcsmbs/wcschr.c (wcschr): Likewise.
45631         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45632         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45633         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45634         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45635         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45636         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45637         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45638         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45639         * wcsmbs/wmemset.c (wmemset): Likewise.
45640
45641 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45642
45643         * scripts/config.guess: Update to version 2013-05-16.
45644         * scripts/config.sub: Update to version 2013-04-24.
45645         * scripts/install-sh: Update to version 2011-11-20.07.
45646         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45647         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45648
45649 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45650
45651         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45652         * elf/sln.c: Likewise.
45653         * hurd/hurd/ioctl.h: Likewise.
45654         * hurd/hurdmalloc.c: Likewise.
45655         * hurd/xattr.c: Likewise.
45656         * include/shlib-compat.h: Likewise.
45657         * inet/ruserpass.c: Likewise.
45658         * libio/iofgets_u.c: Likewise.
45659         * libio/iofgetws_u.c: Likewise.
45660         * locale/programs/ld-identification.c: Likewise.
45661         * locale/programs/ld-time.c: Likewise.
45662         * mach/msg-destroy.c: Likewise.
45663         * nss/nss_files/files-netgrp.c: Likewise.
45664         * resolv/res_data.c: Likewise.
45665         * soft-fp/op-1.h: Likewise.
45666         * soft-fp/op-2.h: Likewise.
45667         * soft-fp/op-4.h: Likewise.
45668         * soft-fp/op-common.h: Likewise.
45669         * stdio-common/printf_fphex.c: Likewise.
45670         * stdlib/strtod_l.c: Likewise.
45671         * sunrpc/rpc/clnt.h: Likewise.
45672         * sysdeps/generic/framestate.c: Likewise.
45673         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45674         * sysdeps/i386/bsd-setjmp.S: Likewise.
45675         * sysdeps/i386/__longjmp.S: Likewise.
45676         * sysdeps/i386/setjmp.S: Likewise.
45677         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45678         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45679         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45680         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45681         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45682         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45683         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45684         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45685         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45686         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45687         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45688         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45689         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45690         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45691         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45692         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45693         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45694         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45695         * sysdeps/ieee754/support.c: Likewise.
45696         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45697         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45698         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45699         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45700         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45701         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45702         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45703         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45704         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45705         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45706         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45707         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45708         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45709         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45710         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45711         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45712         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45714
45715 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45716
45717         * posix/transbug.c: Remove executable mode.
45718
45719 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45720
45721         * crypt/speeds.c: Remove trailing whitespace.
45722         * dlfcn/default.c: Likewise.
45723         * elf/ifuncdep2.c: Likewise.
45724         * elf/ifuncmain1.c: Likewise.
45725         * elf/ifuncmain1vis.c: Likewise.
45726         * elf/testobj.h: Likewise.
45727         * elf/tst-stackguard1.c: Likewise.
45728         * gmon/sys/gmon.h: Likewise.
45729         * hurd/hurdmsg.c: Likewise.
45730         * hurd/new-fd.c: Likewise.
45731         * hurd/ports-get.c: Likewise.
45732         * iconvdata/ibm1008_420.c: Likewise.
45733         * inet/tst-getni1.c: Likewise.
45734         * inet/tst-getni2.c: Likewise.
45735         * libio/ioungetc.c: Likewise.
45736         * libio/wfiledoalloc.c: Likewise.
45737         * manual/libm-err-tab.pl: Likewise.
45738         * math/w_dremf.c: Likewise.
45739         * misc/ftruncate.c: Likewise.
45740         * posix/bug-glob2.c: Likewise.
45741         * posix/tst-pcre.c: Likewise.
45742         * posix/wait4.c: Likewise.
45743         * resolv/README: Likewise.
45744         * resolv/res_debug.h: Likewise.
45745         * resolv/tst-inet_ntop.c: Likewise.
45746         * setjmp/bug269-setjmp.c: Likewise.
45747         * soft-fp/extended.h: Likewise.
45748         * soft-fp/op-1.h: Likewise.
45749         * soft-fp/op-2.h: Likewise.
45750         * soft-fp/op-4.h: Likewise.
45751         * soft-fp/op-8.h: Likewise.
45752         * soft-fp/testit.c: Likewise.
45753         * stdio-common/bug16.c: Likewise.
45754         * stdlib/random.c: Likewise.
45755         * sunrpc/rpcsvc/rquota.x: Likewise.
45756         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45757         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45758         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45759         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45760         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45761         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45762         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45763         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45764         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45765         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45766         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45767         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45768         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45769         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45770         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45771         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45772         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45773         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45774         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45775         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45776         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45777         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45778         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45779         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45780         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45781         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45782         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45783         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45784         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45785         * sysdeps/ieee754/s_lib_version.c: Likewise.
45786         * sysdeps/mach/hurd/check_fds.c: Likewise.
45787         * sysdeps/mach/hurd/getsockname.c: Likewise.
45788         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45789         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45790         * sysdeps/powerpc/bits/link.h: Likewise.
45791         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45792         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45793         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45794         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45795         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45796         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45797         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45798         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45799         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45800         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45801         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45802         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45803         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45804         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45805         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45806         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45807         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45808         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45809         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45810         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45811         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45812         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45813         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45814         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45815         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45816         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45817         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45818         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45819         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45820         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45821         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45822         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45823         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45824         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45825         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45826         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45827         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45828         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45829         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45830         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45831         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45832         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45833         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45834         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45835         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45836         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45837         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45838         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45839         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45840         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45841         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45842         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45843         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45844         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45845         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45846         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45847         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45848         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45849         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
45850         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
45851         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
45852         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
45853         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
45854         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
45855         * sysdeps/powerpc/sysdep.h: Likewise.
45856         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
45857         * sysdeps/s390/s390-64/sub_n.S: Likewise.
45858         * sysdeps/sh/dl-trampoline.S: Likewise.
45859         * sysdeps/sh/memset.S: Likewise.
45860         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
45861         * sysdeps/sh/strlen.S: Likewise.
45862         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
45863         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
45864         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
45865         * sysdeps/sparc/sparc32/rem.S: Likewise.
45866         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
45867         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
45868         * sysdeps/sparc/sparc32/strchr.S: Likewise.
45869         * sysdeps/sparc/sparc32/udiv.S: Likewise.
45870         * sysdeps/sparc/sparc32/urem.S: Likewise.
45871         * sysdeps/sparc/sparc64/add_n.S: Likewise.
45872         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
45873         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
45874         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
45875         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
45876         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
45877         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
45878         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
45879         * sysdeps/unix/bsd/times.c: Likewise.
45880         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
45881         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
45882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
45883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
45884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45885         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
45886         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
45887         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
45888         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
45889         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
45890         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
45891         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
45892         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
45893         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
45894         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
45895         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
45896         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
45897         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
45898         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
45899         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
45900         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
45901         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
45902         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
45903         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
45904         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
45905         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
45906         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
45907         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45908         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
45909         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
45910         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
45911         * sysdeps/x86_64/strcspn.S: Likewise.
45912
45913 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45914
45915         * locale/C-translit.h: Revert #include <stdint.h> because this is a
45916         generated file.  Regenerate properly from gen-translit.pl.
45917         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
45918         locale/C-translit.h.
45919
45920 2013-06-05  Andreas Schwab  <schwab@suse.de>
45921
45922         [BZ #15100]
45923         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
45924         week as 6 instead of -1.
45925         * time/tst-strptime.c (day_tests): Add test case.
45926
45927 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45928
45929         * sysdeps/generic/math_private.h
45930         (libc_feholdexcept_setround_53bit): Replace with
45931         libc_feholdsetround_53bit.
45932         (libc_feupdateenv_53bit): Replace with
45933         libc_feresetround_53bit.
45934         (SET_RESTORE_ROUND_53BIT): Adjust.
45935
45936 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
45937
45938         * string/test-strchrnul.c: Add copyright header.
45939
45940         * posix/tst-getaddrinfo4.c: Increase test timeout.
45941
45942 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
45943
45944         [BZ #15536]
45945         * math/libm-test.inc (MAX_EXP): Remove
45946         (MIN_EXP): Define.
45947         (ulp): Use MIN_EXP - MANT_DIG.
45948         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
45949
45950 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
45951
45952         * po/be.po: Revert last change.
45953         * po/zh_CN.po: Likewise.
45954         * po/header.pot: Likewise.
45955
45956 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
45957
45958         * Makefile ($(common-objpfx)linkobj/libc.so): Define
45959         link-libc-deps to empty as target-specific variable.
45960         * Makerules (link-libc-args): New variable.
45961         (libc-for-link): Likewise.
45962         (link-libc-deps): Likewise.
45963         (lib%.so): Depend on $(link-libc-deps).  Link with
45964         $(link-libc-args).
45965         (build-module): Link with $(link-libc-args).
45966         (build-module-asneeded): Likewise.
45967         (build-module-helper-objlist): Filter out $(link-libc-deps) from
45968         list of objects.
45969         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
45970         target-specific variable.
45971         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
45972         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
45973         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
45974         libc.
45975         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
45976         libc and ld.so.
45977         ($(objpfx)libpcprofile.so): Likewise.
45978         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
45979         libc_nonshared.a.
45980         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
45981         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
45982         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
45983         $(link-libc-deps).
45984         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
45985         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
45986         * login/Makefile ($(objpfx)libutil.so): Likewise.
45987         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
45988         * math/Makefile ($(objpfx)libm.so): Likewise.
45989         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
45990         $(objpfx)libnsl.so): Define libc-for-link as target-specific
45991         variable instead of depending directly on libc.
45992         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
45993         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
45994         $(link-libc-deps).
45995         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
45996         libc.
45997         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
45998         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
45999         ($(objpfx)libanl.so): Likewise.
46000         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46001         ld.so.
46002         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46003         $(link-libc-deps).
46004         * sysdeps/i386/fpu/Makefile: Remove file.
46005         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46006         ($(objpfx)libm.so): Remove dependency on ld.so.
46007
46008 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46009
46010         [BZ # 15553]
46011         * nis/yp_xdr.c (XDRMAXNAME): Define.
46012         (XDRMAXRECORD): Define.
46013         (xdr_domainname): Use XDRMAXNAME.
46014         (xdr_mapname): Likewise.
46015         (xdr_peername): Likewise.
46016         (xdr_keydat): Use XDRMAXRECORD.
46017         (xdr_valdat): Likewise.
46018
46019 2013-05-30  Jeff Law  <law@redhat.com>
46020
46021         [BZ #14256]
46022         * manual/errno.texi (ESTALE): Update to account for more than
46023         just NFS file systems.
46024         * sysdeps/gnu/errlist.c: Regenerated.
46025
46026 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46027
46028         [BZ #15465]
46029         * elf/Makefile (tests): Add tst-null-argv.
46030         (modules-names):  Add tst-null-argv-lib.
46031         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46032         (tst-null-argv-ENV): Set environment for tst-null-argv.
46033         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46034         (RTLD_PROGNAME): New macro.
46035         * elf/tst-null-argv.c: New test case.
46036         * elf/tst-null-argv-lib.c: Library for test case.
46037         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46038         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46039         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46040         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46041         * elf/dl-init.c (call_init): Likewise.
46042         (_dl_init): Likewise.
46043         * elf/dl-load.c (print_search_path): Likewise.
46044         (_dl_map_object): Likewise.
46045         * elf/dl-lookup.c (do_lookup_x): Likewise.
46046         (add_dependency): Likewise.
46047         (_dl_lookup_symbol_x): Likewise.
46048         (_dl_debug_bindings): Likewise.
46049         * elf/dl-open.c (_dl_show_scope): Likewise.
46050         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46051         * elf/dl-version.c (match_symbol): Likewise.
46052         (_dl_check_map_versions): Likewise.
46053         * elf/rtld.c (dl_main): Likewise.
46054         (print_unresolved): Use RTLD_PROGNAME.
46055         (print_missing_version): Likewise.
46056         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46057         (elf_machine_rela): Likewise.
46058         * sysdeps/powerpc/powerpc32/dl-machine.c
46059         (__process_machine_rela): Likewise.
46060         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46061         Likewise.
46062         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46063         Likewise.
46064         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46065         Likewise.
46066         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46067         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46068         Likewise.
46069         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46070         Likewise.
46071         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46072
46073 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46074
46075         * po/be.po: Add descriptive title.
46076         * po/zh_CN.po: Likewise.
46077         * po/header.pot: Likewise.
46078
46079 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46080
46081         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46082         error message.
46083         (enlarge_archive): Likewise.
46084
46085 2013-05-28  Ben North  <ben@redfrontdoor.org>
46086
46087         * manual/arith.texi (frexp): It is the magnitude of the return
46088         value which lies in [0.5, 1), not the return value itself.
46089
46090 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46091
46092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46093
46094 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46095
46096         * stdio-common/bug26.c (main): Correct fscanf template.
46097
46098         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46099         declare _dl_skip_args.
46100
46101         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46102         Don't declare.
46103
46104         * manual/platform.texi: Add missing @end deftypefun.
46105
46106 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46107
46108         [BZ #15529]
46109         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46110         bit of mantissa of 2^16382.
46111         * math/libm-test.inc (hypot_test_data): Add more tests.
46112
46113         * math/libm-test.inc: Add drem and pow10 to list of tested
46114         functions.
46115         (pow10_test): New function.
46116         (drem_test): Likewise.
46117         (drem_test_tonearest): Likewise.
46118         (drem_test_towardzero): Likewise.
46119         (drem_test_downward): Likewise.
46120         (drem_test_upward): Likewise.
46121         (main): Call the new functions.
46122
46123         * math/libm-test.inc (finite_test_data): Remove.
46124         (finite_test): Run tests from isfinite_test_data.
46125         (gamma_test_data): Remove.
46126         (gamma_test): Run tests from lgamma_test_data.
46127         * sysdeps/i386/fpu/libm-test-ulps: Update.
46128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46129
46130 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46131
46132         * manual/platform.texi: Add PowerPC PPR function set documentation.
46133         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46134         implementation.
46135
46136 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46137
46138         * math/libm-test.inc (MAX_EXP): Define.
46139         (ULPDIFF): Define.
46140         (ulp): New function.
46141         (check_float_internal): Use ULPDIFF.
46142         (cpow_test): Disable failing test.
46143         (check_ulp): Test ulp() implemetnation.
46144         (main): Call check_ulp before starting tests.
46145
46146 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46147
46148         * math/gen-libm-test.pl (generate_testfile): Do not handle
46149         START_DATA and END_DATA.
46150         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46151         END_DATA.
46152         (acos_tonearest_test_data): Likewise.
46153         (acos_towardzero_test_data): Likewise.
46154         (acos_downward_test_data): Likewise.
46155         (acos_upward_test_data): Likewise.
46156         (acosh_test_data): Likewise.
46157         (asin_test_data): Likewise.
46158         (asin_tonearest_test_data): Likewise.
46159         (asin_towardzero_test_data): Likewise.
46160         (asin_downward_test_data): Likewise.
46161         (asin_upward_test_data): Likewise.
46162         (asinh_test_data): Likewise.
46163         (atan_test_data): Likewise.
46164         (atanh_test_data): Likewise.
46165         (atan2_test_data): Likewise.
46166         (cabs_test_data): Likewise.
46167         (cacos_test_data): Likewise.
46168         (cacosh_test_data): Likewise.
46169         (carg_test_data): Likewise.
46170         (casin_test_data): Likewise.
46171         (casinh_test_data): Likewise.
46172         (catan_test_data): Likewise.
46173         (catanh_test_data): Likewise.
46174         (cbrt_test_data): Likewise.
46175         (ccos_test_data): Likewise.
46176         (ccosh_test_data): Likewise.
46177         (ceil_test_data): Likewise.
46178         (cexp_test_data): Likewise.
46179         (cimag_test_data): Likewise.
46180         (clog_test_data): Likewise.
46181         (clog10_test_data): Likewise.
46182         (conj_test_data): Likewise.
46183         (copysign_test_data): Likewise.
46184         (cos_test_data): Likewise.
46185         (cos_tonearest_test_data): Likewise.
46186         (cos_towardzero_test_data): Likewise.
46187         (cos_downward_test_data): Likewise.
46188         (cos_upward_test_data): Likewise.
46189         (cosh_test_data): Likewise.
46190         (cosh_tonearest_test_data): Likewise.
46191         (cosh_towardzero_test_data): Likewise.
46192         (cosh_downward_test_data): Likewise.
46193         (cosh_upward_test_data): Likewise.
46194         (cpow_test_data): Likewise.
46195         (cproj_test_data): Likewise.
46196         (creal_test_data): Likewise.
46197         (csin_test_data): Likewise.
46198         (csinh_test_data): Likewise.
46199         (csqrt_test_data): Likewise.
46200         (ctan_test_data): Likewise.
46201         (ctan_tonearest_test_data): Likewise.
46202         (ctan_towardzero_test_data): Likewise.
46203         (ctan_downward_test_data): Likewise.
46204         (ctan_upward_test_data): Likewise.
46205         (ctanh_test_data): Likewise.
46206         (ctanh_tonearest_test_data): Likewise.
46207         (ctanh_towardzero_test_data): Likewise.
46208         (ctanh_downward_test_data): Likewise.
46209         (ctanh_upward_test_data): Likewise.
46210         (erf_test_data): Likewise.
46211         (erfc_test_data): Likewise.
46212         (exp_test_data): Likewise.
46213         (exp_tonearest_test_data): Likewise.
46214         (exp_towardzero_test_data): Likewise.
46215         (exp_downward_test_data): Likewise.
46216         (exp_upward_test_data): Likewise.
46217         (exp10_test_data): Likewise.
46218         (exp2_test_data): Likewise.
46219         (expm1_test_data): Likewise.
46220         (fabs_test_data): Likewise.
46221         (fdim_test_data): Likewise.
46222         (finite_test_data): Likewise.
46223         (floor_test_data): Likewise.
46224         (fma_test_data): Likewise.
46225         (fma_towardzero_test_data): Likewise.
46226         (fma_downward_test_data): Likewise.
46227         (fma_upward_test_data): Likewise.
46228         (fmax_test_data): Likewise.
46229         (fmin_test_data): Likewise.
46230         (fmod_test_data): Likewise.
46231         (fpclassify_test_data): Likewise.
46232         (frexp_test_data): Likewise.
46233         (gamma_test_data): Likewise.
46234         (hypot_test_data): Likewise.
46235         (ilogb_test_data): Likewise.
46236         (isfinite_test_data): Likewise.
46237         (isgreater_test_data): Likewise.
46238         (isgreaterequal_test_data): Likewise.
46239         (isinf_test_data): Likewise.
46240         (isless_test_data): Likewise.
46241         (islessequal_test_data): Likewise.
46242         (islessgreater_test_data): Likewise.
46243         (isnan_test_data): Likewise.
46244         (isnormal_test_data): Likewise.
46245         (issignaling_test_data): Likewise.
46246         (isunordered_test_data): Likewise.
46247         (j0_test_data): Likewise.
46248         (j1_test_data): Likewise.
46249         (jn_test_data): Likewise.
46250         (ldexp_test_data): Likewise.
46251         (lgamma_test_data): Likewise.
46252         (lrint_test_data): Likewise.
46253         (lrint_tonearest_test_data): Likewise.
46254         (lrint_towardzero_test_data): Likewise.
46255         (lrint_downward_test_data): Likewise.
46256         (lrint_upward_test_data): Likewise.
46257         (llrint_test_data): Likewise.
46258         (llrint_tonearest_test_data): Likewise.
46259         (llrint_towardzero_test_data): Likewise.
46260         (llrint_downward_test_data): Likewise.
46261         (llrint_upward_test_data): Likewise.
46262         (log_test_data): Likewise.
46263         (log10_test_data): Likewise.
46264         (log1p_test_data): Likewise.
46265         (log2_test_data): Likewise.
46266         (logb_test_data): Likewise.
46267         (logb_downward_test_data): Likewise.
46268         (lround_test_data): Likewise.
46269         (llround_test_data): Likewise.
46270         (modf_test_data): Likewise.
46271         (nearbyint_test_data): Likewise.
46272         (nextafter_test_data): Likewise.
46273         (nexttoward_test_data): Likewise.
46274         (pow_test_data): Likewise.
46275         (pow_tonearest_test_data): Likewise.
46276         (pow_towardzero_test_data): Likewise.
46277         (pow_downward_test_data): Likewise.
46278         (pow_upward_test_data): Likewise.
46279         (remainder_test_data): Likewise.
46280         (remainder_tonearest_test_data): Likewise.
46281         (remainder_towardzero_test_data): Likewise.
46282         (remainder_downward_test_data): Likewise.
46283         (remainder_upward_test_data): Likewise.
46284         (remquo_test_data): Likewise.
46285         (rint_test_data): Likewise.
46286         (rint_tonearest_test_data): Likewise.
46287         (rint_towardzero_test_data): Likewise.
46288         (rint_downward_test_data): Likewise.
46289         (rint_upward_test_data): Likewise.
46290         (round_test_data): Likewise.
46291         (scalb_test_data): Likewise.
46292         (scalbn_test_data): Likewise.
46293         (scalbln_test_data): Likewise.
46294         (signbit_test_data): Likewise.
46295         (sin_test_data): Likewise.
46296         (sin_tonearest_test_data): Likewise.
46297         (sin_towardzero_test_data): Likewise.
46298         (sin_downward_test_data): Likewise.
46299         (sin_upward_test_data): Likewise.
46300         (sincos_test_data): Likewise.
46301         (sinh_test_data): Likewise.
46302         (sinh_tonearest_test_data): Likewise.
46303         (sinh_towardzero_test_data): Likewise.
46304         (sinh_downward_test_data): Likewise.
46305         (sinh_upward_test_data): Likewise.
46306         (sqrt_test_data): Likewise.
46307         (tan_test_data): Likewise.
46308         (tan_tonearest_test_data): Likewise.
46309         (tan_towardzero_test_data): Likewise.
46310         (tan_downward_test_data): Likewise.
46311         (tan_upward_test_data): Likewise.
46312         (tanh_test_data): Likewise.
46313         (tgamma_test_data): Likewise.
46314         (trunc_test_data): Likewise.
46315         (y0_test_data): Likewise.
46316         (y1_test_data): Likewise.
46317         (yn_test_data): Likewise.
46318         (significand_test_data): Likewise.
46319
46320         * math/gen-libm-test.pl (@functions): Remove variable.
46321         (generate_testfile): Don't handle START and END lines.
46322         * math/libm-test.inc (START): New macro.
46323         (END): Likewise.
46324         (END_COMPLEX): Likewise.
46325         (acos_test): Use END macro without arguments.
46326         (acos_test_tonearest): Likewise.
46327         (acos_test_towardzero): Likewise.
46328         (acos_test_downward): Likewise.
46329         (acos_test_upward): Likewise.
46330         (acosh_test): Likewise.
46331         (asin_test): Likewise.
46332         (asin_test_tonearest): Likewise.
46333         (asin_test_towardzero): Likewise.
46334         (asin_test_downward): Likewise.
46335         (asin_test_upward): Likewise.
46336         (asinh_test): Likewise.
46337         (atan_test): Likewise.
46338         (atanh_test): Likewise.
46339         (atan2_test): Likewise.
46340         (cabs_test): Likewise.
46341         (cacos_test): Use END_COMPLEX macro without arguments.
46342         (cacosh_test): Likewise.
46343         (carg_test): Use END macro without arguments.
46344         (casin_test): Use END_COMPLEX macro without arguments.
46345         (casinh_test): Likewise.
46346         (catan_test): Likewise.
46347         (catanh_test): Likewise.
46348         (cbrt_test): Use END macro without arguments.
46349         (ccos_test): Use END_COMPLEX macro without arguments.
46350         (ccosh_test): Likewise.
46351         (ceil_test): Use END macro without arguments.
46352         (cexp_test): Use END_COMPLEX macro without arguments.
46353         (cimag_test): Use END macro without arguments.
46354         (clog_test): Use END_COMPLEX macro without arguments.
46355         (clog10_test): Likewise.
46356         (conj_test): Likewise.
46357         (copysign_test): Use END macro without arguments.
46358         (cos_test): Likewise.
46359         (cos_test_tonearest): Likewise.
46360         (cos_test_towardzero): Likewise.
46361         (cos_test_downward): Likewise.
46362         (cos_test_upward): Likewise.
46363         (cosh_test): Likewise.
46364         (cosh_test_tonearest): Likewise.
46365         (cosh_test_towardzero): Likewise.
46366         (cosh_test_downward): Likewise.
46367         (cosh_test_upward): Likewise.
46368         (cpow_test): Use END_COMPLEX macro without arguments.
46369         (cproj_test): Likewise.
46370         (creal_test): Use END macro without arguments.
46371         (csin_test): Use END_COMPLEX macro without arguments.
46372         (csinh_test): Likewise.
46373         (csqrt_test): Likewise.
46374         (ctan_test): Likewise.
46375         (ctan_test_tonearest): Likewise.
46376         (ctan_test_towardzero): Likewise.
46377         (ctan_test_downward): Likewise.
46378         (ctan_test_upward): Likewise.
46379         (ctanh_test): Likewise.
46380         (ctanh_test_tonearest): Likewise.
46381         (ctanh_test_towardzero): Likewise.
46382         (ctanh_test_downward): Likewise.
46383         (ctanh_test_upward): Likewise.
46384         (erf_test): Use END macro without arguments.
46385         (erfc_test): Likewise.
46386         (exp_test): Likewise.
46387         (exp_test_tonearest): Likewise.
46388         (exp_test_towardzero): Likewise.
46389         (exp_test_downward): Likewise.
46390         (exp_test_upward): Likewise.
46391         (exp10_test): Likewise.
46392         (exp2_test): Likewise.
46393         (expm1_test): Likewise.
46394         (fabs_test): Likewise.
46395         (fdim_test): Likewise.
46396         (finite_test): Likewise.
46397         (floor_test): Likewise.
46398         (fma_test): Likewise.
46399         (fma_test_towardzero): Likewise.
46400         (fma_test_downward): Likewise.
46401         (fma_test_upward): Likewise.
46402         (fmax_test): Likewise.
46403         (fmin_test): Likewise.
46404         (fmod_test): Likewise.
46405         (fpclassify_test): Likewise.
46406         (frexp_test): Likewise.
46407         (gamma_test): Likewise.
46408         (hypot_test): Likewise.
46409         (ilogb_test): Likewise.
46410         (isfinite_test): Likewise.
46411         (isgreater_test): Likewise.
46412         (isgreaterequal_test): Likewise.
46413         (isinf_test): Likewise.
46414         (isless_test): Likewise.
46415         (islessequal_test): Likewise.
46416         (islessgreater_test): Likewise.
46417         (isnan_test): Likewise.
46418         (isnormal_test): Likewise.
46419         (issignaling_test): Likewise.
46420         (isunordered_test): Likewise.
46421         (j0_test): Likewise.
46422         (j1_test): Likewise.
46423         (jn_test): Likewise.
46424         (ldexp_test): Likewise.
46425         (lgamma_test): Likewise.
46426         (lrint_test): Likewise.
46427         (lrint_test_tonearest): Likewise.
46428         (lrint_test_towardzero): Likewise.
46429         (lrint_test_downward): Likewise.
46430         (lrint_test_upward): Likewise.
46431         (llrint_test): Likewise.
46432         (llrint_test_tonearest): Likewise.
46433         (llrint_test_towardzero): Likewise.
46434         (llrint_test_downward): Likewise.
46435         (llrint_test_upward): Likewise.
46436         (log_test): Likewise.
46437         (log10_test): Likewise.
46438         (log1p_test): Likewise.
46439         (log2_test): Likewise.
46440         (logb_test): Likewise.
46441         (logb_test_downward): Likewise.
46442         (lround_test): Likewise.
46443         (llround_test): Likewise.
46444         (modf_test): Likewise.
46445         (nearbyint_test): Likewise.
46446         (nextafter_test): Likewise.
46447         (nexttoward_test): Likewise.
46448         (pow_test): Likewise.
46449         (pow_test_tonearest): Likewise.
46450         (pow_test_towardzero): Likewise.
46451         (pow_test_downward): Likewise.
46452         (pow_test_upward): Likewise.
46453         (remainder_test): Likewise.
46454         (remainder_test_tonearest): Likewise.
46455         (remainder_test_towardzero): Likewise.
46456         (remainder_test_downward): Likewise.
46457         (remainder_test_upward): Likewise.
46458         (remquo_test): Likewise.
46459         (rint_test): Likewise.
46460         (rint_test_tonearest): Likewise.
46461         (rint_test_towardzero): Likewise.
46462         (rint_test_downward): Likewise.
46463         (rint_test_upward): Likewise.
46464         (round_test): Likewise.
46465         (scalb_test): Likewise.
46466         (scalbn_test): Likewise.
46467         (scalbln_test): Likewise.
46468         (signbit_test): Likewise.
46469         (sin_test): Likewise.
46470         (sin_test_tonearest): Likewise.
46471         (sin_test_towardzero): Likewise.
46472         (sin_test_downward): Likewise.
46473         (sin_test_upward): Likewise.
46474         (sincos_test): Likewise.
46475         (sinh_test): Likewise.
46476         (sinh_test_tonearest): Likewise.
46477         (sinh_test_towardzero): Likewise.
46478         (sinh_test_downward): Likewise.
46479         (sinh_test_upward): Likewise.
46480         (sqrt_test): Likewise.
46481         (tan_test): Likewise.
46482         (tan_test_tonearest): Likewise.
46483         (tan_test_towardzero): Likewise.
46484         (tan_test_downward): Likewise.
46485         (tan_test_upward): Likewise.
46486         (tanh_test): Likewise.
46487         (tgamma_test): Likewise.
46488         (trunc_test): Likewise.
46489         (y0_test): Likewise.
46490         (y1_test): Likewise.
46491         (yn_test): Likewise.
46492         (significand_test): Likewise.
46493
46494 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46495
46496         [BZ #15381]
46497         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46498
46499 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46500
46501         [BZ #14894]
46502         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46503         __ppc_mdoio and __ppc_mdoom.
46504         * manual/platform.texi: Document new functions __ppc_yield,
46505         __ppc_mdoio and __ppc_mdoom.
46506
46507 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46508
46509         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46510         (main): Mention "tls" pseudo-hwcap is legacy.
46511         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46512
46513 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46514
46515         * math/gen-libm-test.pl (parse_args): Output only string of
46516         arguments as text for test name, not full call or descriptions of
46517         tests for extra outputs.
46518         (generate_testfile): Do not pass function name to parse_args.
46519         Generate this_func variable from START.
46520         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46521         field to arg_str.
46522         (struct test_ff_f_data): Likewise.
46523         (test_ff_f_data_nexttoward): Likewise.
46524         (struct test_fi_f_data): Likewise.
46525         (struct test_fl_f_data): Likewise.
46526         (struct test_if_f_data): Likewise.
46527         (struct test_fff_f_data): Likewise.
46528         (struct test_c_f_data): Likewise.
46529         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46530         (struct test_fF_f1_data): Likewise.
46531         (struct test_ffI_f1_data): Likewise.
46532         (struct test_c_c_data): Rename test_name field to arg_str.
46533         (struct test_cc_c_data): Likewise.
46534         (struct test_f_i_data): Likewise.
46535         (struct test_ff_i_data): Likewise.
46536         (struct test_f_l_data): Likewise.
46537         (struct test_f_L_data): Likewise.
46538         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46539         and extra2_name.
46540         (COMMON_TEST_SETUP): New macro.
46541         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46542         (COMMON_TEST_CLEANUP): Likewise.
46543         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46544         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46545         macros.
46546         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46547         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46548         macros.
46549         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46550         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46551         cleanup macros.
46552         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46553         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46554         macros.
46555         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46556         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46557         macros.
46558         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46559         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46560         cleanup macros.
46561         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46562         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46563         cleanup macros.
46564         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46565         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46566         cleanup macros.
46567         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46568         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46569         macros.
46570         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46571         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46572         macros.
46573         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46574         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46575         macros.
46576         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46577         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46578         cleanup macros.
46579         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46580         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46581         cleanup macros.
46582         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46583         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46584         macros.
46585         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46586         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46587         cleanup macros.
46588         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46589         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46590         macros.
46591         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46592         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46593         macros.
46594         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46595         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46596         cleanup macros.
46597         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46598
46599 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46600
46601         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46602         to _sifields.sigfault.
46603         (si_addr_lsb): Define new macro.
46604         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46605         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46606         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46607
46608 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46609
46610         [BZ #15441]
46611         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46612         returns -1.
46613         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46614         null return -1.
46615         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46616         loading the domain.
46617
46618 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46619
46620         * math/gen-libm-test.pl (parse_args): Do not include expected
46621         result in test name.
46622         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46623         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46624         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46625         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46626         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46628
46629 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46630
46631         * benchtests/Makefile: Sort function entries.
46632
46633         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46634         tanh, asinh, acosh, atanh.
46635         * benchtests/acos-inputs: New file.
46636         * benchtests/acosh-inputs: New file.
46637         * benchtests/asin-inputs: New file.
46638         * benchtests/asinh-inputs: New file.
46639         * benchtests/atanh-inputs: New file.
46640         * benchtests/cosh-inputs: New file.
46641         * benchtests/log-inputs: New file.
46642         * benchtests/sinh-inputs: New file.
46643         * benchtests/tanh-inputs: New file.
46644
46645 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46646
46647         [BZ #15339]
46648         * posix/tst-getaddrinfo4.c: New test.
46649         * posix/Makefile (tests): Add it.
46650
46651 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46652
46653         [BZ #15339]
46654         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46655         when no services were used.
46656         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46657         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46658
46659 2013-05-21  Andreas Schwab  <schwab@suse.de>
46660
46661         [BZ #15014]
46662         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46663         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46664         successful.
46665         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46666         redundant variable declarations and reallocation of buffer when
46667         parsing as IPv6 address.  Always set NSS status when called from
46668         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46669         buffer too small.  Correct computation of needed size.
46670         * nss/Makefile (tests): Add test-digits-dots.
46671         * nss/test-digits-dots.c: New test.
46672
46673 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46674
46675         * benchtests/Makefile: Remove instructions for adding
46676         benchmark tests.
46677         * benchtests/README: New file to explain how to execute and
46678         enhance the benchmark tests.
46679
46680 2013-05-21  Andreas Schwab  <schwab@suse.de>
46681
46682         [BZ #15493]
46683         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46684         * setjmp/tst-sigsetjmp.c: New test.
46685
46686 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46687
46688         * sysdeps/x86_64/memset.S (memset): New implementation.
46689         (__bzero): Likewise.
46690         (__memset_tail): New function.
46691
46692 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46693
46694         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46695         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46696         __memcpy_sse2_unaligned ifunc selection.
46697         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46698         Add memcpy-sse2-unaligned.S.
46699         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46700         Add: __memcpy_sse2_unaligned.
46701
46702 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46703
46704         [BZ #15490]
46705         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46706         math_force_eval before restoring floating-point envrionment.
46707         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46708         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46709         Likewise.
46710         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46711         <math_private.h>.
46712         (__nearbyintl): Use math_force_eval before restoring
46713         floating-point environment.
46714         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46715
46716         * math/gen-libm-test.pl (special_functions): Remove.
46717         (parse_args): Don't handle TEST_extra.  Handle functions with no
46718         return value.
46719         * math/libm-test.inc (struct test_sincos_data): Replace with
46720         struct test_fFF_11_data.
46721         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46722         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46723         (sincos_test_data): Change element type to struct
46724         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46725         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46726         RUN_TEST_LOOP_sincos.
46727         * math/README.libm-test: Don't mention special handling of
46728         individual functions.
46729         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46730         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46731         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46732         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46733         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46735
46736         * math/gen-libm-test.pl (get_variable): Remove function.
46737         (parse_args): Don't show pointer parameters to call in test
46738         names.  Use "extra output N" in test names for extra outputs
46739         rather than naming variables.
46740
46741 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46742
46743         [BZ #15488]
46744         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46745         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46746         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46747         double tests.
46748         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46749         disable.
46750         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46751         check_long_double.
46752
46753         * math/gen-libm-test.pl (@tests): Remove variable.
46754         ($count): Likewise.
46755         (new_test): Remove function.
46756         (show_exceptions): New function.
46757         (special_functions): Use show_exceptions instead of new_test.
46758         (parse_args): Likewise.
46759         (generate_testfile): Pass only function name in generated call to
46760         print_max_error or print_complex_max_error.
46761         (get_ulps): Do not handle complex tests specially.
46762         (output_test): Rename to ...
46763         (get_all_ulps_for_test): ... this.  Return a string rather than
46764         printing to a file.  Require ulps to be present.
46765         (output_ulps): Generate arrays rather than #defines.
46766         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46767         (struct ulp_data): New type.
46768         (BUILD_COMPLEX_ULP): Remove macro.
46769         (compare_ulp_data): New function.
46770         (find_ulps): Likewise.
46771         (find_test_ulps): Likewise.
46772         (find_function_ulps): Likewise.
46773         (find_complex_function_ulps): Likewise.
46774         (print_max_error): Determine allowed ulps using
46775         find_function_ulps.
46776         (print_complex_max_error): Determine allowed ulps using
46777         find_complex_function_ulps.
46778         (check_float_internal): Determine max ulps using find_test_ulps.
46779         (check_float): Do not take max_ulp parameter.  Update call to
46780         check_float_internal.
46781         (check_complex): Likewise.
46782         (check_int): Do not take max_ulp parameter.
46783         (check_long): Likewise.
46784         (check_bool): Likewise.
46785         (check_longlong): Likewise.
46786         (struct test_f_f_data): Remove max_ulp field.
46787         (struct test_ff_f_data): Likewise.
46788         (struct test_ff_f_data_nexttoward): Likewise.
46789         (struct test_fi_f_data): Likewise.
46790         (struct test_fl_f_data): Likewise.
46791         (struct test_if_f_data): Likewise.
46792         (struct test_fff_f_data): Likewise.
46793         (struct test_c_f_data): Likewise.
46794         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46795         (struct test_fF_f1_data): Likewise.
46796         (struct test_ffI_f1_data): Likewise.
46797         (struct test_c_c_data): Remove max_ulp field.
46798         (struct test_cc_c_data): Likewise.
46799         (struct test_f_i_data): Likewise.
46800         (struct test_ff_i_data): Likewise.
46801         (struct test_f_l_data): Likewise.
46802         (struct test_f_L_data): Likewise.
46803         (struct test_sincos_data): Likewise.
46804         (RUN_TEST_f_f): Do not handle ulps.
46805         (RUN_TEST_LOOP_f_f): Likewise.
46806         (RUN_TEST_2_f): Likewise.
46807         (RUN_TEST_LOOP_2_f): Likewise.
46808         (RUN_TEST_fff_f): Likewise.
46809         (RUN_TEST_LOOP_fff_f): Likewise.
46810         (RUN_TEST_c_f): Likewise.
46811         (RUN_TEST_LOOP_c_f): Likewise.
46812         (RUN_TEST_f_f1): Likewise.
46813         (RUN_TEST_LOOP_f_f1): Likewise.
46814         (RUN_TEST_fF_f1): Likewise.
46815         (RUN_TEST_LOOP_fF_f1): Likewise.
46816         (RUN_TEST_fI_f1): Likewise.
46817         (RUN_TEST_LOOP_fI_f1): Likewise.
46818         (RUN_TEST_ffI_f1): Likewise.
46819         (RUN_TEST_LOOP_ffI_f1): Likewise.
46820         (RUN_TEST_c_c): Likewise.
46821         (RUN_TEST_LOOP_c_c): Likewise.
46822         (RUN_TEST_cc_c): Likewise.
46823         (RUN_TEST_LOOP_cc_c): Likewise.
46824         (RUN_TEST_f_i): Likewise.
46825         (RUN_TEST_LOOP_f_i): Likewise.
46826         (RUN_TEST_f_i_tg): Likewise.
46827         (RUN_TEST_LOOP_f_i_tg): Likewise.
46828         (RUN_TEST_ff_i_tg): Likewise.
46829         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46830         (RUN_TEST_f_b): Likewise.
46831         (RUN_TEST_LOOP_f_b): Likewise.
46832         (RUN_TEST_f_b_tg): Likewise.
46833         (RUN_TEST_LOOP_f_b_tg): Likewise.
46834         (RUN_TEST_f_l): Likewise.
46835         (RUN_TEST_LOOP_f_l): Likewise.
46836         (RUN_TEST_f_L): Likewise.
46837         (RUN_TEST_LOOP_f_L): Likewise.
46838         (RUN_TEST_sincos): Likewise.
46839         (RUN_TEST_LOOP_sincos): Likewise.
46840
46841 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46842
46843         [BZ #15480]
46844         [BZ #15485]
46845         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46846         main case of finite arguments, set rounding mode to FE_TONEAREST
46847         and discard exceptions.
46848         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
46849         exceptions.
46850         (remainder_tonearest_test_data): New variable.
46851         (remainder_test_tonearest): New function.
46852         (remainder_towardzero_test_data): New variable.
46853         (remainder_test_towardzero): New function.
46854         (remainder_downward_test_data): New variable.
46855         (remainder_test_downward): New function.
46856         (remainder_upward_test_data): New variable.
46857         (remainder_test_upward): New function.
46858         (main): Call the new test functions.
46859
46860         * math/libm-test.inc (struct test_f_f1_data): Remove field
46861         extra_init.
46862         (struct test_fF_f1_data): Likewise.
46863         (struct test_ffI_f1_data): Likewise.
46864         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
46865         based on value of EXTRA_EXPECTED.
46866         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46867         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
46868         EXTRA_VAR based on value of EXTRA_EXPECTED.
46869         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46870         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
46871         EXTRA_VAR based on value of EXTRA_EXPECTED.
46872         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46873         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
46874         EXTRA_VAR based on value of EXTRA_EXPECTED.
46875         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46876         * math/gen-libm-test.pl (parse_args): Don't output initializers
46877         for extra output values.
46878
46879         * math/libm-test.inc (check_int): Expect result to be exactly
46880         equal to expected value and do not handle ulps.
46881         (check_long): Likewise.
46882         (check_longlong): Likewise.
46883
46884         * math/libm-test.inc (ceil_test_data): Test for "inexact"
46885         exceptions.
46886         (cimag_test_data): Likewise.
46887         (conj_test_data): Likewise.
46888         (copysign_test_data): Likewise.
46889         (cproj_test_data): Likewise.
46890         (creal_test_data): Likewise.
46891         (fabs_test_data): Likewise.
46892         (fdim_test_data): Likewise.
46893         (finite_test_data): Likewise.
46894         (floor_test_data): Likewise.
46895         (fmax_test_data): Likewise.
46896         (fmin_test_data): Likewise.
46897         (fmod_test_data): Likewise.
46898         (fpclassify_test_data): Likewise.
46899         (frexp_test_data): Likewise.
46900         (ilogb_test_data): Likewise.
46901         (isfinite_test_data): Likewise.
46902         (isgreater_test_data): Likewise.
46903         (isgreaterequal_test_data): Likewise.
46904         (isinf_test_data): Likewise.
46905         (isless_test_data): Likewise.
46906         (islessequal_test_data): Likewise.
46907         (islessgreater_test_data): Likewise.
46908         (isnan_test_data): Likewise.
46909         (isnormal_test_data): Likewise.
46910         (issignaling_test_data): Likewise.
46911         (isunordered_test_data): Likewise.
46912         (ldexp_test_data): Likewise.
46913         (lrint_test_data): Likewise.
46914         (lrint_test_data) [TEST_FLOAT]: Disable one test.
46915         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
46916         (lrint_tonearest_test_data): Test for "inexact" exceptions.
46917         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46918         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
46919         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46920         test input.
46921         (lrint_towardzero_test_data): Test for "inexact" exceptions.
46922         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46923         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
46924         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
46925         that test input.
46926         (lrint_downward_test_data): Test for "inexact" exceptions.
46927         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46928         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
46929         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46930         test input.
46931         (lrint_upward_test_data): Test for "inexact" exceptions.
46932         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
46933         test input.
46934         (llrint_test_data): Test for "inexact" exceptions.
46935         (llrint_test_data) [TEST_FLOAT]: Disable one test.
46936         (llrint_tonearest_test_data): Test for "inexact" exceptions.
46937         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46938         (llrint_towardzero_test_data): Test for "inexact" exceptions.
46939         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46940         (llrint_downward_test_data): Test for "inexact" exceptions.
46941         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46942         (llrint_upward_test_data): Test for "inexact" exceptions.
46943         (logb_test_data): Likewise.
46944         (logb_downward_test_data): Likewise.
46945         (nextafter_test_data): Likewise.
46946         (nexttoward_test_data): Likewise.
46947         (remainder_test_data): Likewise.
46948         (remquo_test_data): Likewise.
46949         (scalbn_test_data): Likewise.
46950         (scalbln_test_data): Likewise.
46951         (signbit_test_data): Likewise.
46952         (sqrt_test_data): Likewise.
46953         (significand_test_data): Likewise.
46954
46955 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
46956
46957         [BZ #15424]
46958         * benchtests/bench-modf.c (struct args): Mark arg0 as
46959         volatile.
46960         * scripts/bench.pl: Mark members of struct args as volatile.
46961
46962 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46963
46964         [BZ # 15497]
46965         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
46966         negative infinity on POWER6 or lower.
46967         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
46968
46969 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46970
46971         [BZ #15442]
46972         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
46973         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
46974         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
46975         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
46976         (_FP_SETQNAN): New macro.
46977         (_FP_SETQNAN_SEMIRAW): Likewise.
46978         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
46979         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
46980         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
46981         (FP_EXTEND): Use _FP_FRAC_SNANP.
46982         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
46983         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
46984         into account.
46985         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46986         New macro.
46987         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46988         Likewise.
46989
46990 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
46991
46992         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
46993         with DIVIDE_BY_ZERO_EXCEPTION.
46994         (gamma_test_data): Likewise.
46995         (lgamma_test_data): Likewise.
46996         (log_test_data): Likewise.
46997         (log10_test_data): Likewise.
46998         (log2_test_data): Likewise.
46999         (tgamma_test_data): Likewise.
47000
47001         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47002         (acos_test_tonearest): Likewise.
47003         (acos_test_towardzero): Likewise.
47004         (acos_test_downward): Likewise.
47005         (acos_test_upward): Likewise.
47006         (acosh_test): Likewise.
47007         (asin_test): Likewise.
47008         (asin_test_tonearest): Likewise.
47009         (asin_test_towardzero): Likewise.
47010         (asin_test_downward): Likewise.
47011         (asin_test_upward): Likewise.
47012         (asinh_test): Likewise.
47013         (atan_test): Likewise.
47014         (atanh_test): Likewise.
47015         (atan2_test): Likewise.
47016         (cabs_test): Likewise.
47017         (cacos_test): Likewise.
47018         (cacosh_test): Likewise.
47019         (casin_test): Likewise.
47020         (casinh_test): Likewise.
47021         (catan_test): Likewise.
47022         (catanh_test): Likewise.
47023         (cbrt_test): Likewise.
47024         (ccos_test): Likewise.
47025         (ccosh_test): Likewise.
47026         (cexp_test): Likewise.
47027         (clog_test): Likewise.
47028         (clog10_test): Likewise.
47029         (cos_test): Likewise.
47030         (cos_test_tonearest): Likewise.
47031         (cos_test_towardzero): Likewise.
47032         (cos_test_downward): Likewise.
47033         (cos_test_upward): Likewise.
47034         (cosh_test): Likewise.
47035         (cosh_test_tonearest): Likewise.
47036         (cosh_test_towardzero): Likewise.
47037         (cosh_test_downward): Likewise.
47038         (cosh_test_upward): Likewise.
47039         (cpow_test): Likewise.
47040         (csin_test): Likewise.
47041         (csinh_test): Likewise.
47042         (csqrt_test): Likewise.
47043         (ctan_test): Likewise.
47044         (ctan_test_tonearest): Likewise.
47045         (ctan_test_towardzero): Likewise.
47046         (ctan_test_downward): Likewise.
47047         (ctan_test_upward): Likewise.
47048         (ctanh_test): Likewise.
47049         (ctanh_test_tonearest): Likewise.
47050         (ctanh_test_towardzero): Likewise.
47051         (ctanh_test_downward): Likewise.
47052         (ctanh_test_upward): Likewise.
47053         (erf_test): Likewise.
47054         (erfc_test): Likewise.
47055         (exp_test): Likewise.
47056         (exp_test_tonearest): Likewise.
47057         (exp_test_towardzero): Likewise.
47058         (exp_test_downward): Likewise.
47059         (exp_test_upward): Likewise.
47060         (exp10_test): Likewise.
47061         (exp2_test): Likewise.
47062         (expm1_test): Likewise.
47063         (fmod_test): Likewise.
47064         (gamma_test): Likewise.
47065         (hypot_test): Likewise.
47066         (j0_test): Likewise.
47067         (j1_test): Likewise.
47068         (jn_test): Likewise.
47069         (lgamma_test): Likewise.
47070         (log_test): Likewise.
47071         (log10_test): Likewise.
47072         (log1p_test): Likewise.
47073         (log2_test): Likewise.
47074         (logb_test_downward): Likewise.
47075         (pow_test): Likewise.
47076         (pow_test_tonearest): Likewise.
47077         (pow_test_towardzero): Likewise.
47078         (pow_test_downward): Likewise.
47079         (pow_test_upward): Likewise.
47080         (remainder_test): Likewise.
47081         (remquo_test): Likewise.
47082         (sin_test): Likewise.
47083         (sin_test_tonearest): Likewise.
47084         (sin_test_towardzero): Likewise.
47085         (sin_test_downward): Likewise.
47086         (sin_test_upward): Likewise.
47087         (sincos_test): Likewise.
47088         (sinh_test): Likewise.
47089         (sinh_test_tonearest): Likewise.
47090         (sinh_test_towardzero): Likewise.
47091         (sinh_test_downward): Likewise.
47092         (sinh_test_upward): Likewise.
47093         (sqrt_test): Likewise.
47094         (tan_test): Likewise.
47095         (tan_test_tonearest): Likewise.
47096         (tan_test_towardzero): Likewise.
47097         (tan_test_downward): Likewise.
47098         (tan_test_upward): Likewise.
47099         (tanh_test): Likewise.
47100         (tgamma_test): Likewise.
47101         (y0_test): Likewise.
47102         (y1_test): Likewise.
47103         (yn_test): Likewise.
47104
47105         * math/gen-libm-test.pl (adjust_arg): Remove function.
47106         (special_function): Remove argument $in_func.  Only handle
47107         generating output for tables of tests, not inside functions.
47108         (parse_args): Likewise.
47109         (generate_testfile): Remove variable $in_func.  Update call to
47110         parse_args.
47111         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47112         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47113         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47114         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47115         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47116         (MAX_VALUE_INIT): Rename macro to max_value.
47117         (MIN_VALUE_INIT): Rename macro to min_value.
47118         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47119         (plus_zero): Remove variable.
47120         (minus_zero): Likewise.
47121         (plus_infty): Likewise.
47122         (minus_infty): Likewise.
47123         (qnan_value): Likewise.
47124         (max_value): Likewise.
47125         (min_value): Likewise.
47126         (min_subnorm_value): Likewise.
47127
47128 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47129
47130         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47131         uint64_t or uint32_t usage.
47132         * crypt/sha256-block.c: Likewise.
47133         * crypt/sha256-crypt.c: Likewise.
47134         * crypt/sha256.c: Likewise.
47135         * crypt/sha512-block.c: Likewise.
47136         * crypt/sha512-crypt.c: Likewise.
47137         * crypt/sha512.c: Likewise.
47138         * debug/backtrace-tst.c: Likewise.
47139         * debug/pcprofiledump.c: Likewise.
47140         * elf/cache.c: Likewise.
47141         * elf/dl-cache.c: Likewise.
47142         * elf/dl-misc.c: Likewise.
47143         * elf/dl-profile.c: Likewise.
47144         * elf/dl-support.c: Likewise.
47145         * elf/ldconfig.c: Likewise.
47146         * elf/sprof.c: Likewise.
47147         * iconv/dummy-repertoire.c: Likewise.
47148         * iconv/iconv_charmap.c: Likewise.
47149         * iconv/skeleton.c: Likewise.
47150         * iconvdata/8bit-generic.c: Likewise.
47151         * iconvdata/cp737.h: Likewise.
47152         * iconvdata/cp775.h: Likewise.
47153         * iconvdata/ibm1008.h: Likewise.
47154         * iconvdata/ibm1025.h: Likewise.
47155         * iconvdata/ibm1046.h: Likewise.
47156         * iconvdata/ibm1097.h: Likewise.
47157         * iconvdata/ibm1112.h: Likewise.
47158         * iconvdata/ibm1122.h: Likewise.
47159         * iconvdata/ibm1123.h: Likewise.
47160         * iconvdata/ibm1124.h: Likewise.
47161         * iconvdata/ibm1129.h: Likewise.
47162         * iconvdata/ibm1130.h: Likewise.
47163         * iconvdata/ibm1132.h: Likewise.
47164         * iconvdata/ibm1133.h: Likewise.
47165         * iconvdata/ibm1137.h: Likewise.
47166         * iconvdata/ibm1140.h: Likewise.
47167         * iconvdata/ibm1141.h: Likewise.
47168         * iconvdata/ibm1142.h: Likewise.
47169         * iconvdata/ibm1143.h: Likewise.
47170         * iconvdata/ibm1144.h: Likewise.
47171         * iconvdata/ibm1145.h: Likewise.
47172         * iconvdata/ibm1146.h: Likewise.
47173         * iconvdata/ibm1147.h: Likewise.
47174         * iconvdata/ibm1148.h: Likewise.
47175         * iconvdata/ibm1149.h: Likewise.
47176         * iconvdata/ibm1153.h: Likewise.
47177         * iconvdata/ibm1154.h: Likewise.
47178         * iconvdata/ibm1155.h: Likewise.
47179         * iconvdata/ibm1156.h: Likewise.
47180         * iconvdata/ibm1157.h: Likewise.
47181         * iconvdata/ibm1158.h: Likewise.
47182         * iconvdata/ibm1160.h: Likewise.
47183         * iconvdata/ibm1161.h: Likewise.
47184         * iconvdata/ibm1162.h: Likewise.
47185         * iconvdata/ibm1163.h: Likewise.
47186         * iconvdata/ibm1164.h: Likewise.
47187         * iconvdata/ibm1166.h: Likewise.
47188         * iconvdata/ibm1167.h: Likewise.
47189         * iconvdata/ibm12712.h: Likewise.
47190         * iconvdata/ibm1390.h: Likewise.
47191         * iconvdata/ibm1399.h: Likewise.
47192         * iconvdata/ibm16804.h: Likewise.
47193         * iconvdata/ibm4517.h: Likewise.
47194         * iconvdata/ibm4899.h: Likewise.
47195         * iconvdata/ibm4909.h: Likewise.
47196         * iconvdata/ibm4971.h: Likewise.
47197         * iconvdata/ibm5347.h: Likewise.
47198         * iconvdata/ibm803.h: Likewise.
47199         * iconvdata/ibm856.h: Likewise.
47200         * iconvdata/ibm901.h: Likewise.
47201         * iconvdata/ibm902.h: Likewise.
47202         * iconvdata/ibm9030.h: Likewise.
47203         * iconvdata/ibm9066.h: Likewise.
47204         * iconvdata/ibm921.h: Likewise.
47205         * iconvdata/ibm922.h: Likewise.
47206         * iconvdata/ibm9448.h: Likewise.
47207         * iconvdata/isiri-3342.h: Likewise.
47208         * iconvdata/jis0201.h: Likewise.
47209         * include/link.h: Likewise.
47210         * include/netdb.h: Likewise.
47211         * inet/check_native.c: Likewise.
47212         * inet/check_pf.c: Likewise.
47213         * inet/getipv4sourcefilter.c: Likewise.
47214         * inet/getnameinfo.c: Likewise.
47215         * inet/getsourcefilter.c: Likewise.
47216         * inet/htonl.c: Likewise.
47217         * inet/setipv4sourcefilter.c: Likewise.
47218         * inet/setsourcefilter.c: Likewise.
47219         * inet/test-inet6_opt.c: Likewise.
47220         * inet/tst-network.c: Likewise.
47221         * locale/C-collate.c: Likewise.
47222         * locale/C-ctype.c: Likewise.
47223         * locale/C-time.c: Likewise.
47224         * locale/C-translit.h: Likewise.
47225         * locale/loadarchive.c: Likewise.
47226         * locale/programs/3level.h: Likewise.
47227         * locale/programs/charmap.c: Likewise.
47228         * locale/programs/charmap.h: Likewise.
47229         * locale/programs/ld-address.c: Likewise.
47230         * locale/programs/ld-collate.c: Likewise.
47231         * locale/programs/ld-ctype.c: Likewise.
47232         * locale/programs/ld-identification.c: Likewise.
47233         * locale/programs/ld-measurement.c: Likewise.
47234         * locale/programs/ld-messages.c: Likewise.
47235         * locale/programs/ld-monetary.c: Likewise.
47236         * locale/programs/ld-name.c: Likewise.
47237         * locale/programs/ld-numeric.c: Likewise.
47238         * locale/programs/ld-paper.c: Likewise.
47239         * locale/programs/ld-telephone.c: Likewise.
47240         * locale/programs/ld-time.c: Likewise.
47241         * locale/programs/linereader.c: Likewise.
47242         * locale/programs/locale.c: Likewise.
47243         * locale/programs/locarchive.c: Likewise.
47244         * locale/programs/locfile.h: Likewise.
47245         * locale/programs/repertoire.c: Likewise.
47246         * locale/programs/simple-hash.c: Likewise.
47247         * locale/programs/simple-hash.h: Likewise.
47248         * malloc/memusage.c: Likewise.
47249         * malloc/memusagestat.c: Likewise.
47250         * nis/nis_defaults.c: Likewise.
47251         * nis/nis_hash.c: Likewise.
47252         * nis/nis_print.c: Likewise.
47253         * nis/nis_xdr.c: Likewise.
47254         * nscd/connections.c: Likewise.
47255         * nscd/hstcache.c: Likewise.
47256         * nscd/nscd_gethst_r.c: Likewise.
47257         * nscd/nscd_getserv_r.c: Likewise.
47258         * nscd/nscd_helper.c: Likewise.
47259         * nscd/servicescache.c: Likewise.
47260         * nss/makedb.c: Likewise.
47261         * nss/nss_db/db-XXX.c: Likewise.
47262         * nss/nss_db/db-initgroups.c: Likewise.
47263         * nss/nss_db/db-netgrp.c: Likewise.
47264         * nss/nss_files/files-network.c: Likewise.
47265         * nss/nss_files/files-parse.c: Likewise.
47266         * posix/bug-regex5.c: Likewise.
47267         * posix/fnmatch_loop.c: Likewise.
47268         * posix/regcomp.c: Likewise.
47269         * posix/regexec.c: Likewise.
47270         * posix/tst-rfc3484-2.c: Likewise.
47271         * posix/tst-rfc3484-3.c: Likewise.
47272         * posix/tst-rfc3484.c: Likewise.
47273         * resolv/nss_dns/dns-canon.c: Likewise.
47274         * resolv/nss_dns/dns-network.c: Likewise.
47275         * resolv/res_init.c: Likewise.
47276         * resolv/res_mkquery.c: Likewise.
47277         * resolv/tst-aton.c: Likewise.
47278         * stdlib/cxa_atexit.c: Likewise.
47279         * stdlib/cxa_finalize.c: Likewise.
47280         * stdlib/gen-fpioconst.c: Likewise.
47281         * stdlib/strtol_l.c: Likewise.
47282         * string/tst-endian.c: Likewise.
47283         * sunrpc/auth_des.c: Likewise.
47284         * sunrpc/clnt_udp.c: Likewise.
47285         * sunrpc/rtime.c: Likewise.
47286         * sunrpc/svcauth_des.c: Likewise.
47287         * sunrpc/xdr.c: Likewise.
47288         * sunrpc/xdr_intXX_t.c: Likewise.
47289         * sunrpc/xdr_rec.c: Likewise.
47290         * sysdeps/generic/ldconfig.h: Likewise.
47291         * sysdeps/generic/ldsodefs.h: Likewise.
47292         * sysdeps/generic/memusage.h: Likewise.
47293         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47294         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47295         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47296         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47297         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47298         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47299         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47300         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47301         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47302         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47303         * sysdeps/posix/getaddrinfo.c: Likewise.
47304         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47305         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47306         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47307         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47308         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47309         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47310         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47311         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47312         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47313         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47314         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47315         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47316         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47317         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47318         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47319         * sysdeps/x86_64/dl-tls.h: Likewise.
47320         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47321         * time/alt_digit.c: Likewise.
47322         * time/era.c: Likewise.
47323         * wcsmbs/tst-c16c32-1.c: Likewise.
47324
47325 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47326
47327         * math/libm-test.inc (struct test_sincos_data): New type.
47328         (RUN_TEST_LOOP_sincos): New macro.
47329         (sincos_test_data): New variable.
47330         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47331
47332 2013-05-16  Richard Henderson  <rth@redhat.com>
47333
47334         * math/atest-exp2.c (LIMB64): New macro.
47335         (CONSTSZ): New macro.
47336         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47337         (hexdig): Move ...
47338         (print_mpn_fp): ... to function scope.
47339         (read_mpn_hex): Remove.
47340         (get_log2): Remove.
47341         (exp2_mpn): Use mp_log2.
47342         (main): Use mp_exp1.
47343
47344 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47345
47346         * math/libm-test.inc: Remove comment about not testing "inexact"
47347         exceptions.
47348         (INEXACT_EXCEPTION): New macro.
47349         (NO_INEXACT_EXCEPTION): Likewise.
47350         (INVALID_EXCEPTION_OK): Update value.
47351         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47352         (OVERFLOW_EXCEPTION_OK): Likewise.
47353         (UNDERFLOW_EXCEPTION_OK): Likewise.
47354         (IGNORE_ZERO_INF_SIGN): Likewise.
47355         (ERRNO_UNCHANGED): Likewise.
47356         (ERRNO_EDOM): Likewise.
47357         (ERRNO_ERANGE): Likewise.
47358         (test_exceptions): Handle testing "inexact" exceptions.
47359         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47360         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47361         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47362         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47363         INEXACT_EXCEPTION.
47364         (rint_towardzero_test_data): Likewise.
47365         (rint_downward_test_data): Likewise.
47366         (rint_upward_test_data): Likewise.
47367
47368         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47369         with OVERFLOW_EXCEPTION.
47370         (exp10_test_data): Likewise.
47371         (exp2_test_data): Likewise.
47372         (expm1_test_data): Likewise.
47373         (lgamma_test_data): Likewise.
47374         (pow_test_data): Likewise.
47375         (tgamma_test_data): Likewise.
47376         (yn_test_data): Remove duplicate test of overflow.
47377
47378         * math/libm-test.inc (struct test_cc_c_data): New type.
47379         (RUN_TEST_LOOP_cc_c): New macro.
47380         (cpow_test_data): New variable.
47381         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47382
47383         * math/libm-test.inc (struct test_f_L_data): New type.
47384         (RUN_TEST_LOOP_f_L): New macro.
47385         (llrint_test_data): New variable.
47386         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47387         (llrint_tonearest_test_data): New variable.
47388         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47389         (llrint_towardzero_test_data): New variable.
47390         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47391         (llrint_downward_test_data): New variable.
47392         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47393         (llrint_upward_test_data): New variable.
47394         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47395         (llround_test_data): New variable.
47396         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47397
47398 2013-05-13  Peter Collingbourne  <pcc@google.com>
47399
47400         * math/atest-exp2.c (get_log2): Remove const attribute.
47401
47402 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47403
47404         * math/libm-test.inc (struct test_f_l_data): New type.
47405         (RUN_TEST_LOOP_f_l): New macro.
47406         (lrint_test_data): New variable.
47407         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47408         (lrint_tonearest_test_data): New variable.
47409         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47410         (lrint_towardzero_test_data): New variable.
47411         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47412         (lrint_downward_test_data): New variable.
47413         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47414         (lrint_upward_test_data): New variable.
47415         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47416         (lround_test_data): New variable.
47417         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47418
47419 2013-05-15  Peter Collingbourne  <pcc@google.com>
47420
47421         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47422         (EXTRACT_WORDS64) Use where appropriate.
47423         (INSERT_WORDS64) Likewise.
47424
47425         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47426         constraints with x constraints.
47427         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47428
47429         * malloc/obstack.c (_obstack_compat): Add initializer.
47430
47431 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47432
47433         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47434         si_trapno and add si_addr_lsb to _sifields.sigfault.
47435         (si_trapno): Remove macro.
47436         (si_addr_lsb): Define new macro.
47437         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47438
47439 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47440
47441         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47442         instead of TEST_f_l.
47443         (llrint_test_tonearest): Likewise.
47444         (llrint_test_towardzero): Likewise.
47445         (llrint_test_downward): Likewise.
47446         (llrint_test_upward): Likewise.
47447         (llround_test): Likewise.
47448
47449         * math/libm-test.inc (struct test_f_i_data): Add comment.
47450         (RUN_TEST_LOOP_f_b): New macro.
47451         (RUN_TEST_LOOP_f_b_tg): Likewise.
47452         (finite_test_data): New variable.
47453         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47454         (isfinite_test_data): New variable.
47455         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47456         (isinf_test_data): New variable.
47457         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47458         (isnan_test_data): New variable.
47459         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47460         (isnormal_test_data): New variable.
47461         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47462         (issignaling_test_data): New variable.
47463         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47464         (signbit_test_data): New variable.
47465         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47466
47467         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47468         with INVALID_EXCEPTION.
47469         (acosh_test_data): Likewise.
47470         (asin_test_data): Likewise.
47471         (atanh_test_data): Likewise.
47472         (fmod_test_data): Likewise.
47473         (log_test_data): Likewise.
47474         (log10_test_data): Likewise.
47475         (log2_test_data): Likewise.
47476         (pow_test_data): Likewise.
47477         (sqrt_test_data): Likewise.
47478         (y0_test_data): Likewise.
47479         (y1_test_data): Likewise.
47480         (yn_test_data): Likewise.
47481
47482         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47483         function contents.
47484
47485         * math/libm-test.inc (struct test_ff_i_data): New type.
47486         (RUN_TEST_LOOP_ff_i_tg): New macro.
47487         (isgreater_test_data): New variable.
47488         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47489         (isgreaterequal_test_data): New variable.
47490         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47491         (isless_test_data): New variable.
47492         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47493         (islessequal_test_data): New variable.
47494         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47495         (islessgreater_test_data): New variable.
47496         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47497         (isunordered_test_data): New variable.
47498         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47499
47500 2013-05-14  David S. Miller  <davem@davemloft.net>
47501
47502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47503
47504 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47505
47506         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47507
47508         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47509         extra_test to int.
47510         (struct test_f_i_data): Change type of max_ulp to int.
47511
47512         * math/libm-test.inc (test_ffI_f1_data): New type.
47513         (RUN_TEST_LOOP_ffI_f1): New macro.
47514         (remquo_test_data): New variable.
47515         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47516
47517         * setjmp/tst-setjmp-fp.c: New file.
47518         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47519         (link-libm): New variable.
47520         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47521
47522         * math/libm-test.inc (struct test_f_i_data): New type.
47523         (RUN_TEST_LOOP_f_i): New macro.
47524         (RUN_TEST_LOOP_f_i_tg): Likewise.
47525         (fpclassify_test_data): New variable.
47526         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47527         (ilogb_test_data): New variable.
47528         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47529
47530         * math/libm-test.inc (scalbln_test): Correct function name in END
47531         call.
47532
47533         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47534         (RUN_TEST_LOOP_fI_f1): New macro.
47535         (frexp_test_data): New variable.
47536         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47537
47538         * math/libm-test.inc (struct test_fF_f1_data): New type.
47539         (RUN_TEST_LOOP_fF_f1): New macro.
47540         (modf_test_data): New variable.
47541         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47542
47543         * math/libm-test.inc (struct test_f_f1_data): New type.
47544         (RUN_TEST_LOOP_f_f1): New macro.
47545         (gamma_test_data): New variable.
47546         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47547         (lgamma_test_data): New variable.
47548         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47549
47550 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47551
47552         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47553         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47554         (main): Comment "tls" pseudo-hwcap.
47555
47556 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47557
47558         * math/libm-test.inc (struct test_fl_f_data): New type.
47559         (RUN_TEST_LOOP_fl_f): New variable.
47560         (scalbln_test_data): New variable.
47561         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47562
47563         * math/libm-test.inc (struct test_fi_f_data): New type.
47564         (RUN_TEST_LOOP_fi_f): New macro.
47565         (ldexp_test_data): New variable.
47566         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47567         (scalbn_test_data): New variable.
47568         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47569
47570         * math/libm-test.inc (struct test_c_f_data): New type.
47571         (RUN_TEST_LOOP_c_f): New macro.
47572         (cabs_test_data): New variable.
47573         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47574         (carg_test_data): New variable.
47575         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47576         (cimag_test_data): New variable.
47577         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47578         (creal_test_data): New variable.
47579         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47580
47581         * math/libm-test.inc (struct test_if_f_data): New type.
47582         (RUN_TEST_LOOP_if_f): New macro.
47583         (jn_test_data): New variable.
47584         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47585         (yn_test_data): New variable.
47586         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47587
47588         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47589
47590 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47591
47592         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47593         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47594
47595 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47596
47597         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47598         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47599         (bench-deps): Add bench-timing.h.
47600         * benchtests-bench-skeleton.c: Include bench-timing.h.
47601         (main): Use TIMING_* macros instead of clock_gettime.
47602         * benchtests/bench-timing.h: New file.
47603
47604         [BZ #14582]
47605         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47606         Renamed from _LIB_VERSION.
47607         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47608
47609 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47610
47611         * math/libm-test.inc (struct test_fff_f_data): New type.
47612         (RUN_TEST_LOOP_fff_f): New macro.
47613         (fma_test_data): New variable.
47614         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47615         (fma_towardzero_test_data): New variable.
47616         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47617         (fma_downward_test_data): New variable.
47618         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47619         (fma_upward_test_data): New variable.
47620         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47621
47622         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47623         (struct test_c_c_data): New type.
47624         (RUN_TEST_LOOP_c_c): New macro.
47625         (cacos_test_data): New variable.
47626         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47627         (cacosh_test_data): New variable.
47628         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47629         (casin_test_data): New variable.
47630         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47631         (casinh_test_data): New variable.
47632         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47633         (catan_test_data): New variable.
47634         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47635         (catanh_test_data): New variable.
47636         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47637         (ccos_test_data): New variable.
47638         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47639         (ccosh_test_data): New variable.
47640         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47641         (cexp_test_data): New variable.
47642         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47643         (clog_test_data): New variable.
47644         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47645         (clog10_test_data): New variable.
47646         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47647         (conj_test_data): New variable.
47648         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47649         (cproj_test_data): New variable.
47650         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47651         (csin_test_data): New variable.
47652         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47653         (csinh_test_data): New variable.
47654         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47655         (csqrt_test_data): New variable.
47656         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47657         (ctan_test_data): New variable.
47658         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47659         (ctan_tonearest_test_data): New variable.
47660         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47661         (ctan_towardzero_test_data): New variable.
47662         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47663         (ctan_downward_test_data): New variable.
47664         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47665         (ctan_upward_test_data): New variable.
47666         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47667         (ctanh_test_data): New variable.
47668         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47669         (ctanh_tonearest_test_data): New variable.
47670         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47671         (ctanh_towardzero_test_data): New variable.
47672         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47673         (ctanh_downward_test_data): New variable.
47674         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47675         (ctanh_upward_test_data): New variable.
47676         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47677         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47678         of BUILD_COMPLEX.
47679
47680         * math/libm-test.inc (struct test_ff_f_data): New type.
47681         (struct test_ff_f_data_nexttoward): Likewise.
47682         (RUN_TEST_LOOP_2_f): New macro.
47683         (RUN_TEST_LOOP_ff_f): Likewise.
47684         (atan2_test_data): New variable.
47685         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47686         (copysign_test_data): New variable.
47687         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47688         (fdim_test_data): New variable.
47689         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47690         (fmax_test_data): New variable.
47691         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47692         (fmin_test_data): New variable.
47693         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47694         (fmod_test_data): New variable.
47695         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47696         (hypot_test_data): New variable.
47697         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47698         (nextafter_test_data): New variable.
47699         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47700         (nexttoward_test_data): New variable.
47701         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47702         (pow_test_data): New variable.
47703         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47704         (pow_tonearest_test_data): New variable.
47705         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47706         (pow_towardzero_test_data): New variable.
47707         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47708         (pow_downward_test_data): New variable.
47709         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47710         (pow_upward_test_data): New variable.
47711         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47712         (remainder_test_data): New variable.
47713         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47714         (scalb_test_data): New variable.
47715         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47716         * sysdeps/i386/fpu/libm-test-ulps: Update.
47717
47718 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47719
47720         * math/libm-test.inc (fma_test): Use max_value instead of local
47721         variable fltmax.
47722         (nextafter_test): Likewise.
47723
47724         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47725         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47726         (acos_downward_test_data): New variable.
47727         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47728         (acos_upward_test_data): New variable.
47729         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47730         (acosh_test_data): New variable.
47731         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47732         (asin_test_data): New variable.
47733         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47734         (asin_tonearest_test_data): New variable.
47735         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47736         (asin_towardzero_test_data): New variable.
47737         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47738         (asin_downward_test_data): New variable.
47739         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47740         (asin_upward_test_data): New variable.
47741         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47742         (asinh_test_data): New variable.
47743         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47744         (atan_test_data): New variable.
47745         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47746         (atanh_test_data): New variable.
47747         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47748         (cbrt_test_data): New variable.
47749         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47750         (ceil_test_data): New variable.
47751         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47752         (cos_test_data): New variable.
47753         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47754         (cos_tonearest_test_data): New variable.
47755         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47756         (cos_towardzero_test_data): New variable.
47757         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47758         (cos_downward_test_data): New variable.
47759         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47760         (cos_upward_test_data): New variable.
47761         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47762         (cosh_test_data): New variable.
47763         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47764         (cosh_tonearest_test_data): New variable.
47765         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47766         (cosh_towardzero_test_data): New variable.
47767         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47768         (cosh_downward_test_data): New variable.
47769         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47770         (cosh_upward_test_data): New variable.
47771         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47772         (erf_test_data): New variable.
47773         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47774         (erfc_test_data): New variable.
47775         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47776         (exp_test_data): New variable.
47777         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47778         (exp_tonearest_test_data): New variable.
47779         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47780         (exp_towardzero_test_data): New variable.
47781         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47782         (exp_downward_test_data): New variable.
47783         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47784         (exp_upward_test_data): New variable.
47785         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47786         (exp10_test_data): New variable.
47787         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47788         (exp2_test_data): New variable.
47789         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47790         (expm1_test_data): New variable.
47791         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47792         (fabs_test_data): New variable.
47793         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47794         (floor_test_data): New variable.
47795         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47796         (j0_test_data): New variable.
47797         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47798         (j1_test_data): New variable.
47799         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47800         (log_test_data): New variable.
47801         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47802         (log10_test_data): New variable.
47803         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47804         (log1p_test_data): New variable.
47805         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47806         (log2_test_data): New variable.
47807         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47808         (logb_test_data): New variable.
47809         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47810         (logb_downward_test_data): New variable.
47811         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47812         (nearbyint_test_data): New variable.
47813         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47814         (rint_test_data): New variable.
47815         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47816         (rint_tonearest_test_data): New variable.
47817         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47818         (rint_towardzero_test_data): New variable.
47819         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47820         (rint_downward_test_data): New variable.
47821         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47822         (rint_upward_test_data): New variable.
47823         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47824         (round_test_data): New variable.
47825         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47826         (sin_test_data): New variable.
47827         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47828         (sin_tonearest_test_data): New variable.
47829         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47830         (sin_towardzero_test_data): New variable.
47831         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47832         (sin_downward_test_data): New variable.
47833         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47834         (sin_upward_test_data): New variable.
47835         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47836         (sinh_test_data): New variable.
47837         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47838         (sinh_tonearest_test_data): New variable.
47839         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47840         (sinh_towardzero_test_data): New variable.
47841         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47842         (sinh_downward_test_data): New variable.
47843         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47844         (sinh_upward_test_data): New variable.
47845         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47846         (sqrt_test_data): New variable.
47847         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47848         (tan_test_data): New variable.
47849         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
47850         (tan_tonearest_test_data): New variable.
47851         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47852         (tan_towardzero_test_data): New variable.
47853         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47854         (tan_downward_test_data): New variable.
47855         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47856         (tan_upward_test_data): New variable.
47857         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47858         (tanh_test_data): New variable.
47859         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
47860         (tgamma_test_data): New variable.
47861         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
47862         (trunc_test_data): New variable.
47863         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
47864         (y0_test_data): New variable.
47865         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
47866         (y1_test_data): New variable.
47867         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
47868         (significand_test_data): New variable.
47869         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
47870
47871 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
47872
47873         [BZ #12387]
47874         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
47875
47876 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
47877
47878         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
47879
47880 2013-05-10  Andreas Jaeger  <aj@suse.de>
47881
47882         [BZ #15448]
47883         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
47884         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
47885
47886 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47887
47888         * math/gen-libm-test.pl (adjust_arg): New function.
47889         (special_functions): Handle generating output in both functions
47890         and arrays.
47891         (parse_args): Likewise.
47892         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
47893         $in_func argument to parse_args.
47894         * math/libm-test.inc (struct test_f_f_data): New type.
47895         (IF_ROUND_INIT_): New macro.
47896         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
47897         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
47898         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
47899         (IF_ROUND_INIT_FE_UPWARD): Likewise.
47900         (ROUND_RESTORE_): Likewise.
47901         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
47902         (ROUND_RESTORE_FE_TONEAREST): Likewise.
47903         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
47904         (ROUND_RESTORE_FE_UPWARD): Likewise.
47905         (RUN_TEST_LOOP_f_f): New macro.
47906         (acos_test_data): New variable.
47907         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
47908         (acos_tonearest_test_data): New variable.
47909         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47910
47911 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
47912
47913         * benchtests/bench-skeleton.c (startup): Fix coding style.
47914
47915 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47916
47917         [BZ #6809]
47918         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
47919         negative infinity argument.
47920         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
47921         negative infinity argument.
47922         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
47923         negative infinity argument.
47924         * math/libm-test.inc (tgamma_test): Expect errno to be set for
47925         domain errors.
47926
47927 2013-05-10  Florian Weimer  <fweimer@redhat.com>
47928
47929         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
47930         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
47931         * iconv/iconv_prog.c (main): Likewise.
47932         * locale/programs/charmap-dir.c (charmap_readdir)
47933         (fopen_uncompressed): Likewise.
47934         * locale/programs/locfile.c (siblings_uncached)
47935         (write_locale_data): Use lstat64 instead of lstat.
47936         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
47937         stat.
47938
47939 2013-05-10  Andreas Jaeger  <aj@suse.de>
47940
47941         [BZ #15395]
47942         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
47943         localization.
47944         Include <locale.h>.
47945
47946 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
47947
47948         * elf/dl-close.c (_dl_close_worker): Add comments.
47949
47950 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
47951
47952         [BZ #15359]
47953         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
47954         high part of pi/2.
47955         (__ieee754_rem_pio2l): Update comments.
47956
47957         [BZ #15429]
47958         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
47959         high part of pi/2.
47960         (__ieee754_rem_pio2l): Update comments.
47961
47962         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
47963         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
47964
47965         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
47966         M_PI_4l.
47967
47968         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
47969         (M_PI_34_LOG10El): Likewise.
47970         (M_PI2_LOG10El): Likewise.
47971         (M_PI4_LOG10El): Likewise.
47972         (M_PI_LOG10El): Likewise.
47973
47974 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47975
47976         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47977
47978 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
47979
47980         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
47981         (MINUS_ZERO_INIT): Likewise.
47982         (PLUS_INFTY_INIT): Likewise.
47983         (MINUS_INFTY_INIT): Likewise.
47984         (QNAN_VALUE_INIT): Likewise.
47985         (MAX_VALUE_INIT): Likewise.
47986         (MIN_VALUE_INIT): Likewise.
47987         (MIN_SUBNORM_VALUE_INIT): Likewise.
47988         (plus_zero): Initialize with PLUS_ZERO_INIT.
47989         (minus_zero): Initialize with MINUS_ZERO_INIT.
47990         (plus_infty): Initialize with PLUS_INFTY_INIT.
47991         (minus_infty): Initialize with MINUS_INFTY_INIT.
47992         (qnan_value): Initialize with QNAN_VALUE_INIT.
47993         (max_value): Initialize with MAX_VALUE_INIT.
47994         (min_value): Initialize with MIN_VALUE_INIT.
47995         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
47996
47997         * math/libm-test.inc (RUN_TEST_if_f): New macro.
47998         (jn_test): Use TEST_if_f instead of TEST_ff_f.
47999         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48000         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48001
48002         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48003         (RUN_TEST_2_f): Likewise.
48004         (RUN_TEST_ff_f): Likewise.
48005         (RUN_TEST_fi_f): Likewise.
48006         (RUN_TEST_fl_f): Likewise.
48007         (RUN_TEST_fff_f): Likewise.
48008         (RUN_TEST_c_f): Likewise.
48009         (RUN_TEST_f_f1): Likewise.
48010         (RUN_TEST_fF_f1): Likewise.
48011         (RUN_TEST_fI_f1): Likewise.
48012         (RUN_TEST_ffI_f1): Likewise.
48013         (RUN_TEST_c_c): Likewise.
48014         (RUN_TEST_cc_c): Likewise.
48015         (RUN_TEST_f_i): Likewise.
48016         (RUN_TEST_f_i_tg): Likewise.
48017         (RUN_TEST_ff_i_tg): Likewise.
48018         (RUN_TEST_f_b): Likewise.
48019         (RUN_TEST_f_b_tg): Likewise.
48020         (RUN_TEST_f_l): Likewise.
48021         (RUN_TEST_f_L): Likewise.
48022         (RUN_TEST_sincos): Likewise.
48023         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48024         whether to show exceptions.  Do not include ");\n" in return
48025         value.
48026         (special_functions): Output call to RUN_TEST_sincos instead of
48027         check_float calls.  Update calls to new_test.
48028         (parse_args): Output call to single RUN_TEST_* macro instead of
48029         check_* calls and other assignments.  Update calls to new_test.
48030
48031         [BZ #2546]
48032         [BZ #2560]
48033         [BZ #5159]
48034         [BZ #15426]
48035         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48036         input to result for tgamma overflow.
48037         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48038         (gamma_coeff): New variable.
48039         (NCOEFF): New macro.
48040         (gamma_positive): New function.
48041         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48042         underflow here.  Use gamma_positive instead of exp (lgamma) for
48043         other arguments.
48044         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48045         (gamma_coeff): New variable.
48046         (NCOEFF): New macro.
48047         (gammaf_positive): New function.
48048         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48049         underflow here.  Use gamma_positive instead of exp (lgamma) for
48050         other arguments.
48051         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48052         (gamma_coeff): New variable.
48053         (NCOEFF): New macro.
48054         (gammal_positive): New function.
48055         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48056         underflow here.  Use gamma_positive instead of exp (lgamma) for
48057         other arguments.
48058         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48059         (gamma_coeff): New variable.
48060         (NCOEFF): New macro.
48061         (gammal_positive): New function.
48062         (__ieee754_gammal_r): Handle positive infinity, overflow and
48063         underflow here.  Handle NaN the same as positive infinity.  Remove
48064         check x < 0xffffffff for negative integers.  Use gamma_positive
48065         instead of exp (lgamma) for other arguments.
48066         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48067         (gamma_coeff): New variable.
48068         (NCOEFF): New macro.
48069         (gammal_positive): New function.
48070         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48071         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48072         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48073         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48074         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48075         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48076         * sysdeps/generic/math_private.h (__gamma_productf): New
48077         prototype.
48078         (__gamma_product): Likewise.
48079         (__gamma_productl): Likewise.
48080         * math/Makefile (libm-calls): Add gamma_product.
48081         * math/libm-test.inc (tgamma_test): Add more tests.
48082         * sysdeps/i386/fpu/libm-test-ulps: Update.
48083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48084
48085 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48086
48087         * benchtests/bench-skeleton.c (main): Preheat CPU.
48088
48089 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48090
48091         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48092
48093 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48094
48095         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48096         and _dl_skip_args_internal.
48097
48098 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48099
48100         * manual/message.texi (Message Translation): Talk about users.
48101         Message to key mapping impacts design.
48102
48103 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48104
48105         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48106
48107         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48108
48109         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48110         * sysdeps/wordsize-64/glob64.c: ... here.
48111
48112         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48113         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48114         New macros.
48115
48116         * debug/getlogin_r_chk.c: Moved to ...
48117         * login/getlogin_r_chk.c: ... here.
48118         * debug/Makefile (routines): Move getlogin_r_chk to ...
48119         * login/Makefile (routines): ... here.
48120         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48121         * login/Versions (libc: GLIBC_2.4): ... here.
48122
48123         * io/poll.c (__poll): Renamed from poll.
48124         Add libc_hidden_def.
48125         (poll): Define as weak alias.
48126
48127         * debug/ptsname_r_chk.c: Moved to ...
48128         * login/ptsname_r_chk.c: ... here.
48129         * debug/Makefile (routines): Move ptsname_r_chk to ...
48130         * login/Makefile (routines): ... here.
48131         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48132         * login/Versions (libc: GLIBC_2.4): ... here.
48133
48134         * posix/getlogin.c: Moved to ...
48135         * login/getlogin.c: ... here.
48136         * posix/getlogin_r.c: Moved to ...
48137         * login/getlogin_r.c: ... here.
48138         * posix/getlogin_r.c: Moved to ...
48139         * login/getlogin_r.c: ... here.
48140         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48141         * login/Makefile (routines): ... here.
48142         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48143         * login/Versions (libc: GLIBC_2.0): ... here.
48144
48145         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48146         (setrlimit): Define as weak alias.
48147
48148         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48149         Call __ names for open, ftruncate, and close.
48150         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48151         (truncate): Define as weak alias.
48152
48153 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48154
48155         * math/gen-libm-test.pl (parse_args): Initialize x before each
48156         test of frexp, modf and remquo.
48157
48158         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48159         test signgam value.
48160
48161 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48162
48163         [BZ #15418]
48164         [BZ #15419]
48165         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48166         internal tests.
48167         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48168
48169 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48170
48171         * elf/dl-writev.h: New file.
48172         * elf/dl-misc.c: Include it.
48173         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48174         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48175
48176 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48177
48178         * math/libm-test.inc (noXFails): Remove variable.
48179         (noXPasses): Likewise.
48180         (BUILD_COMPLEX_INT): Remove macro.
48181         (print_screen): Remove xfail argument.
48182         (print_screen_max_error): Likewise.
48183         (update_stats): Likewise.
48184         (print_max_error): Likewise.  Update calls to other affected
48185         functions.
48186         (print_complex_max_error): Likewise.
48187         (test_single_exception): Update calls to print_screen.
48188         (test_single_errno): Likewise.
48189         (check_float_internal): Remove xfail argument.  Update calls to
48190         other affected functions.
48191         (check_float): Likewise.
48192         (check_complex): Likewise.
48193         (check_int): Likewise.
48194         (check_long): Likewise.
48195         (check_bool): Likewise.
48196         (check_longlong): Likewise.
48197         (main): Don't print noXFails and noXPasses.
48198         * math/gen-libm-test.pl (top level): Don't mention expected
48199         failure handling in comment.
48200         (new_test): Don't handle expected failures.
48201         (parse_args): Don't mention expected failure handling in comment.
48202         (generate_testfile): Don't handle expected failures.
48203         (parse_ulps): Likewise.
48204         (print_ulps_file): Likewise.
48205         (get_failure): Remove function.
48206         (output_test): Don't handle expected failures.
48207         * make/README.libm-test: Don't mention expected failure handling.
48208
48209         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48210         (minus_zero): Likewise.
48211         (plus_infty): Likewise.
48212         (minus_infty): Likewise.
48213         (qnan_value): Likewise.
48214         (max_value): Likewise.
48215         (min_value): Likewise.
48216         (min_subnorm_value): Likewise.
48217         (initialize): Do not initialize those variables dynamically.
48218
48219 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48220
48221         * io/open.c (__open_2): Moved to ...
48222         * io/open_2.c: ... this new file.
48223         * io/open64.c (__open64_2): Moved to ...
48224         * io/open64_2.c: ... this new file.
48225         * io/openat.c (__openat_2): Moved to ...
48226         * io/openat_2.c: ... this new file.
48227         * io/openat64.c (__openat64_2): Moved to ...
48228         * io/openat64_2.c: ... this new file.
48229         * io/Makefile (routines): Add them.
48230         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48231         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48232         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48233         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48234         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48235         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48236         (__openat64): Add hidden_ver.
48237         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48238         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48239
48240         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48241         Separately conditionalize setting of GLRO(dl_sysinfo) so
48242         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48243         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48244
48245 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48246
48247         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48248         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48249         definition.
48250         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48251         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48252         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48253         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48254         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48255
48256 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48257
48258         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48259         test signgam value.
48260
48261         * math/libm-test.inc (hypot_test): Do not use
48262         IGNORE_ZERO_INF_SIGN.
48263
48264 2013-05-03  Andreas Jaeger  <aj@suse.de>
48265
48266         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48267         Linux 3.9.
48268         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48269         (PF_MAX): Adjust for VSOCK change.
48270
48271 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48272
48273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48274
48275 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48276
48277         [BZ #15264]
48278         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48279         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48280         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48281
48282 2013-05-02  David S. Miller  <davem@davemloft.net>
48283
48284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48285
48286 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48287
48288         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48289
48290 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48291
48292         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48293
48294 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48295
48296         [BZ #14952]
48297         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48298         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48299         Use __attribute__ ((__gnu_inline__)).
48300         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48301         Don't use __attribute__ ((__gnu_inline__)).
48302
48303 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48304
48305         [BZ #15423]
48306         * math/s_catan.c (__catan): Handle small real or imaginary part of
48307         input specially to avoid spurious underflow.
48308         * math/s_catanf.c (__catanf): Likewise.
48309         * math/s_catanh.c (__catanh): Likewise.
48310         * math/s_catanhf.c (__catanhf): Likewise.
48311         * math/s_catanhl.c (__catanhl): Likewise.
48312         * math/s_catanl.c (__catanl): Likewise.
48313         * math/libm-test.inc (catan_test): Add more tests.
48314         (catanh_test): Likewise.
48315         * sysdeps/i386/fpu/libm-test-ulps: Update.
48316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48317
48318 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48319
48320         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48321
48322 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48323
48324         [BZ #15416]
48325         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48326         accurately for denominator in atan2.
48327         * math/s_catanf.c (__catanf): Likewise.
48328         * math/s_catanh.c (__catanh): Likewise.
48329         * math/s_catanhf.c (__catanhf): Likewise.
48330         * math/s_catanhl.c (__catanhl): Likewise.
48331         * math/s_catanl.c (__catanl): Likewise.
48332         * math/libm-test.inc (catan_test): Add more tests.
48333         (catanh_test): Likewise.
48334         * sysdeps/i386/fpu/libm-test-ulps: Update.
48335         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48336
48337 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48338
48339         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48340
48341         * benchtests/Makefile (bench): Remove slow benchmarks.
48342         * benchtests/atan-inputs: Add slow benchmark inputs.
48343         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48344         (BENCH_FUNC): Accept variant offset.
48345         (VARIANT): Define.
48346         * benchtests/bench-skeleton.c (main): Run benchmark for each
48347         variant.
48348         * benchtests/cos-inputs: Add slow benchmark inputs.
48349         * benchtests/exp-inputs: Likewise.
48350         * benchtests/pow-inputs: Likewise.
48351         * benchtests/sin-inputs: Likewise.
48352         * benchtests/slowatan-inputs: Remove.
48353         * benchtests/slowatan.c: Remove.
48354         * benchtests/slowcos-inputs: Remove.
48355         * benchtests/slowcos.c: Remove.
48356         * benchtests/slowexp-inputs: Remove.
48357         * benchtests/slowexp.c: Remove.
48358         * benchtests/slowpow-inputs: Remove.
48359         * benchtests/slowpow.c: Remove.
48360         * benchtests/slowsin-inputs: Remove.
48361         * benchtests/slowsin.c: Remove.
48362         * benchtests/slowtan-inputs: Remove.
48363         * benchtests/slowtan.c: Remove.
48364         * benchtests/tan-inputs: Add slow benchmark inputs.
48365         * scripts/bench.pl: Parse comments and directives.
48366
48367         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48368         in CPPFLAGS.
48369         ($(objpfx)bench-%.c): Remove *-ITER.
48370         * benchtests/bench-modf.c: Remove definition of ITER.
48371         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48372         (main): Loop for DURATION seconds instead of fixed number of
48373         iterations.
48374         * scripts/bench.pl: Don't expect iterations in parameters.
48375
48376 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48377
48378         * io/fchdir.c (__fchdir): Renamed from fchdir.
48379         (fchdir): Define as weak alias.
48380
48381 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48382
48383         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48384         (ERRNO_EDOM): Likewise.
48385         (ERRNO_ERANGE): Likewise.
48386         (noErrnoTests): New variable.
48387         (init_max_error): Set errno to 0.
48388         (test_single_errno): New function.
48389         (test_errno): Likewise.
48390         (check_float_internal): Call test_errno.  Set errno to 0.
48391         (check_complex): Refer to errno tests in comment.
48392         (check_int): Call test_errno.  Set errno to 0.
48393         (check_long): Likewise.
48394         (check_bool): Likewise.
48395         (check_longlong): Likewise.
48396         (cos_test): Use ERRNO_* flags for errno tests instead of
48397         check_int.
48398         (expm1_test): Likewise.
48399         (fmod_test): Likewise.
48400         (ilogb_test): Likewise.
48401         (lgamma_test): Likewise.
48402         (pow_test): Likewise.
48403         (remainder_test): Likewise.
48404         (sin_test): Likewise.
48405         (tan_test): Likewise.
48406         (yn_test): Likewise.
48407         (initialize): Set errno to 0.
48408         (main): Print number of errno tests.
48409         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48410
48411 2013-04-29  Andreas Jaeger  <aj@suse.de>
48412
48413         [BZ #15084]
48414         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48415         and RES_USEVC.
48416
48417         [BZ #15085]
48418         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48419         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48420         unimplemented.
48421
48422         [BZ #15380]
48423         * stdlib/random.c (__initstate): Return NULL if
48424         __initstate fails.
48425
48426         [BZ #15086]
48427         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48428         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48429         RES_SNGLKUPREOP.
48430
48431 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48432
48433         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48434
48435 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48436
48437         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48438         of individual tests.
48439         (casin_test): Likewise.
48440         (casinh_test): Likewise.
48441
48442 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48443
48444         [BZ #15409]
48445         * math/s_catan.c (__catan): Handle arguments with large real or
48446         imaginary part separately without squaring.
48447         * math/s_catanf.c (__catanf): Likewise.
48448         * math/s_catanh.c (__catanh): Likewise.
48449         * math/s_catanhf.c (__catanhf): Likewise.
48450         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48451         and redefine.
48452         (__catanhl): Handle arguments with large real or imaginary part
48453         separately without squaring.
48454         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48455         and redefine.
48456         (__catanl): Handle arguments with large real or imaginary part
48457         separately without squaring.
48458         * math/libm-test.inc (catan_test): Add more tests.
48459         (catanh_test): Likewise.
48460         * sysdeps/i386/fpu/libm-test-ulps: Update.
48461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48462
48463 2013-04-27  Andreas Jaeger  <aj@suse.de>
48464
48465         [BZ #15007]
48466         * stdlib/stdlib.h: Update guards for qecvt.
48467         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48468         <stdlib.h>.
48469
48470 2013-04-27  Allan McRae  <allan@archlinux.org>
48471
48472         * sysdeps/i386/fpu/libm-test-ulps: Update.
48473
48474 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48475
48476         [BZ #15406]
48477         * math/s_catan.c: Include <float.h>.
48478         (__catan): Ensure underflow exception occurs for underflowed
48479         result.
48480         * math/s_catanf.c: Include <float.h>.
48481         (__catanf): Ensure underflow exception occurs for underflowed
48482         result.
48483         * math/s_catanh.c: Include <float.h>.
48484         (__catanh): Ensure underflow exception occurs for underflowed
48485         result.
48486         * math/s_catanhf.c: Include <float.h>.
48487         (__catanhf): Ensure underflow exception occurs for underflowed
48488         result.
48489         * math/s_catanhl.c: Include <float.h>.
48490         (__catanhl): Ensure underflow exception occurs for underflowed
48491         result.
48492         * math/s_catanl.c: Include <float.h>.
48493         (__catanl): Ensure underflow exception occurs for underflowed
48494         result.
48495         * math/libm-test.inc (catan_test): Add more tests.
48496         (catanh_test): Likewise.
48497
48498         [BZ #15405]
48499         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48500         underflowed result.
48501         * math/s_ccoshf.c (__ccoshf): Likewise.
48502         * math/s_ccoshl.c (__ccoshl): Likewise.
48503         * math/s_csin.c (__csin): Likewise.
48504         * math/s_csinf.c (__csinf): Likewise.
48505         * math/s_csinh.c (__csinh): Likewise.
48506         * math/s_csinhf.c (__csinhf): Likewise.
48507         * math/s_csinhl.c (__csinhl): Likewise.
48508         * math/s_csinl.c (__csinl): Likewise.
48509         * math/libm-test.inc (ccos_test): Add more tests.
48510         (ccosh_test): Likewise.
48511         (csin_test): Likewise.
48512         (csinh_test): Likewise.
48513
48514 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48515
48516         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48517         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48518         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48519         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48520         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48521         powerpc/power5+/fpu folders.
48522         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48523
48524
48525 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48526
48527         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48528
48529 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48530
48531         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48532         additions to variable.
48533         [$(config-machine) = x86_64] (modules-names): Likewise.
48534         ($(objpfx)tst-audit3): Remove dependency.
48535         ($(objpfx)tst-audit3.out): Likewise.
48536         ($(objpfx)tst-audit4): Likewise.
48537         ($(objpfx)tst-audit4.out): Likewise.
48538         ($(objpfx)tst-audit5): Likewise.
48539         ($(objpfx)tst-audit5.out): Likewise.
48540         ($(objpfx)tst-audit6): Likewise.
48541         ($(objpfx)tst-audit6.out): Likewise.
48542         ($(objpfx)tst-audit7): Likewise.
48543         ($(objpfx)tst-audit7.out): Likewise.
48544         (tst-audit3-ENV): Remove variable.
48545         (tst-audit4-ENV): Likewise.
48546         (tst-audit5-ENV): Likewise.
48547         (tst-audit6-ENV): Likewise.
48548         (tst-audit7-ENV): Likewise.
48549         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48550         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48551         addition to variable.
48552         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48553         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48554         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48555         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48556         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48557         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48558         tst-audit3, tst-audit4 and tst-audit5.
48559         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48560         tst-audit6 and tst-audit7.
48561         [$(subdir) = elf] (modules-names): Add audit modules for those
48562         tests.
48563         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48564         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48565         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48566         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48567         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48568         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48569         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48570         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48571         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48572         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48573         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48574         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48575         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48576         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48577         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48578         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48579         Likewise.
48580         [$(subdir) = elf && $(config-cflags-avx) = yes]
48581         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48582         [$(subdir) = elf && $(config-cflags-avx) = yes]
48583         (CFLAGS-tst-auditmod4a.c): Likewise.
48584         [$(subdir) = elf && $(config-cflags-avx) = yes]
48585         (CFLAGS-tst-auditmod4b.c): Likewise.
48586         [$(subdir) = elf && $(config-cflags-avx) = yes]
48587         (CFLAGS-tst-auditmod6b.c): Likewise.
48588         [$(subdir) = elf && $(config-cflags-avx) = yes]
48589         (CFLAGS-tst-auditmod6c.c): Likewise.
48590         [$(subdir) = elf && $(config-cflags-avx) = yes]
48591         (CFLAGS-tst-auditmod7b.c): Likewise.
48592         * elf/tst-audit3.c: Move to ...
48593         * sysdeps/x86_64/tst-audit3.c: ... here.
48594         * elf/tst-audit4.c: Move to ...
48595         * sysdeps/x86_64/tst-audit4.c: ... here.
48596         * elf/tst-audit5.c: Move to ...
48597         * sysdeps/x86_64/tst-audit5.c: ... here.
48598         * elf/tst-audit6.c: Move to ...
48599         * sysdeps/x86_64/tst-audit6.c: ... here.
48600         * elf/tst-audit7.c: Move to ...
48601         * sysdeps/x86_64/tst-audit7.c: ... here.
48602         * elf/tst-auditmod3a.c: Move to ...
48603         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48604         * elf/tst-auditmod3b.c: Move to ...
48605         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48606         * elf/tst-auditmod4a.c: Move to ...
48607         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48608         * elf/tst-auditmod4b.c: Move to ...
48609         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48610         * elf/tst-auditmod5a.c: Move to ...
48611         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48612         * elf/tst-auditmod5b.c: Move to ...
48613         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48614         * elf/tst-auditmod6a.c: Move to ...
48615         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48616         * elf/tst-auditmod6b.c: Move to ...
48617         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48618         * elf/tst-auditmod6c.c: Move to ...
48619         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48620         * elf/tst-auditmod7a.c: Move to ...
48621         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48622         * elf/tst-auditmod7b.c: Move to ...
48623         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48624
48625 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48626
48627         [BZ #15366]
48628         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48629         define unconditionally.
48630         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48631         define unconditionally.
48632         (INT8_C, INT16_C, etc.): Likewise.
48633
48634 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48635
48636         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48637         __ehdr_start with hidden visibility.
48638
48639         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48640
48641 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48642
48643         * math/libm-test.inc (cos_test): Use accurate hex constants.
48644         (sincost_test): Likewise.
48645
48646 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48647
48648         * math/libm-test.inc (catan_test): Add more tests.
48649         (catanh_test): Likewise.
48650
48651         * math/s_catanf.c (__catanf): Use suffixed floating-point
48652         constants.
48653         * math/s_catanhf.c (__catanhf): Likewise.
48654         * math/s_catanhl.c (__catanhl): Likewise.
48655         * math/s_catanl.c (__catanl): Likewise.
48656
48657         [BZ #15394]
48658         * math/s_catan.c (__catan): Calculate imaginary part of result
48659         with log1p not log unless computing log of number close to 0.
48660         * math/s_catanf.c (__catanf): Likewise.
48661         * math/s_catanl.c (__catanl): Likewise.
48662         * math/s_catanh.c (__catanh): Calculate real part of result with
48663         log1p not log unless computing log of number close to 0.
48664         * math/s_catanhf.c (__catanhf): Likewise.
48665         * math/s_catanhl.c (__catanhl): Likewise.
48666         * math/libm-test.inc (catan_test): Add more tests.
48667         (catanh_test): Likewise.
48668         * sysdeps/i386/fpu/libm-test-ulps: Update.
48669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48670
48671 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48672
48673         * benchtests/Makefile: Mention files in which fast and slow
48674         paths of math functions are implemented.
48675
48676 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48677
48678         * sysdeps/posix/timespec_get.c: New file.
48679
48680 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48681
48682         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48683         POWER.
48684         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48685         for POWER.
48686         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48687         powerpc/power5/fpu folders.
48688         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48689         * benchtests/Makefile: Add modf testcase.
48690         * benchtests/bench-modf.c: New file: Benchmark test for mo
48691
48692 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48693
48694         [BZ #14888]
48695         * time/Makefile (tests): Add tst-strptime-whitespace.
48696         * time/strptime_l.c (get_number): Use ISSPACE.
48697         (__strptime_internal): Likewise.
48698         * time/tst-strptime-whitespace.c: New test case.
48699
48700 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48701
48702         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48703         member.
48704         (_nss_files_init): Set it here.
48705
48706 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48707
48708         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48709         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48710         unsigned.
48711
48712 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48713
48714         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48715
48716 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48717
48718         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48719         size just once.
48720
48721 2013-04-21  David S. Miller  <davem@davemloft.net>
48722
48723         * po/ru.po: Update Russion translation from translation project.
48724
48725 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48726
48727         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48728         and setfsgid.
48729
48730 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48731
48732         * configure.in: Remove i386 configure warning. Remove i386 case.
48733         * configure: Regenerate.
48734         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48735         Add example to error message.
48736         * sysdeps/i386/configure: Regenerate.
48737
48738 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48739
48740         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48741         slowtan.
48742         * benchtests/cos-inputs: New file.
48743         * benchtests/slowcos-inputs: New file.
48744         * benchtests/slowcos.c: New file.
48745         * benchtests/slowtan-inputs: New file.
48746         * benchtests/slowtan.c: New file.
48747         * benchtests/tan-inputs: New file.
48748
48749 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48750
48751         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48752         considered kosher.
48753
48754 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48755
48756         * benchtests/Makefile: Include cppflags-iterator.mk to add
48757         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48758
48759         * Makefile.in (bench-clean): New target.
48760         * benchtests/Makefile (bench-clean): Likewise.
48761
48762 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48763
48764         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48765
48766 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48767
48768         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48769
48770 2013-04-15  Andreas Schwab  <schwab@suse.de>
48771
48772         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48773         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48774         * nscd/pwdcache.c (cache_addpw): Likewise.
48775         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48776         more than recsize.
48777
48778 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48779
48780         * benchtests/Makefile (bench): Write all output to
48781         bench-out.tmp together.
48782
48783 2013-04-15  Andreas Schwab  <schwab@suse.de>
48784
48785         * nscd/nscd.c (main): Don't fork again after closing files.
48786
48787 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48788
48789         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48790
48791         * benchtests/Rules (bench-deps): Collect dependencies into a
48792         single variable.  Add Makefile to dependencies.
48793         ($(objpfx)bench-%.c): Depend on bench-deps.
48794
48795 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48796             Xavier Roche  <roche+kml2@exalead.com>
48797
48798         [BZ #15361]
48799         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48800         just that it's a file descriptor.
48801         * manual/llio.texi (Synchronizing AIO Operations): Update description
48802         for EBADF error from aio_fsync.
48803
48804 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48805
48806         * Rules (bench): Move target definition...
48807         * benchtests/Makefile: ... here.
48808
48809 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48810
48811         * math/libm-test.inc (cos_test): Fix PI/2 test.
48812         (sincos_test): Likewise.
48813         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48814         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48815
48816 2013-04-11  Andreas Schwab  <schwab@suse.de>
48817
48818         [BZ #13988]
48819         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48820         accept exponent character only when digits were seen.
48821         * stdio-common/Makefile (tests): Add bug26.
48822         * stdio-common/bug26.c: New file.
48823
48824         [BZ #14293]
48825         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48826         non-freeable.
48827
48828 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48829
48830         * Makeconfig (rtld-prefix): Define built linker prefix.
48831         * Rules (run-bench): Use it.
48832         * math/Makefile (run-regen-ulps): Likewise.
48833
48834         * Rules (bench): Remove eval.
48835
48836 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48837             Roland McGrath  <roland@hack.frob.com>
48838             Ondrej Bilka  <neleai@seznam.cz>
48839
48840         [BZ #15346]
48841         * time/getdate.c: Include ctype.h and alloca.h.
48842         (__getdate_r): Trim leading and trailing spaces of input.
48843         * time/tst-getdate.c (tests): Add tests with leading and
48844         trailing spaces.
48845
48846 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48847
48848         [BZ #14280]
48849         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
48850         when computing value.
48851
48852 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48853
48854         * math/README.libm-test (How can I generate "libm-test-ulps"?):
48855         Use testrun.sh to run libm tests.
48856
48857         [BZ #15309]
48858         * elf/dl-open.c (dl_open_worker): memset all of seen array.
48859
48860 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
48861
48862         [BZ #15264]
48863         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
48864
48865 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48866
48867         * Makefile.in (regen-ulps): New target.
48868         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
48869         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
48870         [ifneq (no,$(PERL)] (regen-ulps): New target.
48871         [ifeq (no,$(PERL)] (regen-ulps): New target.
48872         * math/libm-test.inc (ulps_file_name): Define.
48873         (output_dir): New variable.
48874         (options): Add "output-dir" option.
48875         (parse_opt): Handle 'o' case.
48876         (main): If output_dir is non-NULL use it as a prefix
48877         otherwise use "".
48878         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
48879
48880 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48881
48882         [BZ #10060, #10062]
48883         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
48884         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
48885         fail configure if __sync_val_compare_and_swap is not inlined.
48886         * sysdeps/i386/configure: Regenerate.
48887         * configure.in: Build for i686 when configured for i386.
48888         * configure: Regenerate.
48889         * README: Remove i386 reference.
48890
48891 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48892
48893         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
48894         * sysdeps/s390/s390-64/sysdep.h: Likewise.
48895
48896 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
48897
48898         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
48899         (lmsnanval): New variables.
48900         (F): Add conversion tests.
48901         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
48902         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
48903
48904         * stdio-common/tstdiomisc.c (F): Properly collect individual
48905         tests' results.
48906
48907         [BZ #14686, #15336]
48908         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
48909         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
48910         Instead, use input NaN values or generate a qNaN by arithmetic
48911         operation.  Also fix bugs to comply with the standard.
48912         * math/libm-test.inc (remainder_test): Add more tests.
48913
48914         [BZ #15335, #15342]
48915         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
48916         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
48917         input NaN values or generate a qNaN by arithmetic operation.
48918
48919         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
48920         unreachable code.
48921
48922         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
48923         definitions.
48924
48925 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
48926
48927         [BZ #14478]
48928         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
48929         underflowed result.
48930         * math/s_cexpf.c (__cexpf): Likewise.
48931         * math/s_cexpl.c (__cexpl): Likewise.
48932         * math/libm-test.inc (cexp_test): Add more tests.
48933
48934 2013-04-03  Andreas Schwab  <schwab@suse.de>
48935
48936         [BZ #15330]
48937         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
48938         order arrays from heap if bigger than alloca cutoff.
48939
48940 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
48941
48942         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
48943         (SNAN_TESTS_double): Refer to GCC PR56831.
48944         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
48945         GCC PR56828.
48946
48947 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
48948
48949         * Rules (bench): Move bench.out after the run is complete.
48950
48951         * Rules (bench): Echo currently running benchmark.
48952
48953         * benchtests/Makefile (bench): Add atan and slowatan.
48954         * benchtests/atan-inputs: New file.
48955         * benchtests/slowatan-inputs: New file.
48956         * benchtests/slowatan.c: New file.
48957
48958         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
48959         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
48960         its value.
48961
48962         [BZ #15305]
48963         * sysdeps/unix/sysv/linux/kernel-features.h
48964         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
48965         __ASSUME_XFS_RESTRICTED_CHOWN.
48966         * sysdeps/unix/sysv/linux/pathconf.c
48967         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
48968         Save and restore errno.
48969
48970 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
48971
48972         [BZ #15327]
48973         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
48974         arguments using __kernel_casinh.
48975         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
48976         arguments using __kernel_casinhf.
48977         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
48978         arguments using __kernel_casinhl.
48979         * math/libm-test.inc (cacosh_test): Add more tests.
48980         * sysdeps/i386/fpu/libm-test-ulps: Update.
48981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48982
48983 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
48984
48985         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
48986         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
48987
48988         * bench/Makefile (bench): Add sin and slowsin.
48989         * benchtests/sin-inputs: New file.
48990         * benchtests/slowsin-inputs: New file.
48991         * benchtests/slowsin.c: New file.
48992
48993         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
48994         (bench): Add slowexp and slowpow.
48995         (exp-ITER): Increase iterations.
48996         (pow-ITER): Likewise.
48997         * benchtests/exp-inputs: Change input.
48998         * benchtests/pow-inputs: Likewise.
48999         * benchtests/slowexp-inputs: New file.
49000         * benchtests/slowexp.c: New file.
49001         * benchtests/slowpow-inputs: New file.
49002         * benchtests/slowpow.c: New file.
49003
49004 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49005
49006         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49007         instructions.
49008         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49009         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49010         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49011         * benchtests/Makefile: Add rint benchtest.
49012         * benchtests/rint-inputs: Input for rint benchtest.
49013
49014 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49015
49016         * Versions.def (libm): Add GLIBC_2.18.
49017         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49018         hidden libm prototypes.
49019         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49020         * math/Makefile (libm-calls): Add s_issignaling.
49021         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49022         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49023         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49024         declaration.
49025         * math/math.h [__USE_GNU] (issignaling): New macro.
49026         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49027         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49028         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49029         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49030         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49031         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49032         * manual/arith.texi (issignaling): New section.
49033         * manual/libm-err-tab.pl (@all_functions): Update comment.
49034         * math/gen-libm-test.pl (parse_args): Apply special handling for
49035         issignaling.
49036         * math/libm-test.inc (print_float, issignaling_test): New
49037         functions.
49038         (check_float_internal): Add issignaling checks.
49039         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49040         default definition.
49041         * sysdeps/powerpc/math-tests.h: New file.
49042         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49043         tests.
49044         * math/test-snan.c (TEST_FUNC): Likewise.
49045
49046 2013-03-30  David S. Miller  <davem@davemloft.net>
49047
49048         * po/de.po: Update from translation team.
49049
49050 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49051
49052         [BZ #10357]
49053         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49054         imaginary part less than 1.0 and real part less than 0.5
49055         specially.
49056         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49057         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49058         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49059         (cacos_test): Add more tests.
49060         (casin_test): Likewise.
49061         (casinh_test): Likewise.
49062         * sysdeps/i386/fpu/libm-test-ulps: Update.
49063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49064
49065 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49066
49067         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49068         ONE with its value.
49069
49070         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49071         (__pow_mp): Replace ONE and MONE with their values.
49072         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49073         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49074         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49075         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49076         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49077         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49078
49079         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49080
49081         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49082         (__pow_mp): Replace ZERO and MZERO with their values.
49083         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49084         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49085         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49086         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49087         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49088         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49089         (__sqr): Likewise.
49090
49091         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49092
49093         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49094
49095 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49096
49097         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49098         Declare with __attribute__ ((weak)).
49099         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49100         Call __call_tls_dtors only if it's not NULL.
49101
49102 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49103
49104         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49105         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49106         magic __ehdr_start linker symbol if it's defined.
49107         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49108         them up here if it was already done.
49109
49110         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49111         (_dl_aux_init): Use const in cast when setting it.
49112         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49113         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49114         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49115
49116         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49117         Declare them here.
49118         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49119         * csu/libc-tls.c: Nor here.
49120         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49121
49122         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49123         (__libc_message): Never call vsyslog.
49124
49125 2013-03-28  Alan Modra  <amodra@gmail.com>
49126
49127         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49128         Define as empty.
49129         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49130         Likewise.
49131
49132 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49133
49134         [BZ #15214]
49135         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49136         underflow.
49137         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49138
49139 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49140
49141         [BZ #15304]
49142         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49143         Don't add gid passed as argument.
49144
49145         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49146
49147 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49148
49149         [BZ #15307]
49150         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49151         imaginary part between 1.0 and 1.5 and real part less than 0.5
49152         specially.
49153         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49154         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49155         * math/libm-test.inc (cacos_test): Add more tests.
49156         (casin_test): Likewise.
49157         (casinh_test): Likewise.
49158         * sysdeps/i386/fpu/libm-test-ulps: Update.
49159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49160
49161 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49162
49163         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49164         constants.
49165         (norm): Likewise.
49166         (denorm): Likewise.
49167         (__dbl_mp): Likewise.
49168         (add_magnitudes): Likewise.
49169         (sub_magnitudes): Likewise.
49170         (__add): Likewise.
49171         (__sub): Likewise.
49172         (__mul): Likewise.
49173         (__sqr): Likewise.
49174         (__inv): Likewise.
49175         (__dvd): Likewise.
49176
49177         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49178         commented code.
49179         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49180         (__dubcos): Likewise.
49181         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49182         (__ieee754_acos): Likewise.
49183         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49184         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49185         (__exp1): Likewise.
49186         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49187         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49188         (log1): Likewise.
49189         (my_log2): Likewise.
49190         (checkint): Likewise.
49191         * sysdeps/ieee754/dbl-64/e_remainder.c
49192         (__ieee754_remainder): Likewise.
49193         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49194         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49195         (bsloww): Likewise.
49196         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49197
49198         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49199         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49200         MANTISSA_STORE_T to store computations on mantissa.  Use
49201         macros for rounding and division.
49202         (denorm): Likewise.
49203         (__dbl_mp): Likewise.
49204         (add_magnitudes): Likewise.
49205         (sub_magnitudes): Likewise.
49206         (__mul): Likewise.
49207         (__sqr): Likewise.
49208         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49209         powers of two in terms of TWOPOW macro.
49210         (mp_no): Make type of mantissa as MANTISSA_T.
49211         [!RADIXI]: Define RADIXI.
49212         [!TWO52]: Define TWO52.
49213         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49214
49215 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49216
49217         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49218         llroundl symbol when building for PPC32.
49219
49220 2013-03-24  Mark H Weaver  <mhw@netris.org>
49221
49222         * manual/arith.texi (Normalization Functions): Fix prototypes for
49223         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49224
49225 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49226
49227         [BZ #13889]
49228         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49229         high value to check if expl overflow.
49230         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49231         to check for underflow and overflow.
49232         * math/libm-test.inc: Add exp test.
49233
49234 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49235
49236         [BZ #11120]
49237         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49238         with NOT_IN_libc.
49239
49240 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49241
49242         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49243         symbol.
49244
49245 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49246
49247         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49248         wrap blocks consisting of several statements.
49249
49250         * sysdeps/generic/math-tests.h: New file.
49251         * sysdeps/i386/fpu/math-tests.h: Likewise.
49252         * math/test-snan.c: Include it.
49253         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49254
49255 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49256
49257         [BZ #15285]
49258         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49259         (__ieee754_j0l): Do not improve calculations using cos of twice
49260         input for inputs above LDBL_MAX / 2.0L.
49261         (__ieee754_y0l): Likewise.
49262         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49263         (__ieee754_j1l): Do not improve calculations using cos of twice
49264         input for inputs above LDBL_MAX / 2.0L.
49265         (__ieee754_y1l): Likewise.
49266         * math/libm-test.inc (j0_test): Add another test.
49267         (j1_test): Likewise.
49268         (y0_test): Likewise.
49269         (y1_test): Likewise.
49270         * sysdeps/i386/fpu/libm-test-ulps: Update.
49271
49272 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49273
49274         * Rules ($(objpfx)bench-%.c): Include code from a C source
49275         file.
49276
49277 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49278
49279         [BZ #15287]
49280         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49281         imaginary part 1.0 and real part less than 0.5 specially.
49282         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49283         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49284         * math/libm-test.inc (cacos_test): Add more tests.
49285         (casin_test): Likewise.
49286         (casinh_test): Likewise.
49287         * sysdeps/i386/fpu/libm-test-ulps: Update.
49288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49289
49290 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49291
49292         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49293         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49294
49295 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49296
49297         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49298         * config.make.in (config-cflags-sse4): Remove variable.
49299         (config-cflags-avx): Likewise.
49300         (config-cflags-sse2avx): Likewise.
49301         (config-cflags-novzeroupper): Likewise.
49302         (config-asflags-i686): Likewise.
49303         (have-mfma4): Likewise.
49304         (have-as-vis3): Likewise.
49305         (MIG): Likewise.
49306         * configure.in (MIG): Do not AC_SUBST.
49307         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49308         (libc_cv_cc_sse4): Do not AC_SUBST.
49309         (libc_cv_cc_avx): Likewise.
49310         (libc_cv_cc_sse2avx): Likewise.
49311         (libc_cv_cc_novzeroupper): Likewise.
49312         (libc_cv_cc_fma4): Likewise.
49313         (libc_cv_as_i686): Likewise.
49314         (libc_cv_sparc_as_vis3): Likewise.
49315         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49316         LIBC_CONFIG_VAR.
49317         (config-asflags-i686): Likewise.
49318         (config-cflags-avx): Likewise.
49319         (config-cflags-sse2avx): Likewise.
49320         (have-mfma4): Likewise.
49321         (config-cflags-novzeroupper): Likewise.
49322         * sysdeps/mach/configure.in (MIG): Likewise.
49323         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49324         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49325         LIBC_CONFIG_VAR.
49326         (config-cflags-avx): Likewise.
49327         (config-cflags-sse2avx): Likewise.
49328         (have-mfma4): Likewise.
49329         (config-cflags-novzeroupper): Likewise.
49330         * configure: Regenerated.
49331         * sysdeps/i386/configure: Likewise.
49332         * sysdeps/mach/configure: Likewise.
49333         * sysdeps/sparc/configure: Likewise.
49334         * sysdeps/x86_64/configure: Likewise.
49335
49336 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49337
49338         [BZ #14812]
49339         * locale/programs/localedef.c (options): Put N_ translation marker
49340         on argument names, not just descriptions.
49341
49342 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49343
49344         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49345
49346 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49347
49348         [BZ #14176]
49349         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49350
49351 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49352
49353         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49354         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49355         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49356         [!BEFORE_ABORT] (before_abort): New function.
49357         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49358         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49359         (writev_for_fatal): New function.
49360         (WRITEV_FOR_FATAL): New macro; call that.
49361         (backtrace_and_maps): New function.
49362         (BEFORE_ABORT): New macro; call that.
49363         (struct str_list): Type removed.
49364         (__libc_message, __libc_fatal): Functions removed.
49365         Include <sysdeps/posix/libc_fatal.c> instead.
49366
49367 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49368
49369         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49370         constants.
49371         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49372         double constants.
49373
49374 2013-03-19  Andreas Schwab  <schwab@suse.de>
49375
49376         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49377         * sysdeps/gnu/configure: Regenerate.
49378
49379         * configure.in: Substitute libc_cv_rtlddir.
49380         * configure: Regenerate.
49381         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49382         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49383         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49384         * elf/Makefile (install-others, CFLAGS-interp.c)
49385         (ldso_install, common-ldd-rewrite): Likewise.
49386         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49387         $(inst_slibdir)/$(rtld-installed-name).
49388         * scripts/rellns-sh: Add -p option.
49389         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49390         for source.
49391
49392 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49393
49394         * manual/nptl.texi: Renamed to ...
49395         * manual/threads.texi: ... this.
49396         * manual/Makefile (chapters): Update.
49397
49398 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49399
49400         [BZ #14812]
49401         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49402         on argument names, not just descriptions.
49403         * malloc/memusagestat.c (options): Likewise.
49404         * nss/getent.c (options): Likewise.
49405
49406 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49407
49408         [BZ #14812]
49409         * iconv/iconv_prog.c (options): Put N_ translation marker
49410         on argument names, not just descriptions.
49411         * iconv/iconvconfig.c (options): Likewise.
49412
49413 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49414
49415         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49416         implementation which is faster on all x86_64 architectures.
49417         Tested on AMD, Intel Nehalem, SNB, IVB.
49418         * sysdeps/x86_64/strnlen.S: Likewise.
49419
49420         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49421         Remove all multiarch strlen and strnlen versions.
49422         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49423         Remove strlen and strnlen related parts.
49424
49425         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49426         Inline strlen part.
49427         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49428
49429         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49430         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49431         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49432         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49433         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49434         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49435
49436 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49437
49438         * manual/memory.texi (Malloc Tunable Parameters):
49439         Sort parameters alphabetically. Add comments for missing entries.
49440
49441 2013-03-17  David S. Miller  <davem@davemloft.net>
49442
49443         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49444
49445 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49446
49447         [BZ #15283]
49448         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49449         for arguments at most half maximum finite value.
49450         * math/libm-test.inc (j0_test): Add more tests.
49451         (j1_test): Likewise.
49452         (y0_test): Likewise.
49453         (y1_test): Likewise.
49454         * sysdeps/i386/fpu/libm-test-ulps: Update.
49455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49456
49457         [BZ #14155]
49458         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49459         1 / x and functions P and Q for arguments above 0x1p256L.
49460         (__ieee754_y0l): Likewise.
49461         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49462         (__ieee754_y1l): Likewise.
49463         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49464         (j1_test): Likewise.
49465         (y0_test): Likewise.
49466         (y1_test): Likewise.
49467
49468 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49469
49470         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49471         variable.
49472
49473 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49474
49475         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49476         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49477         zero since it's initialized to EXEC_PAGESIZE.
49478
49479         * sysdeps/unix/sysv/linux/ldsodefs.h
49480         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49481         * sysdeps/generic/ldsodefs.h: ... here.
49482
49483 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49484
49485         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49486
49487         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49488         math/test-snan.c.
49489         * math/test-snan.c: Renamed from
49490         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49491         * math/Makefile (tests): Add test-snan.
49492         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49493         test-powerpc-snan.
49494
49495         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49496         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49497         functions.
49498         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49499         __builtin_nan family of functions.
49500         * math/libm-test.inc (initialize): Initialize qnan_value with
49501         __builtin_nan family of functions.
49502         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49503         Remove variables.
49504         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49505         Remove functions.
49506         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49507         storage class.  Initialize qNaN_var and sNaN_var with
49508         __builtin_nan and __builtin_nans families of functions,
49509         respectively.
49510
49511         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49512         (sqrt_test): Remove duplicate test with qNaN input.
49513         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49514         (round_test, signbit_test, significand_test): Note missing +/-Inf
49515         as well as qNaN tests.
49516
49517         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49518         qNaN_var.  Fix a few strings, too.
49519         * math/libm-test.inc (nan_value): Rename to qnan_value.
49520         * math/gen-libm-test.pl (%beautify): Adjust to that.
49521         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49522         * math/test-misc.c (main): Likewise.
49523         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49524         to __qnan_bytes, and __qnan_union, respectively.
49525         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49526         Likewise.
49527         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49528         and lqnanval, respectively.
49529         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49530         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49531         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49532         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49533
49534         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49535         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49536         doubles.
49537
49538         * math/test-misc.c (main): Fix copy'n'pastos.
49539         * misc/tst-efgcvt.c (special): Likewise.
49540
49541         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49542         Remove declarations.
49543
49544 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49545
49546         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49547         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49548         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49549         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49550
49551 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49552
49553         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49554         macro to return vdso values correctly in IFUNC implementations.
49555         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49556         Optimization by using IFUNC.
49557
49558 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49559             Richard Henderson  <rth@redhat.com>
49560             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49561
49562         * Makefile.in (bench): New target.
49563         * NEWS: Mention the benchmark framework.
49564         * Rules (bench): Likewise.
49565         (binaries-bench): Generate binaries for functions to
49566         benchmark.
49567         * benchtests/Makefile: New makefile for benchmark tests.
49568         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49569         programs.
49570         * benchtests/exp-inputs: New input file for EXP function.
49571         * benchtests/pow-inputs: New input file for POW function.
49572         * scripts/bench.pl: New script to generate source files for
49573         benchmark programs.
49574
49575 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49576
49577         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49578         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49579         computations on mantissa.  Use macros for rounding and
49580         division.
49581         (denorm): Likewise.
49582         (__dbl_mp): Likewise.
49583         (add_magnitudes): Likewise.
49584         (sub_magnitudes): Likewise.
49585         (__mul): Likewise.
49586         (__sqr): Likewise.
49587         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49588         powers of two in terms of TWOPOW macro.
49589         (mp_no): Make type of mantissa as MANTISSA_T.
49590         [!RADIXI]: Define RADIXI.
49591         [!TWO52]: Define TWO52.
49592         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49593
49594         * manual/nptl.texi (cindex): Modify threads to pthreads.
49595
49596 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49597
49598         * sysdeps/x86_64/preconfigure: Regenerated.
49599
49600 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49601
49602         [BZ #14155]
49603         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49604         0x1p28 and above.
49605         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49606         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49607         0x1p28 and above.
49608         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49609         * math/libm-test.inc (j0_test): Do not allow one spurious
49610         underflow exception.
49611         (y1_test): Likewise.
49612
49613 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49614
49615         * manual/Makefile (chapters): Add nptl.
49616         * manual/debug.texi (Debugging Support): Add link to Threads
49617         chapter.
49618         * manual/nptl.texi: New file.
49619
49620         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49621
49622 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49623
49624         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49625         for non-NULL pointer before the memory validity test. Pointed
49626         out by Holger Brunck <holger.brunck@keymile.com>.
49627
49628 2013-03-13  Andreas Schwab  <schwab@suse.de>
49629
49630         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49631         instead of .os.
49632
49633 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49634
49635         * timezone/zic.c: Update from tzcode 2013b.
49636
49637 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49638
49639         * manual/install.texi (Configuring and compiling):
49640         Mention i686 and i586.
49641         * INSTALL: Regenerate.
49642
49643 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49644
49645         * sysdeps/init_array/elf-init.c: New file.
49646         * csu/elf-init.c
49647         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49648         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49649
49650         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49651         __gmon_start__ as global, but as static with a .preinit_array pointer.
49652         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49653         * sysdeps/init_array/crti.S: New file, empty except for comments.
49654         * sysdeps/init_array/crtn.S: Likewise.
49655
49656 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49657
49658         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49659         definining bcopy.
49660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49661         Remove Prefer_SSE_for_memop.
49662         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49663         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49664         HAS_PREFER_SSE_FOR_MEMOP.
49665         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49666         memset-x86-64.
49667         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49668         Remove bzero, memset ifunc support.
49669         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49670         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49671         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49672         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49673
49674 2013-03-11  Andreas Schwab  <schwab@suse.de>
49675
49676         [BZ #15234]
49677         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49678         by SHLIB_COMPAT.
49679         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49680         (GLIBC_2.16): Remove pthread_atfork.
49681
49682 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49683
49684         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49685         (ptestcases.h): Likewise.
49686
49687 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49688
49689         * Makeconfig ($(common-objpfx)config.status): Depend on
49690         sysdeps/*/preconfigure{,.in} too.
49691
49692 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49693
49694         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49695         (__free_hook): Use void * instead of __malloc_ptr_t.
49696         (__malloc_hook): Likewise.
49697         (__realloc_hook): Likewise.
49698         (__memalign_hook): Likewise.
49699         (__after_morecore_hook): Likewise.
49700         * malloc/arena.c (save_malloc_hook): Likewise.
49701         (save_free_hook): Likewise.
49702         * malloc/hooks.c (malloc_hook_ini): Likewise.
49703         (realloc_hook_ini): Likewise.
49704         (memalign_hook_ini): Likewise.
49705         * malloc/malloc.c (malloc_hook_ini): Likewise.
49706         (realloc_hook_ini): Likewise.
49707         (memalign_hook_ini): Likewise.
49708         (__free_hook): Likewise.
49709         (__malloc_hook): Likewise.
49710         (__realloc_hook): Likewise.
49711         (__memalign_hook): Likewise.
49712         (__libc_malloc): Likewise.
49713         (__libc_free): Likewise.
49714         (__libc_realloc): Likewise.
49715         (__libc_memalign): Likewise.
49716         (__libc_valloc): Likewise.
49717         (__libc_pvalloc): Likewise.
49718         (__libc_calloc): Likewise.
49719         (__posix_memalign): Likewise.
49720         * malloc/morecore.c (__sbrk): Likewise.
49721         (__default_morecore): Likewise.
49722
49723         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49724
49725         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49726         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49727         __malloc_ptrdiff_t.
49728
49729         * malloc/malloc.h (__malloc_size_t): Remove macro.
49730         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49731         __malloc_size_t.
49732         (old_memalign_hook): Likewise.
49733         (old_realloc_hook): Likewise.
49734         (struct hdr): Likewise.
49735         (flood): Likewise.
49736         (mallochook): Likewise.
49737         (memalignhook): Likewise.
49738         (reallochook): Likewise.
49739         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49740         (tr_old_realloc_hook): Likewise.
49741         (tr_old_memalign_hook): Likewise.
49742         (tr_mallochook): Likewise.
49743         (tr_reallochook): Likewise.
49744         (tr_memalignhook): Likewise.
49745
49746 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49747
49748         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49749         default_ldbl_pack and using as default implementation.
49750         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49751         implementation.
49752         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49753         redundant definition.
49754         (ldbl_insert_mantissa): Likewise.
49755         (ldbl_canonicalize): Likewise.
49756         (ldbl_nearbyint): Likewise.
49757         (ldbl_pack): Rename to ldbl_pack_ppc.
49758         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49759         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49760         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49761
49762 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49763
49764         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49765         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49766         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49767         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49768         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49769         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49770         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49771         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49772
49773 2013-03-07  Andreas Jaeger  <aj@suse.de>
49774
49775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49776         bits/mman-linux.h.
49777
49778 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49779
49780         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49781         Include mpa.h and declare __MPEXP.
49782         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49783         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49784         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49785         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49786         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49787         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49788         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49789
49790         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49791         (__slowpow): Use long double EXPL and LOGL functions to
49792         compute POW.
49793         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49794         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49795         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49796         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49797         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49798         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49799
49800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49801         intermediate variable to calculate exponent.
49802         (__sqr): Likewise.
49803         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49804         Likewise.
49805         (__sqr): Likewise.
49806
49807         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49808         [!NO__SQR]: Define __sqr.
49809         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49810         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49811         sysdeps/ieee754/dbl-64/mpa.c.
49812         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49813
49814         [BZ #12723]
49815         * posix/Makefile (tests): Add tst-pathconf.
49816         * posix/tst-pathconf.c: New test case.
49817         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49818         _PC_PIPE_BUF.
49819         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49820
49821 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49822
49823         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49824
49825 2013-03-06  Andreas Jaeger  <aj@suse.de>
49826
49827         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49828         definition via __MAP_ANONYMOUS.
49829
49830         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49831         it's not part of Linux headers.
49832
49833         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49834         (MAP_HUGE_MASK): Define.
49835
49836         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49837         Define.
49838         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49839         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49840         Define.
49841         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49842         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49843         Define.
49844         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49845         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49846         Define.
49847         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49848
49849         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
49850         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
49851         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
49852         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
49853         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
49854         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
49855
49856         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
49857         Handle f2fs.
49858
49859         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49860         Handle f2fs and efivarfs.
49861
49862         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
49863         f2fs.
49864
49865         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
49866         (EFIVARFS_MAGIC): Add.
49867         (F2FS_LINK_MAX): Add.
49868
49869 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
49870
49871         * stdio-common/vfprintf.c: Replace __builtin_expect with
49872         __glibc_unlikely.
49873
49874 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
49875
49876         [BZ #13550]
49877         * sysdeps/generic/bp-sym.h: Remove file.
49878         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
49879         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
49880         <bp-sym.h> and <bp-asm.h>.
49881         (__longjmp): Don't use BP_SYM.
49882         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
49883         and <bp-asm.h>.
49884         (memcpy): Don't use BP_SYM.
49885         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
49886         <bp-sym.h> and <bp-asm.h>.
49887         (memcpy): Don't use BP_SYM.
49888         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
49889         <bp-asm.h>.
49890         (memcpy): Don't use BP_SYM.
49891         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
49892         <bp-asm.h>.
49893         (memset): Don't use BP_SYM.
49894         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49895         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49896         (__bzero): Don't use BP_SYM.
49897         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49898         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49899         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
49900         <bp-sym.h> and <bp-asm.h>.
49901         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49902         pointers.
49903         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
49904         <bp-sym.h> and <bp-asm.h>.
49905         (memcpy): Don't use BP_SYM.
49906         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
49907         <bp-sym.h> and <bp-asm.h>.
49908         (memset): Don't use BP_SYM.
49909         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49910         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49911         (__bzero): Don't use BP_SYM.
49912         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49913         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49914         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
49915         <bp-sym.h> and <bp-asm.h>.
49916         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49917         pointers.
49918         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
49919         <bp-sym.h> and <bp-asm.h>.
49920         (memcpy): Don't use BP_SYM.
49921         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
49922         <bp-sym.h> and <bp-asm.h>.
49923         (memset): Don't use BP_SYM.
49924         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49925         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49926         (__bzero): Don't use BP_SYM.
49927         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49928         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49929         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
49930         <bp-sym.h> and <bp-asm.h>.
49931         (__memchr): Don't use BP_SYM.
49932         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
49933         <bp-sym.h> and <bp-asm.h>.
49934         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49935         pointers.
49936         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
49937         <bp-sym.h> and <bp-asm.h>.
49938         (memcpy): Don't use BP_SYM.
49939         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
49940         <bp-sym.h> and <bp-asm.h>.
49941         (__mempcpy): Don't use BP_SYM.
49942         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
49943         <bp-sym.h> and <bp-asm.h>.
49944         (__memrchr): Don't use BP_SYM.
49945         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
49946         <bp-sym.h> and <bp-asm.h>.
49947         (memset): Don't use BP_SYM.
49948         (__bzero): Likewise.
49949         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
49950         <bp-sym.h> and <bp-asm.h>.
49951         (__rawmemchr): Don't use BP_SYM.
49952         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
49953         <bp-sym.h> and <bp-asm.h>.
49954         (__STRCMP): Don't use BP_SYM.
49955         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
49956         <bp-sym.h> and <bp-asm.h>.
49957         (strchr): Don't use BP_SYM.
49958         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
49959         <bp-sym.h> and <bp-asm.h>.
49960         (__strchrnul): Don't use BP_SYM.
49961         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
49962         <bp-sym.h> and <bp-asm.h>.
49963         (strlen): Don't use BP_SYM.
49964         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
49965         <bp-sym.h> and <bp-asm.h>.
49966         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49967         pointers.
49968         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
49969         <bp-sym.h> and <bp-asm.h>.
49970         (__strnlen): Don't use BP_SYM.
49971         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
49972         <bp-sym.h> and <bp-asm.h>.
49973         (__GI__setjmp): Don't use BP_SYM.
49974         (_setjmp): Likewise.
49975         (__sigsetjmp): Likewise.
49976         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
49977         (L(start_addresses)): Don't use BP_SYM.
49978         (_start): Likewise.
49979         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
49980         <bp-asm.h>.
49981         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
49982         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
49983         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
49984         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
49985         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
49986         <bp-asm.h>.
49987         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
49988         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
49989         about bounded pointers.
49990         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
49991         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
49992         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
49993         <bp-asm.h>.
49994         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
49995         about bounded pointers.  Remove GKM FIXME comments.
49996         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
49997         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
49998         <bp-asm.h>.
49999         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50000         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50001         Remove GKM FIXME comments.
50002         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50003         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50004         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50005         <bp-asm.h>.
50006         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50007         about bounded pointers.  Remove GKM FIXME comment.
50008         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50009         and <bp-asm.h>.
50010         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50011         pointers.
50012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50013         <bp-sym.h> and <bp-asm.h>.
50014         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50016         <bp-sym.h> and <bp-asm.h>.
50017         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50018         comment.
50019
50020 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50021
50022         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50023         call free(NULL).
50024
50025 2013-03-05  David S. Miller  <davem@davemloft.net>
50026
50027         * po/es.po: Update from translation team.
50028
50029 2013-03-05  Andreas Jaeger  <aj@suse.de>
50030
50031         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50032         <bits/mman-linux.h>.
50033         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50034         is fine.
50035         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50036         <bits/mman-linux.h> to end of file.
50037         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50038         is fine.
50039         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50040         <bits/mman-linux.h> to end of file.
50041         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50042         is fine.
50043         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50044         <bits/mman-linux.h> to end of file.
50045
50046         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50047         (MCL_CURRENT, MCL_FUTURE): Define here.
50048
50049 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50050
50051         [BZ #15232]
50052         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50053         attribute_hidden.
50054         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50055
50056 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50057
50058         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50059         fourth parameter needed for rt_sigprocmask syscall.
50060         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50061         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50062         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50063         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50064         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50065         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50066
50067 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50068
50069         [BZ #13550]
50070         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50071         comment about bounded pointers.
50072         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50073         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50074
50075 2013-03-04  Andreas Jaeger  <aj@suse.de>
50076
50077         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50078         common definitions.
50079
50080         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50081         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50082         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50083         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50084         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50085         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50086
50087 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50088
50089         [BZ #15055]
50090         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50091         __ieee754_sqrl instead of __sqrl.
50092
50093 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50094
50095         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50096         * sysdeps/powerpc/fpu_control.h: ... here.
50097         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50098         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50099         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50100         * sysdeps/powerpc/bits/mathinline.h: ... here.
50101
50102 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50103
50104         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50105         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50106         to just [NEED_DL_SYSINFO_DSO].
50107         * elf/dl-support.c: Likewise.
50108         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50109         * elf/rtld.c (dl_main): Likewise.
50110         * elf/setup-vdso.h (setup_vdso): Likewise.
50111         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50112         * sysdeps/unix/sysv/linux/dl-sysdep.c
50113         (_dl_discover_osversion): Likewise.
50114
50115 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50116
50117         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50118         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50119
50120 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50121
50122         * NEWS: Mention libm performance improvements and non-x86 PI
50123         futex support.
50124
50125         * csu/libc-start.c (__pthread_initialize_minimal): Change
50126         function arguments.
50127         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50128
50129 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50130
50131         [BZ #13550]
50132         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50133         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50134         <bp-sym.h> and <bp-asm.h>.
50135         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50136         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50137         and <bp-asm.h>.
50138         (memcpy): Don't use BP_SYM.
50139         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50140         <bp-asm.h>.
50141         (__mpn_add_n): Don't use BP_SYM.
50142         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50143         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50144         and <bp-asm.h>.
50145         (__mpn_addmul_1): Don't use BP_SYM.
50146         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50147         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50148         <bp-sym.h>.
50149         (_setjmp): Don't use BP_SYM.
50150         (__novmx_setjmp): Likewise.
50151         (__GI__setjmp): Likewise.
50152         (__vmx_setjmp): Likewise.
50153         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50154         <bp-sym.h>.
50155         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50156         (__bzero): Don't use BP_SYM.
50157         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50158         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50159         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50160         <bp-sym.h> and <bp-asm.h>.
50161         (memcpy): Don't use BP_SYM.
50162         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50163         <bp-sym.h> and <bp-asm.h>.
50164         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50165         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50166         <bp-sym.h> and <bp-asm.h>.
50167         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50168         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50169         <bp-asm.h>.
50170         (__mpn_lshift): Don't use BP_SYM.
50171         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50172         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50173         <bp-asm.h>.
50174         (memset): Don't use BP_SYM.
50175         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50176         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50177         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50178         <bp-asm.h>.
50179         (__mpn_mul_1): Don't use BP_SYM.
50180         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50181         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50182         <bp-sym.h> and <bp-asm.h>.
50183         (memcmp): Don't use BP_SYM.
50184         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50185         <bp-sym.h> and <bp-asm.h>.
50186         (memcpy): Don't use BP_SYM.
50187         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50188         <bp-sym.h> and <bp-asm.h>.
50189         (memset): Don't use BP_SYM.
50190         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50191         <bp-sym.h> and <bp-asm.h>.
50192         (strncmp): Don't use BP_SYM.
50193         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50194         <bp-sym.h> and <bp-asm.h>.
50195         (memcpy): Don't use BP_SYM.
50196         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50197         <bp-sym.h> and <bp-asm.h>.
50198         (memset): Don't use BP_SYM.
50199         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50200         <bp-sym.h> and <bp-asm.h>.
50201         (__memchr): Don't use BP_SYM.
50202         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50203         <bp-sym.h> and <bp-asm.h>.
50204         (memcmp): Don't use BP_SYM.
50205         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50206         <bp-sym.h> and <bp-asm.h>.
50207         (memcpy): Don't use BP_SYM.
50208         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50209         <bp-sym.h> and <bp-asm.h>.
50210         (__mempcpy): Don't use BP_SYM.
50211         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50212         <bp-sym.h> and <bp-asm.h>.
50213         (__memrchr): Don't use BP_SYM.
50214         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50215         <bp-sym.h> and <bp-asm.h>.
50216         (memset): Don't use BP_SYM.
50217         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50218         <bp-sym.h> and <bp-asm.h>.
50219         (__rawmemchr): Don't use BP_SYM.
50220         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50221         <bp-sym.h> and <bp-asm.h>.
50222         (__STRCMP): Don't use BP_SYM.
50223         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50224         <bp-sym.h> and <bp-asm.h>.
50225         (strchr): Don't use BP_SYM.
50226         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50227         <bp-sym.h> and <bp-asm.h>.
50228         (__strchrnul): Don't use BP_SYM.
50229         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50230         <bp-sym.h> and <bp-asm.h>.
50231         (strlen): Don't use BP_SYM.
50232         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50233         <bp-sym.h> and <bp-asm.h>.
50234         (strncmp): Don't use BP_SYM.
50235         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50236         <bp-sym.h> and <bp-asm.h>.
50237         (__strnlen): Don't use BP_SYM.
50238         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50239         <bp-asm.h>.
50240         (__mpn_rshift): Don't use BP_SYM.
50241         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50242         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50243         <bp-sym.h> and <bp-asm.h>.
50244         (__sigsetjmp): Don't use BP_SYM.
50245         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50246         (L(start_addresses)): Don't use BP_SYM.
50247         (_start): Likewise.
50248         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50249         <bp-asm.h>.
50250         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50251         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50252         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50253         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50254         <bp-asm.h>.
50255         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50256         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50257         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50258         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50259         <bp-asm.h>.
50260         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50261         comments.
50262         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50263         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50264         <bp-asm.h>.
50265         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50266         FIXME comments.
50267         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50268         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50269         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50270         <bp-asm.h>.
50271         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50272         comment.
50273         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50274         and <bp-asm.h>.
50275         (strncmp): Don't use BP_SYM,
50276         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50277         <bp-asm.h>.
50278         (__mpn_sub_n): Don't use BP_SYM.
50279         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50280         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50281         and <bp-asm.h>.
50282         (__mpn_submul_1): Don't use BP_SYM.
50283         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50285         <bp-sym.h> and <bp-asm.h>.
50286         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50288         <bp-sym.h> and <bp-asm.h>.
50289         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50290         comment.
50291
50292 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50293
50294         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50295         Use ZK to minimize writes to Z.
50296         (sub_magnitudes): Simplify code a bit.
50297         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50298         Use ZK to minimize writes to Z.
50299         (sub_magnitudes): Simplify code a bit.
50300
50301 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50302
50303         * csu/gmon-start.c: Add special exception to license text.
50304
50305 2013-02-27  Richard Henderson  <rth@redhat.com>
50306
50307         * scripts/config.guess: Update from config.git.
50308         * scripts/config.sub: Likewise.
50309
50310 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50311
50312         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50313
50314         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50315
50316         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50317
50318         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50319
50320         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50321
50322 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50323
50324         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50325         [$(build-shared = yes].
50326
50327 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50328
50329         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50330         (__mul): Reduce iterations for calculating mantissa.
50331
50332         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50333         MPTWO.
50334         (__mpranred): Likewise.
50335
50336         [BZ #15160]
50337         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50338         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50339
50340 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50341
50342         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50343         Define __attribute__.
50344
50345 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50346
50347         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50348         unused.
50349         * posix/regex_internal.h (__attribute): Remove.
50350         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50351         (re_string_context_at): Likewise.
50352         (bitset_not): Use __attribute__ and mark function as possibly
50353         unused.
50354         (bitset_merge): Likewise.
50355         (bitset_mask): Likewise.
50356         (re_string_char_size_at): Likewise.
50357         (re_string_wchar_at): Likewise.
50358         (re_string_elem_size_at): Likewise.
50359
50360 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50361
50362         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50363         code.
50364         (cc32): Likewise.
50365
50366         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50367         (__acr): Likewise.
50368         (__cpy): Likewise.
50369         (norm): Likewise.
50370         (denorm): Likewise.
50371         (__dbl_mp): Likewise.
50372         (add_magnitudes): Likewise.
50373         (sub_magnitudes): Likewise.
50374         (__mul): Likewise.
50375         (__inv): Likewise.
50376
50377         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50378         style.
50379
50380         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50381         style.
50382
50383         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50384         code.
50385
50386         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50387         up changes with default code.
50388         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50389         Likewise.
50390
50391 2013-02-24  Allan McRae  <allan@archlinux.org>
50392
50393         * manual/socket.texi (The Internet Namespace): Order menu items
50394         to match that in the file.
50395
50396         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50397         node listing of the info page menu.
50398
50399 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50400
50401         [BZ #13550]
50402         * sysdeps/i386/bp-asm.h: Remove file.
50403         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50404         (PARMS): Do not use macros from bp-asm.h.
50405         (S1): Likewise.
50406         (S2): Likewise.
50407         (SIZE): Likewise.
50408         (__mpn_add_n): Do not use BP_SYM
50409         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50410         "bp-asm.h".
50411         (PARMS): Do not use macros from bp-asm.h.
50412         (S1): Likewise.
50413         (SIZE): Likewise.
50414         (__mpn_addmul_1): Do not use BP_SYM
50415         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50416         "bp-asm.h".
50417         (PARMS): Do not use macros from bp-asm.h.
50418         (SIGMSK): Likewise.
50419         (_setjmp): Likewise.  Do not use BP_SYM.
50420         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50421         "bp-asm.h".
50422         (PARMS): Do not use macros from bp-asm.h.
50423         (SIGMSK): Likewise.
50424         (setjmp): Likewise.  Do not use BP_SYM.
50425         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50426         "bp-asm.h".
50427         (PARMS): Do not use macros from bp-asm.h.
50428         (__frexp): Do not use BP_SYM.
50429         (frexp): Likewise.
50430         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50431         "bp-asm.h".
50432         (PARMS): Do not use macros from bp-asm.h.
50433         (__frexpf): Do not use BP_SYM.
50434         (frexpf): Likewise.
50435         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50436         "bp-asm.h".
50437         (PARMS): Do not use macros from bp-asm.h.
50438         (__frexpl): Do not use BP_SYM.
50439         (frexpl): Likewise.
50440         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50441         "bp-asm.h".
50442         (PARMS): Do not use macros from bp-asm.h.
50443         (__remquo): Do not use BP_SYM.
50444         (remquo): Likewise.
50445         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50446         "bp-asm.h".
50447         (PARMS): Do not use macros from bp-asm.h.
50448         (__remquof): Do not use BP_SYM.
50449         (remquof): Likewise.
50450         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50451         "bp-asm.h".
50452         (PARMS): Do not use macros from bp-asm.h.
50453         (__remquol): Do not use BP_SYM.
50454         (remquol): Likewise.
50455         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50456         "bp-asm.h".
50457         (PARMS): Do not use macros from bp-asm.h.
50458         (DEST): Likewise.
50459         (SRC): Likewise.
50460         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50461         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50462         "bp-asm.h".
50463         (PARMS): Do not use macros from bp-asm.h.
50464         (strlen): Do not use BP_SYM.
50465         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50466         "bp-asm.h".
50467         (PARMS): Do not use macros from bp-asm.h.
50468         (S1): Likewise.
50469         (S2): Likewise.
50470         (SIZE): Likewise.
50471         (__mpn_add_n): Do not use BP_SYM.
50472         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50473         "bp-asm.h".
50474         (PARMS): Do not use macros from bp-asm.h.
50475         (S1): Likewise.
50476         (SIZE): Likewise.
50477         (__mpn_addmul_1): Do not use BP_SYM.
50478         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50479         weak_alias.
50480         (bzero): Likewise.
50481         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50482         "bp-asm.h".
50483         (PARMS): Do not use macros from bp-asm.h.
50484         (S): Likewise.
50485         (SIZE): Likewise.
50486         (__mpn_lshift): Do not use BP_SYM.
50487         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50488         "bp-asm.h".
50489         (PARMS): Do not use macros from bp-asm.h.
50490         (DEST): Likewise.
50491         (SRC): Likewise.
50492         (LEN): Likewise.
50493         (memcpy): Likewise.  Do not use BP_SYM.
50494         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50495         libc_hidden_def and weak_alias.
50496         (mempcpy): Do not use BP_SYM in weak_alias.
50497         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50498         "bp-asm.h".
50499         (PARMS): Do not use macros from bp-asm.h.
50500         (DEST): Likewise.
50501         (LEN): Likewise.
50502         [!BZERO_P] (CHR): Likewise.
50503         (memset): Likewise.  Do not use BP_SYM.
50504         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50505         "bp-asm.h".
50506         (PARMS): Do not use macros from bp-asm.h.
50507         (S1): Likewise.
50508         (SIZE): Likewise.
50509         (__mpn_mul_1): Do not use BP_SYM.
50510         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50511         "bp-asm.h".
50512         (PARMS): Do not use macros from bp-asm.h.
50513         (S): Likewise.
50514         (SIZE): Likewise.
50515         (__mpn_rshift): Do not use BP_SYM.
50516         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50517         "bp-asm.h".
50518         (PARMS): Do not use macros from bp-asm.h.
50519         (STR): Likewise.
50520         (CHR): Likewise.
50521         (strchr): Likewise.  Do not use BP_SYM.
50522         (index): Do not use BP_SYM in weak_alias.
50523         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50524         "bp-asm.h".
50525         (PARMS): Do not use macros from bp-asm.h.
50526         (DEST): Likewise.
50527         (SRC): Likewise.
50528         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50529         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50530         "bp-asm.h".
50531         (PARMS): Do not use macros from bp-asm.h.
50532         (strlen): Do not use BP_SYM.
50533         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50534         "bp-asm.h".
50535         (PARMS): Do not use macros from bp-asm.h.
50536         (S1): Likewise.
50537         (S2): Likewise.
50538         (SIZE): Likewise.
50539         (__mpn_sub_n): Do not use BP_SYM.
50540         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50541         "bp-asm.h".
50542         (PARMS): Do not use macros from bp-asm.h.
50543         (S1): Likewise.
50544         (SIZE): Likewise.
50545         (__mpn_submul_1): Do not use BP_SYM.
50546         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50547         "bp-asm.h".
50548         (PARMS): Do not use macros from bp-asm.h.
50549         (S1): Likewise.
50550         (S2): Likewise.
50551         (SIZE): Likewise.
50552         (__mpn_add_n): Do not use BP_SYM.
50553         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50554         weak_alias.
50555         (bzero): Likewise.
50556         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50557         "bp-asm.h".
50558         (PARMS): Do not use macros from bp-asm.h.
50559         (BLK2): Likewise.
50560         (LEN): Likewise.
50561         (memcmp): Do not use BP_SYM.
50562         (bcmp): Do not use BP_SYM in weak_alias.
50563         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50564         "bp-asm.h".
50565         (PARMS): Do not use macros from bp-asm.h.
50566         (DEST): Likewise.
50567         (SRC): Likewise.
50568         (LEN): Likewise.
50569         (memcpy): Likewise.  Do not use BP_SYM.
50570         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50571         "bp-asm.h".
50572         (PARMS): Do not use macros from bp-asm.h.
50573         (DEST): Likewise.
50574         (SRC): Likewise.
50575         (LEN): Likewise.
50576         (memmove): Likewise.  Do not use BP_SYM.
50577         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50578         "bp-asm.h".
50579         (PARMS): Do not use macros from bp-asm.h.
50580         (DEST): Likewise.
50581         (SRC): Likewise.
50582         (LEN): Likewise.
50583         (__mempcpy): Likewise.  Do not use BP_SYM.
50584         (mempcpy): Do not use BP_SYM in weak_alias.
50585         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50586         "bp-asm.h".
50587         (PARMS): Do not use macros from bp-asm.h.
50588         (DEST): Likewise.
50589         (LEN): Likewise.
50590         [!BZERO_P] (CHR): Likewise.
50591         (memset): Likewise.  Do not use BP_SYM.
50592         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50593         "bp-asm.h".
50594         (PARMS): Do not use macros from bp-asm.h.
50595         (STR2): Likewise.
50596         (strcmp): Do not use BP_SYM.
50597         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50598         "bp-asm.h".
50599         (PARMS): Do not use macros from bp-asm.h.
50600         (STR): Likewise.
50601         (DELIM): Likewise.
50602         [USE_AS_STRTOK_R] (SAVE): Likewise.
50603         (FUNCTION): Likewise.  Do not use BP_SYM.
50604         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50605         aliases.
50606         (strtok_r): Likewise.
50607         (__GI___strtok_r): Likewise.
50608         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50609         (PARMS): Do not use macros from bp-asm.h.
50610         (S): Likewise.
50611         (SIZE): Likewise.
50612         (__mpn_lshift): Do not use BP_SYM.
50613         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50614         (PARMS): Do not use macros from bp-asm.h.
50615         (STR): Likewise.
50616         (CHR): Likewise.
50617         (__memchr): Do not use BP_SYM.
50618         (memchr): Do not use BP_SYM in weak_alias.
50619         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50620         (PARMS): Do not use macros from bp-asm.h.
50621         (BLK2): Likewise.
50622         (LEN): Likewise.
50623         (memcmp): Do not use BP_SYM.
50624         (bcmp): Do not use BP_SYM in weak_alias.
50625         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50626         (PARMS): Do not use macros from bp-asm.h.
50627         (S1): Likewise.
50628         (SIZE): Likewise.
50629         (__mpn_mul_1): Do not use BP_SYM.
50630         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50631         "bp-asm.h".
50632         (PARMS): Do not use macros from bp-asm.h.
50633         (STR): Likewise.
50634         (CHR): Likewise.
50635         (__rawmemchr): Do not use BP_SYM.
50636         (rawmemchr): Do not use BP_SYM in weak_alias.
50637         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50638         (PARMS): Do not use macros from bp-asm.h.
50639         (S): Likewise.
50640         (SIZE): Likewise.
50641         (__mpn_rshift): Do not use BP_SYM.
50642         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50643         (PARMS): Do not use macros from bp-asm.h.
50644         (SIGMSK): Likewise.
50645         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50646         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50647         (_start): Do not use BP_SYM.
50648         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50649         (PARMS): Do not use macros from bp-asm.h.
50650         (DEST): Likewise.
50651         (SRC): Likewise.
50652         (__stpcpy): Likewise.  Do not use BP_SYM.
50653         (stpcpy): Do not use BP_SYM in weak_alias.
50654         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50655         "bp-asm.h".
50656         (PARMS): Do not use macros from bp-asm.h.
50657         (DEST): Likewise.
50658         (SRC): Likewise.
50659         (LEN): Likewise.
50660         (__stpncpy): Likewise.  Do not use BP_SYM.
50661         (stpncpy): Do not use BP_SYM in weak_alias.
50662         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50663         (PARMS): Do not use macros from bp-asm.h.
50664         (STR): Likewise.
50665         (CHR): Likewise.
50666         (strchr): Likewise.  Do not use BP_SYM.
50667         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50668         "bp-asm.h".
50669         (PARMS): Do not use macros from bp-asm.h.
50670         (STR): Likewise.
50671         (CHR): Likewise.
50672         (__strchrnul): Likewise.  Do not use BP_SYM.
50673         (strchrnul): Do not use BP_SYM in weak_alias.
50674         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50675         "bp-asm.h".
50676         (PARMS): Do not use macros from bp-asm.h.
50677         (STOP): Likewise.
50678         (strcspn): Do not use BP_SYM.
50679         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50680         "bp-asm.h".
50681         (PARMS): Do not use macros from bp-asm.h.
50682         (STR): Likewise.
50683         (STOP): Likewise.
50684         (strpbrk): Likewise.  Do not use BP_SYM.
50685         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50686         "bp-asm.h".
50687         (PARMS): Do not use macros from bp-asm.h.
50688         (STR): Likewise.
50689         (CHR): Likewise.
50690         (strrchr): Likewise.  Do not use BP_SYM.
50691         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50692         (PARMS): Do not use macros from bp-asm.h.
50693         (SKIP): Likewise.
50694         (strspn): Do not use BP_SYM.
50695         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50696         (PARMS): Do not use macros from bp-asm.h.
50697         (STR): Likewise.
50698         (DELIM): Likewise.
50699         (SAVE): Likewise.
50700         (FUNCTION): Likewise.  Do not use BP_SYM.
50701         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50702         aliases.
50703         (strtok_r): Likewise.
50704         (__GI___strtok_r): Likewise.
50705         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50706         (PARMS): Do not use macros from bp-asm.h.
50707         (S1): Likewise.
50708         (S2): Likewise.
50709         (SIZE): Likewise.
50710         (__mpn_sub_n): Do not use BP_SYM.
50711         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50712         "bp-asm.h".
50713         (PARMS): Do not use macros from bp-asm.h.
50714         (S1): Likewise.
50715         (SIZE): Likewise.
50716         (__mpn_submul_1): Do not use BP_SYM.
50717         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50718         <bp-sym.h>.
50719         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50720         and <bp-asm.h>.
50721         (PARMS): Do not use macros from bp-asm.h.
50722         (FLAGS): Likewise.
50723         (PTID): Likewise.
50724         (TLS): Likewise.
50725         (CTID): Likewise.
50726         (__clone): Do not use BP_SYM.
50727         (clone): Do not use BP_SYM in weak_alias.
50728         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50729         and <bp-asm.h>.
50730         (PARMS): Do not use macros from bp-asm.h.
50731         (LEN): Likewise.
50732         (__mmap64): Do not use BP_SYM.
50733         (mmap64): Do not use BP_SYM in weak_alias.
50734         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50735         <bp-sym.h> and <bp-asm.h>.
50736         (PARMS): Do not use macros from bp-asm.h.
50737         (__posix_fadvise64_l64): Do not use BP_SYM.
50738         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50739         (PARMS): Do not use macros from bp-asm.h.
50740         (NSOPS): Likewise.
50741         (semtimedop): Do not use BP_SYM.
50742         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50743         and <bp-asm.h>.
50744
50745 2013-02-21  Allan McRae  <allan@archlinux.org>
50746
50747         * manual/message.texi (Charset conversion in gettext):
50748         Move @end statement to beginning of line.
50749
50750 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50751
50752         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50753         static.
50754         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50755         Likewise.
50756
50757         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50758         (denorm): Likewise.
50759         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50760         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50761
50762 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50763
50764         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50765         tail-call to the resolved function if pltexit isn't needed.
50766
50767 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50768
50769         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50770         or Y being zero as being unlikely.
50771         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50772         Likewise.
50773
50774 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50775
50776         * manual/nss.texi (System Databases and Name Service Switch):
50777         Remove frobnicate @pxref.
50778
50779 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50780
50781         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50782         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50783
50784 2013-02-20  Petr Machata  <pmachata@redhat.com>
50785
50786         * elf/elf.h (R_ARM_TARGET1): New macro.
50787         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50788         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50789         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50790         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50791         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50792         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50793         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50794         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50795         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50796         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50797         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50798         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50799         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50800         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50801         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50802         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50803         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50804         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50805         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50806         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50807         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50808         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50809         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50810         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50811         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50812         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50813         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50814         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50815         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50816         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50817         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50818         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50819         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50820         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50821         (R_ARM_THM_GOT_BREL12): Likewise.
50822         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50823         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50824         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50825         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50826         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50827         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50828         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50829         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50830         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50831
50832 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50833
50834         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50835         __attribute_used__ to __attribute__ ((unused)).
50836
50837 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50838
50839         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50840         powerpc mpa.c.
50841         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50842         comment formatting.
50843         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50844
50845 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50846
50847         [BZ #13550]
50848         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
50849         Remove macro.
50850         (ENTER): Remove both macro definitions.
50851         (LEAVE): Likewise.
50852         (CHECK_BOUNDS_LOW): Likewise.
50853         (CHECK_BOUNDS_HIGH): Likewise.
50854         (CHECK_BOUNDS_BOTH): Likewise.
50855         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
50856         (RETURN_BOUNDED_POINTER): Likewise.
50857         (RETURN_NULL_BOUNDED_POINTER): Likewise.
50858         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
50859         (POP_ERRNO_LOCATION_RETURN): Likewise.
50860         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
50861         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50862         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
50863         macros.
50864         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50865         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
50866         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
50867         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
50868         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
50869         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
50870         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
50871         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
50872         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
50873         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
50874         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
50875         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
50876         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50877         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
50878         removed macros.
50879         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50880         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
50881         macros.
50882         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50883         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
50884         * sysdeps/i386/i586/memset.S (memset): Likewise.
50885         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
50886         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50887         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
50888         macros.
50889         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50890         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
50891         Change uses of L(2) to L(out).
50892         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
50893         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
50894         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
50895         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50896         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
50897         removed macros.
50898         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50899         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
50900         macros.
50901         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50902         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
50903         (RETURN): Do not use macro LEAVE.
50904         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
50905         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
50906         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
50907         * sysdeps/i386/i686/memset.S (memset): Likewise.
50908         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
50909         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
50910         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50911         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
50912         Likewise.
50913         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50914         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
50915         L(1_2) and L(1_3) into L(1).
50916         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50917         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
50918         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50919         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
50920         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50921         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
50922         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
50923         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50924         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
50925         macros.
50926         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
50927         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50928         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
50929         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
50930         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
50931         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50932         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
50933         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
50934         * sysdeps/i386/strcspn.S (strcspn): Likewise.
50935         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
50936         * sysdeps/i386/strrchr.S (strrchr): Likewise.
50937         * sysdeps/i386/strspn.S (strspn): Likewise.
50938         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
50939         conditional code.
50940         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50941         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
50942         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50943         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
50944         L(1_3) into L(1_1).
50945         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
50946         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50947         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
50948         macros.
50949         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50950
50951 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
50952
50953         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
50954         macro.
50955
50956 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50957
50958         * math/atest-exp.c (exp_mpn): Remove ROUND.
50959         * math/atest-exp2.c (exp_mpn): Likewise.
50960         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
50961
50962         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
50963         * stdlib/tst-tls-atexit-lib.c: Likewise.
50964         * stdlib/tst-tls-atexit.c: Likewise.
50965
50966 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50967
50968         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
50969         and __attribute_alloc_size__.
50970
50971 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50972
50973         * include/programs/xmalloc.h: Change __attribute_alloc_size to
50974         __attribute_alloc_size__.
50975         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
50976         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
50977
50978 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50979
50980         * include/programs/xmalloc.h: New file.
50981         * catgets/gencat.c: Include it.
50982         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
50983         * elf/pldd.c: Likewise.
50984         * iconv/iconv_charmap.c: Likewise.
50985         * iconv/iconvconfig.c: Likewise.
50986         * iconv/strtab.c: Likewise.
50987         * locale/programs/locale.c: Likewise.
50988         * locale/programs/localedef.h: Likewise.
50989         * locale/programs/simple-hash.c: Likewise.
50990         * nscd/nscd.h: Likewise.
50991         * nss/makedb.c: Likewise.
50992         * sysdeps/generic/ldconfig.h: Likewise.
50993
50994 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50995
50996         * Versions.def: Add GLIBC_2.18.
50997         * include/link.h (struct link_map): New member l_tls_dtor_count.
50998         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
50999         (__call_tls_dtors): Likewise.
51000         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51001         __cxa_thread_atexit_impl.
51002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51003         Likewise.
51004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51005         Likewise.
51006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51007         Likewise.
51008         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51009         Likewise.
51010         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51011         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51012         Likewise.
51013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51014         Likewise.
51015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51016         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51017         Likewise.
51018         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51019         (tests): Add test case tst-tls-atexit.
51020         (modules-names): Add shared library for tst-tls-atexit.
51021         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51022         (GLIBC_PRIVATE): Add __call_tls_dtors.
51023         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51024         for libstdc++.
51025         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51026         * stdlib/tst-tls-atexit.c: New test case.
51027         * stdlib/tst-tls-atexit-lib.c: New test case.
51028
51029         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51030
51031         * elf/Versions (ld): Add _dl_find_dso_for_object.
51032         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51033         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51034         (dl_open_worker): Use _dl_find_dso_for_object.
51035         * elf/dl-sym.c (do_sym): Likewise.
51036         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51037
51038 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51039
51040         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51041         Syntactic changes only.
51042         (_dl_runtime_profile): Do a tail-call to the resolved function.
51043
51044 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51045
51046         [BZ #13550]
51047         * sysdeps/x86_64/bp-asm.h: Remove file.
51048         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51049         <bp-sym.h> and <bp-asm.h>.
51050         (__clone): Do not use BP_SYM.
51051         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51052         <bp-sym.h> and <bp-asm.h>.
51053         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51054         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51055         "bp-asm.h".
51056         (_setjmp): Do not use BP_SYM.
51057         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51058         "bp-asm.h".
51059         (setjmp): Do not use BP_SYM.
51060         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51061         libc_hidden_def.
51062         (mempcpy): Do not use BP_SYM in weak_alias.
51063         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51064         "bp-asm.h".
51065         (strchr): Do not use BP_SYM.
51066         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51067         "bp-asm.h".
51068         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51069         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51070         (_start): Do not use BP_SYM.
51071         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51072         "bp-asm.h".
51073         (strcat): Do not use BP_SYM.
51074         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51075         "bp-asm.h".
51076         (STRCMP): Do not use BP_SYM.
51077         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51078         "bp-asm.h".
51079         (STRCPY): Do not use BP_SYM.
51080         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51081         "bp-asm.h".
51082         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51083         "bp-asm.h".
51084         (FUNCTION): Do not use BP_SYM.
51085         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51086         weak_alias.
51087         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51088
51089 2013-02-17  Andreas Jaeger  <aj@suse.de>
51090
51091         * time/Versions: Sort entries.
51092         * string/Versions: Likewise.
51093         * resolv/Versions: Likewise.
51094         * posix/Versions: Likewise.
51095         * iconv/Versions: Likewise.
51096         * elf/Versions: Likewise.
51097         * wcsmbs/Versions: Likewise.
51098
51099 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51100
51101         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51102         loop termination condition.
51103
51104         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51105         variable to calculate EZ.
51106         (__sqr): Likewise.
51107
51108         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51109         the lower precision input.
51110
51111 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51112
51113         [BZ #13550]
51114         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51115         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51116         (run-via-rtld-prefix): Do not handle %-bp tests.
51117         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51118         (all-object-suffixes): Remove .ob.
51119         (bppfx): Remove variable.
51120         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51121         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51122         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51123         [$(build-bounded) = yes] (libtype.ob): Likewise.
51124         * Makerules (elide-routines.ob): Remove variable.
51125         (do-tests-clean): Do not handle *-bp.out.
51126         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51127         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51128         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51129         (tests): Do not include $(tests-bp.out).
51130         (xtests): Do not include $(xtests-bp.out).
51131         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51132         [$(build-bounded) = yes] ($(addprefix
51133         $(objpfx),$(binaries-bounded))): Remove rule.
51134         ($(objpfx)%-bp.out): Remove rule.
51135         * config.make.in (build-bounded): Remove variable.
51136         * crypt/Makefile [$(build-bounded) = yes]
51137         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51138         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51139         append to variable.
51140         [$(build-bounded) = yes] (install-lib): Likewise.
51141         [$(build-bounded) = yes] (generated): Likewise.
51142         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51143         Remove rule.
51144         * intl/Makefile [$(build-bounded) = yes]
51145         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51146         * math/Makefile [$(build-bounded) = yes]
51147         ($(tests:%=$(objpfx)%-bp): Likewise.
51148         * misc/Makefile [$(build-bounded) = yes]
51149         ($(objpfx)tst-tsearch-bp): Likewise.
51150         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51151         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51152         Remove dependency.
51153         * string/Makefile (o-objects.ob): Remove variable.
51154         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51155         (CFLAGS-.ob): Remove variable.
51156         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51157         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51158         both definitions of variable.
51159         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51160         (ASFLAGS-.ob): Remove variable.
51161
51162 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51163
51164         [BZ #13550]
51165         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51166         Remove __BOUNDED_POINTERS__ from condition.
51167         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51168         * string/bits/string2.h [!__NO_STRING_INLINES &&
51169         !__BOUNDED_POINTERS__]: Likewise.
51170         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51171         Likewise.
51172         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51173         Remove conditional code.
51174         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51175         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51176         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51177         condition.
51178
51179         [BZ #13550]
51180         * csu/libc-start.c: Do not include <bp-sym.h>.
51181         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51182         * elf/dl-open.c: Do not include <bp-sym.h>.
51183         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51184         * math/fegetenv.c: Do not include <bp-sym.h>.
51185         (fegetenv): Do not use BP_SYM in versioned symbols.
51186         * nptl/sysdeps/pthread/bits/libc-lockP.h
51187         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51188         <bp-sym.h>.
51189         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51190         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51191         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51192         (__pthread_mutex_destroy): Likewise.
51193         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51194         (__pthread_mutex_lock): Likewise.
51195         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51196         (__pthread_mutex_trylock): Likewise.
51197         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51198         (__pthread_mutex_unlock): Likewise.
51199         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51200         (__pthread_mutexattr_init): Likewise.
51201         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51202         (__pthread_mutexattr_destroy): Likewise.
51203         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51204         (__pthread_mutexattr_settype): Likewise.
51205         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51206         (__pthread_rwlock_init): Likewise.
51207         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51208         (__pthread_rwlock_destroy): Likewise.
51209         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51210         (__pthread_rwlock_rdlock): Likewise.
51211         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51212         (__pthread_rwlock_tryrdlock): Likewise.
51213         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51214         (__pthread_rwlock_wrlock): Likewise.
51215         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51216         (__pthread_rwlock_trywrlock): Likewise.
51217         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51218         (__pthread_rwlock_unlock): Likewise.
51219         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51220         (__pthread_key_create): Likewise.
51221         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51222         (__pthread_setspecific): Likewise.
51223         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51224         (__pthread_getspecific): Likewise.
51225         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51226         Likewise.
51227         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51228         (_pthread_cleanup_push_defer): Likewise.
51229         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51230         (_pthread_cleanup_pop_restore): Likewise.
51231         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51232         (pthread_setcancelstate): Likewise.
51233         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51234         <bp-sym.h>.
51235         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51236         (memchr): Do not use BP_SYM in weak_alias.
51237         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51238         (fegetenv): Do not use BP_SYM in versioned symbols.
51239         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51240         (fesetenv): Do not use BP_SYM in versioned symbols.
51241         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51242         (feupdateenv): Do not use BP_SYM in versioned symbols.
51243         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51244         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51245         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51246         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51247         (open64): Do not use BP_SYM in weak_alias.
51248         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51249         (fegetenv): Do not use BP_SYM in versioned symbols.
51250         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51251         (fesetenv): Do not use BP_SYM in versioned symbols.
51252         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51253         (feupdateenv): Do not use BP_SYM in versioned symbols.
51254         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51255         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51256         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51257         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51258         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51259         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51260         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51261         <bp-sym.h>.
51262         (__libc_start_main): Do not use BP_SYM.
51263
51264 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51265
51266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51267         redundant return line.
51268         (norm): Likewise.
51269         (denorm): Likewise.
51270         (dbl_mp): Likewise.
51271         (sub_magnitudes): Likewise.
51272         (__add): Likewise.
51273         (__sub): Likewise.
51274         (__mul): Likewise.
51275         (__inv): Likewise.
51276         (__dvd): Likewise.
51277         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51278         (norm): Likewise.
51279         (denorm): Likewise.
51280         (dbl_mp): Likewise.
51281         (sub_magnitudes): Likewise.
51282         (__add): Likewise.
51283         (__sub): Likewise.
51284         (__mul): Likewise.
51285         (__inv): Likewise.
51286         (__dvd): Likewise.
51287
51288         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51289         instead of __mul.
51290         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51291         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51292         (cc32): Likewise.
51293
51294         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51295         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51296         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51297         of __mul for squares.
51298         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51299         function
51300         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51301         Likewise.
51302         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51303         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51304
51305 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51306
51307         [BZ #13550]
51308         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51309         code.
51310         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51311         prototype or function definition.  Rename ubp_* variables and
51312         parameters.  Remove argv definitions conditional on
51313         [__BOUNDED_POINTERS__].
51314         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51315         * elf/dl-runtime.c (_dl_fixup): Likewise.
51316         * include/set-hooks.h (RUN_HOOK): Likewise.
51317         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51318         definition.
51319         * string/strcpy.c (strcpy): Do not use __unbounded.
51320         * sysdeps/generic/frame.h (struct layout): Likewise.
51321         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51322         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51323         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51324         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51325         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51326         (__backtrace): Likewise.
51327         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51328         use __ptrvalue.
51329         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51330         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51331         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51332         Likewise.
51333         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51334         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51335         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51336         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51337         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51338         Do not use __unbounded.
51339         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51340         Rename __unboundedrlimits parameter to rlimits in prototype.
51341         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51342         Do not use __unbounded.
51343         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51344         not use __ptrvalue.
51345         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51346         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51347         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51348         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51349         __ptrvalue or __unbounded.
51350         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51351         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51352         use __unbounded.
51353         (__new_msgctl): Do not use __ptrvalue.
51354         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51355         __unbounded.
51356         (__libc_msgrcv): Do not use __ptrvalue.
51357         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51358         startup_info): Do not use __unbounded.
51359         (__libc_start_main): Likewise.  Rename ubp_* variables and
51360         parameters.  Remove argv definitions conditional on
51361         [__BOUNDED_POINTERS__].
51362         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51363         __ptrvalue.
51364         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51365         use __unbounded.
51366         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51367         or __ptrvalue.
51368         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51369         use __unbounded.
51370         (__new_shmctl): Do not use __ptrvalue.
51371         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51372         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51373         Likewise.
51374         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51375         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51376         (__libc_sigaction): Likewise.
51377         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51378         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51379         Likewise.
51380         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51381
51382 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51383
51384         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51385
51386         * string/mempcpy.c: Implement by calling memcpy.
51387
51388 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51389
51390         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51391
51392         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51393         evaluation.
51394
51395         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51396         values in the mantissa.
51397
51398         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51399         minimize writes to Z.
51400         (sub_magnitudes): Simplify code a bit.
51401
51402 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51403
51404         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51405         from the message.  The linker prefixes all warnings with that already.
51406
51407 2013-02-12  Andreas Schwab  <schwab@suse.de>
51408
51409         [BZ #15078]
51410         * posix/regexec.c (extend_buffers): Add parameter min_len.
51411         (check_matching): Pass minimum needed length.
51412         (clean_state_log_if_needed): Likewise.
51413         (get_subexp): Likewise.
51414         * posix/Makefile (tests): Add bug-regex34.
51415         (bug-regex34-ENV): Define.
51416         * posix/bug-regex34.c: New file.
51417
51418         [BZ #11561]
51419         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51420         elements compare against the byte sequence of it, not its name.
51421         * posix/Makefile (tests): Add bug-regex35.
51422         (bug-regex35-ENV): Define.
51423         * posix/bug-regex35.c: New file.
51424
51425 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51426
51427         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51428         comment.
51429         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51430         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51431         (CHECK_EOL): Add undef.
51432
51433 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51434
51435         * bits/stdlib-bsearch.h: New file.
51436         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51437         * stdlib/stdlib.h: Likewise.
51438
51439 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51440
51441         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51442         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51443         declaration.
51444         * manual/search.texi (Array Search Function): Add missing const in
51445         lfind prototype.
51446         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51447         declaration to use rlim_t.
51448         (Basic Scheduling Functions): Remove erroneous const from
51449         sched_getparam prototype.  Remove erroneous * from
51450         sched_get_priority_max and sched_get_priority_min prototypes.
51451         (Resource Usage): Fix summary @comment on vtimes to refer to
51452         sys/vtimes.h rather than vtimes.h.
51453         Add missing *s in vtimes prototype.
51454         (Limits on Resources): Fix ulimit prototype to return long int.
51455         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51456         prototypes to use long int rather than double.
51457         (BSD Random): Fix initstate and setstate to use char *, not void *.
51458         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51459         prototype to make second argument 'struct aiocb64 *const[]'.
51460         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51461         (Status of AIO Operations): Remove erroneous const in aio_return and
51462         aio_return64 prototypes.
51463         (Synchronizing I/O): Fix sync prototype to return void.
51464         * manual/startup.texi (Suboptions): Remove an erroneous const in
51465         getsubopt prototype.
51466         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51467         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51468         use size_t rather than int.
51469         (Scanning All Users): Likewise for getpwent_r.
51470         (Setting Groups): Add missing const to setgroups prototype.
51471         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51472         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51473         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51474         'const void *' rather than 'const char *'.
51475         (Host Address Functions): Likewise for inet_ntop.
51476         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51477         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51478         ssize_t for return value.
51479         (Sending Data): Likewise for send, sendto, sendmsg.
51480         (Socket Option Functions): Add a missing const in setsockopt prototype.
51481         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51482         use wchar_t for the argument.
51483         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51484         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51485         take no arguments.
51486         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51487         double/float/long double for second argument.
51488         Fix return types of significand, significandf, significandl.
51489         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51490         argument in fchmod prototype.
51491         (File Owner): Use uid_t and gid_t in fchown prototype.
51492         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51493         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51494         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51495         use 'const struct dirent **' as argument types to CMP function pointer
51496         argument.
51497         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51498         (File Times): Fix summary magic @comment for struct utimbuf and utime
51499         to refer to utime.h, not time.h.
51500         * manual/string.texi (Argz Functions): Add missing const in
51501         argz_extract and argz_next prototypes.
51502         (Finding Tokens in a String): Likewise for basename.
51503         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51504         (Copying and Concatenation): Fix typo in wmemmove prototype.
51505         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51506         (Signal Stack): Remove erroneous const in sigstack prototype.
51507         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51508         prototype.
51509         (Simple Calendar Time): Likewise for stime.
51510         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51511         prototype.
51512         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51513         say sys/sysctl.h instead.
51514         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51515         and vsyslog prototypes.
51516
51517 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51518
51519         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51520         Remove.
51521
51522 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51523
51524         * misc/sys/mman.h: Fix typo in mremap comment.
51525
51526 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51527
51528         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51529         the '\0' terminator.
51530
51531 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51532
51533         [BZ #13550]
51534         * debug/segfault.c: Don't include <bp-checks.h>.
51535         * sysdeps/generic/bp-checks.h: Remove file.
51536         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51537         (__GETDENTS): Don't use CHECK_N.
51538         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51539         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51540         (__getgroups): Don't use CHECK_N.
51541         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51542         (setgroups): Don't use CHECK_N.
51543         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51544         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51545         (__libc_msgrcv): Don't use CHECK_N.
51546         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51547         (__libc_msgsnd): Don't use CHECK_N.
51548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51549         <bp-checks.h>.
51550         (__libc_pread): Don't use CHECK_N.
51551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51552         include <bp-checks.h>.
51553         (__libc_pread64): Don't use CHECK_N.
51554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51555         include <bp-checks.h>.
51556         (__libc_pwrite): Don't use CHECK_N.
51557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51558         include <bp-checks.h>.
51559         (__libc_pwrite64): Don't use CHECK_N.
51560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51561         <bp-checks.h>.
51562         (__libc_pread): Don't use CHECK_N.
51563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51564         include <bp-checks.h>.
51565         (__libc_pread64): Don't use CHECK_N.
51566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51567         include <bp-checks.h>.
51568         (__libc_pwrite): Don't use CHECK_N.
51569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51570         include <bp-checks.h>.
51571         (__libc_pwrite64): Don't use CHECK_N.
51572         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51573         (do_pread): Don't use CHECK_N.
51574         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51575         (do_pread64): Don't use CHECK_N.
51576         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51577         (do_pwrite): Don't use CHECK_N.
51578         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51579         (do_pwrite64): Don't use CHECK_N.
51580         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51581         (__libc_readv): Don't use CHECK_N.
51582         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51583         (semop): Don't use CHECK_N.
51584         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51585         <bp-checks.h>.
51586         (semtimedop): Don't use CHECK_N.
51587         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51588         (__libc_pread): Don't use CHECK_N.
51589         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51590         <bp-checks.h>.
51591         (__libc_pread64): Don't use CHECK_N.
51592         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51593         <bp-checks.h>.
51594         (__libc_pwrite): Don't use CHECK_N.
51595         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51596         <bp-checks.h>.
51597         (__libc_pwrite64): Don't use CHECK_N.
51598         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51599         <bp-checks.h>.
51600         (__libc_msgrcv): Don't use CHECK_N.
51601         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51602         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51603         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51604         (__libc_writev): Don't use CHECK_N.
51605
51606 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51607
51608         * string/strcpy.c: Removed unused variable.
51609
51610         * Makeconfig (+sysdep-includes): Define with := rather than =.
51611         Use an existing include/ subdir of each sysdeps dir before it.
51612
51613 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51614
51615         * nscd/connection.c (register_traced_file): Comment function.
51616         [HAVE_INOTIFY] (union __inev): Define.
51617         [HAVE_INOTIFY] (inotify_check_files): New function.
51618         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51619         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51620         clear_db_cache.
51621         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51622
51623 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51624
51625         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51626         loaded if not already and that a failure is permanent.
51627
51628 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51629
51630         [BZ #15006]
51631         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51632         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51633
51634 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51635
51636         [BZ #13550]
51637         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51638         (CHECK_1_NULL_OK): Likewise.
51639         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51640         (__fxstat): Do not use CHECK_1.
51641         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51642         <bp-checks.h>.
51643         (___fxstat64): Do not use CHECK_1.
51644         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51645         <bp-checks.h>.
51646         (__fxstatat): Do not use CHECK_1.
51647         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51648         <bp-checks.h>.
51649         (__fxstatat64): Do not use CHECK_1.
51650         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51651         <bp-checks.h>.
51652         (__fxstat): Do not use CHECK_1.
51653         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51654         <bp-checks.h>.
51655         (__fxstatat): Do not use CHECK_1.
51656         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51657         <bp-checks.h>.
51658         (__getresgid): Do not use CHECK_1.
51659         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51660         <bp-checks.h>.
51661         (__getresuid): Do not use CHECK_1.
51662         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51663         <bp-checks.h>.
51664         (__lxstat): Do not use CHECK_1.
51665         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51666         <bp-checks.h>.
51667         (__old_msgctl): Do not use CHECK_1.
51668         (__new_msgctl): Likewise.
51669         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51670         <bp-checks.h>.
51671         (__new_setrlimit): Do not use CHECK_1.
51672         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51673         <bp-checks.h>.
51674         (__old_shmctl): Do not use CHECK_1.
51675         (__new_shmctl): Likewise.
51676         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51677         <bp-checks.h>.
51678         (__xstat): Do not use CHECK_1.
51679         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51680         (__lxstat): Do not use CHECK_1.
51681         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51682         <bp-checks.h>.
51683         (___lxstat64): Do not use CHECK_1.
51684         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51685         (__old_msgctl): Do not use CHECK_1.
51686         (__new_msgctl): Likewise.
51687         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51688         <bp-checks.h>.
51689         (__gettimeofday): Do not use CHECK_1.
51690         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51691         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51692         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51693         <bp-checks.h>.
51694         (__gettimeofday): Do not use CHECK_1.
51695         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51696         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51697         (__new_shmctl): Do not use CHECK_1.
51698         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51699         <bp-checks.h>.
51700         (do_sigtimedwait): Do not use CHECK_1.
51701         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51702         <bp-checks.h>.
51703         (do_sigwaitinfo): Do not use CHECK_1.
51704         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51705         <bp-checks.h>.
51706         (msgctl): Do not use CHECK_1.
51707         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51708         <bp-checks.h>.
51709         (shmctl): Do not use CHECK_1.
51710         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51711         (ustat): Do not use CHECK_1.
51712         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51713         <bp-checks.h>.
51714         (__fxstat): Do not use CHECK_1.
51715         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51716         <bp-checks.h>.
51717         (__fxstatat): Do not use CHECK_1.
51718         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51719         <bp-checks.h>.
51720         (__lxstat): Do not use CHECK_1.
51721         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51722         <bp-checks.h>.
51723         (__xstat): Do not use CHECK_1.
51724         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51725         (__xstat): Do not use CHECK_1.
51726         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51727         (___xstat64): Do not use CHECK_1.
51728
51729         [BZ #13550]
51730         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51731         definitions.
51732         (CHECK_BOUNDS_HIGH): Likewise.
51733         * string/strcpy.c: Do not include <bp-checks.h>.
51734         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51735
51736 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51737
51738         * nscd/nscd-client.h (__nscd_drop_map_ref):
51739         Add __attribute__ ((unused)).
51740         * nis/nss-nisplus.h (niserr2nss): Likewise.
51741
51742         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51743         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51744
51745         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51746         Remove inline keyword.
51747         * include/rounding-mode.h (round_away): Likewise.
51748         * libio/wfileops.c (adjust_wide_data): Likewise.
51749         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51750         (__m128i_strloadu_tolower): Likewise.
51751         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51752         (__m128i_strloadu_tolower): Likewise.
51753         * time/mktime.c (ydhms_diff): Likewise.
51754         * locale/elem-hash.h (elem_hash): Likewise.
51755         * locale/setlocale.c (setdata): Likewise.
51756         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51757         (re_string_wchar_at): Likewise.
51758         (bitset_not, bitset_merge, bitset_mask): Likewise.
51759         [!(__GNUC__ > 3)] (inline): Remove macro.
51760         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51761         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51762         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51763         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51764         * string/memcmp.c (memcmp_bytes): Likewise.
51765         * locale/programs/locarchive.c (compute_hashval): Likewise.
51766         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51767         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51768         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51769         * nss/getent.c (print_rpc, print_protocols): Likewise.
51770         (print_passwd, print_group, print_aliases): Likewise.
51771         * nis/nss-nisplus.h (niserr2nss): Likewise.
51772         * nscd/connections.c (restart_p): Likewise.
51773         Change return type to bool.
51774
51775 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51776
51777         * Makeconfig (all-Depend-files): Add existing
51778         $(sorted-subdirs:=/Depend) files.
51779         (all-subdirs): Remove nss.
51780         * sysdeps/unix/inet/Subdirs: Add it here instead.
51781         * hesiod/Depend: New file.
51782
51783         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51784         instead of calling alloca.
51785
51786         * io/lseek.c (__lseek): Rename to __libc_lseek.
51787         Define __lseek as an alias.
51788
51789         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51790
51791 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51792
51793         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51794         else clause and remove check for non-standard endianness.
51795
51796 2013-02-04  David S. Miller  <davem@davemloft.net>
51797
51798         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51799
51800 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51801
51802         [BZ #13550]
51803         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51804         (__ubp_memchr): Remove prototype.
51805         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51806         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51807         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51808         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51809         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51810         Remove alias.
51811         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51812         (__ubp_memchr): Likewise.
51813         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51814         (__ubp_memchr): Likewise.
51815         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51816         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51817         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51818         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51819         CHECK_STRING.
51820         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51821         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51822         (__getcwd): Do not use CHECK_STRING.
51823         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51824         <bp-checks.h>.
51825         (__real_chown): Do not use CHECK_STRING.
51826         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51827         <bp-checks.h>.
51828         (fchownat): Do not use CHECK_STRING.
51829         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51830         CHECK_STRING.
51831         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51832         <bp-checks.h>.
51833         (__lchown): Do not use CHECK_STRING.
51834         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51835         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51836         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51837         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51839         include <bp-checks.h>.
51840         (truncate64): Do not use CHECK_STRING.
51841         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51842         <bp-checks.h>.
51843         (__real_chown): Do not use CHECK_STRING.
51844         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51845         <bp-checks.h>.
51846         (__lchown): Do not use CHECK_STRING.
51847         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51848         <bp-checks.h>.
51849         (__chown): Do not use CHECK_STRING.
51850         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
51851         <bp-checks.h>.
51852         (truncate64): Do not use CHECK_STRING.
51853         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
51854         Likewise.
51855         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
51856         (__xmknod): Do not use CHECK_STRING.
51857         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
51858         <bp-checks.h>.
51859         (__xmknodat): Do not use CHECK_STRING.
51860         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51861         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
51862
51863 2013-02-04  Andreas Schwab  <schwab@suse.de>
51864
51865         [BZ #14142]
51866         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
51867         * include/netdb.h: Likewise for h_errno.
51868         * elf/tst-stackguard1.c: Include <tls.h>.
51869
51870 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
51871
51872         * elf/link.h (struct link_map): Extend the l_addr comment.
51873         * include/link.h (struct link_map): Likewise.
51874
51875 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
51876
51877         [BZ #13550]
51878         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
51879         (BOUNDED_1): Remove macro.
51880         * debug/backtrace.c: Don't include <bp-checks.h>.
51881         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
51882         (__backtrace): Likewise.
51883         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
51884         <bp-checks.h>.
51885         (__backtrace): Don't use BOUNDED_1.
51886         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
51887         <bp-checks.h>.
51888         (__backtrace): Don't use BOUNDED_1.
51889         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
51890         (__backtrace): Don't use BOUNDED_1.
51891         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
51892         (shmat): Don't use BOUNDED_N.
51893
51894 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
51895
51896         [BZ #13550]
51897         * sysdeps/generic/bp-start.h: Remove file.
51898         * csu/libc-start.c: Don't include <bp-start.h>.
51899         (LIBC_START_MAIN): Set up __environ directly instead of using
51900         INIT_ARGV_and_ENVIRON.
51901         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
51902         <bp-start.h>.
51903
51904         [BZ #13550]
51905         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
51906         definitions.
51907         (CHECK_FCNTL): Likewise.
51908         (CHECK_N_PAGES): Likewise.
51909
51910         [BZ #13550]
51911         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
51912         definitions.
51913         (CHECK_SIGSET_NULL_OK): Likewise.
51914         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
51915         <bp-checks.h>.
51916         (sigpending): Don't use CHECK_SIGSET.
51917         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
51918         <bp-checks.h>.
51919         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51920         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
51921         <bp-checks.h>.
51922         (do_sigsuspend): Don't use CHECK_SIGSET.
51923         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
51924         use CHECK_SIGSET.
51925         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
51926         (do_sigwait): Don't use CHECK_SIGSET.
51927         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
51928         use CHECK_SIGSET.
51929         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
51930         include <bp-checks.h>.
51931         (sigpending): Don't use CHECK_SIGSET.
51932         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
51933         include <bp-checks.h>.
51934         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51935         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
51936         <bp-checks.h>.
51937         (sigpending): Don't use CHECK_SIGSET.
51938         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
51939         <bp-checks.h>.
51940         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51941
51942         [BZ #13550]
51943         * sysdeps/generic/bp-semctl.h: Remove file.
51944         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
51945         <bp-checks.h> and <bp-semctl.h>.
51946         (__old_semctl): Don't use CHECK_SEMCTL.
51947         (__new_semctl): Likewise.
51948         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
51949         and <bp-semctl.h>.
51950         (__old_semctl): Don't use CHECK_SEMCTL.
51951         (__new_semctl): Likewise.
51952         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
51953         <bp-checks.h> and <bp-semctl.h>.
51954         (__old_semctl): Don't use CHECK_SEMCTL.
51955         (__new_semctl): Likewise.
51956         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
51957         <bp-checks.h> and <bp-semctl.h>.
51958         (semctl): Don't use CHECK_SEMCTL.
51959
51960         [BZ #13550]
51961         * Makerules (elide-bp-thunks): Remove variable.
51962         (elide-routines.oS): Don't use $(elide-bp-thunks).
51963         (elide-routines.os): Likewise.
51964         (elide-routines.o): Likewise.
51965         (elide-routines.op): Likewise.
51966         (elide-routines.og): Likewise.
51967         (objects): Don't use $(bp-thunks).
51968         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
51969         include.
51970         (common-generated): Do not add s-proto-bp.d.
51971         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
51972         (int): Likewise.
51973         (typ): Likewise.
51974         Do not generate makefile rules for bounded-pointer thunks.
51975         * sysdeps/generic/bp-thunks.h: Remove file.
51976         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
51977         * sysdeps/unix/s-proto-bp.S: Likewise.
51978
51979         [BZ #15062]
51980         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
51981         parts of result separately when argument is not close to line from
51982         -i to i and one part of argument is small.
51983         * math/k_casinhf.c (__kernel_casinhf): Likewise.
51984         * math/k_casinhl.c (__kernel_casinhl): Likewise.
51985         * math/libm-test.inc (cacos_test): Add more tests.
51986         (casin_test): Likewise.
51987         (casinh_test): Likewise.
51988         * sysdeps/i386/fpu/libm-test-ulps: Update.
51989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51990
51991 2013-01-31  David S. Miller  <davem@davemloft.net>
51992
51993         * po/de.po: Update from translation team.
51994
51995 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
51996
51997         * time/tzfile.c: Include stdint.h for SIZE_MAX.
51998
51999 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52000
52001         * configure.in (_AC_PROG_CC_C89): New definition.
52002         * configure: Regenerate.
52003
52004         * configure.in (AC_PROG_CPP): New definition.
52005         * configure: Regenerate.
52006
52007 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52008
52009         * debug/tst-backtrace.h: New file.
52010         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52011         (ret): Remove variable.
52012         (x): Likewise.
52013         (FAIL): Remove macro.
52014         (NO_INLINE): Likewise.
52015         (fn1): Use match function instead of strstr.
52016         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52017         (ret): Remove variable.
52018         (x): Likewise.
52019         (FAIL): Remove macro.
52020         (NO_INLINE): Likewise.
52021         (fn): Use match function instead of strstr.
52022         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52023         (ret): Remove variable.
52024         (x): Likewise.
52025         (FAIL): Remove macro.
52026         (NO_INLINE): Likewise.
52027         (handle_signal): Use match function instead of strstr.
52028         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52029         (ret): Remove variable.
52030         (x): Likewise.
52031         (FAIL): Remove macro.
52032         (NO_INLINE): Likewise.
52033         (handle_signal): Use match function instead of strstr.
52034
52035 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52036
52037         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52038
52039 2013-01-23  David S. Miller  <davem@davemloft.net>
52040
52041         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52042         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52043         argument of CAS if possible.
52044         * sysdeps/sparc/sparc64/bits/atomic.h
52045         (__arch_compare_and_exchange_val_32_acq): Likewise.
52046         (__arch_compare_and_exchange_val_64_acq): Likewise.
52047
52048 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52049
52050         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52051         * sysdeps/posix/ulimit.c: ... this.
52052         Include <limits.h>.
52053         * sysdeps/unix/bsd/ulimit.c: Remove file.
52054
52055 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52056
52057         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52058         (LDFLAGS-tst-array5): Likewise.
52059
52060 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52061
52062         [BZ #15036]
52063         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52064         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52065         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52066         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52067
52068 2013-01-21  David S. Miller  <davem@davemloft.net>
52069
52070         * sysdeps/sparc/backtrace.c: New file.
52071         * sysdeps/sparc/sparc32/backtrace.h: New file.
52072         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52073         * sysdeps/sparc/sparc64/backtrace.h: New file.
52074         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52075         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52076         -funwind-tables.
52077
52078 2013-01-21  Andreas Schwab  <schwab@suse.de>
52079
52080         [BZ #15020]
52081         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52082         closed its stdout.
52083
52084 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52085
52086         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52087         "mpa2.h".
52088         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52089
52090 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52091             Mark Mitchell  <mark@codesourcery.com>
52092             Tom de Vries  <tom@codesourcery.com>
52093             Paul Pluzhnikov  <ppluzhnikov@google.com>
52094
52095         * debug/tst-backtrace2.c: New file.
52096         * debug/tst-backtrace3.c: Likewise.
52097         * debug/tst-backtrace4.c: Likewise.
52098         * debug/tst-backtrace5.c: Likewise.
52099         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52100         (CFLAGS-tst-backtrace3.c): Likewise.
52101         (CFLAGS-tst-backtrace4.c): Likewise.
52102         (CFLAGS-tst-backtrace5.c): Likewise.
52103         (LDFLAGS-tst-backtrace2): Likewise.
52104         (LDFLAGS-tst-backtrace3): Likewise.
52105         (LDFLAGS-tst-backtrace4): Likewise.
52106         (LDFLAGS-tst-backtrace5): Likewise.
52107         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52108         tst-backtrace4 and tst-backtrace5.
52109
52110 2013-01-18  Anton Blanchard  <anton@samba.org>
52111             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52112
52113         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52114         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52115         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52116         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52118         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52119         "+r" and remove output regs list as redundant.  Add explicit inline
52120         asm to specify register of return val to work around compiler codegen
52121         bug.  Remove (int) cast on return value.  Add return type parameter to
52122         use in macro so that this macro does not truncate return value for
52123         64-bit values.
52124         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52125         pass to INTERNAL_VSYSCALL_NCS.
52126         (INLINE_VSYSCALL): Add 'long int' as return type to
52127         INTERNAL_VSYSCALL_NCS macro invocation.
52128         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52129         INTERNAL_VSYSCALL_NCS macro invocation.
52130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52131
52132 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52133
52134         [BZ #14496]
52135         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52136         Fix application of SIMD FP exception mask.
52137
52138         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52139         mp_no from a power of two.
52140         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52141         __mpexp_twomm1.  Use __pow_mp.
52142
52143         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52144         multiplication.
52145
52146 2013-01-17  David S. Miller  <davem@davemloft.net>
52147
52148         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52149
52150 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52151
52152         [BZ #15023]
52153         * include/complex.h: Condition contents on [!_COMPLEX_H].
52154         (__kernel_casinhf): New prototype.
52155         (__kernel_casinh): Likewise.
52156         (__kernel_casinhl): Likewise.
52157         * math/Makefile (libm_calls): Add k_casinh.
52158         * math/k_casinh.c: New file.
52159         * math/k_casinhf.c: Likewise.
52160         * math/k_casinhl.c: Likewise.
52161         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52162         finite nonzero arguments.
52163         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52164         finite nonzero arguments.
52165         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52166         finite nonzero arguments.
52167         * math/s_casinh.c: Do not include <float.h>.
52168         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52169         * math/s_casinhf.c: Do not include <float.h>.
52170         (__casinhf): Move code for finite nonzero arguments to
52171         k_casinhf.c.
52172         * math/s_casinhl.c: Do not include <float.h>.
52173         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52174         redefine.
52175         (__casinhl): Move code for finite nonzero arguments to
52176         k_casinhl.c.
52177         * math/libm-test.inc (cacos_test): Add more tests.
52178         * sysdeps/i386/fpu/libm-test-ulps: Update.
52179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52180
52181 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52182
52183         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52184         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52185         [!HAVE_MREMAP]: Remove [defined linux] case.
52186         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52187
52188 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52189
52190         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52191
52192 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52193
52194         * elf/elf.h (R_386_SIZE32): New relocation.
52195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52196         R_386_SIZE32.
52197         (elf_machine_rela): Likewise.
52198         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52199         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52200
52201 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52202
52203         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52204         (FP_FAST_FMA): Do not define.
52205         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52206         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52207         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52208         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52209         !_SOFT_FLOAT]: Likewise.
52210         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52211         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52212         value.
52213         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52214         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52215         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52216         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52217         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52218         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52219         file.
52220
52221 2013-01-16  Andreas Schwab  <schwab@suse.de>
52222
52223         [BZ #14327]
52224         * include/stdlib.h (__mktemp): Add declaration.
52225         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52226         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52227
52228 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52229
52230         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52231         definitions.
52232         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52233         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52234         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52235         definitions here.
52236         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52237         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52238         definitions.
52239         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52240         and ONE.
52241         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52242         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52243         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52244         definitions.
52245         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52246         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52247         definitions.
52248         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52249
52250         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52251
52252 2013-01-15  David S. Miller  <davem@davemloft.net>
52253
52254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52255         trunc{,f} to libm-sysdep_routes.
52256         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52258         file.
52259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52261         file.
52262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52263         file.
52264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52266         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52267         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52268         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52269         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52270         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52271         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52272
52273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52274         nearbyint{,f} to libm-sysdep_routes.
52275         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52277         New file.
52278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52279         file.
52280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52281         New file.
52282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52283         file.
52284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52286         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52287         file.
52288         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52289         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52290         file.
52291         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52292         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52293         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52294
52295         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52296         libc_feholdexcept and libc_fesetenv.
52297
52298 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52299
52300         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52301
52302 2013-01-14  David S. Miller  <davem@davemloft.net>
52303
52304         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52305         (SPARC_ASM_VIS2_IFUNC): Likewise.
52306         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52308         use of 'siam' instruction.
52309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52310         Likewise.
52311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52312         Likewise.
52313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52314         Likewise.
52315         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52316         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52317         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52318         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52320         file.
52321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52322         file.
52323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52324         file.
52325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52326         file.
52327         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52328         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52329         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52330         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52332         new VIS2 routines.
52333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52336         Likewise.
52337         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52338         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52340         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52342         routines to libm-sysdep_routines.
52343         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52344
52345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52346         fdim/fdimf to libm-sysdep_routines.
52347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52348         file.
52349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52351         file.
52352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52353         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52354         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52355         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52356         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52357         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52358         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52359
52360 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52361
52362         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52363         to optimize copies.
52364
52365         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52366         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52367         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52368
52369         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52370         local variable MPTWO.
52371         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52372         Likewise.
52373
52374 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52375
52376         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52377         GLOB_NOESCAPE.
52378
52379 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52380
52381         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52382
52383 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52384
52385         * manual/pattern.texi (glob_t): Document gl_flags.
52386         (glob64_t): Likewise.
52387
52388 2013-01-11  David S. Miller  <davem@davemloft.net>
52389
52390         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52391         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52392         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52393         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52394         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52395         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52396         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52397         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52398         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52399         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52400         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52401         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52402         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52403
52404         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52405         sparc V9 rather than using V8 code.
52406         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52407         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52408
52409         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52410         Move to...
52411         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52412         Here.
52413
52414 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52415
52416         [BZ #14941]
52417         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52418         not in the main loop.
52419         * configure: Regenerated.
52420
52421 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52422
52423         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52424         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52425         to just #else.
52426         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52427         [!__GLIBC_HAVE_LONG_LONG] case.
52428         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52429         condition to just #else.
52430         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52431         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52432         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52433         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52434         unconditional.
52435         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52436         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52437         #elif condition to just #else.
52438         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52439         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52440         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52441         #elif condition to just #else.
52442
52443 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52444
52445         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52446         (EF_MIPS_ARCH_64): Fix value.
52447         (EF_MIPS_ARCH_32R2): New.
52448         (EF_MIPS_ARCH_64R2): New.
52449
52450 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52451
52452         * Makeconfig (+link-pie-before-libc): New.
52453         (+link-pie-after-libc): Likewise.
52454         (+link-pie-tests): Likewise.
52455         (+link-pie): Rewritten.
52456         (link-before-libc): Remove $(config-LDFLAGS).
52457         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52458         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52459         (config-LDFLAGS): Renamed to ...
52460         (rtld-LDFLAGS): This.
52461         (rtld-tests-LDFLAGS): New macro.
52462         (link-libc-rpath-link): Likewise.
52463         (link-libc-tests-rpath-link): Likewise.
52464         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52465         (link-libc): Prepand $(link-libc-rpath-link).
52466         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52467         (test-program-prefix): New macro.
52468         (test-via-rtld-prefix): Likewise.
52469         (test-program-cmd): Likewise.
52470         (host-test-program-cmd): Likewise.
52471         * Makefile ($(common-objpfx)testrun.sh): Replace
52472         $(run-program-prefix) with $(test-program-prefix).
52473         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52474         $(rtld-LDFLAGS).
52475         ($(common-objpfx)shlib.lds): Likewise.
52476         (build-module-helper): Likewise.
52477         ($(common-objpfx)format.lds): Likewise.
52478         * Rules (binaries-pie-tests): New.
52479         (binaries-pie-notests): Likewise.
52480         (binaries-pie): Rewritten.
52481         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52482         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52483         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52484         (make-test-out): Replace $(host-built-program-cmd) with
52485         $(host-test-program-cmd).
52486         * config.make.in (build-hardcoded-path-in-tests): New variable.
52487         * configure.in (--enable-hardcoded-path-in-tests): New configure
52488         option.
52489         (hardcoded_path_in_tests): New AC_SUBST.
52490         * configure: Regenerated.
52491         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52492         $(built-program-cmd) with $(test-program-cmd).
52493         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52494         (test_program_cmd): This.
52495         * elf/Makefile ($(objpfx)order.out): Run test with
52496         $(test-program-prefix).
52497         ($(objpfx)order2.out): Likewise.
52498         ($(objpfx)tst-initorder.out): Likewise.
52499         ($(objpfx)tst-initorder2.out): Likewise.
52500         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52501         $(test-program-cmd).
52502         ($(objpfx)tst-array1-static.out): Likewise.
52503         ($(objpfx)tst-array2.out): Likewise.
52504         ($(objpfx)tst-array3.out): Likewise.
52505         ($(objpfx)tst-array4.out): Likewise.
52506         ($(objpfx)tst-array5.out): Likewise.
52507         ($(objpfx)tst-array5-static.out): Likewise.
52508         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52509         $(test-program-cmd).
52510         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52511         $(run-program-prefix) with $(test-program-prefix).
52512         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52513         (test_program_prefix): This.
52514         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52515         $(run-program-prefix) with $(test-program-prefix).
52516         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52517         (test_program_prefix): This.
52518         * iconvdata/tst-tables.sh: Likewise.
52519         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52520         $(run-program-prefix) with $(test-program-prefix).
52521         ($(objpfx)tst-translit.out): Likewise.
52522         ($(objpfx)tst-gettext2.out): Likewise.
52523         ($(objpfx)tst-gettext4.out): Likewise.
52524         ($(objpfx)tst-gettext6.out): Likewise.
52525         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52526         (test_program_prefix): This.
52527         * intl/tst-gettext2.sh: Likewise.
52528         * intl/tst-gettext4.sh  Likewise.
52529         * intl/tst-gettext6.sh: Likewise.
52530         * intl/tst-translit.sh: Likewise.
52531         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52532         with $(test-program-cmd).
52533         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52534         $(run-program-prefix) with $(test-program-prefix).
52535         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52536         (test_program_prefix): This.
52537         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52538         $(run-program-prefix) with $(test-program-prefix).
52539         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52540         (test_program_prefix): This.
52541         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52542         * posix/Makefile ($(objpfx)globtest.out): Replace
52543         $(run-via-rtld-prefix) and $(test-wrapper) with
52544         $(test-program-prefix) and $(test-via-rtld-prefix).
52545         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52546         $(test-program-prefix).
52547         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52548         $(host-test-program-cmd).
52549         (tst-spawn-ARGS): Likewise.
52550         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52551         $(test-program-prefix).
52552         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52553         (test_via_rtld_prefix): This.
52554         (test_wrapper): Renamed to ...
52555         (test_program_prefix): This.
52556         (run_program_prefix): Replaced by test_program_prefix.
52557         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52558         (test_program_prefix): This.
52559         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52560         with $(host-test-program-cmd).
52561         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52562         $(run-program-prefix) with $(test-program-prefix).
52563         ($(objpfx)tst-printf.out): Likewise.
52564         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52565         $(test-program-cmd).
52566         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52567         (test_program_prefix): This.
52568         * stdio-common/tst-unbputc.sh: Likewise.
52569         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52570         $(run-program-prefix) with $(test-program-prefix).
52571         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52572         (test_program_prefix): This.
52573         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52574         $(built-program-cmd) with $(test-program-cmd).
52575
52576 2013-01-11  Andreas Jaeger  <aj@suse.de>
52577
52578         [BZ #15003]
52579         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52580         value. Sync with Linux 3.7.
52581
52582 2013-01-10  David S. Miller  <davem@davemloft.net>
52583
52584         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52585         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52586         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52587
52588 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52589
52590         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52591         never set.
52592         * configure: Regenerated.
52593
52594 2013-01-10  David S. Miller  <davem@davemloft.net>
52595
52596         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52597         sparc V9 rather than using V8 code.
52598         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52599         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52600
52601 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52602
52603         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52604         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52605         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52606         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52607         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52608         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52609         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52610         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52611         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52612         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52613         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52614         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52615         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52616         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52617         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52618         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52619         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52620         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52621         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52622         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52623         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52624         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52625         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52626         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52627         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52628         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52629         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52630
52631 2013-01-10  David S. Miller  <davem@davemloft.net>
52632
52633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52634
52635 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52636
52637         * posix/Makefile (tests-static): New variable.
52638         (tests): Add $(tests-static).
52639         (tst-exec-static-ARGS): New variable.
52640         (tst-spawn-static-ARGS): Likewise.
52641         * posix/tst-exec-static.c: New file.
52642         * posix/tst-spawn-static.c: Likewise.
52643         * posix/tst-exec.c: Support run directly.
52644         * posix/tst-spawn.c: Likewise.
52645
52646 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52647
52648         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52649         long.
52650         * math/bits/mathcalls.h (llrint): Likewise.
52651         (llround): Likewise.
52652         * stdlib/stdlib.h (struct drand48_data): Likewise.
52653         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52654         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52655         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52656         Likewise.
52657         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52658         Likewise.
52659         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52660         (elf_greg_t): Likewise.
52661         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52662         (__jmp_buf): Likewise.
52663         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52664         definitions.
52665         (llrint): Likewise, for all definitions.
52666         (llrintl): Likewise.
52667
52668         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52669         Remove [__GNUC__] condition.
52670         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52671         condition to just [__USE_ISOC99].
52672         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52673
52674 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52675
52676         [BZ #14200]
52677         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52678         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52679         defined.
52680         (_POSIX_V6_ILP32_OFF32): Likewise.
52681         (_XBS5_ILP32_OFF32): Likewise.
52682         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52683         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52684
52685 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52686
52687         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52688
52689         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52690         doubles __mpexp_twomm1.  Adjust usage.
52691         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52692         Remove.
52693
52694 2013-01-10  Andreas Schwab  <schwab@suse.de>
52695
52696         [BZ #14964]
52697         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52698         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52699
52700 2013-01-09  David S. Miller  <davem@davemloft.net>
52701
52702         [BZ #15003]
52703         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52704         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52705         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52706         (TCP_FASTOPEN): Define.
52707         (tcp_repair_opt): New structure.
52708         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52709         enum values.
52710         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52711         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52712         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52713         (tcp_cookie_transactions): New structure.
52714
52715 2013-01-09  Anton Blanchard  <anton@samba.org>
52716
52717         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52718         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52719         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52720         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52721
52722 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52723
52724         * include/features.h (__USE_ANSI): Remove.
52725
52726 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52727
52728         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52729
52730         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52731
52732 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52733
52734         * sysdeps/s390/fpu/libm-test-ulps: Update.
52735
52736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52737
52738         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52739         (__acr): Likewise.
52740         (__cpy): Likewise.
52741         (norm): Likewise.
52742         (denorm): Likewise.
52743         (__mp_dbl): Likewise.
52744         (__dbl_mp): Likewise.
52745         (add_magnitudes): Likewise.
52746         (sub_magnitudes): Likewise.
52747         (__add): Likewise.
52748         (__sub): Likewise.
52749         (__mul): Likewise.
52750         (__inv): Likewise.
52751         (__dvd): Likewise.
52752         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52753         (__acr): Likewise.
52754         (__cpy): Likewise.
52755         (norm): Likewise.
52756         (denorm): Likewise.
52757         (__mp_dbl): Likewise.
52758         (__dbl_mp): Likewise.
52759         (add_magnitudes): Likewise.
52760         (sub_magnitudes): Likewise.
52761         (__add): Likewise.
52762         (__sub): Likewise.
52763         (__mul): Likewise.
52764         (__inv): Likewise.
52765         (__dvd): Likewise.
52766         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52767         (__acr): Likewise.
52768         (__cpy): Likewise.
52769         (norm): Likewise.
52770         (denorm): Likewise.
52771         (__mp_dbl): Likewise.
52772         (__dbl_mp): Likewise.
52773         (add_magnitudes): Likewise.
52774         (sub_magnitudes): Likewise.
52775         (__add): Likewise.
52776         (__sub): Likewise.
52777         (__mul): Likewise.
52778         (__inv): Likewise.
52779         (__dvd): Likewise.
52780
52781 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52782
52783         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52784         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52785         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52786         2 && __USE_EXTERN_INLINES]: Likewise.
52787
52788 2013-01-08  Andreas Jaeger  <aj@suse.de>
52789
52790         [BZ# 14985]
52791         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52792         Remove.
52793         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52794         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52795
52796 2013-01-07  Anton Blanchard  <anton@samba.org>
52797
52798         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52799         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52800         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52801         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52802         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52803         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52804         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52805         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52806         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52807         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52808         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52809         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52810         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52811         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52812         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52813         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52814         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52815         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52816         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52817         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52818         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52819         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52820         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52821         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52822         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52823         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52824         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52825         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52826         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52827         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52828         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52829         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52830         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52831         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52832         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52833         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52834         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52835         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52836         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52837         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52838         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52839         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52840         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52841
52842 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52843
52844         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52845         (__MALLOC_PMT): Likewise.
52846         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52847         [__GNUC__], only on [_LIBC].
52848         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52849         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
52850         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52851         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
52852         forward declaration.
52853         (realloc_hook_ini): Likewise.
52854         (memalign_hook_ini): Likewise.
52855         (__libc_memalign): Do not use __MALLOC_PMT in variable
52856         declaration.
52857         (__libc_valloc): Likewise.
52858         (__libc_pvalloc): Likewise.
52859         (__libc_calloc): Likewise.
52860         (__posix_memalign): Likewise.
52861
52862         [BZ #14996]
52863         * math/s_casinh.c: Include <float.h>.
52864         (__casinh): Do not do computation with squaring and square root
52865         for large arguments.
52866         * math/s_casinhf.c: Include <float.h>.
52867         (__casinhf): Do not do computation with squaring and square root
52868         for large arguments.
52869         * math/s_casinhl.c: Include <float.h>.
52870         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
52871         (__casinhl): Do not do computation with squaring and square root
52872         for large arguments.
52873         * math/libm-test.inc (casin_test): Add more tests.
52874         (casinh_test): Likewise.
52875         * sysdeps/i386/fpu/libm-test-ulps: Update.
52876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52877
52878 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
52879
52880         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
52881         (__x86_64_raw_data_cache_size): Likewise.
52882         (__x86_64_data_cache_size_half): Likewise.
52883         (__x86_64_raw_data_cache_size_half): Likewise.
52884         (__x86_64_shared_cache_size): Likewise.
52885         (__x86_64_raw_shared_cache_size): Likewise.
52886         (__x86_64_shared_cache_size_half): Likewise.
52887         (__x86_64_raw_shared_cache_size_half): Likewise.
52888         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
52889         to ...
52890         (__x86_data_cache_size): This.
52891         (__x86_64_raw_data_cache_size): Renamed to ...
52892         (__x86_raw_data_cache_size): This.
52893         (__x86_64_data_cache_size_half): Renamed to ...
52894         (__x86_data_cache_size_half): This.
52895         (__x86_64_raw_data_cache_size_half): Renamed to ...
52896         (__x86_raw_data_cache_size_half): This.
52897         (__x86_64_shared_cache_size): Renamed to ...
52898         (__x86_shared_cache_size): This.
52899         (__x86_64_raw_shared_cache_size): Renamed to ...
52900         (__x86_raw_shared_cache_size): This.
52901         (__x86_64_shared_cache_size_half): Renamed to ...
52902         (__x86_shared_cache_size_half): This.
52903         (__x86_64_raw_shared_cache_size_half): Renamed to ...
52904         (__x86_raw_shared_cache_size_half): This.
52905         * sysdeps/x86_64/memcpy.S: Updated.
52906         * sysdeps/x86_64/memset.S: Likewise.
52907         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
52908         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
52909         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
52910
52911 2013-01-04  David S. Miller  <davem@davemloft.net>
52912
52913         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52914
52915 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
52916
52917         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
52918         1 to avoid redefinition warning.
52919         (__USE_GNU): Don't define.
52920         (init_signaling_nan): Protoize.
52921
52922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52923
52924 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52925
52926         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
52927         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
52928         (__cpymn): Likewise.
52929         (norm): Remove commented code.
52930         (denorm): Likewise.
52931         (__mp_dbl): Likewise.
52932         (__inv): Likewise.
52933         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
52934         (__cpymn): Likewise.
52935         (norm): Remove commented code.
52936         (denorm): Likewise.
52937         (__mp_dbl): Likewise.
52938         (__inv): Likewise.
52939
52940         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
52941         mp_no value for 1.0 and 2.0.
52942         (norm): Use RADIXI instead of radixi.d.
52943         (denorm): Likewise.
52944         (__mul): Use 0.0 instead of zero.d.
52945         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
52946         mp_no value for 1.0 and 2.0.
52947         (norm): Use RADIXI instead of radixi.d.
52948         (denorm): Likewise.
52949         (__mul): Use 0.0 instead of zero.d.
52950
52951 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
52952
52953         [BZ #14994]
52954         * math/s_casinh.c (__casinh): Reduce finite argument to first
52955         quadrant then set signs of results at the end.
52956         * math/s_casinhf.c (__casinhf): Likewise.
52957         * math/s_casinhl.c (__casinhl): Likewise.
52958         * math/libm-test.inc (casin_test): Add more tests.
52959         (casinh_test): Likewise.
52960         * sysdeps/i386/fpu/libm-test-ulps: Update.
52961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52962
52963 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52964
52965         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
52966
52967         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
52968
52969         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
52970         declarations.
52971         (denorm): Likewise.
52972         (__mp_dbl): Likewise.
52973         (__inv): Likewise.
52974
52975         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
52976         and adjust the header comment.
52977
52978         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
52979         variable name from declaration.
52980
52981 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
52982
52983         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52984         Initialize COMMON_CPUID_INDEX_7 element.
52985         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
52986         (CPUID_RTM): Likewise.
52987         (HAS_RTM): Likewise.
52988         (COMMON_CPUID_INDEX_7): New enum.
52989
52990 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
52991
52992         [BZ #14981]
52993         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
52994         size is zero, record memory as freed.
52995
52996 2013-01-03  Andreas Jaeger  <aj@suse.de>
52997
52998         * po/ia.po: Add new Interlingua translation.
52999
53000 2012-01-03  Allan McRae  <allan@archlinux.org>
53001
53002         * locale/programs/localedef.c: Fix description of '--posix' flag.
53003
53004 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53005
53006         * NEWS: Update dates in second copyright notice.
53007         * README: Update copyright dates in example.
53008         * manual/libc.texinfo: Update copyright dates.
53009         * scripts/test-installation.pl: Update copyright date in --version
53010         output.
53011
53012         * hurd/ctty-input.c: Fix copyright notice formatting.
53013         * hurd/ctty-output.c: Likewise.
53014         * hurd/dtable.c: Likewise.
53015         * hurd/hurd-raise.c: Likewise.
53016         * hurd/hurdprio.c: Likewise.
53017         * hurd/msgportdemux.c: Likewise.
53018         * misc/sys/file.h: Likewise.
53019         * misc/sys/ioctl.h: Likewise.
53020         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53021         * sysdeps/mach/hurd/chdir.c: Likewise.
53022         * sysdeps/mach/hurd/fchdir.c: Likewise.
53023         * sysdeps/mach/hurd/rename.c: Likewise.
53024         * sysdeps/mach/hurd/rmdir.c: Likewise.
53025         * sysdeps/mach/hurd/seekdir.c: Likewise.
53026         * sysdeps/mach/hurd/setsid.c: Likewise.
53027         * sysdeps/posix/wait3.c: Likewise.
53028
53029         * All files with FSF copyright notices: Update copyright dates
53030         using scripts/update-copyrights.
53031         * intl/plural.c: Regenerated.
53032         * locale/programs/charmap-kw.h: Likewise.
53033         * locale/programs/locfile-kw.h: Likewise.
53034
53035 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53036
53037         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53038         four values.
53039
53040         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53041         calculation loop and add branch prediction.
53042
53043         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53044         check access beyond bounds of m1np.
53045
53046         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53047         MPTWO.
53048         (__inv): Remove local variable MPTWO to use the global
53049         constant.
53050         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53051         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53052         variable MPTWO.
53053         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53054         MP3HALFS static const.
53055
53056 2013-01-01  David S. Miller  <davem@davemloft.net>
53057
53058         * po/ca.po: Update from translation team.
53059
53060 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53061
53062         * scripts/update-copyrights: New file.
53063         * Makeconfig: Reformat copyright notice.
53064         * ctype/ctype.h: Likewise.
53065         * debug/swprintf_chk.c: Likewise.
53066         * elf/dl-cache.c: Likewise.
53067         * elf/dl-debug.c: Likewise.
53068         * elf/dl-object.c: Likewise.
53069         * grp/initgroups.c: Likewise.
53070         * hurd/Makefile: Likewise.
53071         * hurd/hurd/signal.h: Likewise.
53072         * hurd/hurdfault.c: Likewise.
53073         * hurd/hurdioctl.c: Likewise.
53074         * hurd/hurdlookup.c: Likewise.
53075         * hurd/intr-msg.c: Likewise.
53076         * iconv/gconv_open.c: Likewise.
53077         * libio/swprintf.c: Likewise.
53078         * locale/lc-ctype.c: Likewise.
53079         * locale/nl_langinfo.c: Likewise.
53080         * mach/Machrules: Likewise.
53081         * mach/Makefile: Likewise.
53082         * malloc/obstack.h: Likewise.
53083         * manual/Makefile: Likewise.
53084         * manual/tsort.awk: Likewise.
53085         * misc/bits/stab.def: Likewise.
53086         * nis/nis_print_group_entry.c: Likewise.
53087         * nis/nis_table.c: Likewise.
53088         * nis/nss_compat/compat-pwd.c: Likewise.
53089         * nis/nss_compat/compat-spwd.c: Likewise.
53090         * po/Makefile: Likewise.
53091         * posix/fnmatch.c: Likewise.
53092         * posix/regex.h: Likewise.
53093         * resolv/Makefile: Likewise.
53094         * resolv/nss_dns/dns-network.c: Likewise.
53095         * resolv/res_hconf.c: Likewise.
53096         * scripts/gen-sorted.awk: Likewise.
53097         * soft-fp/soft-fp.h: Likewise.
53098         * stdio-common/printf.h: Likewise.
53099         * stdlib/monetary.h: Likewise.
53100         * stdlib/random.c: Likewise.
53101         * stdlib/random_r.c: Likewise.
53102         * sysdeps/generic/Makefile: Likewise.
53103         * sysdeps/gnu/Makefile: Likewise.
53104         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53105         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53106         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53107         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53108         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53109         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53110         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53111         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53112         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53113         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53114         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53115         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53116         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53117         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53118         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53119         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53120         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53121         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53122         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53123         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53124         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53125         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53126         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53127         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53128         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53129         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53130         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53131         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53132         * sysdeps/mach/hurd/errnos.awk: Likewise.
53133         * sysdeps/mach/hurd/fork.c: Likewise.
53134         * sysdeps/mach/hurd/getcwd.c: Likewise.
53135         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53136         * sysdeps/mach/hurd/mmap.c: Likewise.
53137         * sysdeps/mach/hurd/utimes.c: Likewise.
53138         * sysdeps/mach/hurd/xmknod.c: Likewise.
53139         * sysdeps/posix/profil.c: Likewise.
53140         * sysdeps/posix/readdir_r.c: Likewise.
53141         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53142         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53143         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53144         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53145         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53146         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53147         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53148         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53149         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53150         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53151         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53152         * sysdeps/pthread/lio_listio.c: Likewise.
53153         * sysdeps/sparc/dl-procinfo.h: Likewise.
53154         * sysdeps/unix/i386/sysdep.S: Likewise.
53155         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53156         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53157         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53158         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53160         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53161         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53162         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53163         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53164         * sysdeps/wordsize-32/divdi3.c: Likewise.
53165         * time/sys/time.h: Likewise.
53166         * wcsmbs/Makefile: Likewise.
53167
53168 2013-01-01  David S. Miller  <davem@davemloft.net>
53169
53170         * po/fr.po: Update from translation team.
53171
53172         * catgets/gencat.c: Update copyright year.
53173         * csu/version.c: Likewise.
53174         * debug/catchsegv.sh: Likewise.
53175         * debug/pcprofiledump.c: Likewise.
53176         * debug/xtrace.sh: Likewise.
53177         * elf/ldconfig.c: Likewise.
53178         * elf/ldd.bash.in: Likewise.
53179         * elf/pldd.c: Likewise.
53180         * elf/sotruss.ksh: Likewise.
53181         * elf/sprof.c: Likewise.
53182         * iconv/iconv_prog.c: Likewise.
53183         * iconv/iconvconfig.c: Likewise.
53184         * locale/programs/locale.c: Likewise.
53185         * locale/programs/localedef.c: Likewise.
53186         * login/programs/pt_chown.c: Likewise.
53187         * malloc/memusage.sh: Likewise.
53188         * malloc/memusagestat.c: Likewise.
53189         * malloc/mtrace.pl: Likewise.
53190         * nscd/nscd.c: Likewise.
53191         * nss/getent.c: Likewise.
53192         * nss/makedb.c: Likewise.
53193         * posix/getconf.c: Likewise.
53194
53195 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53196
53197         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53198         numbers.
53199
53200 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53201
53202         * math/bits/mathcalls.h (modf): Use __nonnull.
53203
53204 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53205
53206         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53207         (split): Use macro CN instead of the bare value.
53208         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53209         could be used.
53210         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53211         instead of the bare value.
53212         (power1): Likewise.
53213
53214 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53215
53216         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53217         __ATAN_TWOM.
53218         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53219
53220         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53221         their values.
53222         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53223         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53224         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53225         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53226
53227 2012-12-28  Andreas Jaeger  <aj@suse.de>
53228
53229         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53230         values are from Linux 3.7.
53231
53232         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53233         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53234
53235 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53236
53237         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53238         TRUE case.
53239
53240         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53241         (norm): Likewise.
53242         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53243         variables with preprocessor constants.
53244         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53245         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53246         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53247
53248 2012-12-27  Bruno Haible  <bruno@clisp.org>
53249
53250         [BZ #14317]
53251         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53252         only if needed.
53253
53254 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53255
53256         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53257         and use variable directly.
53258         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53259
53260         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53261         MPONE.
53262         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53263         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53264         variable MPONE.
53265         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53266         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53267         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53268         include directive.  Remove local variable MPONE.
53269         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53270         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53271         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53272
53273 2012-12-25  David S. Miller  <davem@davemloft.net>
53274
53275         * version.h (RELEASE): Set to "development".
53276         (VERSION): Set to "2.17.90".
53277         * NEWS: Add 2.18 section.
53278
53279 2012-12-21  David S. Miller  <davem@davemloft.net>
53280
53281         * po/hr.po: Update from translation team.
53282
53283 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53284
53285         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53286
53287 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53288
53289         * NEWS:  Mention new memcpy for MIPS.
53290
53291 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53292
53293         * manual/contrib.texi (Contributors): Spelling correction.
53294
53295 2012-12-15  David S. Miller  <davem@davemloft.net>
53296
53297         * po/ru.po: Update from translation team.
53298
53299 2012-12-13  David S. Miller  <davem@davemloft.net>
53300
53301         * NEWS: Mention IFUNC testsuite enhancements.
53302
53303         * po/pl.po: Update from translation team.
53304         * po/bg.po: Likewise.
53305
53306         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53307         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53308
53309 2012-12-11  David S. Miller  <davem@davemloft.net>
53310
53311         * po/sv.po: Update from translation team.
53312
53313         * po/vi.po: Update from translation team.
53314
53315         * po/cs.po: Update from translation team.
53316
53317         * po/de.po: Update from translation team.
53318         * po/eo.po: Likewise.
53319         * po/nl.po: Likewise.
53320
53321 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53322
53323         [BZ #14246]
53324         * manual/argp.texi (Argp Helper Functions): Move node to follow
53325         Argp Parsing State.
53326
53327         [BZ #14872]
53328         * manual/conf.texi (Limits on File System Capacity): Mention if
53329         terminating null is included in the max size.
53330
53331 2012-12-10  Andreas Jaeger  <aj@suse.de>
53332
53333         * po/cs.po: Update from translation team.
53334
53335 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53336
53337         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53338         void pointer and cast to uintptr_t.
53339         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53340         path.
53341         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53342         * sysdeps/s390/s390-64/memset.S: Likewise.
53343
53344 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53345
53346         [BZ #14833]
53347         * menual/message.texi (Message Translation): Fix typos.
53348         (Helper programs for gettext): Likewise.
53349
53350 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53351
53352         [BZ #14898]
53353         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53354         Change to -1.
53355
53356 2012-12-07  David S. Miller  <davem@davemloft.net>
53357
53358         * po/libc.pot: Update.
53359
53360 2012-12-07  Richard Henderson  <rth@redhat.com>
53361
53362         [BZ #10114]
53363         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53364         normal/normal case to before the switch.
53365         (_FP_DIV): Likewise.
53366
53367 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53368             Mike Frysinger  <vapier@gentoo.org>
53369
53370         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53371         check for __NR_fadvise64_64.
53372
53373 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53374
53375         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53376         0, not just to plain "0" as a statement.
53377         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53378         with cw.
53379
53380 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53381
53382         * NEWS: Use sourceware.org in Bugzilla URL.
53383
53384 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53385
53386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53387         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53388
53389         * stdio-common/tst-put-error.c (do_test): Add newline to the
53390         padded test to ensure flush.
53391
53392 2012-12-05  Jeff Law  <law@redhat.com>
53393
53394         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53395
53396 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53397
53398         * README: Don't refer to ports add-on as distributed separately.
53399         Mention AArch64 in list of systems supported in the ports add-on.
53400
53401         * LICENSES: Add more non-FSF copyright and license notices.
53402
53403         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53404         ((unused)).
53405
53406         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53407
53408         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53409         10000 as width of padded output.
53410
53411 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53412
53413         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53414
53415         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53416         variable LX with __attribute__ ((unused)).
53417         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53418         Likewise.
53419         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53420         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53421         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53422         with __attribute__ ((unused)).
53423
53424 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53425
53426         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53427
53428 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53429
53430         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53431         (CFLAGS-nldbl-acos.c): New variable.
53432         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53433         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53434         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53435         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53436         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53437         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53438         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53439         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53440         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53441         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53442         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53443         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53444         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53445         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53446         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53447         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53448         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53449         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53450         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53451         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53452         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53453         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53454         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53455         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53456         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53457         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53458         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53459         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53460         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53461         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53462         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53463         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53464         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53465         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53466         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53467         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53468         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53469         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53470         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53471         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53472         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53473         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53474         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53475         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53476         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53477         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53478         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53479         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53480         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53481         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53482         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53483         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53484         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53485         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53486         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53487         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53488         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53489         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53490         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53491         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53492         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53493         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53494         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53495         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53496         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53497         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53498         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53499         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53500         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53501         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53502         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53503         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53504         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53505         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53506         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53507         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53508         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53509         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53510         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53511         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53512         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53513         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53514         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53515         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53516         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53517         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53518         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53519         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53520         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53521         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53522         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53523         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53524         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53525         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53526         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53527         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53528         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53529
53530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53531         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53532
53533         [BZ #14914]
53534         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53535         whole low double instead of just low 47 bits when splitting values
53536         into two parts.
53537
53538 2012-12-03  Allan McRae  <allan@archlinux.org>
53539
53540         * manual/stdio.texi (Predefined Printf Handlers): Remove
53541         @hsep and @vsep usage.
53542
53543 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53544
53545         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53546         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53547
53548 2012-12-03  Jeff Law  <law@redhat.com>
53549
53550         * time/sys/time.h (settimeofday): Do not mark TV argument
53551         as __nonnull.
53552
53553 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53554
53555         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53556         when currently writing and seek to current position when not.
53557         * libio/Makefile (tests): Remove bug-fclose1.
53558         * libio/bug-fclose1.c: Delete.
53559
53560 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53561
53562         * manual/arith.texi (feenableexcept): Fix typo.
53563         (fedisableexcept): Likewise.
53564
53565 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53566
53567         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53568         second, differently-typed declaration, rather than a cast.
53569
53570 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53571
53572         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53573         * include/rpc/svc.h: ... here.
53574
53575 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53576
53577         [BZ #13013]
53578         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53579         depending n and resplen2 to catch cases where answer
53580         equals answerp2.
53581
53582 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53583
53584         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53585         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53586
53587 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53588
53589         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53590
53591 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53592
53593         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53594
53595 2012-11-28  Jeff Law  <law@redhat.com>
53596
53597         [BZ #13761]
53598         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53599         dataset_temporary.  Track alloca usage into alloca_used.
53600         If dataset is large allocate and release it via malloc/free.
53601
53602 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53603
53604         [BZ #14197]
53605         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53606
53607 2012-11-28  David S. Miller  <davem@davemloft.net>
53608
53609         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53610
53611 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53612
53613         [BZ #14803]
53614         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53615         of pi/2 rounded to nearest to 64 bits.
53616         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53617         nearest to 64 bits.
53618         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53619         bits.
53620
53621 2012-11-28  Jeff Law <law@redhat.com>
53622             Martin Osvald <mosvald@redhat.com>
53623
53624         [BZ #14889]
53625         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53626         * sunrpc/svc.c: Include time.h.
53627         (__svc_accept_failed): New function.
53628         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53629         any reason other than EINTR, call __svc_accept_failed.
53630         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53631         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53632
53633 2012-11-28  Andreas Schwab  <schwab@suse.de>
53634
53635         * scripts/abilist.awk: Also handle indirect functions in .opd
53636         section.
53637
53638 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53639
53640         [BZ #13881]
53641         * sysdeps/x86/fpu/powl_helper.c: New file.
53642         * sysdeps/x86/fpu/Makefile: Likewise.
53643         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53644         (p3): New object.
53645         (__ieee754_powl): Use __powl_helper for finite arguments except
53646         integer exponents below 8.
53647         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53648         (p3): New object.
53649         (__ieee754_powl): Use __powl_helper for finite arguments except
53650         integer exponents below 8.
53651         * math/libm-test.inc (pow_test): Add more tests and enable some
53652         previously disabled tests.
53653         * sysdeps/i386/fpu/libm-test-ulps: Update.
53654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53655
53656 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53657             Carlos O'Donell  <carlos_odonell@mentor.com>
53658
53659         * nss/makedb.c (is_prime): Assert that input is odd and greater
53660         than 4.  Note that fact in a comment too.
53661         (next_prime): Add 4 to input.
53662
53663 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53664
53665         [BZ #11741]
53666         * libio/Makefile (tests): Add test case tst-fwrite-error.
53667         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53668         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53669         * libio/tst-fwrite-error.c: New test case.
53670
53671 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53672
53673         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53674         before casting to void *.
53675         * include/libc-internal.h (__pointer_type): New macro.
53676         (__integer_if_pointer_type_sub): Likewise.
53677         (__integer_if_pointer_type): Likewise.
53678         (cast_to_integer): Likewise.
53679         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53680         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53681         before casting to atomic64_t.
53682         (atomic_exchange_acq): Likewise.
53683         (__arch_exchange_and_add_body): Likewise.
53684         (__arch_add_body): Likewise.
53685         (atomic_add_negative): Likewise.
53686         (atomic_add_zero): Likewise.
53687
53688 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53689
53690         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53691         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53692         (add_fdes): Likewise.
53693         (linear_search_fdes): Likewise.
53694         (binary_search_unencoded_fdes): Likewise.
53695
53696 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53697
53698         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53699
53700 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53701
53702         * configure.in: Autodetect C++ header directories.
53703         * configure: Regenerated.
53704
53705 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53706
53707         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53708
53709 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53710
53711         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53712
53713 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53714
53715         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53716         LDBL_MANT_DIG == 106]: Disable some tests.
53717         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53718         Likewise.
53719         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53720         Likewise.
53721
53722         [BZ #14871]
53723         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53724         input for small inputs.  Return +/- pi/2 for large inputs.
53725         * math/libm-test.inc (atan_test): Add more tests.
53726
53727         * sysdeps/generic/unwind-dw2-fde-glibc.c
53728         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53729         __attribute__ ((unused)).
53730
53731         [BZ #14645]
53732         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53733         x * y if x and y are nonzero and z is zero.
53734
53735         [BZ #14811]
53736         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53737         nonzero exponents with absolute value below 0x1p-117 to +/-
53738         0x1p-117.
53739
53740         [BZ #14869]
53741         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53742         up arguments below 2**-450, not just those below 2**-500.
53743         * math/libm-test.inc (hypot_test): Add another test.
53744
53745         [BZ #14868]
53746         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53747         Return a+b for ratio over 2**120, not 2**60.
53748         * math/libm-test.inc (hypot_test): Add another test.
53749
53750         * math/libm-test.inc (clog_test): Use
53751         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53752         (clog10_test): Likewise.
53753
53754         [BZ #6778]
53755         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53756
53757 2012-11-22  Andreas Schwab  <schwab@suse.de>
53758
53759         * sysdeps/i386/fpu/libm-test-ulps: Update.
53760
53761 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53762
53763         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53764         printf output with newline.
53765
53766 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53767
53768         [BZ #14865]
53769         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53770         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53771         -z nodlopen, -z initfirst and -z execstack support.
53772         * configure: Regenerated.
53773
53774         * elf/elf.h (DF_1_NODIRECT): New macro.
53775         (DF_1_IGNMULDEF): Likewise.
53776         (DF_1_NOKSYMS): Likewise.
53777         (DF_1_NOHDR): Likewise.
53778         (DF_1_EDITED): Likewise.
53779         (DF_1_NORELOC): Likewise.
53780         (DF_1_SYMINTPOSE): Likewise.
53781         (DF_1_GLOBAUDIT): Likewise.
53782         (DF_1_SINGLETON): Likewise.
53783         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53784         DT_1_SUPPORTED_MASK bits.
53785         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53786
53787 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53788
53789         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53790
53791 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53792
53793         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53794         macro.
53795
53796         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53797         (sendmmsg): Move declarations...
53798         * socket/sys/socket.h: ... here.
53799         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53800         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53801         include it from...
53802         * socket/recvmmsg.c: ... this new file.
53803         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53804         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53805         definition of __sendmmsg hidden.
53806         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53807         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53808         Move ENOSYS stub into and include it from...
53809         * socket/sendmmsg.c: ... this new file.
53810         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53811         (sysdep_routines): Move recvmmsg and sendmmsg...
53812         * socket/Makefile (routines): ... here.
53813         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53814         (GLIBC_PRIVATE): Add __sendmmsg.
53815         * include/sys/socket.h (__sendmmsg): Add declarations.
53816         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53817         sendmmsg.
53818
53819 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53820
53821         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53822         variable I1 with __attribute__ ((unused)).
53823         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53824
53825 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53826
53827         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53828         DUMMY variables with __attribute__ ((unused)).
53829
53830         * bits/byteswap.h: Include <bits/types.h>.
53831         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53832
53833 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53834
53835         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53836         string_t.  Do not manually set errno.
53837         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53838         length with __strnlen.  Make sure to both set errno and return it on
53839         failure.
53840
53841 2012-11-19  David S. Miller  <davem@davemloft.net>
53842
53843         With help from Joseph Myers.
53844         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53845         very large arguments properly.
53846         * math/libm-test.inc (atan_test): New tests.
53847         (atan2_test): New tests.
53848         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53849         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53850
53851 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53852
53853         [BZ #14856]
53854         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
53855         Define to 3.
53856
53857         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
53858         [POSIX] (EADDRNOTAVAIL): Likewise.
53859         [POSIX] (EAFNOSUPPORT): Likewise.
53860         [POSIX] (EALREADY): Likewise.
53861         [POSIX] (ECONNABORTED): Likewise.
53862         [POSIX] (ECONNREFUSED): Likewise.
53863         [POSIX] (ECONNRESET): Likewise.
53864         [POSIX] (EDESTADDRREQ): Likewise.
53865         [POSIX] (EDQUOT): Likewise.
53866         [POSIX] (EHOSTUNREACH): Likewise.
53867         [POSIX] (EIDRM): Likewise.
53868         [POSIX] (EISCONN): Likewise.
53869         [POSIX] (ELOOP): Likewise.
53870         [POSIX] (EMULTIHOP): Likewise.
53871         [POSIX] (ENETDOWN): Likewise.
53872         [POSIX] (ENETUNREACH): Likewise.
53873         [POSIX] (ENOBUFS): Likewise.
53874         [POSIX] (ENODATA): Likewise.
53875         [POSIX] (ENOLINK): Likewise.
53876         [POSIX] (ENOMSG): Likewise.
53877         [POSIX] (ENOPROTOOPT): Likewise.
53878         [POSIX] (ENOSR): Likewise.
53879         [POSIX] (ENOSTR): Likewise.
53880         [POSIX] (ENOTCONN): Likewise.
53881         [POSIX] (ENOTSOCK): Likewise.
53882         [POSIX] (EOPNOTSUPP): Likewise.
53883         [POSIX] (EOVERFLOW): Likewise.
53884         [POSIX] (EPROTO): Likewise.
53885         [POSIX] (EPROTONOSUPPORT): Likewise.
53886         [POSIX] (EPROTOTYPE): Likewise.
53887         [POSIX] (ESTALE): Likewise.
53888         [POSIX] (ETIME): Likewise.
53889         [POSIX] (ETXTBSY): Likewise.
53890         [POSIX] (EWOULDBLOCK): Likewise.
53891         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
53892         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
53893         [POSIX] (SEEK_CUR): Likewise.
53894         [POSIX] (SEEK_END): Likewise.
53895         [POSIX || UNIX98] (mode_t): Do not require.
53896         [POSIX] (off_t): Likewise.
53897         [POSIX] (pid_t): Likewise.
53898         [POSIX] (sys/stat.h): Do not allow header.
53899         [POSIX] (unistd.h): Likewise.
53900         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
53901         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
53902         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
53903         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
53904         require.
53905         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
53906         sigevent): Specify elements.
53907         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
53908         entry.
53909         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
53910         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
53911
53912         * conform/data/cpio.h-data [POSIX]: Disable whole file.
53913         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
53914         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
53915         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
53916         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
53917         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
53918         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
53919         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
53920         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
53921         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
53922         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
53923         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
53924         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
53925         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
53926         Likewise.
53927         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
53928         Likewise.
53929         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
53930         Likewise.
53931         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
53932         Likewise.
53933         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
53934         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
53935         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
53936         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
53937         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
53938         Specify lower bound on value.
53939         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
53940         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
53941         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
53942         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
53943         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
53944         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
53945         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
53946         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
53947         value.
53948         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
53949         as optional.
53950         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
53951         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
53952         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
53953         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
53954         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
53955         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
53956         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
53957         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
53958         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
53959         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
53960         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
53961         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
53962         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
53963         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
53964         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
53965         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
53966         entry.
53967         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
53968         optional.
53969         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
53970         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
53971         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
53972         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
53973         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
53974         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
53975         Likewise.
53976         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
53977         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
53978         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
53979         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
53980         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
53981         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
53982         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
53983         as optional.
53984         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
53985         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
53986         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
53987         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
53988         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
53989         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
53990         specify as optional.
53991         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
53992         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
53993         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
53994         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
53995         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
53996         [XPG3] (NL_LANGMAX): Likewise.
53997         [POSIX || XPG3] (NL_MSGMAX): Likewise.
53998         [POSIX || XPG3] (NL_NMAX): Likewise.
53999         [POSIX || XPG3] (NL_SETMAX): Likewise.
54000         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54001         [XPG3] (NZERO): Likewise.
54002         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54003         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54004         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54005         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54006         (REG_ERANGE): Expect.
54007         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54008         optional-constant.
54009         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54010         Use (void) in prototype.
54011         [POSIX] (*_t): Allow.
54012         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54013         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54014         (WRDE_BADVAL): Expect.
54015
54016         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54017         expect.
54018         [XPG3 || XPG4] (O_RSYNC): Likewise.
54019         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54020         Likewise.
54021         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54022         [XPG3 || XPG4] (sigqueue): Likewise.
54023         [XPG3 || XPG4] (sigtimedwait): Likewise.
54024         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54025         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54026         [XPG3 || XPG4] (vsnprintf): Likewise.
54027         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54028         Likewise.
54029         [XPG3 || XPG4] (blksize_t): Likewise.
54030         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54031         Likewise.
54032         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54033         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54034         [XPG3 || XPG4] (struct itimerspec): Likewise.
54035         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54036         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54037         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54038         [XPG3 || XPG4] (clockid_t): Likewise.
54039         [XPG3 || XPG4] (timer_t): Likewise.
54040         [XPG3 || XPG4] (clock_getres): Likewise.
54041         [XPG3 || XPG4] (clock_gettime): Likewise.
54042         [XPG3 || XPG4] (clock_settime): Likewise.
54043         [XPG3 || XPG4] (nanosleep): Likewise.
54044         [XPG3 || XPG4] (timer_create): Likewise.
54045         [XPG3 || XPG4] (timer_delete): Likewise.
54046         [XPG3 || XPG4] (timer_gettime): Likewise.
54047         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54048         [XPG3 || XPG4] (timer_settime): Likewise.
54049         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54050         [XPG3 || XPG4] (getlogin_r): Likewise.
54051         [XPG3 || XPG4] (pread): Likewise.
54052         [XPG3 || XPG4] (pthread_atfork): Likewise.
54053         [XPG3 || XPG4] (pwrite): Likewise.
54054
54055         [BZ #14835]
54056         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54057         <bits/siginfo.h>.
54058
54059 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54060
54061         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54062         finalizing MALLSTREAM.
54063
54064         * sysdeps/mach/hurd/syncfs.c: New file.
54065
54066 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54067
54068         [BZ #14719]
54069         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54070         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54071         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54072         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54073         (_nss_dns_gethostbyname4_r): Likewise.
54074         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54075         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54076
54077 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54078
54079         [BZ #13763]
54080         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54081
54082 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54083
54084         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54085         * elf/cache.c (print_entry): Print ",AArch64" for
54086         FLAG_AARCH64_LIB64
54087
54088         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54089         * elf/cache.c (print_entry): Print ",hard-float" for
54090         FLAG_ARM_LIBHF.
54091
54092 2012-11-18  David S. Miller  <davem@davemloft.net>
54093
54094         With help from Joseph Myers.
54095         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54096         cutoff to 2**-13.
54097         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54098         cutoff to 2**-25.
54099         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54100         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54101         small.
54102         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54103         * math/libm-test.inc (y0_test): New tests.
54104         (y1_test): New tests.
54105         * sysdeps/i386/fpu/libm-test-ulps: Update.
54106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54108
54109 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54110
54111         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54112         64-bit targets.
54113         * configure: Regenerated.
54114
54115 2012-11-17  David S. Miller  <davem@davemloft.net>
54116
54117         [BZ #14811]
54118         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54119         nonzero exponents with absolute value below 0x1p-128 to +/-
54120         0x1p-128.
54121
54122 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54123
54124         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54125
54126         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54127
54128         * posix/getconf-speclist.c: New file.
54129         * posix/posix-envs.def: Likewise.
54130         * posix/confstr.c (START_ENV_GROUP): New macro.
54131         (END_ENV_GROUP): Likewise.
54132         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54133         (KNOWN_PRESENT_ENV_STRING): Likewise.
54134         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54135         (UNKNOWN_ENVIRONMENT): Likewise.
54136         (confstr): Include posix-envs.def instead of handling
54137         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54138         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54139         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54140         (END_ENV_GROUP): Likewise.
54141         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54142         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54143         (UNKNOWN_ENVIRONMENT): Likewise.
54144         (__sysconf): Include posix-envs.def instead of handling associated
54145         cases directly here.
54146         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54147         preprocessing getconf-speclist.c rather than running getconf or
54148         generating empty file.
54149
54150 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54151
54152         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54153
54154 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54155
54156         [BZ #14672]
54157         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54158
54159 2012-11-16  David S. Miller  <davem@davemloft.net>
54160
54161         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54162         smaller than LDBL_EPSILON/2.0L, just return xm1.
54163
54164 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54165
54166         * elf/tst-array1.c (init): Set constructor priority to 1000.
54167         (fini): Set destructor priority to 1000.
54168         * elf/tst-array2dep.c: Likewise.
54169
54170 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54171
54172         [BZ #11741]
54173         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54174         (_IO_new_file_xsputn): Also return EOF if none of the input
54175         data was written when overflow failed.
54176         * libio/iopadn.c (_IO_padn): Likewise.
54177         * libio/iowpadn.c (_IO_wpadn): Likewise.
54178         * stdio-common/tst-put-error.c: Add copyright notice.
54179         (do_test): Add case for printing padded string.
54180         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54181         _IO_padn returned error.
54182         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54183         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54184         return EOF.
54185
54186 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54187
54188         * libio/libioP.h: Add comment note that the references to C++
54189         bits are now obsolete.
54190
54191 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54192
54193         * math/libm-test.inc (check_complex): Use asprintf.
54194
54195 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54196
54197         * debug/pcprofiledump.c (print_version): Update copyright year.
54198         * malloc/memusagestat.c (print_version): Likewise.
54199
54200 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54201
54202         [BZ #14831]
54203         * elf/Makefile (tests): Add tst-audit8.
54204         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54205         ($(objpfx)tst-audit8.out): New target.
54206         (tst-audit8-ENV): New variable.
54207         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54208         audit if l_reloc_result is NULL.
54209         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54210         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54211         * elf/tst-audit8.c: New file.
54212
54213 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54214
54215         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54216         * misc/Makefile (CFLAGS-select.c): Define.
54217         * posix/Makefile (CFLAGS-pause.c): Define.
54218
54219 2012-11-13  David S. Miller  <davem@davemloft.net>
54220
54221         * crypt/Makefile: Move test targets after toplevel Rules
54222         inclusion.  Grab any necessary sysdep routines when linking.
54223         * crypt/md5.c (md5_process_block): Remove define, we will always
54224         name it __md5_process_block.
54225         (md5_finish_ctx): Update md5_process_block call.
54226         (md5_stream): Likewise.
54227         (md5_process_bytes): Likewise.
54228         (md5_process_block): Rename to __md5_process_block and move to ...
54229         * crypt/md5-block.c: ... here.
54230         * crypt/sha256.c (sha256_process_block): Move to ...
54231         * crypt/sha256-block.c: ... here.
54232         * crypt/sha512.c (sha512_process_block): Move to ...
54233         * crypt/sha512-block.c: ... here.
54234         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54235         path.
54236         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54237         * sysdeps/sparc/sparc64/multiarch/Makefile
54238         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54239         crypt subdir.
54240         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54241         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54242         multiarch changes.
54243         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54244         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54245         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54246         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54247         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54248         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54249         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54250         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54251         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54252         file.
54253         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54254         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54255         file.
54256         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54257
54258 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54259
54260         * timezone/tzselect.ksh: Update from tzcode git revision
54261         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54262         * timezone/zdump.c: Likewise.
54263         * timezone/zic.c: Likewise.
54264         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54265         in TZVERSION setting, not $(PKGVERSION).
54266         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54267         REPORT_BUGS_TO settings.
54268
54269         [BZ #14838]
54270         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54271         macro.
54272
54273 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54274
54275         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54276         detection to immediately after _FP_ROUND().
54277         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54278         bits are 0.
54279
54280 2012-11-11  David S. Miller  <davem@davemloft.net>
54281
54282         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54283         inttypes.h
54284         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54285         __close rather than their public counterparts.
54286
54287 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54288
54289         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54290         file.
54291         [UNIX98] (sem_timedwait): Do not expect.
54292         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54293         [XPG4 || UNIX98] (sockatmark): Do not expect.
54294         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54295         (clock_getcpuclockid): Do not expect.
54296         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54297         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54298         Do not expect.
54299         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54300         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54301         [UNIX98] (vwscanf): Likewise.
54302         [UNIX98] (vswscanf): Likewise.
54303
54304 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54305
54306         * timezone/version.h: Remove file.
54307         * timezone/README: Do not refer to version.h.
54308         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54309         $(objpfx)version.h.
54310         ($(objpfx)zdump.o): Likewise.
54311         ($(objpfx)version.h): New target.
54312
54313         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54314         2012i.
54315         * timezone/README: Don't mention modification to tzselect.ksh.
54316         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54317         work on unmodified tzselect.ksh.  Substitute version numbers in
54318         tzselect.ksh.
54319
54320         * Makefile (format-me): Remove.
54321         (INSTALL): Adjust indentation.  Use commands directly instead of
54322         using $(format-me).
54323
54324         * aclocal.m4 (ACX_PKGVERSION): New macro.
54325         (ACX_BUGURL): Likewise.
54326         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54327         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54328         (REPORT_BUGS_TO): Likewise.
54329         * configure: Regenerated.
54330         * config.h.in (PKGVERSION): New macro.
54331         (REPORT_BUGS_TO): Likewise.
54332         * config.make.in (PKGVERSION): New variable.
54333         (PKGVERSION_TEXI): Likewise.
54334         (REPORT_BUGS_TO): Likewise.
54335         (REPORT_BUGS_TEXI): Likewise.
54336         * Makefile (format-me): Use -I$(common-objpfx)manual.
54337         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54338         ($(common-objpfx)manual/%): New target.
54339         (manual/%): Remove target.
54340         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54341         (print_version): Use PKGVERSION.
54342         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54343         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54344         and REPORT_BUGS_TO.
54345         ($(objpfx)xtrace): Likewise.
54346         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54347         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54348         (print_version): Use PKGVERSION.
54349         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54350         (do_version): Use PKGVERSION.
54351         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54352         REPORT_BUGS_TO.
54353         (common-ldd-rewrite): Likewise.
54354         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54355         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54356         (print_version): Use PKGVERSION.
54357         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54358         * elf/pldd.c (argp_program_bug_address): Remove variable.
54359         (more_help): New function.
54360         (argp): Use more_help.
54361         (print_version): Use PKGVERSION.
54362         * elf/sln.c (main): Use PKGVERSION.
54363         (usage): Use REPORT_BUGS_TO.
54364         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54365         (top level): Use PKGVERSION.
54366         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54367         (print_version): Use PKGVERSION.
54368         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54369         (print_version): Use PKGVERSION.
54370         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54371         (print_version): Use PKGVERSION.
54372         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54373         (print_version): Use PKGVERSION.
54374         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54375         (print_version): Use PKGVERSION.
54376         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54377         (print_version): Use PKGVERSION.
54378         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54379         and BUGURL.
54380         ($(objpfx)memusage): Likewise.
54381         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54382         (do_version): Use PKGVERSION.
54383         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54384         (print_version): Use PKGVERSION.
54385         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54386         ($PKGVERSION): New variable.
54387         ($REPORT_BUGS_TO): Likewise.
54388         (usage): Use $REPORT_BUGS_TO.
54389         (top level): Use $PKGVERSION.
54390         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54391         ($(objpfx)pkgvers.texi): New rule.
54392         ($(objpfx)stamp-pkgvers): Likewise.
54393         * manual/install.texi: Include pkgvers.texi.
54394         (--with-pkgversion): Document new configure option.
54395         (--with-bugurl): Likewise.
54396         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54397         than necessarily for this particular distribution.  Use
54398         REPORT_BUGS_TO for where to report bugs.
54399         * INSTALL: Regenerated.
54400         * manual/libc.texinfo: Include pkgvers.texi.
54401         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54402         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54403         (print_version): Use PKGVERSION.
54404         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54405         (print_version): Use PKGVERSION.
54406         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54407         (print_version): Use PKGVERSION.
54408         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54409         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54410         macro.
54411         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54412         (print_version): Use PKGVERSION.
54413         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54414         (print_version): Use PKGVERSION.
54415         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54416         and PKGVERSION.
54417
54418         * timezone/checktab.awk: Update from tzcode 2012i.
54419         * timezone/ialloc.c: Likewise.
54420         * timezone/private.h: Likewise.
54421         * timezone/scheck.c: Likewise.
54422         * timezone/tzfile.h: Likewise.
54423         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54424         (TZVERSION): Hardcode tzcode version number.
54425         * timezone/zdump.c: Update from tzcode 2012i.
54426         * timezone/zic.c: Likewise.
54427         * timezone/version.h: New file.
54428         * timezone/README: Describe version.h.  Update upstream location.
54429
54430         [BZ #14824]
54431         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54432         (mktemp): Enable declaration.
54433         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54434         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54435         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54436         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54437         Likewise.
54438         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54439         Likewise.
54440         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54441         Likewise.
54442         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54443         Likewise.
54444         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54445         Likewise.
54446         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54447         Likewise.
54448
54449         [BZ #14821]
54450         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54451         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54452         for copies of such integer values.
54453         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54454         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54455
54456 2012-11-09  Andreas Jaeger  <aj@suse.de>
54457
54458         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54459         definitions and declarations that are provided by
54460         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54461
54462 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54463
54464         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54465         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54466         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54467         definition.
54468
54469 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54470
54471         * elf/elf.h: Update comment before AArch64 relocations.
54472
54473 2012-11-07  David S. Miller  <davem@davemloft.net>
54474
54475         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54476         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54477         (__start_context): Declare.
54478         (__makecontext_ret): Delete.
54479         (__makecontext): Hook up __start_context instead of
54480         __makecontext_ret.
54481         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54482         (sysdep_routines): Add __start_context when in stdlib.
54483
54484 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54485
54486         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54487         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54488         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54489         hardcoded "nm".
54490         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54491         (READELF): New variable.  Use it instead of hardcoded "readelf".
54492
54493 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54494
54495         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54496         * sysdeps/x86/Makefile: Here.
54497         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54498         * sysdeps/x86/tst-xmmymm.sh: This.
54499
54500 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54501
54502         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54503         expectations.
54504         [UNIX98] (pthread_barrier_t): Do not expect.
54505         [UNIX98] (pthread_barrierattr_t): Likewise.
54506         [UNIX98] (pthread_spinlock_t): Likewise.
54507         [UNIX98] (pthread_barrier_destroy): Likewise.
54508         [UNIX98] (pthread_barrier_init): Likewise.
54509         [UNIX98] (pthread_barrier_wait): Likewise.
54510         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54511         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54512         [UNIX98] (pthread_barrierattr_init): Likewise.
54513         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54514         [UNIX98] (pthread_getcpuclockid): Likewise.
54515         [UNIX98] (pthread_mutex_timedlock): Likewise.
54516         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54517         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54518         [UNIX98] (pthread_sigmask): Likewise.
54519         [UNIX98] (pthread_spin_destroy): Likewise.
54520         [UNIX98] (pthread_spin_init): Likewise.
54521         [UNIX98] (pthread_spin_lock): Likewise.
54522         [UNIX98] (pthread_spin_trylock): Likewise.
54523         [UNIX98] (pthread_spin_unlock): Likewise.
54524         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54525         Do not expect.
54526         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54527         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54528         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54529         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54530         [XPG3 || XPG4] (pthread_key_t): Likewise.
54531         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54532         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54533         [XPG3 || XPG4] (pthread_once_t): Likewise.
54534         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54535         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54536         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54537         [XPG3 || XPG4] (pthread_t): Likewise.
54538
54539         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54540         not expect.
54541         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54542
54543         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54544         Change function return type to int.
54545
54546         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54547         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54548         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54549         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54550         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54551         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54552         [!POSIX] (posix_madvise): Likewise.
54553         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54554         && !UNIX98].
54555         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54556         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54557         (mode_t): Likewise.
54558         (posix_mem_offset): Likewise.
54559         (posix_typed_mem_get_info): Likewise.
54560         (posix_typed_mem_open): Likewise.
54561
54562         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54563         Change condition to [XOPEN2K8].
54564
54565         * conform/conformtest.pl: Preprocess allow-header data with -x c
54566         instead of from stdin.
54567         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54568         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54569         [C99-based standards] (cerfc): Likewise.
54570         [C99-based standards] (cexp2): Likewise.
54571         [C99-based standards] (cexpm1): Likewise.
54572         [C99-based standards] (clog10): Likewise.
54573         [C99-based standards] (clog1p): Likewise.
54574         [C99-based standards] (clog2): Likewise.
54575         [C99-based standards] (clgamma): Likewise.
54576         [C99-based standards] (ctgamma): Likewise.
54577         [C99-based standards] (cerff): Likewise.
54578         [C99-based standards] (cerfcf): Likewise.
54579         [C99-based standards] (cexp2f): Likewise.
54580         [C99-based standards] (cexpm1f): Likewise.
54581         [C99-based standards] (clog10f): Likewise.
54582         [C99-based standards] (clog1pf): Likewise.
54583         [C99-based standards] (clog2f): Likewise.
54584         [C99-based standards] (clgammaf): Likewise.
54585         [C99-based standards] (ctgammaf): Likewise.
54586         [C99-based standards] (cerfl): Likewise.
54587         [C99-based standards] (cerfcl): Likewise.
54588         [C99-based standards] (cexp2l): Likewise.
54589         [C99-based standards] (cexpm1l): Likewise.
54590         [C99-based standards] (clog10l): Likewise.
54591         [C99-based standards] (clog1pl): Likewise.
54592         [C99-based standards] (clog2l): Likewise.
54593         [C99-based standards] (clgammal): Likewise.
54594         [C99-based standards] (ctgammal): Likewise.
54595         * conform/data/inttypes.h-data [C99-based standards]: Include
54596         stdint.h-data.  Remove all expectations for stdint.h contents.
54597         [C99-based standards] (PRI*): Do not allow.
54598         [C99-based standards] (SCN*): Likewise.
54599         [C99-based standards] (*_t): Likewise.
54600         [C99-based-standards] (PRId8): Expect macro.
54601         [C99-based-standards] (PRIi8): Likewise.
54602         [C99-based-standards] (PRIo8): Likewise.
54603         [C99-based-standards] (PRIu8): Likewise.
54604         [C99-based-standards] (PRIx8): Likewise.
54605         [C99-based-standards] (PRIX8): Likewise.
54606         [C99-based-standards] (SCNd8): Likewise.
54607         [C99-based-standards] (SCNi8): Likewise.
54608         [C99-based-standards] (SCNo8): Likewise.
54609         [C99-based-standards] (SCNu8): Likewise.
54610         [C99-based-standards] (SCNx8): Likewise.
54611         [C99-based-standards] (PRIdLEAST8): Likewise.
54612         [C99-based-standards] (PRIiLEAST8): Likewise.
54613         [C99-based-standards] (PRIoLEAST8): Likewise.
54614         [C99-based-standards] (PRIuLEAST8): Likewise.
54615         [C99-based-standards] (PRIxLEAST8): Likewise.
54616         [C99-based-standards] (PRIXLEAST8): Likewise.
54617         [C99-based-standards] (SCNdLEAST8): Likewise.
54618         [C99-based-standards] (SCNiLEAST8): Likewise.
54619         [C99-based-standards] (SCNoLEAST8): Likewise.
54620         [C99-based-standards] (SCNuLEAST8): Likewise.
54621         [C99-based-standards] (SCNxLEAST8): Likewise.
54622         [C99-based-standards] (PRIdFAST8): Likewise.
54623         [C99-based-standards] (PRIiFAST8): Likewise.
54624         [C99-based-standards] (PRIoFAST8): Likewise.
54625         [C99-based-standards] (PRIuFAST8): Likewise.
54626         [C99-based-standards] (PRIxFAST8): Likewise.
54627         [C99-based-standards] (PRIXFAST8): Likewise.
54628         [C99-based-standards] (SCNdFAST8): Likewise.
54629         [C99-based-standards] (SCNiFAST8): Likewise.
54630         [C99-based-standards] (SCNoFAST8): Likewise.
54631         [C99-based-standards] (SCNuFAST8): Likewise.
54632         [C99-based-standards] (SCNxFAST8): Likewise.
54633         [C99-based-standards] (PRId16): Likewise.
54634         [C99-based-standards] (PRIi16): Likewise.
54635         [C99-based-standards] (PRIo16): Likewise.
54636         [C99-based-standards] (PRIu16): Likewise.
54637         [C99-based-standards] (PRIx16): Likewise.
54638         [C99-based-standards] (PRIX16): Likewise.
54639         [C99-based-standards] (SCNd16): Likewise.
54640         [C99-based-standards] (SCNi16): Likewise.
54641         [C99-based-standards] (SCNo16): Likewise.
54642         [C99-based-standards] (SCNu16): Likewise.
54643         [C99-based-standards] (SCNx16): Likewise.
54644         [C99-based-standards] (PRIdLEAST16): Likewise.
54645         [C99-based-standards] (PRIiLEAST16): Likewise.
54646         [C99-based-standards] (PRIoLEAST16): Likewise.
54647         [C99-based-standards] (PRIuLEAST16): Likewise.
54648         [C99-based-standards] (PRIxLEAST16): Likewise.
54649         [C99-based-standards] (PRIXLEAST16): Likewise.
54650         [C99-based-standards] (SCNdLEAST16): Likewise.
54651         [C99-based-standards] (SCNiLEAST16): Likewise.
54652         [C99-based-standards] (SCNoLEAST16): Likewise.
54653         [C99-based-standards] (SCNuLEAST16): Likewise.
54654         [C99-based-standards] (SCNxLEAST16): Likewise.
54655         [C99-based-standards] (PRIdFAST16): Likewise.
54656         [C99-based-standards] (PRIiFAST16): Likewise.
54657         [C99-based-standards] (PRIoFAST16): Likewise.
54658         [C99-based-standards] (PRIuFAST16): Likewise.
54659         [C99-based-standards] (PRIxFAST16): Likewise.
54660         [C99-based-standards] (PRIXFAST16): Likewise.
54661         [C99-based-standards] (SCNdFAST16): Likewise.
54662         [C99-based-standards] (SCNiFAST16): Likewise.
54663         [C99-based-standards] (SCNoFAST16): Likewise.
54664         [C99-based-standards] (SCNuFAST16): Likewise.
54665         [C99-based-standards] (SCNxFAST16): Likewise.
54666         [C99-based-standards] (PRId32): Likewise.
54667         [C99-based-standards] (PRIi32): Likewise.
54668         [C99-based-standards] (PRIo32): Likewise.
54669         [C99-based-standards] (PRIu32): Likewise.
54670         [C99-based-standards] (PRIx32): Likewise.
54671         [C99-based-standards] (PRIX32): Likewise.
54672         [C99-based-standards] (SCNd32): Likewise.
54673         [C99-based-standards] (SCNi32): Likewise.
54674         [C99-based-standards] (SCNo32): Likewise.
54675         [C99-based-standards] (SCNu32): Likewise.
54676         [C99-based-standards] (SCNx32): Likewise.
54677         [C99-based-standards] (PRIdLEAST32): Likewise.
54678         [C99-based-standards] (PRIiLEAST32): Likewise.
54679         [C99-based-standards] (PRIoLEAST32): Likewise.
54680         [C99-based-standards] (PRIuLEAST32): Likewise.
54681         [C99-based-standards] (PRIxLEAST32): Likewise.
54682         [C99-based-standards] (PRIXLEAST32): Likewise.
54683         [C99-based-standards] (SCNdLEAST32): Likewise.
54684         [C99-based-standards] (SCNiLEAST32): Likewise.
54685         [C99-based-standards] (SCNoLEAST32): Likewise.
54686         [C99-based-standards] (SCNuLEAST32): Likewise.
54687         [C99-based-standards] (SCNxLEAST32): Likewise.
54688         [C99-based-standards] (PRIdFAST32): Likewise.
54689         [C99-based-standards] (PRIiFAST32): Likewise.
54690         [C99-based-standards] (PRIoFAST32): Likewise.
54691         [C99-based-standards] (PRIuFAST32): Likewise.
54692         [C99-based-standards] (PRIxFAST32): Likewise.
54693         [C99-based-standards] (PRIXFAST32): Likewise.
54694         [C99-based-standards] (SCNdFAST32): Likewise.
54695         [C99-based-standards] (SCNiFAST32): Likewise.
54696         [C99-based-standards] (SCNoFAST32): Likewise.
54697         [C99-based-standards] (SCNuFAST32): Likewise.
54698         [C99-based-standards] (SCNxFAST32): Likewise.
54699         [C99-based-standards] (PRId64): Likewise.
54700         [C99-based-standards] (PRIi64): Likewise.
54701         [C99-based-standards] (PRIo64): Likewise.
54702         [C99-based-standards] (PRIu64): Likewise.
54703         [C99-based-standards] (PRIx64): Likewise.
54704         [C99-based-standards] (PRIX64): Likewise.
54705         [C99-based-standards] (SCNd64): Likewise.
54706         [C99-based-standards] (SCNi64): Likewise.
54707         [C99-based-standards] (SCNo64): Likewise.
54708         [C99-based-standards] (SCNu64): Likewise.
54709         [C99-based-standards] (SCNx64): Likewise.
54710         [C99-based-standards] (PRIdLEAST64): Likewise.
54711         [C99-based-standards] (PRIiLEAST64): Likewise.
54712         [C99-based-standards] (PRIoLEAST64): Likewise.
54713         [C99-based-standards] (PRIuLEAST64): Likewise.
54714         [C99-based-standards] (PRIxLEAST64): Likewise.
54715         [C99-based-standards] (PRIXLEAST64): Likewise.
54716         [C99-based-standards] (SCNdLEAST64): Likewise.
54717         [C99-based-standards] (SCNiLEAST64): Likewise.
54718         [C99-based-standards] (SCNoLEAST64): Likewise.
54719         [C99-based-standards] (SCNuLEAST64): Likewise.
54720         [C99-based-standards] (SCNxLEAST64): Likewise.
54721         [C99-based-standards] (PRIdFAST64): Likewise.
54722         [C99-based-standards] (PRIiFAST64): Likewise.
54723         [C99-based-standards] (PRIoFAST64): Likewise.
54724         [C99-based-standards] (PRIuFAST64): Likewise.
54725         [C99-based-standards] (PRIxFAST64): Likewise.
54726         [C99-based-standards] (PRIXFAST64): Likewise.
54727         [C99-based-standards] (SCNdFAST64): Likewise.
54728         [C99-based-standards] (SCNiFAST64): Likewise.
54729         [C99-based-standards] (SCNoFAST64): Likewise.
54730         [C99-based-standards] (SCNuFAST64): Likewise.
54731         [C99-based-standards] (SCNxFAST64): Likewise.
54732         [C99-based-standards] (PRIdMAX): Likewise.
54733         [C99-based-standards] (PRIiMAX): Likewise.
54734         [C99-based-standards] (PRIoMAX): Likewise.
54735         [C99-based-standards] (PRIuMAX): Likewise.
54736         [C99-based-standards] (PRIxMAX): Likewise.
54737         [C99-based-standards] (PRIXMAX): Likewise.
54738         [C99-based-standards] (SCNdMAX): Likewise.
54739         [C99-based-standards] (SCNiMAX): Likewise.
54740         [C99-based-standards] (SCNoMAX): Likewise.
54741         [C99-based-standards] (SCNuMAX): Likewise.
54742         [C99-based-standards] (SCNxMAX): Likewise.
54743         [C99-based-standards] (PRIdPTR): Likewise.
54744         [C99-based-standards] (PRIiPTR): Likewise.
54745         [C99-based-standards] (PRIoPTR): Likewise.
54746         [C99-based-standards] (PRIuPTR): Likewise.
54747         [C99-based-standards] (PRIxPTR): Likewise.
54748         [C99-based-standards] (PRIXPTR): Likewise.
54749         [C99-based-standards] (SCNdPTR): Likewise.
54750         [C99-based-standards] (SCNiPTR): Likewise.
54751         [C99-based-standards] (SCNoPTR): Likewise.
54752         [C99-based-standards] (SCNuPTR): Likewise.
54753         [C99-based-standards] (SCNxPTR): Likewise.
54754         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54755         allow.
54756         * conform/data/stdint.h-data: Update comments to clarify
54757         requirements.
54758         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54759         type.
54760         [C99-based standards] (INT8_MAX): Likewise.
54761         [C99-based standards] (INT16_MIN): Likewise.
54762         [C99-based standards] (INT16_MAX): Likewise.
54763         [C99-based standards] (INT32_MIN): Likewise.
54764         [C99-based standards] (INT32_MAX): Likewise.
54765         [C99-based standards] (INT64_MIN): Likewise.
54766         [C99-based standards] (INT64_MAX): Likewise.
54767         [C99-based standards] (UINT8_MAX): Likewise.
54768         [C99-based standards] (UINT16_MAX): Likewise.
54769         [C99-based standards] (UINT32_MAX): Likewise.
54770         [C99-based standards] (UINT64_MAX): Likewise.
54771         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54772         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54773         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54774         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54775         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54776         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54777         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54778         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54779         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54780         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54781         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54782         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54783         [C99-based standards] (INT_FAST8_MIN): Likewise.
54784         [C99-based standards] (INT_FAST8_MAX): Likewise.
54785         [C99-based standards] (INT_FAST16_MIN): Likewise.
54786         [C99-based standards] (INT_FAST16_MAX): Likewise.
54787         [C99-based standards] (INT_FAST32_MIN): Likewise.
54788         [C99-based standards] (INT_FAST32_MAX): Likewise.
54789         [C99-based standards] (INT_FAST64_MIN): Likewise.
54790         [C99-based standards] (INT_FAST64_MAX): Likewise.
54791         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54792         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54793         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54794         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54795         [C99-based standards] (INTPTR_MIN): Likewise.
54796         [C99-based standards] (INTPTR_MAX): Likewise.
54797         [C99-based standards] (UINTPTR_MAX): Likewise.
54798         [C99-based standards] (INTMAX_MIN): Likewise.
54799         [C99-based standards] (INTMAX_MAX): Likewise.
54800         [C99-based standards] (UINTMAX_MAX): Likewise.
54801         [C99-based standards] (PTRDIFF_MIN): Likewise.
54802         [C99-based standards] (PTRDIFF_MAX): Likewise.
54803         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54804         [C99-based standards] (SIZE_MAX): Likewise.
54805         [C99-based standards] (WCHAR_MAX): Likewise.
54806         [C99-based standards] (WINT_MAX): Likewise.
54807         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54808         constraint on value.
54809         [C99-based standards] (WCHAR_MIN): Likewise.
54810         [C99-based standards] (WINT_MIN): Likewise.
54811         [C99-based standards] (*_t): Allow.
54812         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54813         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54814         Include math.h-data and complex.h-data.  Remove all expectations
54815         of math.h and complex.h contents.
54816         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54817         at end of line.
54818         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54819         (struct tm): Expect tag.
54820         [C99-based-standards] (wcstof): Expect function.
54821         [C99-based-standards] (wcstold): Likewise.
54822         [C99-based-standards] (wcstoll): Likewise.
54823         [C99-based-standards] (wcstoull): Likewise.
54824         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54825         macro-int-constant.  Specify type.
54826         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54827         constraint on value.
54828         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54829         Specify type.
54830         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54831         Specify value.
54832         [ISO C standards]: Do not allow headers.
54833         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54834         wcs[abcdefghijklmnopqrstuvwxyz]*.
54835         [ISO C standards] (*_t): Do not allow.
54836         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54837         Expect function.
54838         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54839         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54840         Specify type.
54841         [ISO C standards]: Do not allow headers.
54842         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54843         is[abcdefghijklmnopqrstuvwxyz]*.
54844         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54845         to[abcdefghijklmnopqrstuvwxyz]*.
54846         [ISO C standards] (*_t): Do not allow.
54847         * conform/data/stdalign.h-data: New file.
54848         * conform/data/stdbool.h-data: Likewise.
54849         * conform/data/stdnoreturn.h-data: Likewise.
54850
54851 2012-11-07  Roland McGrath  <roland@hack.frob.com>
54852
54853         [BZ #14815]
54854         * manual/filesys.texi (Directory Entries): Typo fix.
54855         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
54856
54857 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54858
54859         * elf/elf.h (EM_AARCH64): New macro.
54860         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
54861         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
54862         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
54863         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
54864         (R_AARCH64_TLSDESC): Likewise.
54865         (NT_ARM_TLS): Likewise.
54866         (NT_ARM_HW_BREAK): Likewise.
54867         (NT_ARM_HW_WATCH): Likewise.
54868
54869 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54870
54871         [BZ #14811]
54872         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
54873         (__ieee754_powl): Saturate nonzero exponents with absolute value
54874         below 0x1p-79 to +/- 0x1p-79.
54875         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
54876         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
54877         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
54878         nonzero exponents with absolute value below 0x1p-32 to +/-
54879         0x1p-32.
54880         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
54881         (__ieee754_powl): Saturate nonzero exponents with absolute value
54882         below 0x1p-79 to +/- 0x1p-79.
54883         * math/libm-test.inc (pow_test): Add more tests.
54884
54885 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54886
54887         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
54888         _dl_s390_cap_flags with kernel. Increase string length.
54889         (_dl_s390_platforms): Add z196 and zEC12.
54890
54891 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54892
54893         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
54894         Change XOPEN21K to XOPEN2K.
54895
54896 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
54897
54898         * string/memmove.c: Use memcpy when possible.
54899
54900 2012-11-06  Andreas Jaeger  <aj@suse.de>
54901
54902         * po/eo.po: Update from translation team.
54903
54904 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
54905
54906         [BZ #14793]
54907         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
54908         exponent and small x and y exponents, scale x or y up.  Increase
54909         by 2 the exponent used in scaling up.
54910         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54911         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54912         * math/libm-test.inc (fma_test): Add more tests.
54913         (fma_test_towardzero): Likewise.
54914         (fma_test_downward): Likewise.
54915         (fma_test_upward): Likewise.
54916
54917 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
54918
54919         [BZ #14805]
54920         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
54921         fenv_t *.
54922
54923         [BZ #14801]
54924         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
54925         namespace for names of struct fields.
54926         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
54927         fenv_t fields.
54928         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
54929         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
54930
54931 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
54932
54933         [BZ #3665]
54934         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
54935
54936 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54937
54938         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
54939         PTR_DEMANGLE.
54940
54941         [BZ #5246]
54942         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
54943         PTR_DEMANGLE.
54944
54945 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
54946
54947         [BZ #14797]
54948         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
54949         definitely overflow as x * y not x * y + z.
54950         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54951         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54952         * math/libm-test.inc (fma_test): Add more tests.
54953         (fma_test_towardzero): Likewise.
54954         (fma_test_downward): Likewise.
54955         (fma_test_upward): Likewise.
54956
54957 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54958
54959         [BZ #157]
54960
54961         * include/stub-tag.h: Remove file.
54962         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
54963         '#include' of it.
54964         * manual/maint.texi (Porting): Don't reference it.
54965         * Makerules ($(objpfx)stubs): Likewise.
54966         * dirent/closedir.c: Don't include <stub-tag.h>.
54967         * dirent/dirfd.c: Likewise.
54968         * dirent/fdopendir.c: Likewise.
54969         * dirent/getdents.c: Likewise.
54970         * dirent/getdents64.c: Likewise.
54971         * dirent/opendir.c: Likewise.
54972         * dirent/readdir.c: Likewise.
54973         * dirent/readdir64.c: Likewise.
54974         * dirent/readdir64_r.c: Likewise.
54975         * dirent/readdir_r.c: Likewise.
54976         * dirent/rewinddir.c: Likewise.
54977         * dirent/seekdir.c: Likewise.
54978         * dirent/telldir.c: Likewise.
54979         * gmon/profil.c: Likewise.
54980         * grp/setgroups.c: Likewise.
54981         * inet/if_index.c: Likewise.
54982         * io/access.c: Likewise.
54983         * io/chdir.c: Likewise.
54984         * io/chmod.c: Likewise.
54985         * io/chown.c: Likewise.
54986         * io/close.c: Likewise.
54987         * io/dup.c: Likewise.
54988         * io/dup2.c: Likewise.
54989         * io/dup3.c: Likewise.
54990         * io/euidaccess.c: Likewise.
54991         * io/faccessat.c: Likewise.
54992         * io/fchdir.c: Likewise.
54993         * io/fchmod.c: Likewise.
54994         * io/fchmodat.c: Likewise.
54995         * io/fchown.c: Likewise.
54996         * io/fchownat.c: Likewise.
54997         * io/fcntl.c: Likewise.
54998         * io/flock.c: Likewise.
54999         * io/fstatfs.c: Likewise.
55000         * io/fstatfs64.c: Likewise.
55001         * io/fstatvfs.c: Likewise.
55002         * io/fstatvfs64.c: Likewise.
55003         * io/futimens.c: Likewise.
55004         * io/fxstat.c: Likewise.
55005         * io/fxstat64.c: Likewise.
55006         * io/fxstatat.c: Likewise.
55007         * io/fxstatat64.c: Likewise.
55008         * io/getcwd.c: Likewise.
55009         * io/isatty.c: Likewise.
55010         * io/lchmod.c: Likewise.
55011         * io/lchown.c: Likewise.
55012         * io/link.c: Likewise.
55013         * io/linkat.c: Likewise.
55014         * io/lseek.c: Likewise.
55015         * io/lseek64.c: Likewise.
55016         * io/lxstat64.c: Likewise.
55017         * io/mkdir.c: Likewise.
55018         * io/mkdirat.c: Likewise.
55019         * io/mkfifo.c: Likewise.
55020         * io/mkfifoat.c: Likewise.
55021         * io/open.c: Likewise.
55022         * io/open64.c: Likewise.
55023         * io/openat.c: Likewise.
55024         * io/openat64.c: Likewise.
55025         * io/pipe.c: Likewise.
55026         * io/pipe2.c: Likewise.
55027         * io/poll.c: Likewise.
55028         * io/posix_fadvise.c: Likewise.
55029         * io/posix_fadvise64.c: Likewise.
55030         * io/posix_fallocate.c: Likewise.
55031         * io/posix_fallocate64.c: Likewise.
55032         * io/read.c: Likewise.
55033         * io/readlink.c: Likewise.
55034         * io/readlinkat.c: Likewise.
55035         * io/rmdir.c: Likewise.
55036         * io/sendfile.c: Likewise.
55037         * io/sendfile64.c: Likewise.
55038         * io/statfs.c: Likewise.
55039         * io/statfs64.c: Likewise.
55040         * io/statvfs.c: Likewise.
55041         * io/statvfs64.c: Likewise.
55042         * io/symlink.c: Likewise.
55043         * io/symlinkat.c: Likewise.
55044         * io/ttyname.c: Likewise.
55045         * io/ttyname_r.c: Likewise.
55046         * io/umask.c: Likewise.
55047         * io/unlink.c: Likewise.
55048         * io/unlinkat.c: Likewise.
55049         * io/utime.c: Likewise.
55050         * io/utimensat.c: Likewise.
55051         * io/write.c: Likewise.
55052         * io/xmknod.c: Likewise.
55053         * io/xmknodat.c: Likewise.
55054         * io/xstat.c: Likewise.
55055         * io/xstat64.c: Likewise.
55056         * login/getpt.c: Likewise.
55057         * login/grantpt.c: Likewise.
55058         * login/unlockpt.c: Likewise.
55059         * math/e_acoshl.c: Likewise.
55060         * math/e_acosl.c: Likewise.
55061         * math/e_asinl.c: Likewise.
55062         * math/e_atan2l.c: Likewise.
55063         * math/e_atanhl.c: Likewise.
55064         * math/e_coshl.c: Likewise.
55065         * math/e_expl.c: Likewise.
55066         * math/e_fmodl.c: Likewise.
55067         * math/e_gammal_r.c: Likewise.
55068         * math/e_hypotl.c: Likewise.
55069         * math/e_j0l.c: Likewise.
55070         * math/e_j1l.c: Likewise.
55071         * math/e_jnl.c: Likewise.
55072         * math/e_lgammal_r.c: Likewise.
55073         * math/e_log10l.c: Likewise.
55074         * math/e_log2l.c: Likewise.
55075         * math/e_logl.c: Likewise.
55076         * math/e_powl.c: Likewise.
55077         * math/e_rem_pio2l.c: Likewise.
55078         * math/e_sinhl.c: Likewise.
55079         * math/e_sqrtl.c: Likewise.
55080         * math/fclrexcpt.c: Likewise.
55081         * math/fedisblxcpt.c: Likewise.
55082         * math/feenablxcpt.c: Likewise.
55083         * math/fegetenv.c: Likewise.
55084         * math/fegetexcept.c: Likewise.
55085         * math/fegetround.c: Likewise.
55086         * math/feholdexcpt.c: Likewise.
55087         * math/fesetenv.c: Likewise.
55088         * math/fesetround.c: Likewise.
55089         * math/feupdateenv.c: Likewise.
55090         * math/fgetexcptflg.c: Likewise.
55091         * math/fraiseexcpt.c: Likewise.
55092         * math/fsetexcptflg.c: Likewise.
55093         * math/ftestexcept.c: Likewise.
55094         * math/k_cosl.c: Likewise.
55095         * math/k_rem_pio2l.c: Likewise.
55096         * math/k_sinl.c: Likewise.
55097         * math/k_tanl.c: Likewise.
55098         * math/s_asinhl.c: Likewise.
55099         * math/s_atanl.c: Likewise.
55100         * math/s_cbrtl.c: Likewise.
55101         * math/s_erfl.c: Likewise.
55102         * math/s_expm1l.c: Likewise.
55103         * math/s_log1pl.c: Likewise.
55104         * math/s_tanhl.c: Likewise.
55105         * misc/acct.c: Likewise.
55106         * misc/brk.c: Likewise.
55107         * misc/chflags.c: Likewise.
55108         * misc/chroot.c: Likewise.
55109         * misc/fchflags.c: Likewise.
55110         * misc/fgetxattr.c: Likewise.
55111         * misc/flistxattr.c: Likewise.
55112         * misc/fremovexattr.c: Likewise.
55113         * misc/fsetxattr.c: Likewise.
55114         * misc/fsync.c: Likewise.
55115         * misc/ftruncate.c: Likewise.
55116         * misc/futimes.c: Likewise.
55117         * misc/futimesat.c: Likewise.
55118         * misc/getdomain.c: Likewise.
55119         * misc/getdtsz.c: Likewise.
55120         * misc/gethostid.c: Likewise.
55121         * misc/gethostname.c: Likewise.
55122         * misc/getloadavg.c: Likewise.
55123         * misc/getpagesize.c: Likewise.
55124         * misc/getsysstats.c: Likewise.
55125         * misc/getxattr.c: Likewise.
55126         * misc/gtty.c: Likewise.
55127         * misc/ioctl.c: Likewise.
55128         * misc/lgetxattr.c: Likewise.
55129         * misc/listxattr.c: Likewise.
55130         * misc/llistxattr.c: Likewise.
55131         * misc/lremovexattr.c: Likewise.
55132         * misc/lsetxattr.c: Likewise.
55133         * misc/lutimes.c: Likewise.
55134         * misc/madvise.c: Likewise.
55135         * misc/mincore.c: Likewise.
55136         * misc/mlock.c: Likewise.
55137         * misc/mlockall.c: Likewise.
55138         * misc/mmap.c: Likewise.
55139         * misc/mprotect.c: Likewise.
55140         * misc/msync.c: Likewise.
55141         * misc/munlock.c: Likewise.
55142         * misc/munlockall.c: Likewise.
55143         * misc/munmap.c: Likewise.
55144         * misc/preadv.c: Likewise.
55145         * misc/preadv64.c: Likewise.
55146         * misc/ptrace.c: Likewise.
55147         * misc/pwritev.c: Likewise.
55148         * misc/pwritev64.c: Likewise.
55149         * misc/readv.c: Likewise.
55150         * misc/reboot.c: Likewise.
55151         * misc/remap_file_pages.c: Likewise.
55152         * misc/removexattr.c: Likewise.
55153         * misc/revoke.c: Likewise.
55154         * misc/select.c: Likewise.
55155         * misc/setdomain.c: Likewise.
55156         * misc/setegid.c: Likewise.
55157         * misc/seteuid.c: Likewise.
55158         * misc/sethostid.c: Likewise.
55159         * misc/sethostname.c: Likewise.
55160         * misc/setregid.c: Likewise.
55161         * misc/setreuid.c: Likewise.
55162         * misc/setxattr.c: Likewise.
55163         * misc/sstk.c: Likewise.
55164         * misc/stty.c: Likewise.
55165         * misc/swapoff.c: Likewise.
55166         * misc/swapon.c: Likewise.
55167         * misc/sync.c: Likewise.
55168         * misc/syncfs.c: Likewise.
55169         * misc/syscall.c: Likewise.
55170         * misc/truncate.c: Likewise.
55171         * misc/ualarm.c: Likewise.
55172         * misc/usleep.c: Likewise.
55173         * misc/ustat.c: Likewise.
55174         * misc/utimes.c: Likewise.
55175         * misc/vhangup.c: Likewise.
55176         * misc/writev.c: Likewise.
55177         * posix/_exit.c: Likewise.
55178         * posix/alarm.c: Likewise.
55179         * posix/execve.c: Likewise.
55180         * posix/fexecve.c: Likewise.
55181         * posix/fork.c: Likewise.
55182         * posix/fpathconf.c: Likewise.
55183         * posix/getaddrinfo.c: Likewise.
55184         * posix/getegid.c: Likewise.
55185         * posix/geteuid.c: Likewise.
55186         * posix/getgid.c: Likewise.
55187         * posix/getgroups.c: Likewise.
55188         * posix/getlogin.c: Likewise.
55189         * posix/getlogin_r.c: Likewise.
55190         * posix/getpgid.c: Likewise.
55191         * posix/getpid.c: Likewise.
55192         * posix/getppid.c: Likewise.
55193         * posix/getresgid.c: Likewise.
55194         * posix/getresuid.c: Likewise.
55195         * posix/getsid.c: Likewise.
55196         * posix/getuid.c: Likewise.
55197         * posix/glob64.c: Likewise.
55198         * posix/nanosleep.c: Likewise.
55199         * posix/pathconf.c: Likewise.
55200         * posix/pause.c: Likewise.
55201         * posix/posix_madvise.c: Likewise.
55202         * posix/pread.c: Likewise.
55203         * posix/pread64.c: Likewise.
55204         * posix/pwrite.c: Likewise.
55205         * posix/pwrite64.c: Likewise.
55206         * posix/sched_getaffinity.c: Likewise.
55207         * posix/sched_getp.c: Likewise.
55208         * posix/sched_gets.c: Likewise.
55209         * posix/sched_primax.c: Likewise.
55210         * posix/sched_primin.c: Likewise.
55211         * posix/sched_rr_gi.c: Likewise.
55212         * posix/sched_setaffinity.c: Likewise.
55213         * posix/sched_setp.c: Likewise.
55214         * posix/sched_sets.c: Likewise.
55215         * posix/sched_yield.c: Likewise.
55216         * posix/setgid.c: Likewise.
55217         * posix/setlogin.c: Likewise.
55218         * posix/setpgid.c: Likewise.
55219         * posix/setresgid.c: Likewise.
55220         * posix/setresuid.c: Likewise.
55221         * posix/setsid.c: Likewise.
55222         * posix/setuid.c: Likewise.
55223         * posix/sleep.c: Likewise.
55224         * posix/spawni.c: Likewise.
55225         * posix/sysconf.c: Likewise.
55226         * posix/times.c: Likewise.
55227         * posix/wait.c: Likewise.
55228         * posix/wait3.c: Likewise.
55229         * posix/wait4.c: Likewise.
55230         * posix/waitpid.c: Likewise.
55231         * resolv/gai_sigqueue.c: Likewise.
55232         * resource/getpriority.c: Likewise.
55233         * resource/getrlimit.c: Likewise.
55234         * resource/getrusage.c: Likewise.
55235         * resource/nice.c: Likewise.
55236         * resource/setpriority.c: Likewise.
55237         * resource/setrlimit.c: Likewise.
55238         * resource/ulimit.c: Likewise.
55239         * rt/aio_cancel.c: Likewise.
55240         * rt/aio_fsync.c: Likewise.
55241         * rt/aio_read.c: Likewise.
55242         * rt/aio_sigqueue.c: Likewise.
55243         * rt/aio_suspend.c: Likewise.
55244         * rt/aio_write.c: Likewise.
55245         * rt/clock_getres.c: Likewise.
55246         * rt/clock_gettime.c: Likewise.
55247         * rt/clock_nanosleep.c: Likewise.
55248         * rt/clock_settime.c: Likewise.
55249         * rt/lio_listio.c: Likewise.
55250         * rt/mq_close.c: Likewise.
55251         * rt/mq_getattr.c: Likewise.
55252         * rt/mq_notify.c: Likewise.
55253         * rt/mq_open.c: Likewise.
55254         * rt/mq_receive.c: Likewise.
55255         * rt/mq_send.c: Likewise.
55256         * rt/mq_setattr.c: Likewise.
55257         * rt/mq_timedreceive.c: Likewise.
55258         * rt/mq_timedsend.c: Likewise.
55259         * rt/mq_unlink.c: Likewise.
55260         * rt/shm_open.c: Likewise.
55261         * rt/shm_unlink.c: Likewise.
55262         * rt/timer_create.c: Likewise.
55263         * rt/timer_delete.c: Likewise.
55264         * rt/timer_getoverr.c: Likewise.
55265         * rt/timer_gettime.c: Likewise.
55266         * rt/timer_settime.c: Likewise.
55267         * setjmp/__longjmp.c: Likewise.
55268         * setjmp/setjmp.c: Likewise.
55269         * signal/kill.c: Likewise.
55270         * signal/killpg.c: Likewise.
55271         * signal/raise.c: Likewise.
55272         * signal/sigaction.c: Likewise.
55273         * signal/sigaltstack.c: Likewise.
55274         * signal/sigblock.c: Likewise.
55275         * signal/sigignore.c: Likewise.
55276         * signal/sigintr.c: Likewise.
55277         * signal/signal.c: Likewise.
55278         * signal/sigpause.c: Likewise.
55279         * signal/sigpending.c: Likewise.
55280         * signal/sigqueue.c: Likewise.
55281         * signal/sigreturn.c: Likewise.
55282         * signal/sigset.c: Likewise.
55283         * signal/sigsetmask.c: Likewise.
55284         * signal/sigstack.c: Likewise.
55285         * signal/sigsuspend.c: Likewise.
55286         * signal/sigtimedwait.c: Likewise.
55287         * signal/sigvec.c: Likewise.
55288         * signal/sigwait.c: Likewise.
55289         * signal/sigwaitinfo.c: Likewise.
55290         * signal/sysv_signal.c: Likewise.
55291         * socket/accept.c: Likewise.
55292         * socket/accept4.c: Likewise.
55293         * socket/bind.c: Likewise.
55294         * socket/connect.c: Likewise.
55295         * socket/getpeername.c: Likewise.
55296         * socket/getsockname.c: Likewise.
55297         * socket/getsockopt.c: Likewise.
55298         * socket/isfdtype.c: Likewise.
55299         * socket/listen.c: Likewise.
55300         * socket/recv.c: Likewise.
55301         * socket/recvfrom.c: Likewise.
55302         * socket/recvmsg.c: Likewise.
55303         * socket/send.c: Likewise.
55304         * socket/sendmsg.c: Likewise.
55305         * socket/sendto.c: Likewise.
55306         * socket/setsockopt.c: Likewise.
55307         * socket/shutdown.c: Likewise.
55308         * socket/sockatmark.c: Likewise.
55309         * socket/socket.c: Likewise.
55310         * socket/socketpair.c: Likewise.
55311         * stdio-common/ctermid.c: Likewise.
55312         * stdio-common/cuserid.c: Likewise.
55313         * stdio-common/remove.c: Likewise.
55314         * stdio-common/rename.c: Likewise.
55315         * stdio-common/renameat.c: Likewise.
55316         * stdio-common/tempname.c: Likewise.
55317         * stdlib/getcontext.c: Likewise.
55318         * stdlib/makecontext.c: Likewise.
55319         * stdlib/setcontext.c: Likewise.
55320         * stdlib/swapcontext.c: Likewise.
55321         * stdlib/system.c: Likewise.
55322         * streams/fattach.c: Likewise.
55323         * streams/fdetach.c: Likewise.
55324         * streams/getmsg.c: Likewise.
55325         * streams/getpmsg.c: Likewise.
55326         * streams/putmsg.c: Likewise.
55327         * streams/putpmsg.c: Likewise.
55328         * sysdeps/unix/bsd/getpt.c: Likewise.
55329         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55330         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55331         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55333         Likewise.
55334         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55335         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55336         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55337         * sysvipc/msgctl.c: Likewise.
55338         * sysvipc/msgget.c: Likewise.
55339         * sysvipc/msgrcv.c: Likewise.
55340         * sysvipc/msgsnd.c: Likewise.
55341         * sysvipc/semctl.c: Likewise.
55342         * sysvipc/semget.c: Likewise.
55343         * sysvipc/semop.c: Likewise.
55344         * sysvipc/semtimedop.c: Likewise.
55345         * sysvipc/shmat.c: Likewise.
55346         * sysvipc/shmctl.c: Likewise.
55347         * sysvipc/shmdt.c: Likewise.
55348         * sysvipc/shmget.c: Likewise.
55349         * termios/tcdrain.c: Likewise.
55350         * termios/tcflow.c: Likewise.
55351         * termios/tcflush.c: Likewise.
55352         * termios/tcgetattr.c: Likewise.
55353         * termios/tcgetpgrp.c: Likewise.
55354         * termios/tcsendbrk.c: Likewise.
55355         * termios/tcsetattr.c: Likewise.
55356         * termios/tcsetpgrp.c: Likewise.
55357         * time/adjtime.c: Likewise.
55358         * time/clock.c: Likewise.
55359         * time/getitimer.c: Likewise.
55360         * time/gettimeofday.c: Likewise.
55361         * time/setitimer.c: Likewise.
55362         * time/settimeofday.c: Likewise.
55363         * time/stime.c: Likewise.
55364         * time/time.c: Likewise.
55365
55366 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55367
55368         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55369         /usr/old/bin.
55370
55371         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55372         instead of spaces.
55373         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55374
55375 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55376
55377         [BZ #14796]
55378         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55379         FE_TONEAREST before applying Dekker multiplication and Knuth
55380         addition.  Clear inexact exceptions and check for exact zero
55381         results afterwards.
55382         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55383         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55384         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55385         * math/libm-test.inc (fma_test): Add more tests.
55386         (fma_test_towardzero): Likewise.
55387         (fma_test_downward): Likewise.
55388         (fma_test_upward): Likewise.
55389         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55390         function.
55391         (libc_fesetround): New macro.
55392         (libc_fesetroundf): Likewise.
55393         (libc_fesetroundl): Likewise.
55394         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55395         function.
55396         (libc_fesetround_387): Likewise.
55397         (libc_fesetroundf): New macro.
55398         (libc_fesetround): Likewise.
55399         (libc_fesetroundl): Likewise.
55400         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55401         function.
55402         (libc_fesetroundf): New macro.
55403         (libc_fesetround): Likewise.
55404         (libc_fesetroundl): Likewise.
55405         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55406         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55407         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55408         libm_hidden_ver.
55409         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55410         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55411         libm_hidden_def.
55412         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55413         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55414         libm_hidden_ver.
55415         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55416         libm_hidden_def.
55417
55418         [BZ #3439]
55419         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55420         integer constant usable in #if and use that to give value to enum
55421         constant.
55422         (FE_DIVBYZERO): Likewise.
55423         (FE_UNDERFLOW): Likewise.
55424         (FE_OVERFLOW): Likewise.
55425         (FE_INVALID): Likewise.
55426         (FE_INVALID_SNAN): Likewise.
55427         (FE_INVALID_ISI): Likewise.
55428         (FE_INVALID_IDI): Likewise.
55429         (FE_INVALID_ZDZ): Likewise.
55430         (FE_INVALID_IMZ): Likewise.
55431         (FE_INVALID_COMPARE): Likewise.
55432         (FE_INVALID_SOFTWARE): Likewise.
55433         (FE_INVALID_SQRT): Likewise.
55434         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55435         (FE_TONEAREST): Likewise.
55436         (FE_TOWARDZERO): Likewise.
55437         (FE_UPWARD): Likewise.
55438         (FE_DOWNWARD): Likewise.
55439         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55440         (FE_DIVBYZERO): Likewise.
55441         (FE_OVERFLOW): Likewise.
55442         (FE_UNDERFLOW): Likewise.
55443         (FE_INEXACT): Likewise.
55444         (FE_TONEAREST): Likewise.
55445         (FE_DOWNWARD): Likewise.
55446         (FE_UPWARD): Likewise.
55447         (FE_TOWARDZERO): Likewise.
55448         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55449         (FE_UNDERFLOW): Likewise.
55450         (FE_OVERFLOW): Likewise.
55451         (FE_DIVBYZERO): Likewise.
55452         (FE_INVALID): Likewise.
55453         (FE_TONEAREST): Likewise.
55454         (FE_TOWARDZERO): Likewise.
55455         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55456         (FE_OVERFLOW): Likewise.
55457         (FE_UNDERFLOW): Likewise.
55458         (FE_DIVBYZERO): Likewise.
55459         (FE_INEXACT): Likewise.
55460         (FE_TONEAREST): Likewise.
55461         (FE_TOWARDZERO): Likewise.
55462         (FE_UPWARD): Likewise.
55463         (FE_DOWNWARD): Likewise.
55464         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55465         (FE_DIVBYZERO): Likewise.
55466         (FE_OVERFLOW): Likewise.
55467         (FE_UNDERFLOW): Likewise.
55468         (FE_INEXACT): Likewise.
55469         (FE_TONEAREST): Likewise.
55470         (FE_DOWNWARD): Likewise.
55471         (FE_UPWARD): Likewise.
55472         (FE_TOWARDZERO): Likewise.
55473
55474 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55475
55476         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55477
55478 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55479
55480         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55481         commands.  Quote $PWD.
55482         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55483         -x" by "export".
55484         (remove_newlines): Remove.
55485
55486 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55487
55488         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55489         * stdlib/stdlib.h (atof): Moved to ...
55490         * include/bits/stdlib-float.h: Here.  New file.
55491         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55492         * stdlib/bits/stdlib-float.h: New file.
55493         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55494         -mno-sse -mno-mmx.
55495         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55496         <xmmintrin.h>.
55497
55498 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55499
55500         * conform/conformtest.pl (@headers): Add fenv.h.
55501         * conform/data/fenv.h-data: New file.
55502         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55503         include of <math/fenv.h>.
55504
55505         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55506         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55507         && !UNIX98].  Enables tests for XOPEN2K8.
55508         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55509         POSIX2008]: Likewise.
55510
55511         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55512         (struct rusage): Do not expect type or its members.
55513
55514         [BZ #3439]
55515         * math/math.h (FP_NAN): Define macro to integer constant usable in
55516         #if and use that to give value to enum constant.
55517         (FP_INFINITE): Likewise.
55518         (FP_ZERO): Likewise.
55519         (FP_SUBNORMAL): Likewise.
55520         (FP_NORMAL): Likewise.
55521
55522 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55523
55524         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55525         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55526         arguments.
55527
55528 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55529
55530         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55531         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55532         autoconf-time if not.
55533         * configure.in: Remove AC_PREREQ.
55534
55535 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55536
55537         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55538         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55539         of the internal implementation.
55540
55541 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55542
55543         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55544         except include of <misc/sys/syslog.h>.
55545
55546 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55547
55548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55549         function returns with a NULL context exit with zero.
55550
55551 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55552
55553         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55554
55555 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55556
55557         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55558         (run_program_cmd): This.
55559         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55560         (tst_langinfo): New variable.  Use it.
55561
55562 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55563
55564         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55565         floating point opcodes.
55566
55567 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55568
55569         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55570         variable.
55571
55572         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55573
55574         * sysdeps/mach/hurd/powerpc: Remove directory.
55575         * sysdeps/mach/powerpc: Likewise.
55576
55577 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55578
55579         * scripts/check-local-headers.sh: Ignore c++ headers.
55580
55581 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55582
55583         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55584         __libc_cleanup_region_start argument.
55585
55586 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55587
55588         [BZ #14784]
55589         [BZ #14785]
55590         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55591         x * y using scaling, not as x * y + z.
55592         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55593         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55594         * math/libm-test.inc (fma_test): Add more tests.
55595         (fma_test_towardzero): Likewise.
55596         (fma_test_downward): Likewise.
55597         (fma_test_upward): Likewise.
55598
55599 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55600
55601         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55602
55603 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55604
55605         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55606         New variable.
55607
55608 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55609
55610         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55611
55612 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55613
55614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55615         Fix sort order.
55616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55617         Likewise.
55618
55619 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55620
55621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55622         Fix the order of the list for glibc 2.17.
55623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55624         Likewise.
55625
55626 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55627
55628         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55629
55630 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55631
55632         [BZ #14610]
55633         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55634         for low part of x being zero before using __atanl (y).
55635         * math/libm-test.inc (atan2_test): Add another test.
55636
55637         * manual/install.texi (Configuring and compiling): Document
55638         general use of test-wrapper and test-wrapper-env.
55639         * INSTALL: Regenerated.
55640
55641         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55642         (__fma): Do not extract and scale down low bits on after-rounding
55643         systems when result rounded to normal precision would have normal
55644         exponent.
55645         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55646         (__fmal): Do not extract and scale down low bits on after-rounding
55647         systems when result rounded to normal precision would have normal
55648         exponent.
55649         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55650         (__fmal): Do not extract and scale down low bits on after-rounding
55651         systems when result rounded to normal precision would have normal
55652         exponent.
55653         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55654         macro.
55655         (fma_test): Add more tests.
55656         (fma_test_towardzero): Likewise.
55657         (fma_test_downward): Likewise.
55658         (fma_test_upward): Likewise.
55659
55660 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55661
55662         * sysdeps/i386/tininess.h: Renamed to ...
55663         * sysdeps/x86/tininess.h: This.
55664         * sysdeps/x86_64/tininess.h: Removed.
55665
55666 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55667
55668         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55669         input.  Use $(build-program-cmd).
55670         ($(objpfx)tst-array1-static.out): Likewise.
55671         ($(objpfx)tst-array2.out): Likewise.
55672         ($(objpfx)tst-array3.out): Likewise.
55673         ($(objpfx)tst-array4.out): Likewise.
55674         ($(objpfx)tst-array5.out): Likewise.
55675         ($(objpfx)tst-array5-static.out): Likewise.
55676
55677 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55678
55679         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55680         if defined.
55681
55682         * nss/nsswitch.h (nss_interface_function): Provide new
55683         macro for use with NSS functions.
55684         * grp/initgroups.c: Use new macro.
55685         * nss/getXXbyYY.c: Likewise.
55686         * nss/getXXbyYY_r.c: Likewise.
55687         * nss/getXXent.c: Likewise.
55688         * nss/getXXent_r.c: Likewise.
55689         * sysdeps/posix/getaddrinfo.c: Likewise.
55690
55691 2012-10-30  Andreas Jaeger  <aj@suse.de>
55692
55693         * po/ru.po: Update Russion translation from translation project.
55694
55695 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55696
55697         [BZ #14152]
55698         [BZ #14783]
55699         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55700         result and shift together with sticky bit instead of replicating
55701         round-to-nearest rounding.
55702         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55703         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55704         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55705         missing underflow exceptions.
55706         (fma_test_towardzero): Add more tests.
55707         (fma_test_downward): Likewise.
55708         (fma_test_upward): Likewise.
55709
55710         [BZ #14047]
55711         * sysdeps/generic/tininess.h: New file.
55712         * sysdeps/i386/tininess.h: Likewise.
55713         * sysdeps/sh/tininess.h: Likewise.
55714         * sysdeps/x86_64/tininess.h: Likewise.
55715         * stdlib/tst-strtod-underflow.c: Likewise.
55716         * stdlib/tst-tininess.c: Likewise.
55717         * stdlib/strtod_l.c: Include <tininess.h>.
55718         (round_and_return): Do not set errno for exact underflow cases.
55719         Force an underflow exception when setting errno for underflow.
55720         Determine underflow based on rounding to normal precision if
55721         TININESS_AFTER_ROUNDING.
55722         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55723         ERANGE for exact underflow cases.
55724         * stdlib/Makefile (tests): Add tst-tininess and
55725         tst-strtod-underflow.
55726         ($(objpfx)tst-tininess): Use $(link-libm).
55727         ($(objpfx)tst-strtod-underflow): Likewise.
55728
55729 2012-10-30  Andreas Jaeger  <aj@suse.de>
55730
55731         [BZ#14767]
55732         * elf/Makefile (tests): Remove conditional for have-initfini-array
55733         since this is now always required and the variable does not exist
55734         anymore.
55735         (tests-static): Likewise.
55736         (modules-names): Likewise.
55737
55738         * po/eo.po: Add Esperanto translation from translation project.
55739
55740         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55741         merged with constructor/destructor.
55742         (init_array): Likewise.
55743         * elf/tst-array2dep.c (fini_array): Likewise.
55744         (init_array): Likewise.
55745
55746 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55747
55748         * manual/message.texi: Delete @cartouche tags.
55749
55750 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55751
55752         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55753         EOPNOTSUPP.
55754         * sysdeps/mach/hurd/fsync.c: Likewise.
55755
55756         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55757         [_POSIX_REALTIME_SIGNALS]: Change condition to
55758         [_POSIX_REALTIME_SIGNALS > 0].
55759
55760 2012-10-27  Andreas Jaeger  <aj@suse.de>
55761
55762         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55763         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55764         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55765         [__WORDSIZE != 64]: Likewise.
55766
55767 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55768
55769         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55770         *  iconvdata/tst-tables.sh: Likewise.
55771
55772 2012-10-25  David S. Miller  <davem@davemloft.net>
55773
55774         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55775         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55776         of strtoull.
55777
55778         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55779         ifunc-impl-list.c
55780         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55781         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55782         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55783         file.
55784
55785 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55786
55787         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55788         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55789         __getdirentries.
55790
55791 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55792             Jim Blandy  <jimb@codesourcery.com>
55793
55794         * scripts/cross-test-ssh.sh: New file.
55795         * manual/install.texi (Configuring and compiling): Document use of
55796         cross-test-ssh.sh.
55797         * INSTALL: Regenerated.
55798
55799 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55800
55801         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55802         EOPNOTSUPP.
55803
55804 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55805
55806         * Makeconfig (run-program-prefix): Fix comment.
55807
55808 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55809             Jim Blandy  <jimb@codesourcery.com>
55810
55811         * Makeconfig (test-wrapper): New variable,
55812         (test-wrapper-env): Likewise.
55813         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55814         (run-built-tests): Define to yes.
55815         (run-program-prefix): Use $(test-wrapper).
55816         (built-program-cmd): Likewise.
55817         * Rules (make-test-out): Use $(test-wrapper-env) and
55818         $(host-built-program-cmd).
55819         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55820         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55821         tst-pathopt.sh.
55822         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55823         $(test-wrapper-env) to tst-rtld-load-self.sh.
55824         ($(objpfx)order2.out): Use $(test-wrapper).
55825         ($(objpfx)tst-initorder.out): Likewise.
55826         ($(objpfx)tst-initorder2.out): Likewise.
55827         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55828         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55829         (test_wrapper_env): New variable.  Use it to run ld.so.
55830         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55831         Use it to run ld.so.
55832         (test_wrapper_env): Likewise.
55833         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55834         $(test-wrapper) to run-iconv-test.sh.
55835         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55836         (ICONV): Use $test_wrapper.
55837         * posix/Makefile ($(objpfx)globtest.out): Pass
55838         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55839         globtest.sh, not $(run-program-prefix).
55840         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55841         (test_wrapper): Likewise.
55842         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55843         set together with run_via_rtld_prefix.
55844         (run_program_prefix): Define in terms of test_wrapper and
55845         run_via_rtld_prefix.
55846
55847 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55848
55849         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
55850         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
55851         Targets removed.
55852
55853         [BZ #14743]
55854         * include/time.h: Remove librt_hidden_proto (clock_gettime).
55855         Declare __clock_getres, __clock_gettime, __clock_settime,
55856         __clock_nanosleep, and __clock_getcpuclockid.
55857         * rt/clock_gettime.c: Define __clock_gettime as an alias.
55858         Remove librt_hidden_def (clock_gettime).
55859         * sysdeps/unix/clock_gettime.c: Likewise.
55860         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
55861         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
55862         * rt/clock_getres.c: Define __clock_getres as an alias.
55863         * sysdeps/posix/clock_getres.c: Likewise.
55864         * rt/clock_settime.c: Define __clock_settime as an alias.
55865         * sysdeps/unix/clock_settime.c: Likewise.
55866         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
55867         * sysdeps/unix/clock_nanosleep.c: Likewise.
55868         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
55869         * rt/clock-compat.c: New file.
55870         * rt/Makefile (librt-routines): Add clock-compat and move
55871         $(clock-routines) to ...
55872         (routines): ... here, new variable.
55873         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
55874         Don't add get_clockfreq here.
55875         * rt/Versions (libc: GLIBC_2.17): New version set.
55876         Add clock_* symbols here.
55877         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
55878         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
55879         (GLIBC_2.17): Add clock_* symbols.
55880         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
55881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
55882         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
55883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55884         Likewise.
55885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55886         Likewise.
55887         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
55888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
55889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
55890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
55891         * NEWS: Mention the move.
55892
55893         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
55894         Use __open, __read, __close rather than their public counterparts.
55895         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55896         (__get_clockfreq_via_cpuinfo): Likewise.
55897         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
55898         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
55899
55900         * config.h.in (HAVE_IFUNC): New #undef.
55901         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
55902         was successful.
55903         * configure: Regenerated.
55904
55905 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55906
55907         * configure.in: Move READELF check to start of file.
55908         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
55909         libc_cv_asm_gnu_indirect_function in the process.
55910         * configure: Regenerated.
55911
55912 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55913
55914         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
55915         send the output to /dev/null.
55916         (libc_cv_cc_with_libunwind): Likewise.
55917         (libc_cv_as_noexecstack): Likewise.
55918         * configure: Regenerate.
55919
55920 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55921
55922         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
55923
55924         * posix/globtest.sh (TMPDIR): Do not set.
55925         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
55926         (testout): Likewise.
55927
55928 2012-10-24  Andreas Jaeger  <aj@suse.de>
55929
55930         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
55931         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
55932         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
55933         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
55934         posix_fadvise64, posix_fallocate64.
55935
55936         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
55937         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
55938         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
55939         Likewise.
55940         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
55941         Likewise.
55942         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
55943
55944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
55945         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
55946         <bits/fcntl-linux.h>.
55947         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
55948
55949         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
55950         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
55951         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
55952         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
55953         [__WORDSIZE != 64]: Likewise.
55954
55955 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55956
55957         * Makeconfig (run-built-tests): New variable.
55958         * Rules [$(cross-compiling) = yes]: Change condition to
55959         [$(run-built-tests) = no].
55960         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
55961         to [$(run-built-tests) = yes].
55962         * elf/Makefile [$(cross-compiling) = no]: Likewise.
55963         * grp/Makefile [$(cross-compiling) = no]: Likewise.
55964         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
55965         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
55966         * intl/Makefile [$(cross-compiling) = no]: Likewise.
55967         * io/Makefile [$(cross-compiling) = no]: Likewise.
55968         * libio/Makefile [$(cross-compiling) = no]: Likewise.
55969         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
55970         * misc/Makefile [$(cross-compiling) = no]: Likewise.
55971         * posix/Makefile [$(cross-compiling) = no]: Likewise.
55972         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
55973         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
55974         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
55975         * string/Makefile [$(cross-compiling) = no]: Likewise.
55976
55977         * posix/Makefile ($(objpfx)globtest.out): Pass
55978         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
55979         $(rtld-installed-name).
55980         * posix/globtest.sh (elf_objpfx): Remove variable.
55981         (rtld_installed_name): Likewise.
55982         (library_path): Likewise.
55983         (run_program_prefix): New variable.  Use for running globtest
55984         binary.
55985
55986 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
55987             Joseph Myers  <joseph@codesourcery.com>
55988
55989         * Makeconfig (host-built-program-cmd): New variable.
55990         * elf/Makefile (tst-stackguard1-ARGS): Use
55991         $(host-built-program-cmd).
55992         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
55993         (tst-spawn-ARGS): Likewise.
55994         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
55995
55996 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55997             Jim Blandy  <jimb@codesourcery.com>
55998
55999         * Makeconfig (run-via-rtld-prefix): New variable.
56000         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56001         (built-program-cmd): Likewise.
56002
56003 2012-10-22  Andreas Jaeger  <aj@suse.de>
56004
56005         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56006         __O_RSYNC if it exists, otherwise to O_SYNC.
56007
56008 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56009             Joseph Myers  <joseph@codesourcery.com>
56010
56011         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56012         /dev/null.
56013         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56014         from /dev/null
56015         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56016         /dev/null.
56017
56018 2012-10-22  Andreas Jaeger  <aj@suse.de>
56019
56020         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56021         Define always.
56022         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56023
56024         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56025         bits/fcntl-linux.h.
56026
56027         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56028         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56029
56030         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56031         to __O_LARGEFILE.
56032         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56033         to __O_LARGEFILE.
56034
56035 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56036             Joseph Myers  <joseph@codesourcery.com>
56037
56038         * config.make.in (NM): New variable.
56039
56040 2012-10-21  Andreas Jaeger  <aj@suse.de>
56041
56042         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56043         definitions and declarations that are provided by
56044         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56045
56046 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56047
56048         [BZ #14683]
56049         * elf/Makefile (tests-static): Add tst-leaks1-static.
56050         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56051         ($(objpfx)tst-leaks1-static): New rule.
56052         ($(objpfx)tst-leaks1-static-mem): Likewise.
56053         (tst-leaks1-static-ENV): New macro.
56054         * elf/dl-open.c (dl_open_worker): Check the main application
56055         only if SHARED is defined.
56056         * elf/tst-leaks1-static.c: New file.
56057
56058 2012-10-20  Andreas Jaeger  <aj@suse.de>
56059
56060         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56061         generic values for Linux.
56062         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56063         and declarations that are provided by <bits/fcntl-linux.h> and
56064         include <bits/fcntl-linux.h>.
56065         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56066         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56067
56068 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56069
56070         * io/fcntl.h: Move include of <bits/types.h> to the top and
56071         include it unconditionally.
56072
56073 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56074
56075         * wcsmbs/Makefile (tests-ifunc): New variable.
56076         (tests): Add $(tests-ifunc).
56077         * wcsmbs/test-wcschr-ifunc.c: New file.
56078         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56079         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56080         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56081         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56082         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56083
56084         * string/Makefile (tests-ifunc): New variable.
56085         (tests): Add $(tests-ifunc).
56086         * string/test-memccpy.c (TEST_NAME): New macro.
56087         * string/test-memchr.c (TEST_NAME): Likewise.
56088         * string/test-memcmp.c (TEST_NAME): Likewise.
56089         * string/test-memcpy.c (TEST_NAME): Likewise.
56090         * string/test-memmem.c (TEST_NAME): Likewise.
56091         * string/test-memmove.c (TEST_NAME): Likewise.
56092         * string/test-memset.c (TEST_NAME): Likewise.
56093         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56094         * string/test-stpcpy.c (TEST_NAME): Likewise.
56095         * string/test-stpncpy.c (TEST_NAME): Likewise.
56096         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56097         * string/test-strcasestr.c (TEST_NAME): Likewise.
56098         * string/test-strcat.c (TEST_NAME): Likewise.
56099         * string/test-strchr.c (TEST_NAME): Likewise.
56100         * string/test-strcmp.c(TEST_NAME): Likewise.
56101         * string/test-strcpy.c (TEST_NAME): Likewise.
56102         * string/test-strcspn.c (TEST_NAME): Likewise.
56103         * string/test-strlen.c (TEST_NAME): Likewise.
56104         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56105         * string/test-strncmp.c (TEST_NAME): Likewise.
56106         * string/test-strncpy.c (TEST_NAME): Likewise.
56107         * string/test-strnlen.c (TEST_NAME): Likewise.
56108         * string/test-strpbrk.c (TEST_NAME): Likewise.
56109         * string/test-strrchr.c (TEST_NAME): Likewise.
56110         * string/test-strspn.c (TEST_NAME): Likewise.
56111         * string/test-strstr.c (TEST_NAME): Likewise.
56112         * string/test-bcopy-ifunc.c: New file.
56113         * string/test-bzero-ifunc.c: Likewise.
56114         * string/test-memccpy-ifunc.c: Likewise.
56115         * string/test-memchr-ifunc.c: Likewise.
56116         * string/test-memcmp-ifunc.c: Likewise.
56117         * string/test-memcpy-ifunc.c: Likewise.
56118         * string/test-memmem-ifunc.c: Likewise.
56119         * string/test-memmove-ifunc.c: Likewise.
56120         * string/test-mempcpy-ifunc.c: Likewise.
56121         * string/test-memset-ifunc.c: Likewise.
56122         * string/test-rawmemchr-ifunc.c: Likewise.
56123         * string/test-stpcpy-ifunc.c: Likewise.
56124         * string/test-stpncpy-ifunc.c: Likewise.
56125         * string/test-strcasecmp-ifunc.c: Likewise.
56126         * string/test-strcasestr-ifunc.c: Likewise.
56127         * string/test-strcat-ifunc.c: Likewise.
56128         * string/test-strchr-ifunc.c: Likewise.
56129         * string/test-strchrnul-ifunc.c: Likewise.
56130         * string/test-strcmp-ifunc.c: Likewise.
56131         * string/test-strcpy-ifunc.c: Likewise.
56132         * string/test-strcspn-ifunc.c: Likewise.
56133         * string/test-strlen-ifunc.c: Likewise.
56134         * string/test-strncasecmp-ifunc.c: Likewise.
56135         * string/test-strncat-ifunc.c: Likewise.
56136         * string/test-strncmp-ifunc.c: Likewise.
56137         * string/test-strncpy-ifunc.c: Likewise.
56138         * string/test-strnlen-ifunc.c: Likewise.
56139         * string/test-strpbrk-ifunc.c: Likewise.
56140         * string/test-strrchr-ifunc.c: Likewise.
56141         * string/test-strspn-ifunc.c: Likewise.
56142         * string/test-strstr-ifunc.c: Likewise.
56143
56144         * debug/Makefile (tests-ifunc): New variable.
56145         (tests): Add $(tests-ifunc).
56146         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56147         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56148         * debug/test-stpcpy_chk-ifunc.c: New file.
56149         * debug/test-strcpy_chk-ifunc.c: Likewise.
56150
56151 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56152
56153         [BZ #13601]
56154         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56155         header is not read in.
56156
56157 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56158
56159         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56160         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56161         directly.  Pass built executable to script as
56162         $(built-program-cmd).
56163         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56164         $testprogram without using LD_LIBRARY_PATH and $ldso.
56165
56166         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56167         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56168         $(rtld-installed-name).
56169         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56170         (rtld_installed_name): Likewise.
56171         (library_path): Likewise.
56172         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56173         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56174         $(run-program-prefix) to tst-tables.sh.
56175         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56176         it to run tst-table-from and tst-table-to.
56177         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56178         Pass it to tst-table.sh.
56179         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56180         $(run-program-prefix) to tst-gettext.sh.
56181         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56182         tst-translit.sh.
56183         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56184         tst-gettext2.sh.
56185         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56186         to run tst-gettext.
56187         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56188         to run tst-gettext2.
56189         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56190         to run tst-translit.
56191         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56192         $(run-program-prefix) to tst-mtrace.sh.
56193         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56194         to run tst-mtrace.
56195         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56196         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56197         $(rtld-installed-name).
56198         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56199         (rtld_installed_name): Likewise.
56200         (run_program_prefix): New variable.  Use it to run wordexp-test.
56201
56202         * Makeconfig (ARCH): Remove all definitions.
56203         (machine): Likewise.
56204         [ARCH]: Remove conditional code.
56205         [!objdir]: Give error.
56206         [!objdir] (objpfx): Remove.
56207         [!objdir] (common-objpfx): Likewise.
56208         [!objdir] (common-objdir): Likewise.
56209         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56210         AC_CONFIG_FILES call.
56211         * configure: Regenerated.
56212
56213         [BZ #13888]
56214         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56215         or TMPDIR.
56216         (testout): Likewise.
56217
56218         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56219         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56220         $(rtld-installed-name).
56221         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56222         (rtld_installed_name): Likwise.
56223         (runit): Remove function.
56224         (run_getconf): New variable,  Use it for running getconf binary.
56225
56226 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56227
56228         [BZ #14716]
56229         * string/test-memmem.c (check_result): New function.
56230         (do_one_test): Use it.
56231         (check1): New function.
56232         (test_main): Use it.
56233
56234 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56235
56236         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56237
56238 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56239
56240         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56241         (_G_LSEEK64): Likewise.
56242         (_G_MMAP64): Likewise.
56243         (_G_FSTAT64): Likewise.
56244         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56245         (_G_LSEEK64): Likewise.
56246         (_G_MMAP64): Likewise.
56247         (_G_FSTAT64): Likewise.
56248         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56249         unconditional.  Call __mmap64 directly.
56250         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56251         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56252         __lseek64 directly.
56253         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56254         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56255         __mmap64 directly.
56256         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56257         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56258         __lseek64 directly.
56259         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56260         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56261         __lseek64 directly.
56262         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56263         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56264         __lseek64 directly.
56265         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56266         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56267         __fxstat64 directly.
56268         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56269         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56270         unconditional.
56271         (freopen64) [!_G_OPEN64]: Remove conditional code.
56272         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56273         unconditional.
56274         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56275         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56276         unconditional.
56277         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56278         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56279         unconditional.
56280         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56281         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56282         unconditional.
56283         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56284         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56285         unconditional.
56286         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56287         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56288         unconditional.
56289         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56290         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56291         unconditional.
56292         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56293
56294 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56295
56296         [BZ #12140]
56297         * manual/memory.texi (Malloc Tunable Parameters): Add note
56298         about free list pointers overwriting some perturb bytes.
56299         Wording suggested by Roland McGrath.
56300
56301 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56302
56303         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56304         (lgamma_test): Likewise.
56305         (tgamma_test): Likewise.
56306
56307 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56308
56309         [BZ #14700]
56310         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56311         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56312
56313 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56314
56315         * NEWS: Mention BZ #14716.
56316         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56317         when removing AVAILABLE1_USES_J macro.
56318
56319 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56320
56321         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56322         (__bswap_64): __uint64_t for unsigned 64-bit int.
56323
56324 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56325
56326         * include/string.h (memmem): Declare libc hidden alias.
56327         * string/memmem.c (memmem): Define libc hidden alias.
56328         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56329         __read, __close instead of open, read, close.
56330
56331 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56332
56333         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56334         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56335         global and hidden.
56336         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56337         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56338         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56339         Likewise.
56340         (__rawmemchr_sse2): Likewise.
56341         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56342         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56343         (__strchr_sse2): Likewise.
56344         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56345         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56346         (__strcasecmp_sse2): Likewise.
56347         (__strncasecmp_sse2): Likewise.
56348         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56349         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56350         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56351         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56352         (__strrchr_sse2): Likewise.
56353         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56354         ifunc-impl-list.c.
56355         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56356         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56357         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56358         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56359         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56360         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56361         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56362         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56363         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56364         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56365         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56366         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56367         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56368         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56369         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56370         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56371         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56372         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56373         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56374         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56375         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56376         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56377         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56378         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56379         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56380         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56381         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56382         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56383         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56384         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56385
56386         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56387         global and hidden.
56388         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56389         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56390         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56391         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56392         Likewise.
56393         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56394         Likewise.
56395         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56396         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56397         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56398         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56399         ifunc-impl-list.c.
56400         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56401         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56402         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56403         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56404         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56405         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56406         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56407         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56408         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56409         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56410         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56411         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56412         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56413         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56414         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56415         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56416         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56417         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56418         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56419         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56420         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56421         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56422         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56423         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56424         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56425         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56426         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56427         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56428         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56429         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56430         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56431         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56432         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56433         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56434         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56435         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56436         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56437         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56438         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56439         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56440         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56441
56442         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56443         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56444         * include/ifunc-impl-list.h: New file.
56445         * misc/ifunc-impl-list.c: Likewise.
56446         * misc/Makefile (routines): Add ifunc-impl-list.
56447         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56448         * string/test-string.h: Include <ifunc-impl-list.h>.
56449         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56450         TEST_NAME]: New variables.
56451         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56452         are defined.
56453         (test_init): Call __libc_ifunc_impl_list to initialize
56454         func_list if TEST_IFUNC and TEST_NAME are defined.
56455
56456         * string/Makefile (strop-tests): Add bcopy and bzero.
56457         * string/test-bcopy.c: New file.
56458         * string/test-bzero.c: Likewise.
56459         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56460         defined.
56461         * string/test-memset.c: Support bzero test if TEST_BZERO is
56462         defined.
56463         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56464         __libc_memmove.
56465         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56466         __libc_memset.
56467         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56468         of memset.
56469
56470 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56471
56472         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56473         * configure: Regenerated.
56474
56475         * Makeconfig (+link-static-before-libc): Don't include
56476         $(link-static-libc).
56477
56478         * libio/libio.h (_IO_pos_t): Remove.
56479
56480 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56481
56482         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56483         McGrath.
56484
56485 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56486
56487         * crypt/crypt-entry.c: Include fips-private.h.
56488         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56489         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56490         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56491         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56492
56493 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56494
56495         * crypt/crypt-private.h: Include stdbool.h.
56496         (_ufc_setup_salt_r): Return bool.
56497         * crypt/crypt-entry.c: Include errno.h.
56498         (__crypt_r): Return NULL with EINVAL for bad salt.
56499         * crypt/crypt_util.c (bad_for_salt): New.
56500         (_ufc_setup_salt_r): Check that salt is long enough and within
56501         the specified alphabet.
56502         * crypt/badsalttest.c: New file.
56503         * crypt/Makefile (tests): Add it.
56504         ($(objpfx)badsalttest): New.
56505
56506 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56507
56508         * NEWS: Add entry for BZ #14602.
56509
56510 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56511
56512         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56513         type-generic.
56514         * math/libm-test.inc: Update comment listing what functions and
56515         macros are tested.
56516         (isgreater_test): New function.
56517         (isgreaterequal_test): Likewise.
56518         (isless_test): Likewise.
56519         (islessequal_test): Likewise.
56520         (islessgreater_test): Likewise.
56521         (isunordered_test): Likewise.
56522         (main): Call the new functions.
56523
56524 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56525
56526         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56527         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56528         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56529         * sysdeps/i386/configure: Regenerated.
56530         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56531         * sysdeps/mach/configure: Regenerated.
56532         * sysdeps/mach/hurd/configure: Regenerated.
56533         * sysdeps/powerpc/configure: Regenerated.
56534         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56535         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56536         * sysdeps/s390/s390-32/configure: Regenerated.
56537         * sysdeps/s390/s390-64/configure: Regenerated.
56538         * sysdeps/sh/configure: Regenerated.
56539         * sysdeps/sparc/configure: Regenerated.
56540         * sysdeps/unix/sysv/linux/configure: Regenerated.
56541         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56542         * sysdeps/x86_64/configure: Regenerated.
56543
56544         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56545         defined.  Don't check if MAP is NULL.
56546
56547 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56548
56549         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56550         (_G_stat64): Likewise.
56551         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56552         (_G_stat64): Likewise.
56553         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56554         instead of struct _G_stat64.
56555         * libio/fileops.c (mmap_remap_check): Likewise.
56556         (decide_maybe_mmap): Likewise.
56557         (_IO_new_file_seekoff): Likewise.
56558         (_IO_file_stat): Likewise.
56559         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56560         _G_off64_t.
56561         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56562         instead of struct _G_stat64.
56563         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56564
56565 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56566
56567         [BZ #14602]
56568         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56569         Replace with ...
56570         (CHECK_EOL): New macro.
56571         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56572         CHECK_EOL.
56573         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56574         Replace with CHECK_EOL.
56575         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56576         Replace with CHECK_EOL.
56577
56578 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56579
56580         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56581         type-generic.
56582         * math/libm-test.inc: Update comment listing what functions and
56583         macros are tested.
56584         (finite_test): New function.
56585         (isinf_test): Likewise.
56586         (isnan_test): Likewise.
56587         (fpclassify_test): Test subnormal input.
56588         (isfinite_test): Likewise.
56589         (isnormal_test): Likewise.
56590         (main): Call the new functions.
56591
56592 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56593
56594         [BZ #14660]
56595         * Makerules (%.dynsym): Force C locale when running
56596         $(OBJDUMP) --dynamic-syms.
56597
56598 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56599
56600         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56601         <stdint.h>.
56602
56603 2012-10-06  David S. Miller  <davem@davemloft.net>
56604
56605         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56606         upper 32-bits of the length value in %o2 since we use branch-on-register
56607         tests which consider the entire 64-bit register.
56608
56609 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56610
56611         * string/test-strstr.c (check2): Add a test for page boundary.
56612
56613 2012-10-05  David S. Miller  <davem@davemloft.net>
56614
56615         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56616         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56617         file.
56618         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56619         sysdep_routines.
56620         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56621         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56622         and bzero when HWCAP_SPARC_CRYPTO is present.
56623
56624 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56625
56626         [BZ #14602]
56627         * string/test-strstr.c (check2): New function.
56628         (test_main): Call check2.
56629
56630         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56631         and bug-strchr1.
56632         * string/bug-strcasestr1.c (do_test): Moved to ...
56633         * string/test-strcasestr.c (check1): Here.  New function.
56634         (do_one_test): Break out result checking code into ...
56635         (check_result): This.  New function.
56636         (do_one_test): Call check_result.
56637         (test_main): Call check1.
56638         * string/bug-strchr1.c (do_test): Moved to ...
56639         * string/test-strchr.c (check1): Here.  New function.
56640         (do_one_test): Break out result checking code into ...
56641         (check_result): This.  New function.
56642         (do_one_test): Call check_result.
56643         (test_main): Call check1.
56644         * string/bug-strstr1.c (main): Moved to ...
56645         * string/test-strstr.c (check1): Here.  New function.
56646         (do_one_test): Break out result checking code into ...
56647         (check_result): This.  New function.
56648         (do_one_test): Call check_result.
56649         (test_main): Call check1.
56650         * string/bug-strcasestr1.c: Removed.
56651         * string/bug-strchr1.c: Likewise.
56652         * string/bug-strstr1.c: Likewise.
56653
56654         * elf/Makefile (dl-routines): Add hwcaps.
56655         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56656         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56657         (_dl_important_hwcaps): Moved to ...
56658         * elf/dl-hwcaps.c: Here.  New file.
56659         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56660
56661         [BZ #14557]
56662         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56663         if IS_IN_rtld isn't defined.
56664
56665         * elf/dl-support.c (_dl_sysinfo_map): New.
56666         Include "get-dynamic-info.h" and "setup-vdso.h".
56667         (_dl_non_dynamic_init): Call setup_vdso.
56668         * elf/dynamic-link.h: Don't include <assert.h>.
56669         (elf_get_dynamic_info): Moved to ...
56670         * elf/get-dynamic-info.h: Here.  New file.
56671         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56672         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56673         * elf/setup-vdso.h: Here.  New file.
56674         * elf/rtld.c: Include "setup-vdso.h".
56675         (dl_main): Call setup_vdso.
56676
56677 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56678
56679         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56680         creal in comment listing functions tested.  List finite, isinf,
56681         isnan, isless, islessequal, isgreater, isgreaterequal,
56682         islessgreater, isunordered, lgamma_r and pow10 as functions and
56683         macros not tested.  Mention which functions not tested are aliases
56684         for other functions.  Fix typo.  Note that signs of NaNs are not
56685         tested.
56686
56687         * scripts/config.guess: Update from config.git.
56688         * scripts/config.sub: Likewise.
56689
56690 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56691
56692         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56693         * misc/madvise.c (madvise): Renamed to __madvise.
56694         Make madvise a weak alias.
56695         * include/sys/mman.h: Declare __madvise.
56696         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56697         * sysdeps/unix/syscalls.list
56698         (madvise): Make __madvise the strong name, and madvise a weak alias.
56699         * sysdeps/unix/sysv/linux/syscalls.list
56700         (madvise, mmap): Remove redundant entries.
56701         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56702         * malloc/malloc.c (mtrim): Likewise.
56703         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56704
56705 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56706
56707         * sysdeps/mach/hurd/dl-cache.c: File removed.
56708         * config.h.in (USE_LDCONFIG): New #undef.
56709         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56710         * configure: Regenerated.
56711         * elf/Makefile (dl-routines): Add dl-cache only under
56712         [$(use-ldconfig) = yes].
56713         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56714         cache on [USE_LDCONFIG].
56715         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56716         [USE_LDCONFIG].
56717         * elf/rtld.c (dl_main): Likewise.
56718
56719 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56720
56721         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56722         _SC_LEVEL4_CACHE_LINESIZE.
56723
56724 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56725
56726         * sysdeps/unix/bsd/confstr.h: File removed.
56727
56728 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56729
56730         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56731         sys/sdt-config.h.
56732
56733 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56734
56735         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56736         Make 'mapoff' field ElfW(Off) rather than off_t.
56737
56738 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56739
56740         * nscd/Makefile: Remove nscd-cflags and all its users.
56741         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56742         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56743
56744         [BZ #10631]
56745         * malloc.c (malloc_printerr): Clarify error message.
56746
56747 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56748
56749         [BZ #14648]
56750         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56751         Set bit_FMA_Usable if FMA is supported.
56752         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56753         macro.
56754         (bit_FMA4_Usable): Updated.
56755         (index_FMA_Usable): New macro.
56756         (CPUID_FMA): Likewise.
56757         (HAS_FMA): Defined with bit_FMA_Usable.
56758
56759 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56760
56761         * bits/types.h (__swblk_t): Type removed.
56762         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56763         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56765         (__SWBLK_T_TYPE): Likewise.
56766         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56767         (__SWBLK_T_TYPE): Likewise.
56768         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56769         (__SWBLK_T_TYPE): Likewise.
56770         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56771         (__SWBLK_T_TYPE): Likewise.
56772
56773 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56774             Honza Horak <hhorak@redhat.com>
56775
56776         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56777         (xdr_mapname): Use YPMAXMAP as maxsize.
56778         (xdr_peername): Use YPMAXPEER as maxsize.
56779         (xdr_keydat): Use YPAXRECORD as maxsize.
56780         (xdr_valdat): Use YPMAXRECORD as maxsize.
56781
56782 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56783
56784         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56785
56786         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56787         * csu/init-first.c: ... here.
56788         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56789         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56790         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56791         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56792         * sysdeps/i386/init-first.c: File removed.
56793         * sysdeps/sh/init-first.c: File removed.
56794
56795 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56796
56797         [BZ #14645]
56798         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56799         if x * y might underflow to zero and z is zero.
56800         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56801         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56802         * math/libm-test.inc (min_subnorm_value): New variable.
56803         (fma_test): Add more tests.
56804         (fma_test_towardzero): Likewise.
56805         (fma_test_downward): Likewise.
56806         (fma_test_upward): Likewise.
56807         (initialize): Set min_subnorm_value.
56808
56809 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56810
56811         [BZ #14638]
56812         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56813         0 + 0.
56814         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56815         mode for addition resulting in exact zero.
56816         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56817         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56818         exact 0 + 0.
56819         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56820         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56821         * math/libm-test.inc (fma_test): Add more tests.
56822         (fma_test_towardzero): New function.
56823         (fma_test_downward): Likewise.
56824         (fma_test_upward): Likewise.
56825         (main): Call the new functions.
56826
56827 2012-09-28  David S. Miller  <davem@davemloft.net>
56828
56829         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56830
56831 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56832
56833         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56834         instead of SIGALRM.
56835
56836         * sysdeps/gnu/_G_config.h: Moved to ...
56837         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56838         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56839         * sysdeps/generic/_G_config.h: ... here.
56840
56841         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56842
56843         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56844
56845         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56846         Conditionalize target on [libnss_test1.so-version].
56847
56848         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
56849
56850         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
56851         (elfobjdir): Move out of conditionals.
56852
56853         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
56854         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
56855         (__nss_lookup_function): Conditionalize label remove_from_tree on
56856         [!DO_STATIC_NSS || SHARED], matching its only use.
56857
56858 2012-09-28  David S. Miller  <davem@davemloft.net>
56859
56860         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
56861         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
56862         file.
56863         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56864         sysdep_routines.
56865         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56866         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
56867         when HWCAP_SPARC_CRYPTO is present.
56868
56869 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56870
56871         * io/tst-mknodat.c: Create a FIFO instead of a socket.
56872
56873 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
56874
56875         [BZ #6530]
56876         * stdio-common/vfprintf.c (process_string_arg): Revert
56877         2000-07-22 change.
56878
56879 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
56880
56881         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
56882         for testcase.
56883         * stdio-common/tst-sprintf.c: Include <locale.h>
56884         (main): Test sprintf's handling of incomplete multibyte
56885         characters.
56886
56887 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
56888
56889         * elf/dl-runtime.c (VERSYMIDX): Removed.
56890         * elf/dl-version.c (VERSYMIDX): Likewise.
56891         * elf/do-rel.h (VERSYMIDX): Likewise.
56892         (VALIDX): Likewise.
56893         * elf/dynamic-link.h (VERSYMIDX): Likewise.
56894         * elf/rtld.c (VALIDX): Likewise.
56895         (ADDRIDX): Likewise.
56896         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
56897         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
56898         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
56899         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
56900         (VALIDX): Likewise.
56901         (ADDRIDX): Likewise.
56902
56903 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56904
56905         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
56906
56907 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
56908
56909         [BZ #11438]
56910         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
56911         to global scope.
56912         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
56913         addresses are in the same scope as 192.0.2/24.
56914         * posix/gai.conf: Document new scope table defaults.
56915
56916 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56917
56918         [BZ #5298]
56919         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
56920         for ftell.  Compute offsets from write pointers instead.
56921         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56922
56923 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56924
56925         [BZ #14543]
56926         * libio/Makefile (tests): New test case tst-fseek.
56927         * libio/tst-fseek.c: New test case to verify that fseek/ftell
56928         combination works in wide mode.
56929         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
56930         state when the external buffer state changes.
56931
56932 2012-09-27  David S. Miller  <davem@davemloft.net>
56933
56934         [BZ #14376]
56935         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
56936         pass reloc->r_addend in as the 'high' argument to
56937         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
56938
56939         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56940
56941 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56942
56943         * rt/tst-aio2.c: Include <pthread.h>.
56944         * rt/tst-aio3.c: Likewise.
56945
56946 2012-09-27  Steve Ellcey  <sellcey@mips.com>
56947
56948         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
56949
56950 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
56951
56952         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
56953         contents on [SHARED].
56954
56955 2012-09-26  Marek Polacek  <polacek@redhat.com>
56956
56957         [BZ #14530]
56958         [BZ #13741]
56959         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
56960         for C++ and GCC <4.3 as well as for non GCC compilers.
56961
56962 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
56963
56964         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
56965
56966 2012-09-25  Roland McGrath  <roland@hack.frob.com>
56967
56968         * Makefile.in (all, install): Declare with .PHONY.
56969         Reported by Michael Hope <michael.hope@linaro.org>.
56970
56971 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56972
56973         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
56974         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
56975         system header.
56976         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
56977         Likewise.
56978         (sydep_routines): Add the new and the internal functions.
56979         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
56980         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
56981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
56982         (GLIBC_2.17): Add the new function.
56983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
56984         (GLIBC_2.17): Likewise.
56985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
56986         (GLIBC_2.17): Likewise.
56987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
56988         (GLIBC_2.17): Likewise.
56989         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
56990
56991 2012-09-25  Alan Modra  <amodra@gmail.com>
56992
56993         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
56994         Add release barrier before setting once_control to say
56995         initialisation is done.  Add hints on lwarx.  Use macro in
56996         place of isync.
56997         (clear_once_control): Add release barrier.
56998
56999 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57000
57001         [BZ #13629]
57002         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57003         specially.
57004         * math/s_clog10.c (__clog10): Likewise.
57005         * math/s_clog10f.c (__clog10f): Likewise.
57006         * math/s_clog10l.c (__clog10l): Likewise.
57007         * math/s_clogf.c (__clogf): Likewise.
57008         * math/s_clogl.c (__clogl): Likewise.
57009         * math/Makefile (libm-calls): Add x2y2m1.
57010         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57011         (__x2y2m1): Likewise.
57012         (__x2y2m1l): Likewise.
57013         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57014         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57015         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57016         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57017         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57018         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57019         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57020         * sysdeps/i386/fpu/libm-test-ulps: Update.
57021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57022
57023         [BZ #14621]
57024         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57025         int as type of variable DEPTH.
57026         (glob): Use size_t instead of int as type of variables NEWCOUNT
57027         and OLD_PATHC.
57028
57029 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57030
57031         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57032         Add s_sincosf-sse2.
57033         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57034         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57035         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57036         macros for using routine as __sincosf_ia32.
57037         Use macro for function declaration and weak_alias.
57038         * sysdeps/i386/fpu/libm-test-ulps: Update.
57039
57040         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57041         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57042
57043         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57044         subnormal argument.
57045         * math/s_cexpf.c (__cexpf): Likewise.
57046         * math/s_csinf.c (__csinf): Likewise.
57047         * math/s_csinhf.c (__csinhf): Likewise.
57048         * math/s_ctanf.c (__ctanf): Likewise.
57049         * math/s_ctanhf.c (__ctanhf): Likewise.
57050         * math/s_ccosh.c (__ccoshf): Likewise.
57051         * math/s_cexp.c (__cexpl): Likewise.
57052         * math/s_csin.c (__csin): Likewise.
57053         * math/s_csinh.c (__csinh): Likewise.
57054         * math/s_ctan.c (__ctan): Likewise.
57055         * math/s_ctanh.c (ctanh): Likewise.
57056         * math/s_ccoshl.c (__ccoshl): Likewise.
57057         * math/s_cexpl.c (__cexpl): Likewise.
57058         * math/s_csinl.c (__csinl): Likewise.
57059         * math/s_csinhl.c (__csinhl): Likewise.
57060         * math/s_ctanl.c (__ctanl): Likewise.
57061         * math/s_ctanhl.c (__ctanhl): Likewise.
57062
57063 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57064
57065         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57066         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57067         (_IO_off_t): Define to __off_t, not _G_off_t.
57068         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57069         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57070         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57071         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57072         type of __dummy and __dummy2 fields.
57073         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57074         (_G_ssize_t): Likewise.
57075         (_G_off_t): Likewise.
57076         (_G_pid_t): Likewise.
57077         (_G_uid_t): Likewise.
57078         (_G_wchar_t): Likewise.
57079         (_G_wint_t): Likewise.
57080         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57081         (_G_ssize_t): Likewise.
57082         (_G_off_t): Likewise.
57083         (_G_pid_t): Likewise.
57084         (_G_uid_t): Likewise.
57085         (_G_wchar_t): Likewise.
57086         (_G_wint_t): Likewise.
57087         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57088         (_G_ssize_t): Likewise.
57089         (_G_off_t): Likewise.
57090         (_G_pid_t): Likewise.
57091         (_G_uid_t): Likewise.
57092         (_G_wchar_t): Likewise.
57093         (_G_wint_t): Likewise.
57094
57095 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57096
57097         * malloc/arena.c: Include malloc-sysdep.h.
57098         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57099         is sufficient to shrink the heap or an unmap is needed.
57100         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57101         new function check_may_shrink_heap.
57102         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57103         new function check_may_shrink_heap.
57104
57105 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57106
57107         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57108         comments.
57109
57110 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57111
57112         * catgets/test-gencat.sh: Add "set -e".
57113         * elf/tst-pathopt.sh: Likewise.
57114         * grp/tst_fgetgrent.sh: Likewise.
57115         * iconvdata/run-iconv-test.sh: Likewise.
57116         * intl/tst-gettext.sh: Likewise.
57117         * intl/tst-gettext2.sh: Likewise.
57118         * intl/tst-gettext4.sh: Likewise.
57119         * intl/tst-gettext6.sh: Likewise.
57120         * intl/tst-translit.sh: Likewise.
57121         * io/ftwtest-sh: Likewise.
57122         * libio/test-freopen.sh: Likewise.
57123         * malloc/tst-mtrace.sh: Likewise.
57124         * posix/globtest.sh: Likewise.
57125         * posix/tst-getconf.sh: Likewise.
57126         * posix/wordexp-tst.sh: Likewise.
57127         * stdio-common/tst-printf.sh: Likewise.
57128         * stdio-common/tst-unbputc.sh: Likewise.
57129         * stdlib/tst-fmtmsg.sh: Likewise.
57130         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57131         * catgets/Makefile: Do not specify -e option when running
57132         testsuite shell scripts.
57133         * elf/Makefile: Likewise.
57134         * grp/Makefile: Likewise.
57135         * iconvdata/Makefile: Likewise.
57136         * intl/Makefile: Likewise.
57137         * io/Makefile: Likewise.
57138         * libio/Makefile: Likewise.
57139         * malloc/Makefile: Likewise.
57140         * posix/Makefile: Likewise.
57141         * stdio-common/Makefile: Likewise.
57142         * stdlib/Makefile: Likewise.
57143         * sysdeps/x86_64/Makefile: Likewise.
57144
57145         * io/ftwtest-sh: Add copyright header.
57146         * posix/globtest.sh: Likewise.
57147         * posix/tst-getconf.sh: Likewise.
57148         * posix/wordexp-tst.sh: Likewise.
57149         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57150
57151 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57152
57153         [BZ #13679]
57154         * Makeconfig (+link): Defined as $(+link-static) if
57155         $(build-shared) isn't yes.
57156         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57157         isn't yes.
57158         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57159
57160         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57161
57162         [BZ #14562]
57163         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57164         new chunk size with MALLOC_ALIGN_MASK.
57165
57166 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57167
57168         [BZ #5044]
57169         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57170         <rounding-mode.h>.
57171         (__printf_fphex): Determine rounding using get_rounding_mode and
57172         round_away.
57173         * stdio-common/tst-printf-round.c (struct hex_test): New
57174         structure.
57175         (hex_tests): New variable.
57176         (test_hex_in_one_mode): New function.
57177         (do_test): Also run tests for hex float output.
57178
57179 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57180
57181         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57182         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57183         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57184         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57185         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57186         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57187         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57188         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57189
57190 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57191
57192         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57193         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57194         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57195         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57196
57197 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57198
57199         [BZ #14579]
57200         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57201         mode only.
57202         * elf/tst-rtld-load-self.sh: New test.
57203         * elf/Makefile: Run it.
57204
57205 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57206
57207         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57208         (tst-writev-ENV): Remove.
57209         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57210
57211 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57212
57213         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57214
57215 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57216
57217         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57218         unconditional.
57219         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57220         Likewise.
57221         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57222         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57223         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57224         Likewise.
57225
57226 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57227
57228         [BZ #14587]
57229         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57230         * config.make.in (have-cpp-asm-debuginfo): Removed.
57231         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57232         * configure: Regenerated.
57233
57234 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57235
57236         [BZ #5044]
57237         * stdio-common/printf_fp.c: Include <stdbool.h> and
57238         <rounding-mode.h>.
57239         (___printf_fp): Determine rounding using get_rounding_mode and
57240         round_away.
57241         * stdio-common/tst-printf-round.c: New file.
57242         * stdio-common/Makefile (tests): Add tst-printf-round.
57243         (link-libm): New variable.
57244         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57245
57246 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57247
57248         [BZ #14576]
57249         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57250         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57251         Likewise.
57252         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57253         Likewise.
57254
57255 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57256
57257         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57258         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57259         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57260         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57261
57262 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57263
57264         [BZ #14518]
57265         * include/rounding-mode.h: New file.
57266         * sysdeps/generic/get-rounding-mode.h: Likewise.
57267         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57268         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57269         (MAX_VALUE): New macro.
57270         (MIN_VALUE): Likewise.
57271         (overflow_value): New function.
57272         (underflow_value): Likewise.
57273         (round_and_return): Use overflow_value and underflow_value to
57274         determine return values in overflow and underflow cases.  Use
57275         round_away to determine rounding depending on rounding mode.
57276         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57277         determine return values in overflow and underflow cases.
57278         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57279         (struct test_results): New structure.
57280         (struct test): Use struct test_results to store expected results
57281         for all rounding modes.
57282         (TEST): Include expected results for all rounding modes.
57283         (test_in_one_mode): New function.
57284         (do_test): Use test_in_one_mode to compute and check results.
57285         Check results for all rounding modes.
57286         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57287         $(link-libm).
57288
57289 2012-12-09  Allan McRae  <allan@archlinux.org>
57290
57291         * sysdeps/i386/fpu/libm-test-ulps: Update
57292
57293 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57294
57295         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57296         (_G_int32_t): Likewise.
57297         (_G_uint16_t): Likewise.
57298         (_G_uint32_t): Likewise.
57299         (_G_HAVE_BOOL): Likewise.
57300         (_G_HAVE_ATEXIT): Likewise.
57301         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57302         (_G_HAVE_IO_FILE_OPEN): Likewise.
57303         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57304         (_G_int32_t): Likewise.
57305         (_G_uint16_t): Likewise.
57306         (_G_uint32_t): Likewise.
57307         (_G_HAVE_BOOL): Likewise.
57308         (_G_HAVE_ATEXIT): Likewise.
57309         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57310         (_G_HAVE_IO_FILE_OPEN): Likewise.
57311         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57312         (_G_int32_t): Likewise.
57313         (_G_uint16_t): Likewise.
57314         (_G_uint32_t): Likewise.
57315         (_G_HAVE_BOOL): Likewise.
57316         (_G_HAVE_ATEXIT): Likewise.
57317         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57318         (_G_HAVE_IO_FILE_OPEN): Likewise.
57319
57320 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57321
57322         * csu/libc-tls.c: Update copyright years.
57323
57324 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57325
57326         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57327         [!_G_USING_THUNKS]: Remove conditional code.
57328         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57329         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57330
57331         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57332         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57333         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57334         (_G_VTABLE_LABEL_PREFIX): Likewise.
57335         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57336         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57337         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57338         (_G_VTABLE_LABEL_PREFIX): Likewise.
57339         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57340         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57341         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57342         (_G_VTABLE_LABEL_PREFIX): Likewise.
57343         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57344
57345 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57346
57347         * libio/Makefile: Include ../Makeconfig before tests.
57348         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57349         only if $(build-shared) is yes.
57350
57351         * iconv/gconv_db.c: Update copyright years.
57352
57353 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57354
57355         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57356         unwind info if defined PIC. Fix special cases description.
57357         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57358
57359         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57360         DP_HI_MASK entry.
57361         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57362
57363 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57364
57365         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57366
57367         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57368         is NULL.
57369
57370         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57371         (LDLIBS-tst-chk4): This.
57372         (LDFLAGS-tst-chk5): Renamed to ...
57373         (LDLIBS-tst-chk5): This.
57374         (LDFLAGS-tst-chk6): Renamed to ...
57375         (LDLIBS-tst-chk6): This.
57376         (LDFLAGS-tst-lfschk4): Renamed to ...
57377         (LDLIBS-tst-lfschk4): This.
57378         (LDFLAGS-tst-lfschk5): Renamed to ...
57379         (LDLIBS-tst-lfschk5): This.
57380         (LDFLAGS-tst-lfschk6): Renamed to ...
57381         (LDLIBS-tst-lfschk6): This.
57382
57383         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57384         on $(common-objpfx)soversions.mk.
57385
57386 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57387
57388         [BZ #10014]
57389         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57390         example host name.
57391
57392 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57393
57394         * malloc/arena.c (arena_get_retry): New function that gets
57395         another arena for the caller to try its request on.
57396         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57397         current arena cannot fulfill the request.
57398         (__libc_memalign): Likewise.
57399         (__libc_memalign): Likewise.
57400         (__libc_pvalloc): Likewise.
57401         (__libc_calloc): Likewise.
57402
57403 2012-09-05  John Tobey  <john.tobey@gmail.com>
57404
57405         [BZ #13542]
57406         * manual/arith.texi (Operations on Complex): Fix description
57407         of carg branch cut.
57408
57409 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57410
57411         [BZ #10014]
57412         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57413         host name.
57414
57415         [BZ #10038]
57416         * manual/memory.texi (Memory): Make order of menu items match
57417         order of sections.
57418
57419 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57420
57421         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57422         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57423         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57424
57425 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57426
57427         * csu/libc-tls.c (static_dtv): Renamed to ...
57428         (_dl_static_dtv): This.  Make it global.
57429         (_dl_initial_dtv): Removed.
57430         (__libc_setup_tls): Updated.
57431         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57432         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57433         DL_INITIAL_DTV.
57434
57435 2012-09-06  Petr Machata  <pmachata@redhat.com>
57436
57437         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57438         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57439         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57440         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57441
57442 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57443
57444         [BZ #14545]
57445         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57446         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57447         freeing dtv[-1].
57448
57449 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57450
57451         [BZ #14544]
57452         * Makeconfig (link-static-before-libc): Replace $(+prector)
57453         with $(+prectorT).
57454         (link-static-after-libc): Replace $(+postctor) with
57455         $(+postctorT).
57456         (link-bounded): Replace $(+prector)/$(+postctor) with
57457         $(+prectorT)/$(+postctorT).
57458         (+prectorT): New macro.
57459         (+postctorT): Likewise.
57460
57461 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57462
57463         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57464         (round_str): Handle values above the maximum for IBM long double
57465         as inexact.
57466         * stdlib/tst-strtod-round.c (tests): Regenerated.
57467
57468 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57469
57470         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57471         assembler flag.
57472         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57473         zarch_nohighgprs around the zarch optimized routines.
57474         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57475         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57476         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57477         for zarch.
57478
57479 2012-09-05  David S. Miller  <davem@davemloft.net>
57480
57481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57482
57483         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57484         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57485         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57486         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57487         entries.
57488
57489 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57490
57491         * malloc/arena.c: Fold copyright years.
57492         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57493
57494 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57495
57496         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57497
57498 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57499
57500         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57501
57502 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57503
57504         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57505         change internal state upon failure.
57506
57507 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57508
57509         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57510         * malloc/memusage.c (mmap): Likewise.
57511         (mmap64, mremap): Likewise.  Adjust name in comment.
57512
57513 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57514
57515         * libio/fileops.c: Fix typos in comments.
57516         * libio/oldfileops.c: Likewise.
57517         * libio/wfileops.c: Likewise.
57518
57519 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57520
57521         [BZ #1349]
57522         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57523         (tst-malloc-usable-ENV): Set environment for test case.
57524         * malloc/hooks.c (malloc_check_get_size): New function to get
57525         requested size.
57526         * malloc/malloc.c (musable): Use malloc_check_get_size.
57527         * malloc/tst-malloc-usable.c: New test case.
57528
57529 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57530
57531         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57532
57533 2012-09-05  Allan McRae  <allan@archlinux.org>
57534
57535         [BZ #13966]
57536         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57537         determine header location.
57538         * configure: Regenerated.
57539
57540 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57541
57542         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57543         float format.
57544         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57545         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57546         format.
57547         (test): Regenerate.
57548
57549 2012-09-04  David S. Miller  <davem@davemloft.net>
57550
57551         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57552         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57553         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57554
57555 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57556
57557         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57558         failures.
57559
57560         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57561
57562 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57563
57564         [BZ #9914]
57565         * libio/iogetdelim.c: Include <limits.h>.
57566         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57567         + len + 1 would overflow.
57568
57569 2012-09-03  Andreas Jaeger  <aj@suse.de>
57570
57571         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57572         * sysdeps/i386/fpu/libm-test-ulps: Update.
57573
57574 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57575
57576         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57577         Add s_sinf-sse2, s_conf-sse2.
57578
57579         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57580         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57581         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57582         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57583
57584         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57585         for using routine as __sinf_ia32.
57586         Use macro for function declaration and weak_alias.
57587         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57588         for using routine as __cosf_ia32.
57589         Use macro for function declaration and weak_alias.
57590
57591         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57592         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57593
57594         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57595         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57596         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57597
57598         * math/libm-test.inc (cos_test): Add more test cases.
57599         (sin_test): Likewise.
57600         (sincos_test): Likewise.
57601
57602 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57603
57604         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57605         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57606         hidden.
57607         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57608
57609 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57610
57611         [BZ #14538]
57612         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57613         first element of the GOT.
57614         (elf_machine_load_address): Return the difference between
57615         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57616
57617 2012-09-01  Allan McRae  <allan@archlinux.org>
57618
57619         [BZ #13412]
57620         * configure.in (AWK): Require gawk version 3.0 or later.
57621         * configure: Regenerated.
57622
57623 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57624
57625         * sysdeps/unix/sysv/linux/kernel-features.h
57626         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57627         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57628         [__NR_clock_getres]: Make code unconditional.
57629         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57630         (clock_getcpuclockid): Remove code left unreachable by removal of
57631         conditionals.
57632         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57633         code unconditional.
57634         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57635         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57636         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57637         Make code unconditional.
57638         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57639         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57640         * sysdeps/unix/sysv/linux/clock_settime.c
57641         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57642         conditional code.
57643         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57644         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57645
57646 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57647
57648         [BZ #14476]
57649         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57650         scripts/test-installation.pl.
57651
57652         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57653         and $ld_so_version if it is set.
57654
57655 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57656
57657         [BZ #14516]
57658         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57659         failure if reading from procfs failed.
57660         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57661
57662 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57663
57664         * sysdeps/unix/sysv/linux/kernel-features.h
57665         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57666         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57667         Remove conditional code.
57668         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57669         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57670         Remove conditional code.
57671         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57672         * sysdeps/unix/sysv/linux/i386/fxstat.c
57673         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57674         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57675         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57676         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57677         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57678         * sysdeps/unix/sysv/linux/i386/lxstat.c
57679         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57680         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57681         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57682         Remove conditional code.
57683         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57684         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57685         Remove conditional code.
57686         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57687         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57688         <kernel-features.h>.
57689         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57690         Remove.
57691         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57692         Remove conditional code.
57693         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57694         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57695         Remove conditional.
57696
57697 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57698
57699         [BZ #5400]
57700         * NEWS: Add fixed bug number.
57701
57702 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57703
57704         [BZ #14519]
57705         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57706         underflowing exponent in case of negative sign.
57707         * stdlib/tst-strtod-round-data: Add more tests.
57708         * stdlib/tst-strtod-round.c (tests): Regenerated.
57709
57710         [BZ #3479]
57711         * stdlib/strtod_l.c (NDIG): Remove.
57712         (HEXNDIG): Likewise.
57713         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57714         smallest representable value.
57715         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57716         lie within an exact representation of 1/2 ulp of the result.
57717         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57718         unconditionally.
57719         (TENS_P9_IDX): Define unconditionally.
57720         (TENS_P9_SIZE): Likewise.
57721         (TENS_P10_IDX): Likewise.
57722         (TENS_P10_SIZE): Likewise.
57723         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57724         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57725         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57726         entries for 10^2^13 and 10^2^14.
57727         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57728         (TENS_P13_IDX): Define.
57729         (TENS_P13_SIZE): Likewise.
57730         (TENS_P14_IDX): Likewise.
57731         (TENS_P14_SIZE): Likewise.
57732         (_fpioconst_pow10): Change array size to
57733         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57734         unconditional.
57735         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57736         1024]: Add entries for 10^2^13 and 10^2^14.
57737         [LAST_POW10 > _LAST_POW10]: Remove #error.
57738         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57739         (_fpioconst_pow10): Change array size to
57740         FPIOCONST_POW10_ARRAY_SIZE.
57741         * stdlib/gen-fpioconst.c: New file.
57742         * stdlib/gen-tst-strtod-round.c: Likewise.
57743         * stdlib/tst-strtod-round-data: Likewise.
57744         * stdlib/tst-strtod-round.c: Likewise.
57745         * stdlib/Makefile (tests): Add tst-strtod-round.
57746
57747         [BZ #14459]
57748         * stdlib/strtod_l.c: Include <stdint.h>.
57749         (NDEBUG): Do not define.
57750         (round_and_return): Change EXPONENT parameter to type intmax_t.
57751         Rearrange calculations to avoid internal overflow possibilities.
57752         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57753         Rearrange calculations to avoid internal overflow possibilities.
57754         Assert that number fits inside MPNSIZE limbs.
57755         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57756         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57757         calculations and add assertions to avoid internal overflow
57758         possibilities.  Add casts to avoid signed/unsigned operations.
57759         * stdlib/tst-strtod-overflow.c: New file.
57760         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57761
57762 2012-08-25  Marek Polacek  <polacek@redhat.com>
57763
57764         * time/time.h: Fix some typos in comments.
57765
57766 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57767
57768         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57769         * posix/tst-rfc3484-2.c: Likewise.
57770         * posix/tst-rfc3484-3.c: Likewise.
57771
57772 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57773
57774         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57775         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57776
57777 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57778
57779         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57780         #include of fxstatat64.c.
57781
57782 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57783
57784         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57785         * shadow/getspent_r.c: Likewise.
57786         * shadow/getspnam.c: Likewise.
57787         * shadow/getspnam_r.c: Likewise.
57788         * gshadow/getsgent.c: Likewise.
57789         * gshadow/getsgent_r.c: Likewise.
57790         * gshadow/getsgnam.c: Likewise.
57791         * gshadow/getsgnam_r.c: Likewise.
57792         * inet/getnetbyad.c: Likewise.
57793         * inet/getnetbyad_r.c: Likewise.
57794         * inet/getnetbynm.c: Likewise.
57795         * inet/getnetbynm_r.c: Likewise.
57796         * inet/getnetent.c: Likewise.
57797         * inet/getnetent_r.c: Likewise.
57798         * inet/getproto.c: Likewise.
57799         * inet/getproto_r.c: Likewise.
57800         * inet/getprtent.c: Likewise.
57801         * inet/getprtent_r.c: Likewise.
57802         * inet/getprtname.c: Likewise.
57803         * inet/getprtname_r.c: Likewise.
57804         * inet/getrpcbyname.c: Likewise.
57805         * inet/getrpcbyname_r.c: Likewise.
57806         * inet/getrpcbynumber.c: Likewise.
57807         * inet/getrpcbynumber_r.c: Likewise.
57808         * inet/getrpcent.c: Likewise.
57809         * inet/getrpcent_r.c: Likewise.
57810         * inet/getaliasent.c: Likewise.
57811         * inet/getaliasent_r.c: Likewise.
57812         * inet/getaliasname.c: Likewise.
57813         * inet/getaliasname_r.c: Likewise.
57814         * nscd/getgrgid_r.c: Likewise.
57815         * nscd/getgrnam_r.c: Likewise.
57816         * nscd/gethstbyad_r.c: Likewise.
57817         * nscd/gethstbynm3_r.c: Likewise.
57818         * nscd/getpwnam_r.c: Likewise.
57819         * nscd/getpwuid_r.c: Likewise.
57820         * nscd/getsrvbynm_r.c: Likewise.
57821         * nscd/getsrvbypt_r.c: Likewise.
57822         * nscd/gai.c: Likewise.
57823
57824         * configure.in (build_nscd): New substituted variable, set
57825         by --disable-build-nscd and defaults to $use_nscd.
57826         * configure: Regenerated.
57827         * config.make.in (build-nscd): New substituted variable.
57828         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57829         Change conditional to require [$(build-nscd) = yes] as well.
57830         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57831
57832         [BZ# 13696]
57833         * configure.in (use_nscd): New substituted variable, set by
57834         --disable-nscd.  If enabled, define USE_NSCD.
57835         * configure: Regenerated.
57836         * config.h.in: Add USE_NSCD.
57837         * config.make.in (use-nscd): New substituted variable.
57838         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57839         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57840         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57841         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57842         (CFLAGS-getgrnam_r.c): Likewise.
57843         (CFLAGS-initgroups.c): Likewise.
57844         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57845         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57846         Variables removed.
57847         * inet/getnetgrent_r.c
57848         (nscd_setnetgrent): New function, broken out of ...
57849         (setnetgrent): ... here.  Call it.
57850         (innetgr): Conditionalize nscd bits on [USE_NSCD].
57851         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
57852         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
57853         * nscd/Makefile (routines, aux): Move definitions after include of
57854         Makeconfig.  Conditionalize on [$(use-nscd) != no].
57855         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
57856         Conditionalize on [USE_NSCD].
57857         (is_nscd, nscd_init_cb): Likewise.
57858         (nss_load_library): Conditionalize init callback on [USE_NSCD].
57859         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
57860         * nss/nss_db/db-init.c: Likewise.
57861         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
57862         [USE_NSCD].
57863         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
57864         (make_request): Use it.
57865         (cache_valid_p): New function.
57866         (__check_pf): Use it.
57867         * NEWS: Add item for --disable-nscd.
57868
57869 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
57870
57871         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
57872         to support sed >= 4.2.1-20-ga9bf076.
57873         * configure: Regenerated.
57874
57875 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57876
57877         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
57878         Conditionalize whole body on [IREL].
57879
57880 2012-08-22  Jeff Law <law@redhat.com>
57881
57882         [BZ #14505]
57883         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
57884         if the family is PF_UNSPEC.
57885
57886 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
57887
57888         * Makerules (lib-version): Rename from V.
57889         (install-lib-nosubdir): Change V to lib-version.
57890
57891 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
57892
57893         [BZ #14252]
57894         * powerpc32/power6/wcschr.c: New file.
57895         * powerpc32/power6/wcscpy.c: New file.
57896         * powerpc32/power6/wcsrchr.c: New file.
57897         * powerpc64/power6/wcschr.c: New file.
57898         * powerpc64/power6/wcscpy.c: New file.
57899         * powerpc64/power6/wcsrchr.c: New file.
57900
57901 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57902
57903         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
57904         (two_way_short_needle): Use it.
57905         * string/strstr.c (AVAILABLE1_USES_J): Define.
57906         * string/strcasestr.c: Likewise.
57907
57908         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
57909         array references.
57910         * string/strcasestr.c (TOLOWER): Make side-effect safe.
57911
57912         [BZ #11607]
57913         * NEWS: Add an entry.
57914         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
57915         define their defaults.
57916         (two_way_short_needle): Detect end-of-string on-the-fly.
57917         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
57918         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
57919         * string/bug-strcasestr1.c: New test.
57920         * string/Makefile: Run it.
57921
57922 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57923
57924         [BZ #11607]
57925         * string/str-two-way.h (two_way_short_needle): Optimize matching of
57926         the first character.
57927
57928 2012-08-21  Roland McGrath  <roland@hack.frob.com>
57929
57930         * csu/elf-init.c (__libc_csu_irel): Function removed.
57931         * csu/libc-start.c (apply_irel): New function.
57932         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
57933
57934 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
57935
57936         * sysdeps/unix/sysv/linux/kernel-features.h
57937         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
57938         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57939         <kernel-features.h>.
57940         [__NR_fadvise64_64]: Make code unconditional.
57941         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
57942         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57943         !__NR_fadvise64_64)]: Likewise.
57944         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57945         !__NR_fadvise64_64))]: Likewise.
57946         [__NR_fadvise64]: Make code unconditional.
57947         [!__NR_fadvise64]: Remove conditional code.
57948         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
57949         <kernel-features.h>.
57950         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57951         unconditional.
57952         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57953         conditional code.
57954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
57955         not include <kernel-features.h>.
57956         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57957         unconditional.
57958         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57959         conditional code.
57960         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
57961         include <kernel-features.h>.
57962         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57963         unconditional.
57964         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57965         conditional code.
57966
57967 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
57968
57969         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
57970         slight instruction rearrangements per scrollpipe analysis.
57971         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
57972
57973 2012-08-20  Roland McGrath  <roland@hack.frob.com>
57974
57975         * manual/syslog.texi (syslog; vsyslog, closelog):
57976         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
57977         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
57978
57979         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
57980         DSOCAPS to match condition on defining it.
57981
57982 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
57983
57984         * sysdeps/unix/sysv/linux/kernel-features.h
57985         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
57986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
57987         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57988         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
57990         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57991         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
57993         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57994         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57995
57996         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
57997         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
57998
57999         * sysdeps/unix/sysv/linux/kernel-features.h
58000         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58001         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58002         unconditional.
58003         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58004         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58005         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58006         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58007         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58008         Make code unconditional.
58009         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58010         (__mmap64) [!__NR_mmap2]: Likewise.
58011         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58012         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58013         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58014         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58015         [__NR_mmap2]: Make code unconditional.
58016         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58017         (__mmap64) [!__NR_mmap2]: Likewise.
58018
58019 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58020
58021         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58022
58023 2012-08-18  Andreas Jaeger  <aj@suse.de>
58024
58025         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58026
58027 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58028
58029         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58030         * include/unistd.h (__have_sock_cloexec): Likewise.
58031         (__have_pipe2): Likewise.
58032         (__have_dup3): Likewise.
58033
58034 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58035
58036         [BZ #9685]
58037         * include/unistd.h (__have_pipe2): Change define into an extern int.
58038         (__have_dup3): Likewise.
58039         * socket/have_sock_cloexec.c: Include fcntl.h.
58040         (__have_pipe2): New variable.
58041         (__have_dup3): Likewise.
58042
58043 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58044
58045         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58046
58047 2012-08-17  Marek Polacek  <polacek@redhat.com>
58048
58049         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58050         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58051
58052 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58053
58054         * configure.in: Add AC_SUBST for sysheaders.
58055         * configure: Regenerated.
58056         * config.make.in (sysheaders): New substituted variable.
58057
58058         * sysdeps/unix/mkfifo.c: Moved ...
58059         * sysdeps/posix/mkfifo.c: ... here.
58060         * sysdeps/unix/mkfifoat.c: Moved ...
58061         * sysdeps/posix/mkfifoat.c: ... here.
58062
58063         * sysdeps/unix/utime.c: Moved ...
58064         * sysdeps/posix/utime.c: ... here.
58065
58066         * sysdeps/unix/time.c: Moved ...
58067         * sysdeps/posix/time.c: ... here.
58068         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58069         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58070
58071         * sysdeps/unix/nice.c: Moved ...
58072         * sysdeps/posix/nice.c: ... here.
58073
58074         * sysdeps/unix/alarm.c: Moved ...
58075         * sysdeps/posix/alarm.c: ... here.
58076
58077         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58078
58079 2012-08-17  Jeff Law <law@redhat.com>
58080
58081         * intl/Makefile (codeset_mo): New variable.
58082         ($(codeset_mo)): New target.
58083         (tst-codeset.out): Depend on that.  Remove explicit rule.
58084         (tst-gettext3.out, tst-gettext5.out): Likewise.
58085         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58086         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58087         * intl/tst-codeset.sh: Remove.
58088         * intl/tst-gettext3.sh: Likewise.
58089         * intl/tst-gettext5.sh: Likewise.
58090
58091 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58092
58093         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58094         * sysdeps/unix/syscalls.list: ... here.
58095
58096         * sysdeps/posix/getaddrinfo.c
58097         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58098         (gaiconf_init, gaiconf_reload): Use them.
58099         [!_STATBUF_ST_NSEC]
58100         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58101         Define using time_t rather than struct timespec.
58102
58103         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58104         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58105         Macros removed.
58106         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58107         [!NO_THREADS].
58108         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58109         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58110         Likewise.
58111
58112         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58113         __libc_cleanup_push argument.
58114
58115         * bits/param.h: New file.
58116         * misc/sys/param.h: New file.
58117         * include/sys/param.h: New file.
58118         * misc/Makefile (headers): Add bits/param.h.
58119         * sysdeps/generic/sys/param.h: File removed.
58120         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58121         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58122         * sysdeps/mach/hurd/bits/param.h: New file.
58123         * sysdeps/mach/hurd/sys/param.h: File removed.
58124
58125         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58126         last change.
58127
58128         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58129         [_IO_MTSAFE_IO].
58130         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58131         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58132         New macros.
58133
58134         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58135         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58136         rather than -D_IO_MTSAFE_IO conditionally.
58137         * stdio-common/Makefile (CPPFLAGS): Likewise.
58138         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58139         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58140         Use $(libio-mtsafe).
58141         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58142         of -D_IO_MTSAFE_IO.
58143         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58144         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58145         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58146         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58147         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58148         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58149         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58150         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58151         (CFLAGS-fread_u_chk.c): Likewise.
58152         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58153         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58154         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58155         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58156         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58157         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58158         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58159         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58160         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58161
58162         * libio/Makefile: Test [$(libc-reentrant) = yes]
58163         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58164
58165         * Makeconfig
58166         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58167         * sysdeps/pthread/configure: File removed.
58168         * sysdeps/pthread/Makeconfig: New file.
58169         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58170         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58171
58172 2012-08-16  Gary Benson  <gbenson@redhat.com>
58173
58174         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58175         unmapping the first object in a namespace.
58176
58177 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58178
58179         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58180         (__internal_setnetgrent): ... this.  Add internal_function to
58181         definition.  Add libc_hidden_def.
58182         (setnetgrent): Update caller.
58183         (internal_endnetgrent): Renamed to ...
58184         (__internal_endnetgrent): ... this.  Add internal_function to
58185         definition.  Add libc_hidden_def.
58186         (endnetgrent): Update caller.
58187         (internal_getnetgrent_r): Renamed to ...
58188         (__internal_getnetgrent_r): ... this.  Add internal_function to
58189         definition.  Add libc_hidden_def.
58190         (__getnetgrent_r): Update caller.
58191         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58192
58193 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58194
58195         * stdlib/longlong.h: Update from GCC.
58196
58197 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58198
58199         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58200         on _QL, which is set by umul_ppmm but never used.
58201         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58202         variables, which are set by GMP macros but never used.
58203         * stdio-common/_itowa.c (_itowa): Likewise.
58204         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58205         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58206
58207 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58208
58209         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58210         struct La_sh_regs is not constant.
58211         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58212         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58213         and struct La_sparc64_regs are not constant.
58214
58215 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58216
58217         * sysdeps/unix/sysv/linux/kernel-features.h
58218         (__ASSUME_POSIX_TIMERS): Remove.
58219         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58220         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58221         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58222         Make code unconditional.
58223         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58224         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58225         Make code unconditional.
58226         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58227         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58228         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58229         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58230         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58231         Make code unconditional.
58232         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58233         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58234         (__libc_missing_posix_timers): Remove.
58235
58236 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58237
58238         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58239         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58240
58241         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58242
58243         * elf/dl-sym.c: Include <stdlib.h>.
58244
58245         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58246         constants, which avoids warnings in 32-bit builds.
58247
58248         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58249         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58250
58251         * misc/lseek.c: File moved to ...
58252         * io/lseek.c: ... here.
58253
58254         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58255
58256         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58257         shifting LEN more than 31 bits at once.
58258
58259 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58260
58261         [BZ #14195]
58262         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58263         segmentation fault for a case of two empty input strings.
58264         * string/test-strncasecmp.c (check1): Renamed to...
58265         (bz12205): ...this.
58266         (bz14195): Add new testcase for two empty input strings and N > 0.
58267         (test_main): Call new testcase, adapt for renamed function.
58268
58269 2012-08-15  Andreas Jaeger  <aj@suse.de>
58270
58271         [BZ #14090]
58272         * crypt/md5test2.c: New test, based on test supplied by Serge
58273         Belyshev <belyshev@depni.sinp.msu.ru>.
58274         * crypt/Makefile (xtests): Add md5test-giant..
58275         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58276
58277 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58278
58279         [BZ #14090]
58280         * crypt/md5.c (md5_process_block): Don't assume the buffer
58281         length is less than 2**32.
58282         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58283         length is less than 2**64.
58284
58285 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58286
58287         * string/str-two-way.h: Include <sys/param.h>.
58288         (MAX): Macro removed.
58289
58290         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58291         Move #define and #undef of memmove to just before and after
58292         including <string.h>.
58293
58294         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58295         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58296         and after including <string.h>.  Move declarations of
58297         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58298         to before #include "string/memmove.c".
58299
58300         * include/dirent.h: Declare __getdirentries.
58301
58302         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58303         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58304
58305 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58306
58307         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58308         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58309         * sysdeps/i386/configure: Regenerated.
58310         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58311         STABS_CURRENT_FILE, and STABS_FUN.
58312         (END): Remove call to STABS_FUN_END.
58313         (STABS_CURRENT_FILE1): Delete.
58314         (STABS_CURRENT_FILE): Likewise.
58315         (STABS_FUN): Likewise.
58316         (STABS_FUN_END): Likewise.
58317         (STABS_FUN2): Likewise.
58318         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58319         * sysdeps/x86_64/configure: Regenerated.
58320
58321 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58322
58323         * elf/dl-open.c: Include <atomic.h>.
58324         * elf/dl-lookup.c: Likewise.
58325
58326 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58327
58328         * sysdeps/unix/sysv/linux/kernel-features.h
58329         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58330         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58331         unconditionally.
58332         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58333         unconditionally.
58334         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58335         condition on __ASSUME_CLONE_THREAD_FLAGS.
58336
58337 2012-08-14  Andreas Jaeger  <aj@suse.de>
58338
58339         * sysdeps/i386/fpu/libm-test-ulps: Update.
58340
58341 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58342
58343         * include/atomic.h (atomic_exchange_and_add): Split into ...
58344         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58345         New atomic macros.
58346
58347 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58348
58349         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58350
58351 2012-08-13  Jeff Law <law@redhat.com>
58352
58353         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58354         null byte in the output string.
58355
58356 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58357
58358         * sysdeps/unix/sysv/linux/kernel-features.h
58359         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58360         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58361         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58362         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58363         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58364         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58365         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58366
58367 2012-08-09  Jeff Law <law@redhat.com>
58368
58369         [BZ #13939]
58370         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58371         When avoid_arena is set, don't retry in the that arena.  Pick the
58372         next one, whatever it might be.
58373         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58374         (arena_lock): Pass in new parameter to arena_get2.
58375         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58376         arena_get2.
58377         (__libc_malloc): Unify retrying after main arena failure with
58378         __libc_memalign version.
58379         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58380
58381 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58382
58383         [BZ #14166]
58384         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58385         to __redirect_strstr.
58386         (__strstr_sse42): Use typeof __redirect_strstr.
58387         (__strstr_ia32): Likewise.
58388         (__libc_strstr): New prototype.
58389         (strstr): Renamed to ...
58390         (__libc_strstr): This.
58391         (strstr): New strong alias of __libc_strstr.
58392         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58393         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58394         __redirect_time.
58395         Include <time.h>.
58396         (__libc_time): New prototype.
58397         (time_ifunc): Replace time with __libc_time.
58398         (time): New strong alias and hidden definition of __libc_time.
58399         (__GI_time): Remove strong alias.
58400         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58401         Include <stddef.h>.
58402         (memmove): Redefined to __redirect_memmove.
58403         (__memmove_sse2): Use typeof __redirect_memmove.
58404         (__memmove_ssse3): Likewise.
58405         (__memmove_ssse3_back): Likewise.
58406         (__libc_memmove): New prototype.
58407         (memmove): Renamed to ...
58408         (__libc_memmove): This.
58409         (memmove): New strong alias of __libc_memmove.
58410
58411 2012-08-08  Mark Salter  <msalter@redhat.com>
58412
58413         * elf/elf.h
58414         (R_MN10300_TLS_GD): Define.
58415         (R_MN10300_TLS_LD): Likewise.
58416         (R_MN10300_TLS_LDO): Likewise.
58417         (R_MN10300_TLS_GOTIE): Likewise.
58418         (R_MN10300_TLS_IE): Likewise.
58419         (R_MN10300_TLS_LE): Likewise.
58420         (R_MN10300_TLS_DTPMOD): Likewise.
58421         (R_MN10300_TLS_DTPOFF): Likewise.
58422         (R_MN10300_TLS_TPOFF): Likewise.
58423         (R_MN10300_SYM_DIFF): Likewise.
58424         (R_MN10300_ALIGN): Likewise.
58425         (R_MN10300_NUM): Update.
58426
58427 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58428
58429         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58430         Remove.
58431
58432 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58433
58434         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58435
58436         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58437         sysdeps/unix -> sysdeps/posix move.
58438         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58439
58440 2012-08-07      Allan McRae     <allan@archlinux.org>
58441
58442         [BZ #14303]
58443         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58444         (SUNOS_CPP): Likewise.
58445         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58446         not found.
58447         (open_input): Call CPP using execvp.
58448
58449 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58450
58451         * sysdeps/unix/sysv/linux/kernel-features.h
58452         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58453         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58454         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58455         (__ASSUME_WAITID_SYSCALL): Likewise.
58456         * sysdeps/unix/sysv/linux/dl-execstack.c
58457         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58458         code unconditional.
58459         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58460         conditional code.
58461         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58462         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58463         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58464         code.
58465         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58466         unconditional.
58467         [__ASSUME_WAITID_SYSCALL]: Likewise.
58468         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58469
58470 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58471
58472         * sysdeps/unix/closedir.c: Renamed to ...
58473         * sysdeps/posix/closedir.c: ... here.
58474         * sysdeps/unix/dirfd.c: Renamed to ...
58475         * sysdeps/posix/dirfd.c: ... here.
58476         * sysdeps/unix/dirstream.h: Renamed to ...
58477         * sysdeps/posix/dirstream.h: ... here.
58478         * sysdeps/unix/fdopendir.c: Renamed to ...
58479         * sysdeps/posix/fdopendir.c: ... here.
58480         * sysdeps/unix/opendir.c: Renamed to ...
58481         * sysdeps/posix/opendir.c: ... here.
58482         * sysdeps/unix/readdir.c: Renamed to ...
58483         * sysdeps/posix/readdir.c: ... here.
58484         * sysdeps/unix/readdir_r.c: Renamed to ...
58485         * sysdeps/posix/readdir_r.c: ... here.
58486         * sysdeps/unix/rewinddir.c: Renamed to ...
58487         * sysdeps/posix/rewinddir.c: ... here.
58488         * sysdeps/unix/seekdir.c: Renamed to ...
58489         * sysdeps/posix/seekdir.c: ... here.
58490         * sysdeps/unix/telldir.c: Renamed to ...
58491         * sysdeps/posix/telldir.c: ... here.
58492         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58493         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58494         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58495         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58496
58497         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58498         * bits/fcntl.h: ... here.
58499
58500         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58501         not 0.
58502         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58503         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58504         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58505         (struct flock): Move l_start, l_len to the beginning.
58506         Use __pid_t for l_pid.
58507         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58508         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58509         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58510         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58511         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58512         [__USE_LARGEFILE64] (struct flock64): New type.
58513         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58514
58515         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58516         * bits/dirent.h: ... here.
58517
58518         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58519         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58520
58521 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58522
58523         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58524         Change from 2.6.0 to 2.6.16.
58525         * sysdeps/unix/sysv/linux/configure: Regenerated.
58526         * sysdeps/unix/sysv/linux/kernel-features.h
58527         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58528         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58529         version.
58530         (__ASSUME_UTIMES): Likewise.
58531         (__ASSUME_CLONE_STOPPED): Remove.
58532         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58533         architectures, not kernel version.
58534         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58535         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58536         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58537         (__ASSUME_WAITID_SYSCALL): Likewise.
58538         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58539         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58540         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58541         refer to older versions.
58542
58543 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58544
58545         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58546         Define alphasort64 as an alias.
58547         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58548         Define versionsort64 as an alias.
58549         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58550         Define scandir64 as an alias.
58551         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58552         Define scandirat64 as an alias.
58553         * dirent/alphasort64.c (alphasort64):
58554         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58555         * dirent/versionsort64.c: Likewise.
58556         * dirent/scandir64.c: Likewise.
58557         * dirent/scandirat64.c: Likewise.
58558         * sysdeps/wordsize-64/alphasort.c: File removed.
58559         * sysdeps/wordsize-64/alphasort64.c: File removed.
58560         * sysdeps/wordsize-64/scandir.c: File removed.
58561         * sysdeps/wordsize-64/scandir64.c: File removed.
58562         * sysdeps/wordsize-64/scandirat.c: File removed.
58563         * sysdeps/wordsize-64/scandirat64.c: File removed.
58564         * sysdeps/wordsize-64/versionsort.c: File removed.
58565         * sysdeps/wordsize-64/versionsort64.c: File removed.
58566         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58567         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58568         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58569         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58570         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58571         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58572         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58573         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58574
58575         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58576         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58577         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58578         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58579         [defined __arch64__ || defined __sparcv9]
58580         (__INO_T_MATCHES_INO64_T): New macro.
58581         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58582         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58583         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58584         * sysdeps/unix/sysv/linux/bits/dirent.h
58585         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58586         (_DIRENT_MATCHES_DIRENT64): New macro.
58587
58588         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58589         Define lockf64 as an alias.
58590         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58591         Define fseeko64 as an alias.
58592         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58593         Define ftello64 as an alias.
58594         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58595         Define _IO_fgetpos64 and fgetpos64 as aliases.
58596         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58597         Define _IO_fsetpos64 and fsetpos64 as aliases.
58598         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58599         Conditionalize body on this.
58600         * libio/fseeko64.c: Likewise.
58601         * libio/ftello64.c: Likewise.
58602         * libio/iofgetpos64.c: Likewise.
58603         * libio/iofsetpos64.c: Likewise.
58604         * sysdeps/wordsize-64/lockf.c: File removed.
58605         * sysdeps/wordsize-64/lockf64.c: File removed.
58606         * sysdeps/wordsize-64/fseeko.c: File removed.
58607         * sysdeps/wordsize-64/fseeko64.c: File removed.
58608         * sysdeps/wordsize-64/ftello.c: File removed.
58609         * sysdeps/wordsize-64/ftello64.c: File removed.
58610         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58611         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58612         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58613         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58614         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58615         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58616         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58617         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58618         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58619         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58620         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58621         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58622         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58623         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58624
58625         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58626         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58627         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58628         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58629         [defined __arch64__ || defined __sparcv9]
58630         (__OFF_T_MATCHES_OFF64_T): New macro.
58631         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58632         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58633         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58634         (__OFF_T_MATCHES_OFF64_T): New macro.
58635
58636 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58637
58638         * stdlib/secure-getenv.c (__secure_getenv): Replace
58639         GLIBC_2_16 with GLIBC_2_17.
58640
58641 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58642
58643         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58644         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58645
58646 2012-08-03  David S. Miller  <davem@davemloft.net>
58647
58648         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58649
58650 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58651
58652         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58653         Remove.
58654         (__ASSUME_CORRECT_SI_PID): Likewise.
58655         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58656         (__ASSUME_TMPFS_NAME): Likewise.
58657         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58658         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58659         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58660         (HAVE_AUX_SECURE): Make definition unconditional.
58661         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58662         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58663
58664 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58665
58666         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58667         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58668         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58669         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58670         __eloop_threshold instead of SYMLOOP_MAX.
58671
58672         * sysdeps/generic/eloop-threshold.h: New file.
58673         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58674         of MAXSYMLINKS.
58675         * elf/chroot_canon.c (chroot_canon): Likewise.
58676
58677 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58678
58679         [BZ #13717]
58680         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58681         Change to 2.6.0 everywhere.
58682         * sysdeps/unix/sysv/linux/configure: Regenerated.
58683         * sysdeps/unix/sysv/linux/kernel-features.h
58684         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58685         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58686         kernel versions.
58687         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58688         (__ASSUME_FUTEX_REQUEUE): Remove.
58689         (__ASSUME_STATFS64): Define unconditionally.
58690         (__ASSUME_AT_SECURE): Likewise.
58691         (__ASSUME_CORRECT_SI_PID): Likewise.
58692         (__ASSUME_TGKILL): Define without depending on kernel version for
58693         i386.
58694         (__ASSUME_UTIMES): Likewise.
58695         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58696         kernel version.
58697         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58698         (__ASSUME_TMPFS_NAME): Likewise.
58699         * README: Update reference to Linux kernel versions.
58700
58701 2012-08-02  Marek Polacek  <polacek@redhat.com>
58702
58703         [BZ# 14150]
58704         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58705         libc_cv_asm_type_prefix with %.
58706         * configure: Regenerated.
58707         * include/libc-symbols.h: Remove comment about
58708         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58709         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58710         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58711         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58712         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58713         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58714         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58715         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58716         * elf/tst-unique2mod1.c: Likewise.
58717         * elf/tst-unique1mod2.c: Likewise.
58718         * elf/tst-unique1mod1.c: Likewise.
58719         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58720         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58721         Replace ASM_TYPE_DIRECTIVE with .type.
58722         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58723         * sysdeps/i386/sysdep.h: Likewise.
58724         * sysdeps/x86_64/sysdep.h: Likewise.
58725         * sysdeps/sh/sysdep.h: Likewise.
58726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58727         Do not define ASM_TYPE_DIRECTIVE.
58728         * sysdeps/powerpc/sysdep.h: Likewise.
58729         * sysdeps/powerpc/powerpc32/sysdep.h:
58730         Replace ASM_TYPE_DIRECTIVE with .type.
58731         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58732         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58733         * sysdeps/i386/fpu/e_powf.S: Likewise.
58734         * sysdeps/i386/fpu/e_expl.S: Likewise.
58735         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58736         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58737         * sysdeps/i386/fpu/e_pow.S: Likewise.
58738         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58739         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58740         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58741         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58742         * sysdeps/i386/fpu/e_log2.S: Likewise.
58743         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58744         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58745         * sysdeps/i386/fpu/e_powl.S: Likewise.
58746         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58747         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58748         * sysdeps/i386/fpu/e_logl.S: Likewise.
58749         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58750         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58751         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58752         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58753         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58754         * sysdeps/i386/fpu/e_log.S: Likewise.
58755         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58756         * sysdeps/i386/fpu/e_logf.S: Likewise.
58757         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58758         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58759         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58760         * sysdeps/i386/fpu/e_log10.S: Likewise.
58761         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58762         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58763         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58764         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58765         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58766         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58767         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58768         * sysdeps/i386/i686/strtok.S: Likewise.
58769         * sysdeps/i386/i386-mcount.S: Likewise.
58770         * sysdeps/i386/strtok.S: Likewise.
58771         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58772         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58773         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58774         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58775         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58776         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58777         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58778         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58779         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58780         * sysdeps/x86_64/_mcount.S: Likewise.
58781         * sysdeps/x86_64/strtok.S: Likewise.
58782         * sysdeps/sh/_mcount.S: Likewise.
58783
58784 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58785
58786         * libio/iofopen.c: Include <fcntl.h>.
58787         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58788         (_IO_fopen64, fopen64): Define as aliases.
58789         * libio/iofopen64.c: Include <fcntl.h>.
58790         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58791         Conditionalize body on this.
58792         * sysdeps/wordsize-64/iofopen.c: File removed.
58793         * sysdeps/wordsize-64/iofopen64.c: File removed.
58794
58795 2012-08-01  Marek Polacek  <polacek@redhat.com>
58796
58797         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58798         Use dlfcn directly instead of a variable.
58799         (binfmt-subdir): Do not define.
58800         (dlfcn): Likewise.
58801
58802 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58803
58804         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58805         Remove all definitions.
58806         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58807         <kernel-features.h>.
58808         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58809         (miss_F_GETOWN_EX): Remove all definitions.
58810         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58811         macro definition.
58812         [!__ASSUME_FCNTL64]: Remove conditional code.
58813         [__ASSUME_FCNTL64]: Make code unconditional.
58814         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58815         <kernel-features.h>.
58816         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58817         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58818         (lockf64) [__NR_fcntl64]: Make code unconditional.
58819         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58820
58821         * sysdeps/unix/sysv/linux/kernel-features.h
58822         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58823         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58824         Make code unconditional.
58825         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58826         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58828         [__NR_vfork]: Make code unconditional.
58829         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58830         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58832         [__NR_vfork]: Make code unconditional.
58833         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58834         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58835
58836 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58837
58838         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58839         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58840
58841         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58842         Define mkstemp64 as an alias.
58843         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58844         Define mkstemps64 as an alias.
58845         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58846         Define mkostemp64 as an alias.
58847         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58848         Define mkostemps64 as an alias.
58849         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
58850         Conditionalize body on this.
58851         * misc/mkostemp64.c: Likewise.
58852         * misc/mkostemps64.c: Likewise.
58853         * misc/mkstemps64.c: Likewise.
58854         * sysdeps/wordsize-64/mkstemp64.c: File removed.
58855         * sysdeps/wordsize-64/mkostemp64.c: File removed.
58856         * sysdeps/wordsize-64/mkostemp.c: File removed.
58857         * sysdeps/wordsize-64/mkstemp.c: File removed.
58858         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
58859         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
58860         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
58861         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
58862
58863         [BZ #14138]
58864         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
58865         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
58866         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
58867         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
58868
58869         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
58870         compat_symbol macros from <shlib-compat.h> rather than the underlying
58871         default_symbol_version and symbol_version macros, so that DEFAULT
58872         lines in shlib-versions are respected.
58873         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
58874
58875 2012-08-01  Florian Weimer  <fweimer@redhat.com>
58876
58877         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
58878         Declare with warn_unused_result.
58879         (setgid, setregid, setegid, setresgid): Likewise.
58880         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
58881         Likewise.
58882         * WUR-REPORT: Remove set*id functions.
58883
58884 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
58885
58886         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
58887
58888 2012-07-31  Roland McGrath  <roland@hack.frob.com>
58889
58890         [BZ #10191]
58891         * include/sys/socket.h (__libc_accept, __libc_accept4):
58892         Add attribute_hidden.
58893         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
58894
58895         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
58896         use of PTR_MANGLE.
58897         * inet/getnetgrent_r.c (setup): Likewise.
58898
58899         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
58900
58901 2012-07-31  David S. Miller  <davem@davemloft.net>
58902
58903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58904
58905 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
58906
58907         [BZ #13629]
58908         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
58909         value between 1.0 and 2.0 and smaller part has absolute value less
58910         than 1.0.
58911         * math/s_clog10.c (__clog10): Likewise.
58912         * math/s_clog10f.c (__clog10f): Likewise.
58913         * math/s_clog10l.c (__clog10l): Likewise.
58914         * math/s_clogf.c (__clogf): Likewise.
58915         * math/s_clogl.c (__clogl): Likewise.
58916         * math/libm-test.inc (clog_test): Add more tests.
58917         (clog10_test): Likewise.
58918         * sysdeps/i386/fpu/libm-test-ulps: Update.
58919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58920
58921 2012-07-31  Florian Weimer  <fweimer@redhat.com>
58922
58923         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
58924         Exit with zero in case no suitable GID is found, and write a
58925         message to standard error.
58926
58927 2012-07-30  Roland McGrath  <roland@hack.frob.com>
58928
58929         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
58930         rather than to 1.
58931         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
58932         (MAXPATHLEN): Removed.
58933         (NOGROUP, NODEV): New macros.
58934         (setbit, clrbit, isset, isclr): New macros.
58935         (howmany, roundup, powerof2): New macros.
58936         (DEV_BSIZE): New macro.
58937
58938         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
58939         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
58940
58941         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
58942         definition on [!__NO_LONG_DOUBLE_MATH].
58943
58944         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
58945         PTR_MANGLE and PTR_DEMANGLE.
58946
58947         * socket/accept4.c (accept4): Rename to __libc_accept4.
58948         Define accept4 as a weak alias.
58949
58950         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
58951         on [_DIRENT_HAVE_D_TYPE].
58952         * io/ftw.c (ftw_dir): Likewise.
58953
58954         * io/xmknod.c (__xmknod): Don't check PATH for being null.
58955
58956         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
58957
58958         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
58959         Use the BSD numbers rather than the arbitrary ones we had.
58960         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
58961         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
58962         (SIGXCPU, SIGXFSZ): New macros.
58963         (_NSIG): Now 32.
58964
58965         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
58966         initializer on [_LIBC_REENTRANT].
58967
58968         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
58969         definitions inside [_POSIX_MAPPED_FILES].
58970
58971         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
58972
58973         * dirent/opendir.c: Include <fcntl.h>.
58974
58975         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
58976         (__libc_getspecific): Likewise.
58977         (__libc_key_create): Likewise.
58978
58979         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
58980         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
58981         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
58982         (tmpfile64): Define as alias.
58983         * sysdeps/wordsize-64/tmpfile.c: File removed.
58984         * sysdeps/wordsize-64/tmpfile64.c: File removed.
58985         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
58986         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
58987
58988         * stdio-common/vfscanf.c: Include <stdbool.h>.
58989         * nss/makedb.c: Likewise.
58990         * stdio-common/_i18n_number.h: Likewise.
58991         * argp/argp-help.c: Likewise.
58992         * posix/wordexp.c: Likewise.
58993         * sysdeps/posix/spawni.c: Likewise.
58994         * nss/nss_files/files-initgroups.c: Likewise.
58995         * stdio-common/reg-modifier.c: Include <stdlib.h>.
58996         * nss/nss_files/files-initgroups.c: Likewise.
58997         * nss/nss_db/db-netgrp.c: Likewise.
58998         * nss/nss_db/db-initgroups.c: Likewise.
58999         * io/fchmodat.c: Include <sys/stat.h>.
59000
59001         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59002         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59003
59004         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59005         [HAVE_MMAP].
59006
59007         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59008         Add multiple inclusion protection.
59009
59010 2012-07-27  David S. Miller  <davem@davemloft.net>
59011
59012         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59013
59014 2012-07-27  Gary Benson  <gbenson@redhat.com>
59015
59016         [BZ #14298]
59017         * elf/rtld.c: Include <stap-probe.h>.
59018         (dl_main): Added static probes "init_start" and "init_complete".
59019         * elf/dl-load.c: Include <stap-probe.h>.
59020         (lose): Take new parameter "nsid".
59021         Added static probe "map_failed".
59022         (_dl_map_object_from_fd): Pass namespace id to lose.
59023         Added static probe "map_start".
59024         (open_verify): Pass namespace id to lose.
59025         * elf/dl-open.c: Include <stap-probe.h>.
59026         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59027         and "reloc_complete".
59028         * elf/dl-close.c: Include <stap-probe.h>.
59029         (_dl_close_worker): Added static probes "unmap_start" and
59030         "unmap_complete".
59031         * elf/rtld-debugger-interface.txt: New file documenting the above.
59032
59033 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59034
59035         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59036         rather than a string variable.
59037         * sunrpc/rpc_main.c (h_output): Likewise.
59038         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59039
59040 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59041
59042         * inet/check_native.c: New file.
59043
59044 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59045
59046         [BZ #13629]
59047         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59048         if larger part has absolute value 1.0.
59049         * math/s_clog10.c (__clog10): Likewise.
59050         * math/s_clog10f.c (__clog10f): Likewise.
59051         * math/s_clog10l.c (__clog10l): Likewise.
59052         * math/s_clogf.c (__clogf): Likewise.
59053         * math/s_clogl.c (__clogl): Likewise.
59054         * math/libm-test.inc (clog_test): Add more tests.
59055         (clog10_test): Likewise.
59056         * sysdeps/i386/fpu/libm-test-ulps: Update.
59057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59058
59059         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59060         (pltexit): Likewise.
59061         (La_regs): Likewise.
59062         (La_retval): Likewise.
59063         (int_retval): Likewise.
59064         Update #error for removed macros to refer only to definitions in
59065         tst-audit.h.
59066         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59067         macro.
59068         (pltexit): Likewise.
59069         (La_regs): Likewise.
59070         (La_retval): Likewise.
59071         (int_retval): Likewise.
59072         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59073         macro.
59074         (pltexit): Likewise.
59075         (La_regs): Likewise.
59076         (La_retval): Likewise.
59077         (int_retval): Likewise.
59078         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59079         macro.
59080         (pltexit): Likewise.
59081         (La_regs): Likewise.
59082         (La_retval): Likewise.
59083         (int_retval): Likewise.
59084         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59085         macro.
59086         (pltexit): Likewise.
59087         (La_regs): Likewise.
59088         (La_retval): Likewise.
59089         (int_retval): Likewise.
59090         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59091         macro.
59092         (pltexit): Likewise.
59093         (La_regs): Likewise.
59094         (La_retval): Likewise.
59095         (int_retval): Likewise.
59096         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59097         macro.
59098         (pltexit): Likewise.
59099         (La_regs): Likewise.
59100         (La_retval): Likewise.
59101         (int_retval): Likewise.
59102         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59103         macro definitions in tst-audit.h.
59104         * sysdeps/i386/tst-audit.h: New file.
59105         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59106         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59107         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59108         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59109         * sysdeps/sh/tst-audit.h: Likewise.
59110         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59111         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59112         * sysdeps/x86_64/tst-audit.h: Likewise.
59113
59114 2012-07-26  Andreas Jaeger  <aj@suse.de>
59115
59116         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59117         ptrace.
59118
59119         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59120         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59121         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59122         PTRACE_O_MASK.
59123         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59124         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59125         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59126
59127         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59128         value.
59129
59130         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59131         _sigsys.
59132         (si_call_addr, si_syscall, si_arch): Define new macro.
59133         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59134         _sigsys.
59135         (si_call_addr, si_syscall, si_arch): Define new marcro.
59136         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59137         _sigsys.
59138         (si_call_addr, si_syscall, si_arch): Define new macro.
59139         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59140         _sigsys.
59141         (si_call_addr, si_syscall, si_arch): Define new macro.
59142
59143 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59144
59145         [BZ #13717]
59146         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59147         Change to 2.4.21 where previously 2.4.1.
59148         * sysdeps/unix/sysv/linux/configure: Regenerated.
59149         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59150         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59151         Linux kernel version.
59152         (__ASSUME_STD_AUXV): Remove.
59153         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59154         kernel version.
59155         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59156         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59157         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59158         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59159         (__ASSUME_NETLINK_SUPPORT): Likewise.
59160         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59161         (__no_netlink_support): Remove conditional definition.
59162         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59163         Remove.
59164         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59165         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59166         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59167         (if_nameindex_ioctl): Remove.
59168         (if_nameindex_netlink): Do not handle __no_netlink_support.
59169         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59170         code.
59171         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59172         Remove conditional code.
59173         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59174         code.
59175         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59176         unconditional.
59177         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59178         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59179         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59180         Remove.
59181         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59182         [!__ASSUME_STD_AUXV]: Remove conditional code.
59183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59184         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59185         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59187         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59188         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59189         code.
59190         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59192         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59193         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59194         conditional code.
59195         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59197         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59198         code.
59199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59200         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59201         conditional code.
59202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59203         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59204         code unconditional.
59205         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59206         conditional code.
59207         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59208         unconditional.
59209         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59210         conditional code.
59211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59212         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59213         unconditional.
59214         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59215         conditional code.
59216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59217         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59218         code unconditional.
59219         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59220         conditional code.
59221         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59222         unconditional.
59223         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59224         conditional code.
59225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59226         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59227         code unconditional.
59228         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59229         conditional code.
59230         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59231         unconditional.
59232         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59233         conditional code.
59234
59235 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59236
59237         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59238         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59239         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59240         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59241         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59242         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59243         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59244         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59245         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59246         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59247         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59248         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59249         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59250         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59251         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59252         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59253         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59254         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59255         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59256         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59257         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59258         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59259         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59260
59261 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59262
59263         * Versions.def: Add GLIBC_2.17.
59264         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59265         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59266         Introduce __libc_secure_getenv.
59267         * stdlib/Versions (2.17): Add secure_getenv
59268         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59269         * stdlib/secure-getenv.c: Rename __secure_getenv to
59270         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59271         symbol __secure_getenv for GLIBC_2.0.
59272         * stdlib/tst-secure-getenv.c: New.
59273         * stdlib/Makefile (tests): Add testcase.
59274         * manual/startup.texi (Environment Access): Document
59275         secure_getenv.
59276         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59277         __libc_secure_getenv.
59278         * inet/ruserpass.c (ruserpass): Likewise.
59279         * malloc/mtrace.c (mtrace): Likewise.
59280         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59281         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59282         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59283         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59284         HAVE_SECURE_GETENV.
59285         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59286         __secure_getenv to __libc_secure_getenv.
59287         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59289         Likewise.
59290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59291         Likewise.
59292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59293         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59294         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59295         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59299
59300 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59301
59302         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59303         (struct La_i86_retval): Likewise.
59304         (struct La_x86_64_regs): Likewise.
59305         (struct La_x86_64_retval): Likewise.
59306         (struct La_x32_regs): Likewise.
59307         (struct La_x32_retval): Likewise.
59308         (struct La_ppc32_regs): Likewise.
59309         (struct La_ppc32_retval): Likewise.
59310         (struct La_ppc64_regs): Likewise.
59311         (struct La_ppc64_retval): Likewise.
59312         (struct La_sh_regs): Likewise.
59313         (struct La_sh_retval): Likewise.
59314         (struct La_s390_32_regs): Likewise.
59315         (struct La_s390_32_retval): Likewise.
59316         (struct La_s390_64_regs): Likewise.
59317         (struct La_s390_64_retval): Likewise.
59318         (struct La_sparc32_regs): Likewise.
59319         (struct La_sparc32_retval): Likewise.
59320         (struct La_sparc64_regs): Likewise.
59321         (struct La_sparc64_retval): Likewise.
59322         (struct audit_ifaces): Remove architecture-specific pltenter and
59323         pltexit members.
59324         * sysdeps/i386/ldsodefs.h: New file.
59325         * sysdeps/powerpc/ldsodefs.h: Likewise.
59326         * sysdeps/s390/ldsodefs.h: Likewise.
59327         * sysdeps/sh/ldsodefs.h: Likewise.
59328         * sysdeps/sparc/ldsodefs.h: Likewise.
59329         * sysdeps/x86_64/ldsodefs.h: Likewise.
59330
59331 2012-07-25  Marek Polacek  <polacek@redhat.com>
59332
59333         [BZ #6808]
59334         * math/libm-test.inc (yn_test): Add another test.
59335         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59336         to ERANGE when the result is +-Inf.
59337         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59338         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59339         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59340         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59341
59342 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59343
59344         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59345         equal to 0.
59346         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59347         clock_t.
59348         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59349
59350 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59351
59352         * configure.in <sysdeps resolving>: Correct printing
59353         Implies_before.
59354         * configure: Regenerate.
59355
59356 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59357
59358         * math/w_ilogb.c: Include <limits.h>.
59359         * math/w_ilogbl.c: Likewise.
59360
59361 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59362
59363         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59364         va_copy.  Document allowing for unavailable va_copy only as
59365         pre-C99 compatibility.
59366         * manual/string.texi (Copying and Concatenation): Use va_copy
59367         instead of __va_copy in concat example.
59368
59369 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59370
59371         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59372         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59373         it if not null.
59374
59375         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59376         with O_NOLINK passed to __file_name_lookup.
59377
59378         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59379         with O_NOLINK passed to __file_name_lookup.
59380
59381         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59382         negative N or less than NGIDS.
59383
59384         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59385         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59386         enough.  Use memcpy instead of strncpy.
59387
59388 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59389
59390         * elf/Makefile (check-data): Remove.
59391         (localplt.data): New vpath directive.
59392         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59393         instead of $(check-data).
59394         * scripts/data/localplt-generic.data: Move to ...
59395         * sysdeps/generic/localplt.data: ... here.
59396         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59397         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59398         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59400         ... here.
59401         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59403         ... here.
59404         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59406         ... here.
59407         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59409         ... here.
59410         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59411         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59412         ... here.
59413         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59415         ... here.
59416
59417 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59418
59419         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59420         PPC32 and PPC64 files.
59421         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59422         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59423
59424 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59425
59426         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59427         __makecontext_ret to ...
59428         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59429         ... here and call exit if uc_link is NULL.  New file.
59430         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59431         __makecontext_ret.S.
59432         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59433         __makecontext_ret to ...
59434         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59435         ... here and call exit if uc_link is NULL.  New file.
59436         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59437         __makecontext_ret.S.
59438
59439 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59440
59441         * elf/elf.h (R_390_IRELATIVE): New definition.
59442         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59443         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59444         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59445         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59446         (elf_machine_lazy_rel): Likewise.
59447         * sysdeps/s390/dl-irel.h: New file.
59448         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59449         * sysdeps/s390/s390-64/memset.S: New asm code.
59450         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59451         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59452         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59453         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59454         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59455         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59456         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59457         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59458         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59459         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59460         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59461         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59462         * sysdeps/s390/s390-32/memset.S: New asm code.
59463         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59464
59465 2012-07-17  Marek Polacek  <polacek@redhat.com>
59466
59467         [BZ #14349]
59468         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59469         * sysdeps/s390/s390-64/configure.in: Likewise.
59470         * sysdeps/sparc/configure.in: Likewise.
59471         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59472         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59473         * sysdeps/i386/configure.in: Likewise.
59474         * sysdeps/x86_64/configure.in: Likewise.
59475         * sysdeps/sh/configure.in: Likewise.
59476         * sysdeps/s390/s390-32/configure: Regenerated.
59477         * sysdeps/s390/s390-64/configure: Likewise.
59478         * sysdeps/x86_64/configure: Likewise.
59479         * sysdeps/sh/configure: Likewise.
59480         * sysdeps/powerpc/powerpc64/configure: Likewise.
59481         * sysdeps/powerpc/powerpc32/configure: Likewise.
59482         * sysdeps/sparc/configure: Likwise.
59483         * sysdeps/i386/configure: Likewise.
59484
59485         * elf/dl-open.c: Comment fixes.
59486
59487 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59488
59489         * Makefile [CXX] (check-data): Remove.
59490         [CXX] (c++-types.data): New vpath directive.
59491         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59492         vpath.  Do not allow for C++ type data being missing.
59493         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59494         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59495         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59496         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59497         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59498         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59499         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59501         ... here.
59502         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59504         ... here.
59505         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59507         ... here.
59508         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59510         ... here.
59511         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59513         ... here.
59514         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59516         ... here.
59517         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59518         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59519         ... here.
59520         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59522
59523         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59524         definitions to architecture-specific files.
59525         (TLS_IE): Likewise.
59526         (TLS_LD): Likewise.
59527         (TLS_GD): Likewise.
59528         * sysdeps/i386/tls-macros.h: New file.
59529         * sysdeps/powerpc/tls-macros.h: Likewise.
59530         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59531         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59532         * sysdeps/sh/tls-macros.h: Likewise.
59533         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59534         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59535         * sysdeps/x86_64/tls-macros.h: Likewise.
59536
59537 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59538
59539         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59540         zero value for regular exit case.
59541
59542         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59543         (__start_context): Preserve zero value for regular exit case.
59544
59545 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59546             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59547
59548         * manual/setjmp.texi (setcontext): Clarify normal process
59549         termination when uc_link is the null pointer.
59550         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59551         exit call.
59552
59553 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59554
59555         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59556         preprocessor.  Test for each exception mask separately.
59557
59558 2012-07-16  Andreas Jaeger  <aj@suse.de>
59559
59560         * po/ru.po: Update from translation team.
59561
59562 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59563
59564         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59565         equal to 0.
59566         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59567         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59568         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59569         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59570         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59571
59572 2012-07-13  Andreas Jaeger  <aj@suse.de>
59573
59574         * po/fr.po: Update from translation team.
59575
59576 2012-07-12  Marek Polacek  <polacek@redhat.com>
59577
59578         [BZ #14173]
59579         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59580         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59581         loop condition.
59582
59583 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59584
59585         [BZ #13717]
59586         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59587         Change to 2.4.1 where previously 2.4.0.
59588         * sysdeps/unix/sysv/linux/configure: Regenerated.
59589         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59590         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59591         version.
59592         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59593         (__ASSUME_AT_CLKTCK): Remove.
59594         (__ASSUME_AT_PAGESIZE): Likewise.
59595         (__ASSUME_AT_XID): Likewise.
59596         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59597         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59598         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59599         unconditionally.
59600         (HAVE_AUX_PAGESIZE): Likewise.
59601         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59602         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59603         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59604
59605 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59606
59607         [BZ #14307]
59608         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59609         the temporary buffer used to invoke __gethostbyname2_r,
59610         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59611         host_data / struct gaih_addrtuple.
59612         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59613         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59614         header file nss/nsswitch.h.
59615         * nss/nsswitch.h (global scope): Add definition of implementation
59616         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59617         resolv/nss_dns/dns-host.c).
59618
59619 2012-07-11  Andreas Jaeger  <aj@suse.de>
59620
59621         * po/fr.po: Update from translation team.
59622
59623         * po/sv.po: Update from translation team
59624         * po/fr.po: Another update from translation team.
59625
59626 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59627
59628         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59629         for subnormals or multiply small sinh result by itself.
59630         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59631         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59632
59633 2012-07-11  David S. Miller  <davem@davemloft.net>
59634
59635         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59636
59637 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59638
59639         [BZ #14347]
59640         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59641         (INTERNAL_MARK): Shift it here.
59642
59643 2012-07-10  Marek Polacek  <polacek@redhat.com>
59644
59645         [BZ #14151]
59646         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59647         libc_cv_asm_global_directive with .globl.
59648         * configure: Regenerated.
59649         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59650         with .globl.
59651         * sysdeps/i386/configure: Regenerated.
59652         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59653         with .globl.
59654         * sysdeps/x86_64/configure: Regenerated.
59655         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59656         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59657         * elf/tst-unique2mod2.c: Likewise.
59658         * elf/tst-unique2mod1.c: Likewise.
59659         * elf/tst-unique1mod2.c: Likewise.
59660         * elf/tst-unique1mod1.c: Likewise.
59661         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59662         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59663         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59664         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59665         * sysdeps/mach/sysdep.h: Likewise.
59666         * sysdeps/i386/sysdep.h: Likewise.
59667         * sysdeps/i386/i386-mcount.S: Likewise.
59668         * sysdeps/x86_64/_mcount.S: Likewise.
59669         * sysdeps/x86_64/sysdep.h: Likewise.
59670         * sysdeps/sh/_mcount.S: Likewise.
59671         * sysdeps/sh/sysdep.h: Likewise.
59672         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59673         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59674         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59675         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59676         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59677         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59678         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59679         * locale/localeinfo.h: Likewise.
59680         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59681         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59682
59683 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59684
59685         [BZ #14336]
59686         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59687         system".
59688         * manual/message.texi (The Uniforum approach): Likewise.
59689         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59690         (glibc iconv Implementation): Likewise.
59691
59692 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59693
59694         [BZ #14337]
59695         * math/s_clog.c (__clog): Avoid scaling a value down where that
59696         could result in underflow.
59697         * math/s_clog10.c (__clog10): Likewise.
59698         * math/s_clog10f.c (__clog10f): Likewise.
59699         * math/s_clog10l.c (__clog10l): Likewise.
59700         * math/s_clogf.c (__clogf): Likewise.
59701         * math/s_clogl.c (__clogl): Likewise.
59702         * math/libm-test.inc (clog_test): Add more tests.
59703         (clog10_test): Likewise.
59704         * sysdeps/i386/fpu/libm-test-ulps: Update.
59705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59706
59707 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59708
59709         [BZ #14283]
59710         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59711         by 7 not 8 to examine high bit of fractional part.
59712
59713         [BZ #14042]
59714         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59715         for call to __mcount_internal.
59716         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59717         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59718         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59719
59720 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59721
59722         [BZ #14154]
59723         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59724         approximation for values within 0x1p-13f of an odd multiple of
59725         pi/4.
59726         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59727         exception.  Add more tests.
59728         * sysdeps/i386/fpu/libm-test-ulps: Update.
59729
59730         [BZ #6778]
59731         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59732         inputs and return -1 for them.  Do not check for +Inf in case not
59733         reachable for +Inf.
59734         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59735         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59736         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59737         and return -1 for them.  Do not check for +Inf in case not
59738         reachable for +Inf.
59739         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59740         define.
59741         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59742         and return -1 for them.  Do not check for +Inf in case not
59743         reachable for +Inf.
59744         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59745         spurious underflow.
59746         * sysdeps/i386/fpu/libm-test-ulps: Update.
59747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59748
59749 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59750
59751         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59752
59753 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59754
59755         [BZ #14157]
59756         [BZ #14331]
59757         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59758         could result in spurious underflow.  Scale down values above
59759         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59760         * math/s_csqrtf.c (__csqrtf): Likewise.
59761         * math/s_csqrtl.c (__csqrtl): Likewise.
59762         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59763         spurious underflow.
59764         * sysdeps/i386/fpu/libm-test-ulps: Update.
59765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59766
59767 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59768
59769         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59770         xopen-msg.sed.
59771         * catgets/xopen-msg.awk: New file.
59772         * catgets/xopen-msg.sed: Removed.
59773
59774         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59775         po2text.sed.
59776         * intl/po2test.awk: New file.
59777         * intl/po2test.sed: Removed.
59778
59779 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59780
59781         [BZ #14328]
59782         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59783         or multiply small sinh result by itself.
59784         * math/s_ctanf.c (__ctanf): Likewise.
59785         * math/s_ctanh.c (__ctanh): Likewise.
59786         * math/s_ctanhf.c (__ctanhf): Likewise.
59787         * math/s_ctanhl.c (__ctanhl): Likewise.
59788         * math/s_ctanl.c (__ctanl): Likewise.
59789         * math/libm-test.inc (ctan_test_tonearest): New function.
59790         (ctan_test_towardzero): Likewise.
59791         (ctan_test_downward): Likewise.
59792         (ctan_test_upward): Likewise.
59793         (ctanh_test_tonearest): Likewise.
59794         (ctanh_test_towardzero): Likewise.
59795         (ctanh_test_downward): Likewise.
59796         (ctanh_test_upward): Likewise.
59797         (main): Call these new functions.
59798         * sysdeps/i386/fpu/libm-test-ulps: Update.
59799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59800
59801 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59802
59803         * .gitignore: Delete /ports entry.
59804
59805 2012-07-03  Andreas Jaeger  <aj@suse.de>
59806
59807         * po/bg.po: Update from translation team.
59808         * po/cs.po: Likewise.
59809         * po/de.po: Likewise.
59810         * po/hr.po: Likewise.
59811         * po/nl.pl: Likewise.
59812         * po/pl.po: Likewise.
59813         * po/vi.po: Likewise.
59814
59815 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59816
59817         * Makeconfig [!+link] (+link-before-libc): New variable.
59818         [!+link] (+link-after-libc): Likewise.
59819         [!+link] (+link-tests): Likewise.
59820         [!+link] (+link): Define in terms of $(+link-before-libc) and
59821         $(+link-after-libc).
59822         [!+link-static] (+link-static-before-libc): New variable.
59823         [!+link-static] (+link-static-after-libc): Likewise.
59824         [!+link-static] (+link-static-tests): Likewise.
59825         [!+link-static] (+link-static): Define in terms of
59826         $(+link-static-before-libc) and $(+link-static-after-libc).
59827         [build-shared] (link-libc-before-gnulib): New variable.
59828         [build-shared] (link-libc-tests): Likewise.
59829         [build-shared] (link-libc): Define in terms of
59830         $(link-libc-before-gnulib).
59831         [!build-shared] (link-libc-tests): New variable.
59832         (link-libc-static-tests): New variable.
59833         [!gnulib] (gnulib-arch): New variable.
59834         [!gnulib] (gnulib-tests): Likewise.
59835         [!gnulib] (static-gnulib-arch): Likewise.
59836         [!gnulib] (static-gnulib-tests): Likewise.
59837         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59838         Define with "=" instead of ":=".
59839         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59840         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59841         * Rules (binaries-all-notests): New variable.
59842         (binaries-all-tests): Likewise.
59843         (binaries-static-notests): Likewise.
59844         (binaries-static-tests): Likewise.
59845         (binaries-all): Define using $(binaries-all-notests) and
59846         $(binaries-all-tests).
59847         (binaries-static): Define using $(binaries-static-notests) and
59848         $(binaries-static-tests).
59849         (binaries-shared-tests): New variable.
59850         (binaries-shared-notests): Likewise.
59851         (binaries-shared): Remove variable.
59852         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
59853         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
59854         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
59855         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
59856         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
59857         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
59858         * elf/Makefile (sln-modules): New variable.
59859         (extra-objs): Add $(sln-modules:=.o).
59860         (ldconfig-modules): Add static-stubs.
59861         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
59862         * elf/static-stubs.c: New file.
59863
59864         [BZ #14283]
59865         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
59866         by 7 not 8 to examine high bit of fractional part.  Use volatile
59867         variables when splitting into final array of floats if
59868         __FLT_EVAL_METHOD__ != 0.
59869         * math/libm-test.inc (cos_test): Add another test.
59870         (sin_test): Likewise.
59871         * sysdeps/i386/fpu/libm-test-ulps: Update.
59872
59873         [BZ #14273]
59874         * math/libm-test.inc (cosh_test): Add more tests.
59875
59876         * version.h (RELEASE): Set to "development".
59877         (VERSION): Set to "2.16.90".
59878
59879 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
59880
59881         * NEWS: Update copyright. Remove last-updated date.
59882         Mention math library bug fixes and timezone data changes.
59883         * README: Mention GNU/Hurd, x32, and HPPA support status.
59884
59885 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
59886
59887         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
59888
59889 2012-06-27  Andreas Jaeger  <aj@suse.de>
59890
59891         * manual/contrib.texi (Contributors): Add Samuel Thibault.
59892
59893 2012-06-25  Andreas Jaeger  <aj@suse.de>
59894
59895         * sysdeps/s390/fpu/libm-test-ulps: Update.
59896
59897 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
59898             Thomas Schwinge  <thomas@codesourcery.com>
59899
59900         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
59901         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
59902         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
59903         fanotify_mark.
59904
59905 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
59906
59907         * sysdeps/mach/start.c: Remove file.
59908         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
59909         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
59910         * sysdeps/sh/init-first.c: Likewise.
59911
59912         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
59913         registers for frame unwinding purposes, add CFI directives.
59914         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59915         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
59916         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
59917         Likewise.
59918
59919         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
59920         __fortify_fail returning.
59921         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59922
59923         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
59924         sysdeps/sh/____longjmp_chk.S.
59925         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
59926         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
59927         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
59928         (gen-as-const-headers): Append sigaltstack-offsets.sym.
59929
59930         * sysdeps/sh/abort-instr.h: New file.
59931         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
59932         process in case exit returns.
59933
59934         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
59935         initialize the GOT register before use.
59936
59937         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
59938         calculation of ARGC > 4.
59939
59940         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
59941         meaningful names to some local labels.
59942
59943 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
59944             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59945
59946         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
59947         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
59948         (__arch_compare_and_exchange_val_16_acq): Likewise.
59949         (__arch_compare_and_exchange_val_32_acq): Likewise.
59950         (atomic_exchange_and_add): Fix gUSA sequence.
59951         (atomic_add): Likewise.
59952         (atomic_add_negative): Likewise.
59953         (atomic_add_zero): Likewise.
59954         (atomic_bit_test_set): Likewise.
59955
59956 2012-06-22  Andreas Schwab  <schwab@redhat.com>
59957
59958         [BZ #13579]
59959         * include/link.h (struct link_map): Add l_free_initfini.
59960         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
59961         l_initfini.
59962         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
59963         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
59964         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
59965         set.
59966
59967 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
59968
59969         * configure.in: Use AC_LANG_SOURCE.
59970         * configure: Regenerate.
59971
59972 2012-06-22  Roland McGrath  <roland@hack.frob.com>
59973
59974         * configure.in (libc_cv_localstatedir): New substituted variable.
59975         * configure: Regenerated.
59976         * config.make.in (localstatedir): New variable, substituted from
59977         libc_cv_localstatedir.
59978         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
59979         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
59980         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
59981         * sysdeps/gnu/configure: Regenerated.
59982
59983 2012-06-21  Jeff Law  <law@redhat.com>
59984
59985         [BZ #14277]
59986         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
59987         free.  Simplify list management for _LIBC case.
59988
59989 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
59990
59991         [BZ #14273]
59992         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
59993         Clear sign bit of 64-bit integer value before comparing against
59994         overflow value.
59995
59996         * sysdeps/mach/configure: Regenerated.
59997
59998 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
59999
60000         [BZ #14278]
60001         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60002
60003 2012-06-21  Jeff Law  <law@redhat.com>
60004
60005         [BZ #13882]
60006         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60007         uint16_t for elements in the "seen" array to avoid char overflows.
60008         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60009         * elf/dl-open.c (dl_open_worker): Likewise.
60010
60011 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60012
60013         * scripts/list-sources.sh: Scan PORTS for translations.
60014         * po/libc.pot: Regenerated.
60015
60016 2012-06-21  Andreas Jaeger  <aj@suse.de>
60017
60018         [BZ #12194]
60019         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60020         warning.
60021         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60022         * bits/byteswap-16.h (__bswap_16): Likewise.
60023         * bits/byteswap.h (__bswap_constant_16): Likewise.
60024
60025 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60026
60027         [BZ #14117]
60028         * sysdeps/i386/fpu_control.h: Removed.
60029         * sysdeps/x86_64/fpu_control.h: Moved to ...
60030         * sysdeps/x86/fpu_control.h: Here.
60031
60032         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60033         (_FPU_SETCW): Likewise.
60034
60035 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60036
60037         [BZ #14117]
60038         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60039         * sysdeps/x86/fpu/bits/mathinline.h: This.
60040         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60041
60042         [BZ #14050]
60043         [BZ #14117]
60044         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60045         functions if __x86_64__ is defined.
60046
60047 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60048
60049         * string/endian.h: Add !__ASSEMBLER__ condition for including
60050         conversion interfaces.
60051
60052 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60053
60054         [BZ #14241]
60055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60056         of ABS(x) in calculating zero to negative powers other than odd
60057         integers.
60058         * math/libm-test.inc (pow_test): Add more tests.
60059
60060 2012-06-15  Andreas Jaeger  <aj@suse.de>
60061
60062         * manual/contrib.texi (Contributors): Update entry of Liubov
60063         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60064         Machado Filho.
60065
60066 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60067
60068         * string/string.h: Add __wur to GNU version of strerror_r.
60069
60070 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60071
60072         [BZ #14229]
60073         * string/Makefile (tests): Add tst-strtok_r.
60074         * string/tst-strtok_r.c: New file.
60075         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60076         RAX_LP/RDX_LP on SAVE_PTR.
60077
60078 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60079
60080         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60081
60082 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60083
60084         * libm_test.inc (csqrt_test): Allow more spurious underflow
60085         exceptions.
60086         (j0_test): Likewise.
60087         (j1_test): Likewise.
60088         (y0_test): Likewise.
60089         (y1_test): Likewise.
60090
60091 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60092
60093         * po/Makefile (libc.pot): Use UTF-8 charset.
60094
60095 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60096
60097         [BZ #14210]
60098         Suppress sign-conversion warning from FD_SET.
60099         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60100         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60101         not unsigned long int.
60102         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60103
60104 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60105
60106         [BZ #14050]
60107         [BZ #14117]
60108         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60109         __extern_always_inline instead of __extern_inline.
60110         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60111         (__signbit): Likewise.
60112         (__signbitl): Support C++ namespace.
60113         (lrintf): New inline function.
60114         (lrint): Likewise.
60115         (llrintf): Likewise.
60116         (llrint): Likewise.
60117         (fmaxf): Likewise.
60118         (fmax): Likewise.
60119         (fminf): Likewise.
60120         (fmin): Likewise.
60121         (rint): Likewise.
60122         (rintf): Likewise.
60123         (ceil): Likewise.
60124         (ceilf): Likewise.
60125         (floor): Likewise.
60126         (floorf): Likewise.
60127         (nearbyint): Likewise.
60128         (nearbyintf): Likewise.
60129
60130 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60131
60132         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60133         non-default versions.
60134
60135 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60136
60137         [BZ #14218]
60138         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60139
60140 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60141
60142         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60143         (FE_UPWARD, FE_DOWNWARD): Don't define.
60144         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60145         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60146
60147         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60148         reading it.
60149         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60150         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60151
60152 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60153
60154         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60155         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60156         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60157         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60158
60159 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60160
60161         [BZ #14117]
60162         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60163         * sysdeps/i386/fpu/Implies: New file.
60164         * sysdeps/x86_64/fpu/Implies: Likewise.
60165         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60166         * sysdeps/x86/fpu/bits/fenv.h: This.
60167
60168         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60169         __SSE_MATH__.
60170
60171 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60172
60173         [BZ #14134]
60174         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60175         character 0xffff that matches the last element of the
60176         conversion table.
60177
60178 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60179
60180         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60181         fmodl commit.
60182
60183 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60184
60185         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60186         values higher than 25.6283.
60187
60188 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60189
60190         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60191         subnormal exponent extraction and add some __builtin_expect.
60192         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60193         Fix for subnormal mantissa calculation.
60194
60195 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60196
60197         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60198         cpu2 is -1 and errno is not ENOSYS.
60199
60200 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60201
60202         [BZ #14117]
60203         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60204         * sysdeps/x86/bits/string.h: This.
60205         * sysdeps/x86_64/bits/string.h: Removed.
60206
60207         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60208         if not compiling for x86-64, but compiling for >= i486.
60209
60210         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60211         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60212
60213         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60214         New macro from Linux kernel 3.4.0.
60215         (FP_XSTATE_MAGIC2): Likewise.
60216         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60217         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60218         (struct _fpx_sw_bytes): New struct.
60219         (struct _xsave_hdr): Likewise.
60220         (struct _ymmh_state): Likewise.
60221         (struct _xstate): Likewise.
60222
60223         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60224         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60225         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60226         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60227         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60228         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60229
60230         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60231         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60232         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60233         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60234         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60235         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60236
60237 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60238
60239         [BZ #13743]
60240         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60241         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60242         (sysdep_headers): Include sys/platform/ppc.h.
60243         * sysdeps/powerpc/test-gettimebase.c: Test for
60244         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60245         * manual/Makefile (appendices): Include platform.texi.
60246         * manual/contrib.texi (Contributors): Update @node pointers.
60247         * manual/maint.texi (Maintenance): Likewise.
60248         (Platform): New node.
60249         * manual/platform.texi: New file.  Document the new features.
60250
60251 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60252             Jakub Jelinek  <jakub@redhat.com>
60253
60254         [BZ #14188]
60255         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60256         where __builtin_expect is unavailable.
60257
60258 2012-06-03  David S. Miller  <davem@davemloft.net>
60259
60260         * stdlib/longlong.h: Updated from GCC.
60261
60262 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60263
60264         [BZ #14042]
60265         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60266         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60267         __mcount_internal.
60268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60269         (GLIBC_2.16): Likewise.
60270
60271 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60272
60273         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60274
60275 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60276
60277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60278         (default-abi): New variable.
60279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60280         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60281         variable.
60282         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60283         Likewise.
60284         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60285         Likewise.
60286         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60287         Likewise.
60288
60289         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60290         definition.  Document in comment.
60291
60292 2012-06-01  David S. Miller  <davem@davemloft.net>
60293
60294         * stdlib/longlong.h: Updated from GCC.
60295
60296 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60297
60298         [BZ #14117]
60299         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60300         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60301         sys/debugreg.h sys/io.h here.
60302         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60303         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60304         sys/io.h.
60305         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60306         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60307         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60308         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60309         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60310         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60311
60312         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60313         Define only if __x86_64__ is defined.
60314
60315 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60316
60317         [BZ #14048]
60318         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60319         Use int64_t for variable i.
60320         * math/libm-test.inc (fmod_test): Add more tests.
60321
60322         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60323         z computation is not scheduled after fetestexcept.
60324         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60325         Use math_force_eval instead of asm to ensure calculation scheduled
60326         before exception test.
60327         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60328         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60329
60330 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60331
60332         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60333         computation is not scheduled after fetestexcept.
60334
60335 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60336
60337         [BZ #14117]
60338         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60339         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60340
60341 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60342
60343         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60344         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60345
60346 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60347
60348         [BZ #14117]
60349         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60350         <bits/wordsize.h>.
60351         (__WCHAR_MIN): Support __WORDSIZE == 64.
60352         (__WCHAR_MAX): Likewise.
60353
60354         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60355         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60356
60357         [BZ #14183]
60358         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60359         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60360
60361         [BZ #14117]
60362         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60363         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60364
60365         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60366         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60367
60368         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60369         Defined to 1 if __x86_64__ isn't defined.
60370         (_STAT_VER_LINUX_OLD): New.
60371         (st_atime): Remove duplicate.
60372         (st_mtime): Likewise.
60373         (st_ctime): Likewise.
60374
60375 2012-05-31  David S. Miller  <davem@davemloft.net>
60376
60377         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60378         entries.
60379
60380 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60381
60382         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60383         gen-libm-test.pl.
60384
60385         [BZ #14132]
60386         * elf/dl-reloc.c: Include <_itoa.h>.
60387         (_dl_reloc_bad_type): Remove use of INTUSE.
60388         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60389         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60390         * stdio-common/psiginfo.c (psiginfo): Likewise.
60391         * stdio-common/psignal.c (psignal): Likewise.
60392         * string/strsignal.c (strsignal): Likewise.
60393         * include/signal.h (_sys_siglist): Declare hidden proto.
60394         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60395         INTVARDEF with libc_hidden_data_def.
60396         * stdio-common/itoa-udigits.c: Likewise.
60397         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60398         (_itoa_lower_digits_internal): Remove declaration.
60399         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60400         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60401         (_sys_sigabbrev_internal): Remove aliases.
60402         (_sys_siglist): Define hidden alias.
60403
60404 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60405
60406         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60407         bits/sysctl.h.
60408
60409 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60410
60411         [BZ #14117]
60412         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60413         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60414
60415         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60416         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60417         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60418         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60419         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60420         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60421
60422         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60423         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60424         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60425
60426         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60427         with __addr.
60428         (insw): Likewise.
60429         (insl): Likewise.
60430         (outsb): Likewise.
60431         (outsw): Likewise.
60432         (outsl): Likewise.
60433
60434         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60435         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60436         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60437
60438         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60439         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60440         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60441         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60442         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60443         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60444
60445         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60446         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60447
60448         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60449         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60450
60451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60452         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60453         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60454
60455         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60456         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60457         to ...
60458         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60459
60460         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60461         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60462         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60463
60464         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60465         for x86-64.
60466         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60467
60468 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60469
60470         * math/math.h (M_El): Use two more decimal places.
60471         (M_LOG2El): Likewise.
60472         (M_LOG10El): Likewise.
60473         (M_LN2l): Likewise.
60474         (M_LN10l): Likewise.
60475         (M_PIl): Likewise.
60476         (M_PI_2l): Likewise.
60477         (M_PI_4l): Likewise.
60478         (M_1_PIl): Likewise.
60479         (M_2_PIl): Likewise.
60480         (M_2_SQRTPIl): Likewise.
60481         (M_SQRT2l): Likewise.
60482         (M_SQRT1_2l): Likewise.
60483
60484 2012-05-31  David S. Miller  <davem@davemloft.net>
60485
60486         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60487         values between float registers.
60488         * sysdeps/sparc/sparc64/memset.S: Likewise.
60489         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60490
60491 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60492
60493         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60494         -D_FORTIFY_SOURCE=1.
60495         (CPPFLAGS-tst-longjmp_chk.c): Define.
60496         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60497         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60498         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60499         CFLAGS-tst-wchar-h.c.
60500
60501 2012-05-31  Marek Polacek  <polacek@redhat.com>
60502
60503         [BZ #14132]
60504         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60505         __endmntent_internal): Remove declaration.
60506         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60507         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60508         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60509
60510 2012-05-30  David S. Miller  <davem@davemloft.net>
60511
60512         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60513         (___Q_simulate_exceptions): Use real FP ops rather than writing
60514         into the %fsr.
60515         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60516         Likewise.
60517
60518 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60519
60520         [BZ #14117]
60521         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60522         * sysdeps/x86/bits/xtitypes.h: This.
60523
60524         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60525         * sysdeps/x86/bits/wordsize.h: This.
60526
60527         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60528         * sysdeps/x86/bits/huge_vall.h: This.
60529
60530         * sysdeps/i386/bits/select.h: Removed.
60531         * sysdeps/x86_64/bits/select.h: Renamed to ...
60532         * sysdeps/x86/bits/select.h: This.
60533
60534         * sysdeps/i386/bits/setjmp.h: Removed.
60535         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60536         * sysdeps/x86/bits/setjmp.h: This.
60537
60538         * sysdeps/i386/bits/mathdef.h: Removed.
60539         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60540         * sysdeps/x86/bits/mathdef.h: This.
60541
60542 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60543
60544         [BZ #14132]
60545         * include/sys/socket.h (__connect_internal)
60546         (__libc_sa_len_internal): Remove declaration.
60547         (__connect, __libc_sa_len): Declare hidden_proto.
60548         (SA_LEN): Remove use of INTUSE.
60549         * socket/connect.c: Add libc_hidden_def.
60550         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60551         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60552         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60553         alias.
60554         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60555         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60556         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60557         of adding _internal alias.
60558
60559 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60560
60561         [BZ #14117]
60562         * sysdeps/i386/bits/link.h: Removed.
60563         * sysdeps/i386/bits/linkmap.h: Likewise.
60564         * sysdeps/x86_64/bits/link.h: Renamed to ...
60565         * sysdeps/x86/bits/link.h: This.
60566         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60567         * sysdeps/x86/bits/linkmap.h: This.
60568
60569         * sysdeps/i386/bits/endian.h: Removed.
60570         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60571         * sysdeps/x86/bits/endian.h: This.
60572
60573         * sysdeps/i386/bits/byteswap.h: Removed.
60574         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60575         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60576         * sysdeps/x86/bits/byteswap.h: This.
60577         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60578         * sysdeps/x86/bits/byteswap-16.h: This.
60579         * sysdeps/i386/Implies: Add x86.
60580         * sysdeps/x86_64/Implies: Likewise.
60581
60582 2012-05-30  David S. Miller  <davem@davemloft.net>
60583
60584         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60585         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60586         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60587         (FP_TRAPPING_EXCEPTIONS): Define.
60588         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60589         (FP_TRAPPING_EXCEPTIONS): Define.
60590         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60591         subnormals only when inexact has been signalled or underflow
60592         exceptions are enabled.
60593         (_FP_PACK_CANONICAL): Likewise.
60594
60595 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60596
60597         [BZ #14183]
60598         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60599         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60600
60601 2012-05-30  Richard Henderson  <rth@twiddle.net>
60602
60603         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60604         with #ifndef NOT_IN_libc.
60605
60606         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60607         marked to avoid plt entry.
60608
60609 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60610
60611         [BZ #14112]
60612         * Makeconfig (default-abi): New macro.
60613         (abi-includes): Likewise.
60614         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60615         $(abi-$(default-abi)-lib-soname) for soname if defined.
60616         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60617         abi-variants.
60618         * Makefile (installed-stubs): Likewise.
60619         * include/stubs-biarch.h: Removed.
60620         * scripts/lib-names.awk: Only handle one library at a time.
60621         * scripts/soversions.awk: Remove WORDSIZE support.
60622         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60623         entries.
60624         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60625         Removed.
60626         (syscall-list-default-condition): Likewise.
60627         (syscall-list-default-condition): Likewise.
60628         (syscall-list-includes): Likewise.
60629         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60630         syscall-list-* with abi-*.  Handle undefined abi-variants.
60631         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60632         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60633         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60634         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60635         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60636         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60637         Removed.
60638         (syscall-list-32-options): Likewise.
60639         (syscall-list-32-condition): Likewise.
60640         (syscall-list-64-options): Likewise.
60641         (syscall-list-64-condition): Likewise.
60642         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60643         macro.
60644         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60645         Renamed to ...
60646         (abi-*): This.
60647         (abi-64-ld-soname): New macro.
60648         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60649         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60650         Renamed to ...
60651         (abi-*): This.
60652         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60653         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60654
60655 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60656
60657         * sysdeps/unix/sysv/linux/kernel-features.h
60658         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60659         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60660         include <kernel-features.h>.
60661         [!__NR_ftruncate64]: Remove conditional code.
60662         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60663         [__NR_ftruncate64]: Make code unconditional.
60664         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60665         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60666         include <kernel-features.h>.
60667         [!__NR_ftruncate64]: Remove conditional code.
60668         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60669         [__NR_ftruncate64]: Make code unconditional.
60670         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60672         include <kernel-features.h>.
60673         [!__NR_ftruncate64]: Remove conditional code.
60674         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60675         [__NR_ftruncate64]: Make code unconditional.
60676         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60678         include <kernel-features.h>.
60679         [!__NR_ftruncate64]: Remove conditional code.
60680         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60681         [__NR_ftruncate64]: Make code unconditional.
60682         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60683
60684         * configure.in (libc_cv_fpie): Weaken to a compile test using
60685         LIBC_TRY_CC_OPTION.
60686         * configure: Regenerated.
60687
60688 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60689
60690         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60694         Refreshed.
60695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60699         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60701         Refreshed.
60702
60703 2012-05-27  David S. Miller  <davem@davemloft.net>
60704
60705         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60706         (___Q_zero): New.
60707         (__Q_simulate_exceptions): Return void.  Change to simulate
60708         exceptions by writing into the %fsr.
60709         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60710         (__Qp_handle_exceptions): Likewise.
60711         (numbers): Delete.
60712         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60713         __Qp_handle_exceptions.
60714         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60715         __Qp_handle_exceptions.
60716         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60717         as unused and give dummy FP_RND_NEAREST initializer.
60718         (FP_INHIBIT_RESULTS): Define.
60719         (___Q_simulate_exceptions): Update declaration.
60720         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60721         formatting.
60722         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60723         as unused and give dummy FP_RND_NEAREST initializer.
60724         (__Qp_handle_exceptions): Update declaration.
60725         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60726         formatting.
60727
60728 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60729
60730         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60731         the temporary FPU control word.
60732         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60733         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60734         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60735         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60736         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60737         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60738         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60739         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60740         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60741         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60742         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60743
60744 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60745
60746         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60747         fields.
60748
60749 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60750
60751         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60752         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60753         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60754         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60755         Likewise.
60756         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60757         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60758         Likewise.
60759
60760 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60761
60762         * po/h.po: Update from translation team.
60763
60764 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60765
60766         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60767
60768         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60769         handling of denormals.
60770         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60771         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60772         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60773         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60774         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60775         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60776         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60777         Likewise.
60778
60779 2012-05-26  Marek Polacek  <polacek@redhat.com>
60780
60781         [BZ #14152]
60782         * math/libm-test.inc (fma_test): Don't always expect underflow
60783         exception.
60784
60785 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60786
60787         [BZ #12416]
60788         * elf/tst-execstack.c: Include stackinfo.h.
60789         (do_test): Adjust test case to ensure that pthread_getattr_np
60790         behaviour remains the same after marking stack executable.
60791
60792 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60793
60794         * sysdeps/unix/sysv/linux/kernel-features.h
60795         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60796         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60797         kernel-features.h.
60798         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60799         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60800         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60801         kernel-features.h.
60802         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60803         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60804
60805 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60806
60807         * configure.in: Define the default includes to being none.
60808         * configure: Regenerated.
60809
60810 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60811
60812         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60813         * sysdeps/x86_64/setjmp.S: Likewise.
60814         * sysdeps/i386/bsd-setjmp.S: Likewise.
60815         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60816         * sysdeps/i386/setjmp.S: Likewise.
60817         * sysdeps/i386/__longjmp.S: Likewise.
60818         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60819         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60820
60821         * include/stap-probe.h: New file.
60822         * configure.in: Handle --enable-systemtap.
60823         * configure: Regenerated.
60824         * config.h.in (USE_STAP_PROBE): New #undef.
60825         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60826         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60827         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60828
60829 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60830
60831         [BZ #13717]
60832         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60833         to 2.4.0 where earlier.
60834         * sysdeps/unix/sysv/linux/configure: Regenerated.
60835         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60836         <kernel-features.h>.
60837         [__ASSUME_32BITUIDS]: Make code unconditional.
60838         [!__ASSUME_32BITUIDS]: Remove conditional code.
60839         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60840         <kernel-features.h>.
60841         [__ASSUME_32BITUIDS]: Make code unconditional.
60842         [!__ASSUME_32BITUIDS]: Remove conditional code.
60843         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60844         [__ASSUME_32BITUIDS]: Make code unconditional.
60845         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60846         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60847         <kernel-features.h>.
60848         [__ASSUME_32BITUIDS]: Make code unconditional.
60849         [!__ASSUME_32BITUIDS]: Remove conditional code.
60850         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
60851         <kernel-features.h>.
60852         [__ASSUME_32BITUIDS]: Make code unconditional.
60853         [!__ASSUME_32BITUIDS]: Remove conditional code.
60854         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
60855         <kernel-features.h>.
60856         [__ASSUME_32BITUIDS]: Make code unconditional.
60857         [!__ASSUME_32BITUIDS]: Remove conditional code.
60858         * sysdeps/unix/sysv/linux/i386/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
60887         <kernel-features.h>.
60888         [__NR_setresgid] (__setresgid): Do not declare.
60889         [__ASSUME_32BITUIDS]: Make code unconditional.
60890         [!__ASSUME_32BITUIDS]: Remove conditional code.
60891         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
60892         <kernel-features.h>.
60893         [__NR_setresuid] (__setresuid): Do not declare.
60894         [__ASSUME_32BITUIDS]: Make code unconditional.
60895         [!__ASSUME_32BITUIDS]: Remove conditional code.
60896         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
60897         <kernel-features.h>.
60898         [__ASSUME_32BITUIDS]: Make code unconditional.
60899         [!__ASSUME_32BITUIDS]: Remove conditional code.
60900         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
60901         <kernel-features.h>.
60902         [__ASSUME_32BITUIDS]: Make code unconditional.
60903         [!__ASSUME_32BITUIDS]: Remove conditional code.
60904         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
60905         <kernel-features.h>.
60906         [__ASSUME_32BITUIDS]: Make code unconditional.
60907         [!__ASSUME_32BITUIDS]: Remove conditional code.
60908         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
60909         <kernel-features.h>.
60910         [__ASSUME_32BITUIDS]: Make code unconditional.
60911         [!__ASSUME_32BITUIDS]: Remove conditional code.
60912         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
60913         <kernel-features.h>.
60914         [__ASSUME_32BITUIDS]: Make code unconditional.
60915         [!__ASSUME_32BITUIDS]: Remove conditional code.
60916         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
60917         <kernel-features.h>.
60918         [__ASSUME_32BITUIDS]: Make code unconditional.
60919         [!__ASSUME_32BITUIDS]: Remove conditional code.
60920         * sysdeps/unix/sysv/linux/i386/setresuid.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/i386/setreuid.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/i386/setuid.c: Do not include
60929         <kernel-features.h>.
60930         [__ASSUME_32BITUIDS]: Make code unconditional.
60931         [!__ASSUME_32BITUIDS]: Remove conditional code.
60932         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
60933         <kernel-features.h>.
60934         [__ASSUME_32BITUIDS]: Make code unconditional.
60935         [!__ASSUME_32BITUIDS]: Remove conditional code.
60936         * sysdeps/unix/sysv/linux/kernel-features.h
60937         (__ASSUME_SETRESUID_SYSCALL): Remove.
60938         (__ASSUME_SETRESGID_SYSCALL): Likewise.
60939         (__ASSUME_32BITUIDS): Likewise.
60940         (__ASSUME_LDT_WORKS): Likewise.
60941         (__ASSUME_O_DIRECTORY): Likewise.
60942         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
60943         architecture but not kernel version.
60944         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
60945         (__ASSUME_MMAP2_SYSCALL): Likewise.
60946         (__ASSUME_STAT64_SYSCALL): Likewise.
60947         (__ASSUME_IPC64): Likewise.
60948         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
60949         <kernel-features.h>.
60950         [__ASSUME_32BITUIDS]: Make code unconditional.
60951         [!__ASSUME_32BITUIDS]: Remove conditional code.
60952         * sysdeps/unix/sysv/linux/opendir.c: Do not include
60953         <kernel-features.h>.
60954         [__ASSUME_O_DIRECTORY]: Make code unconditional.
60955         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
60956         132096]: Remove conditional code.
60957         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
60958         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
60959         <kernel-features.h>.
60960         [__ASSUME_32BITUIDS]: Make code unconditional.
60961         [!__ASSUME_32BITUIDS]: Remove conditional code.
60962         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
60963         <kernel-features.h>.
60964         [__ASSUME_32BITUIDS]: Make code unconditional.
60965         [!__ASSUME_32BITUIDS]: Remove conditional code.
60966         * sysdeps/unix/sysv/linux/setegid.c: Do not include
60967         <kernel-features.h>.
60968         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
60969         unconditional.
60970         (__setresgid): Do not declare.
60971         [__ASSUME_32BITUIDS]: Make code unconditional.
60972         [!__ASSUME_32BITUIDS]: Remove conditional code.
60973         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
60974         <kernel-features.h>.
60975         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
60976         unconditional.
60977         (__setresuid): Do not declare.
60978         [__ASSUME_32BITUIDS]: Make code unconditional.
60979         [!__ASSUME_32BITUIDS]: Remove conditional code.
60980         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
60981         <kernel-features.h>.
60982         [__ASSUME_32BITUIDS]: Make code unconditional.
60983         [!__ASSUME_32BITUIDS]: Remove conditional code.
60984         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
60985         <kernel-features.h>.
60986         [__ASSUME_32BITUIDS]: Make code unconditional.
60987         [!__ASSUME_32BITUIDS]: Remove conditional code.
60988
60989 2012-05-25  Richard Henderson  <rth@twiddle.net>
60990
60991         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
60992         dl_hwcap to ifunc resolver.
60993         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
60994         elf_ifunc_invoke.
60995         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
60996         dl_hwcap to ifunc resolver.
60997         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
60998
60999 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61000
61001         [BZ #14153]
61002         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61003         for |x| <= 2**-26, not 2**-57.
61004         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61005         exception.
61006
61007 2012-05-24  Jeff Law  <law@redhat.com>
61008
61009         * stdio-common/Makefile (tests): Add bug25.
61010         * stdio-common/bug25.c: New test.
61011
61012 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61013
61014         [BZ #13576]
61015         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61016         multiple of MALLOC_ALIGNMENT in size.
61017         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61018
61019 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61020
61021         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61022         Require >= 256.
61023         (FILENAME_MAX): Use macro-int-constant.
61024         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61025         (_IOFBF): Use macro-int-constant.
61026         (_IOLBF): Likewise.
61027         (_IONBF): Likewise.
61028         (SEEK_CUR): Likewise.
61029         (SEEK_END): Likewise.
61030         (SEEK_SET): Likewise.
61031         (TMP_MAX): Likewise.
61032         (EOF): Use macro-int-constant.  Require < 0.
61033         (NULL): Use macro-constant.  Require == 0.
61034         (stdin): Require type to be FILE *.
61035         (stdout): Likewise.
61036         (stderr): Likewise.
61037         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61038         macro-int-constant.
61039         (EXIT_SUCCESS): Likewise.
61040         (NULL): Use macro-constant.  Require == 0.
61041         (RAND_MAX): Use macro-int-constant.
61042         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61043         [C99-based standards] (strtof): Require function.
61044         [C99-based standards] (strtold): Likewise.
61045         [C99-based standards] (strtoll): Likewise.
61046         [C99-based standards] (strtoull): Likewise.
61047         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61048         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61049         [ISO || ISO99 || ISO11] (math.h): Likewise.
61050         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61051         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61052         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61053
61054 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61055
61056         [BZ #14132]
61057         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61058         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61059         * intl/dgettext.c (DCGETTEXT): Likewise.
61060         * intl/gettext.c (DCGETTEXT): Likewise.
61061         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61062         * posix/regex_internal.h (gettext): Likewise.
61063         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61064         Remove declaration.
61065         * include/argz.h (__argz_count_internal)
61066         (__argz_stringify_internal): Remove declaration.
61067         (__argz_count, __argz_stringify): Declare hidden proto.
61068         * intl/dcgettext.c: Remove use of INTDEF.
61069         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61070         * string/argz-stringify.c: Likewise.
61071         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61072         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61073         Declare hidden proto.
61074         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61075         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61076         Declare hidden proto.
61077         * include/stdio.h (__asprintf_internal): Don't declare.
61078         (__asprintf): Don't define as macro.  Declare hidden proto.
61079         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61080         (__fsetlocking): Declare hidden proto.
61081         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61082         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61083         hidden proto.
61084         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61085         (_IO_setlinebuf): Remove use of INTUSE.
61086         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61087         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61088         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61089         Remove declaration.
61090         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61091         (_IO_do_flush): Remove use of INTUSE.
61092         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61093         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61094         (_IO_adjust_column, _IO_least_wmarker)
61095         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61096         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61097         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61098         (_IO_default_doallocate, _IO_wdefault_doallocate)
61099         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61100         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61101         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61102         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61103         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61104         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61105         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61106         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61107         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61108         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61109         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61110         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61111         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61112         proto.
61113         (_IO_flush_all_internal, _IO_adjust_column_internal)
61114         (_IO_default_uflow_internal, _IO_default_finish_internal)
61115         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61116         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61117         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61118         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61119         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61120         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61121         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61122         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61123         (_IO_file_close_internal, _IO_file_close_it_internal)
61124         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61125         (_IO_file_init_internal, _IO_file_attach_internal)
61126         (_IO_file_fopen_internal, _IO_file_read_internal)
61127         (_IO_file_sync_internal, _IO_file_seek_internal)
61128         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61129         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61130         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61131         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61132         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61133         (_IO_list_all_internal, _IO_link_in_internal)
61134         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61135         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61136         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61137         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61138         (_IO_do_write_internal, _IO_padn_internal)
61139         (_IO_getline_info_internal, _IO_getline_internal)
61140         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61141         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61142         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61143         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61144         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61145         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61146         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61147         with libc_hidden_ver, remove use of INTUSE.
61148         * libio/genops.c: Likewise.
61149         * libio/freopen.c: Likewise.
61150         * libio/freopen64.c: Likewise.
61151         * libio/iofclose.c: Likewise.
61152         * libio/iofdopen.c: Likewise.
61153         * libio/iofflush.c: Likewise.
61154         * libio/iofflush_u.c: Likewise.
61155         * libio/iofgets.c: Likewise.
61156         * libio/iofgets_u.c: Likewise.
61157         * libio/iofopen.c: Likewise.
61158         * libio/iofopncook.c: Likewise.
61159         * libio/iofread.c: Likewise.
61160         * libio/iofread_u.c: Likewise.
61161         * libio/ioftell.c: Likewise.
61162         * libio/iofwrite.c: Likewise.
61163         * libio/iogetline.c: Likewise.
61164         * libio/iogets.c: Likewise.
61165         * libio/iogetwline.c: Likewise.
61166         * libio/iopadn.c: Likewise.
61167         * libio/iopopen.c: Likewise.
61168         * libio/ioseekoff.c: Likewise.
61169         * libio/ioseekpos.c: Likewise.
61170         * libio/iosetbuffer.c: Likewise.
61171         * libio/iosetvbuf.c: Likewise.
61172         * libio/ioungetc.c: Likewise.
61173         * libio/ioungetwc.c: Likewise.
61174         * libio/iovdprintf.c: Likewise.
61175         * libio/iovsprintf.c: Likewise.
61176         * libio/iovsscanf.c: Likewise.
61177         * libio/memstream.c: Likewise.
61178         * libio/obprintf.c: Likewise.
61179         * libio/oldfileops.c: Likewise.
61180         * libio/oldiofclose.c: Likewise.
61181         * libio/oldiofdopen.c: Likewise.
61182         * libio/oldiofopen.c: Likewise.
61183         * libio/oldiopopen.c: Likewise.
61184         * libio/oldstdfiles.c: Likewise.
61185         * libio/putc.c: Likewise.
61186         * libio/setbuf.c: Likewise.
61187         * libio/setlinebuf.c: Likewise.
61188         * libio/stdfiles.c: Likewise.
61189         * libio/strops.c: Likewise.
61190         * libio/vasprintf.c: Likewise.
61191         * libio/vscanf.c: Likewise.
61192         * libio/vsnprintf.c: Likewise.
61193         * libio/vswprintf.c: Likewise.
61194         * libio/wfiledoalloc.c: Likewise.
61195         * libio/wfileops.c: Likewise.
61196         * libio/wgenops.c: Likewise.
61197         * libio/wmemstream.c: Likewise.
61198         * libio/wstrops.c: Likewise.
61199         * libio/__fpurge.c: Likewise.
61200         * libio/__fsetlocking.c: Likewise.
61201         * assert/assert.c: Likewise.
61202         * debug/fgets_chk.c: Likewise.
61203         * debug/fgets_u_chk.c: Likewise.
61204         * debug/fread_chk.c: Likewise.
61205         * debug/fread_u_chk.c: Likewise.
61206         * debug/gets_chk.c: Likewise.
61207         * debug/obprintf_chk.c: Likewise.
61208         * debug/vasprintf_chk.c: Likewise.
61209         * debug/vdprintf_chk.c: Likewise.
61210         * debug/vsnprintf_chk.c: Likewise.
61211         * debug/vsprintf_chk.c: Likewise.
61212         * malloc/mtrace.c: Likewise.
61213         * misc/error.c: Likewise.
61214         * misc/syslog.c: Likewise.
61215         * stdio-common/asprintf.c: Likewise.
61216         * stdio-common/fxprintf.c: Likewise.
61217         * stdio-common/getw.c: Likewise.
61218         * stdio-common/isoc99_fscanf.c: Likewise.
61219         * stdio-common/isoc99_scanf.c: Likewise.
61220         * stdio-common/isoc99_vfscanf.c: Likewise.
61221         * stdio-common/isoc99_vscanf.c: Likewise.
61222         * stdio-common/isoc99_vsscanf.c: Likewise.
61223         * stdio-common/printf-prs.c: Likewise.
61224         * stdio-common/printf_fp.c: Likewise.
61225         * stdio-common/printf_fphex.c: Likewise.
61226         * stdio-common/printf_size.c: Likewise.
61227         * stdio-common/putw.c: Likewise.
61228         * stdio-common/scanf.c: Likewise.
61229         * stdio-common/sprintf.c: Likewise.
61230         * stdio-common/tmpfile.c: Likewise.
61231         * stdio-common/vfprintf.c: Likewise.
61232         * stdio-common/vfscanf.c: Likewise.
61233         * stdlib/strfmon_l.c: Likewise.
61234         * sunrpc/openchild.c: Likewise.
61235         * sunrpc/xdr_stdio.c: Likewise.
61236         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61237         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61238
61239 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61240
61241         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61242
61243         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61244         in the third column, to generate for the shared library an IFUNC
61245         that uses _dl_vdso_vsym.
61246         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61247         * Makeconfig (object-suffixes-noshared): New variable.
61248
61249         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61250         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61251         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61252         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61253
61254         [BZ #14132]
61255         * include/sys/time.h (__gettimeofday): Remove macro.
61256         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61257         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61258         Remove INTDEF.
61259         (__gettimeofday): Add libc_hidden_def.
61260         (gettimeofday): Add libc_hidden_weak.
61261         * sysdeps/mach/gettimeofday.c: Likewise.
61262         * sysdeps/posix/gettimeofday.c: Likewise.
61263         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61264         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61265         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61266         (__gettimeofday_internal): Remove strong_alias.
61267         (__gettimeofday): Add libc_hidden_def.
61268         (gettimeofday): Add libc_hidden_weak.
61269         * sysdeps/unix/syscalls.list (gettimeofday):
61270         Remove __gettimeofday_internal alias.
61271
61272 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61273             H.J. Lu  <hongjiu.lu@intel.com>
61274
61275         [BZ #12495]
61276         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61277         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61278         (largebin_index_32_big): New.
61279         (largebin_index): Use it for 16-byte alignment.
61280         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61281         correction with front_misalign.
61282
61283 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61284
61285         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61286         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61287         Likewise.
61288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61289         Likewise.
61290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61291         Likewise.
61292         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61293         Likewise.
61294         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61295         Likewise.
61296         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61297         Likewise.
61298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61299         Likewise.
61300         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61301         Likewise.
61302         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61303         Likewise.
61304         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61305         Likewise.
61306         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61307         Likewise.
61308         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61309         Likewise.
61310
61311         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61312         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61313
61314 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61315
61316         [BZ #10846]
61317         [BZ #14036]
61318         * math/libm-test.inc (exp_test): Add test from bug 14036.
61319         (pow_test): Add test from bug 10846.
61320
61321         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61322         and other flags.
61323         (special_function): Do not include flags in test name.
61324         (parse_args): Likewise.
61325         * sysdeps/i386/fpu/libm-test-ulps: Update.
61326         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61327         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61328         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61330
61331         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61332         exceptions.
61333         * math/libm-test.inc ("Philosophy"): Update comment about
61334         exception testing.
61335         (UNDERFLOW_EXCEPTION): New macro.
61336         (UNDERFLOW_EXCEPTION_OK): Likewise.
61337         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61338         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61339         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61340         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61341         (INVALID_EXCEPTION_OK): Update value.
61342         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61343         (OVERFLOW_EXCEPTION_OK): Likewise.
61344         (IGNORE_ZERO_INF_SIGN): Likewise.
61345         (test_exceptions): Handle underflow exceptions.
61346         (acos_test): Update for underflow exception expectations.
61347         (cexp_test): Likewise.
61348         (clog_test): Likewise.
61349         (clog10_test): Likewise.
61350         (csqrt_test): Likewise.
61351         (ctan_test): Likewise.
61352         (ctanh_test): Likewise.
61353         (exp_test): Likewise.
61354         (exp10_test): Likewise.
61355         (exp2_test): Likewise.
61356         (expm1_test): Likewise.
61357         (fma_test): Likewise.
61358         (j0_test): Likewise.
61359         (jn_test): Likewise.
61360         (nexttoward_test): Likewise.
61361         (pow_test): Likewise.
61362         (scalbn_test): Likewise.
61363         (scalbln_test): Likewise.
61364         (tan_test): Likewise.
61365         (y1_test): Likewise.
61366         * sysdeps/i386/fpu/libm-test-ulps: Update.
61367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61368
61369 2012-05-23  David S. Miller  <davem@davemloft.net>
61370
61371         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61372         (__libc_sigaction): Remove unused local variables.
61373
61374 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61375
61376         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61377
61378 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         mktime: avoid signed integer overflow
61381         * time/mktime.c (__mktime_internal): Do not mishandle the case
61382         where diff == INT_MIN.
61383
61384         mktime: simplify computation of average
61385         * time/mktime.c (ranged_convert): Use new time_t_avg function
61386         instead of rolling our own (probably-slower) code.
61387
61388         mktime: do not assume signed right shift propagates sign bit
61389         * time/mktime.c (isdst_differ): New static function.
61390         (__mktime_internal): No need to normalize tm_isdst now.
61391         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61392         tm_isdst values.
61393
61394         mktime: merge another wrapv change from gnulib
61395         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61396         from some compilers.
61397
61398         mktime: remove incorrect attempt at unusual arithmetics
61399         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61400         The code didn't really work on such machines anyway.
61401         (TYPE_MINIMUM): Assume two's complement.
61402         (twos_complement_arithmetic): Verify that long_int and time_t
61403         are two's complement (or unsigned, in the latter case).
61404
61405         mktime: check signed shifts on long_int and time_t, too
61406         * time/mktime.c (SHR): Check that shifts work as desired
61407         on the types long_int and time_t too, as SHR is used on
61408         such types.
61409
61410         mktime: do not assume 'long' is wide enough
61411         * time/mktime.c (verify): Move decl up.
61412         (long_int): New type.
61413         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61414         to remove assumption in the code that 'long' is wide enough to
61415         store year values.  This assumption is not true on x32 and on
61416         some non-glibc platforms.
61417
61418         mktime: merge wrapv change from gnulib
61419         * time/mktime.c (WRAPV): New macro.
61420         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61421         (guess_time_tm, __mktime_internal): Do not assume that signed
61422         integer overflow wraps around; modern compilers generate code
61423         where this assumption is no longer valid.
61424
61425 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61426
61427         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61428         Replace "jmp L(pseudo_end)" with "ret".
61429         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61430         Likewise.
61431
61432 2012-05-23  Andreas Jaeger  <aj@suse.de>
61433
61434         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61435         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61436
61437 2012-05-23  Andreas Jaeger  <aj@suse.de>
61438             Maximilian Attems  <max@stro.at>
61439
61440         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61441         New macros.
61442
61443 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61444
61445         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61446         code so that pseudo_end is just ret and the stack pointer is
61447         correct also for static library in error case.
61448
61449 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61450
61451         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61452         move to syscalls.list.
61453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61457
61458         * manual/install.texi (Running make install): Do not mention Linux
61459         kernel version for which pt_chown is not needed.
61460         (Linux): Do not mention problems with nscd with 2.0 kernels.
61461         * INSTALL: Regenerated.
61462
61463 2012-05-23  Andreas Jaeger  <aj@suse.de>
61464
61465         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61466         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61467         macro.
61468         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61469         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61470         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61471         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61472         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61473         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61474         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61475         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61476         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61477         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61478         * sysdeps/unix/sysv/linux/bits/in.h
61479         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61480
61481 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61482
61483         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61484         (PREPARE_VERSION): Just use assert instead, it will be elided
61485         under [NDEBUG] anyway.
61486
61487 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61488
61489         * sysdeps/unix/sysv/linux/Makefile: Include
61490         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61491         (sysdep_routines): Remove sysctl.
61492         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61493         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61494         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61495         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61496         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61497
61498 2012-05-22  Andreas Jaeger  <aj@suse.de>
61499
61500         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61501         that pseudo_end is just ret and the stack pointer is correct also
61502         for static library in error case.
61503
61504 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61505
61506         [BZ #14122]
61507         * nss/nsswitch.c (defconfig_entries): New variable.
61508         (__nss_database_lookup): Don't leak defconfig entries.
61509         (nss_parse_service_list): Don't leak on error paths.
61510         (free_database_entries): New function.
61511         (free_defconfig): New function.
61512         (free_mem): Move common code to free_database_entries.
61513
61514 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61515
61516         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61517         Add arch_prctl.
61518         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61519
61520         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61521         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61522         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61523         New macro.
61524         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61525         (INTERNAL_SYSCALL_TYPES): Likewise.
61526         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61527         (LOAD_REGS_TYPES_[1-6]): Likewise.
61528         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61529         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61530
61531 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61532
61533         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61534         copysignl for GLIBC_2_0.
61535         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61536         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61537         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61538         logbl for GLIBC_2_0.
61539         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61540         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61541
61542 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61543
61544         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61545         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61546
61547         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61548         Use "neg %eax".
61549
61550         * time/mktime.c: Update copyright years.
61551
61552 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         mktime: merge comment-quoting-style change from gnulib
61555         * time/mktime.c: Quote 'like this' in comments.
61556         The GNU coding standards suggest that we no longer quote `like this',
61557         as "`" and "'" are typically rendered asymmetrically nowadays.
61558         The typical gnulib style is to quote 'like this' when quoting
61559         code, and "like this" when quoting English.
61560
61561         * time/mktime.c (compile-command): Add "-I.".
61562
61563         mktime: merge mktime-internal.h change from gnulib
61564         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61565
61566         mktime: merge time_r change from gnulib
61567         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61568
61569         mktime: merge DEBUG change from gnulib
61570         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61571         case system <time.h> has a #define.
61572
61573         mktime: merge <sys/types.h> change from gnulib
61574         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61575         since <time.t> is now guaranteed to define time_t.
61576
61577         mktime: merge HAVE_CONFIG_H change from gnulib
61578         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61579
61580 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61581
61582         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61583         Use "neg %eax".
61584
61585         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61586         __rlim_t cast.
61587         (struct rusage): Use anonymous union to pad each field to
61588         __syscall_slong_t.
61589
61590 2012-05-21  David S. Miller  <davem@davemloft.net>
61591
61592         * Makefules (o-iterator): Remove .s cases.
61593         (compile-command.s): Delete.
61594         (COMPILE.s): Delete.
61595         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61596
61597 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61598
61599         * configure.in (libc_cv_predef_stack_protector): Only consider
61600         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61601         * configure: Regenerated.
61602
61603 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61604
61605         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61606         New macro.  Use R*LP on int and pointer.
61607         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61608         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61609         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61610         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61611
61612         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61613         [__WORDSIZE_TIME64_COMPAT32] instead of
61614         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61615         (struct utmp): Likewise.
61616         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61617         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61618         Renamed to ...
61619         (__WORDSIZE_TIME64_COMPAT32): This.
61620         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61621         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61622         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61623         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61624         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61625         (__WORDSIZE_TIME64_COMPAT32): New macro.
61626
61627 2012-05-21  Andreas Jaeger  <aj@suse.de>
61628
61629         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61630         only if [SHARED]. Add prototype for __wcschr_ia32.
61631
61632 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61633
61634         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61635         of %rbp unmolested in the jmp_buf while mangling the low bits.
61636         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61637         unmolested high bits of %rbp while demangling the low bits.
61638         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61639
61640 2012-05-21  Andreas Jaeger  <aj@suse.de>
61641
61642         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61643         * sunrpc/svc_simple.c: Use it for registerrpc.
61644         * sunrpc/xcrypt.c: Use it for passwd2des.
61645
61646         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61647
61648 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61649
61650         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61651         Don't define if [__SYSCALL_WORDSIZE != 32].
61652         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61653         New macro.
61654
61655 2012-05-21  Bruno Haible  <bruno@clisp.org>
61656             Andreas Jaeger  <aj@suse.de>
61657
61658         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61659         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61660         inptr and inend for must_buffer_ch.
61661         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61662         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61663         * stdio-common/Makefile (tests): Remove bug15.
61664         (bug15-ENV): Remove macro.
61665         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61666         anymore.
61667
61668 2012-05-19  Andreas Jaeger  <aj@suse.de>
61669             Roland McGrath  <roland@hack.frob.com>
61670
61671         * manual/contrib.texi: Completely rewritten. It contains now an
61672         alphabetical list of contributors and their contributions.
61673
61674 2012-05-21  Richard Henderson  <rth@twiddle.net>
61675
61676         * misc/getauxval.c (__getauxval): Use unsigned long int.
61677         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61678         (getauxval): Use unsigned long int.
61679
61680 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61681
61682         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61683
61684 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61685
61686         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61687         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61688         __alignof__ (long double).
61689
61690 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61691
61692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61693
61694 2012-05-20  Richard Henderson  <rth@twiddle.net>
61695
61696         * misc/getauxval.c: New file.
61697         * misc/sys/auxv.h: New file.
61698         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61699         (routines): Add getauxval.
61700         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61701         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61702         * elf/dl-sysdep.c (_dl_auxv): Remove.
61703         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61704         * elf/dl-support.c (_dl_auxv): New variable.
61705         (_dl_aux_init): Initialize it.
61706         * manual/startup.texi (Auxiliary Vector): New node.
61707         * sysdeps/generic/bits/hwcap.h: New file.
61708         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61709         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61710         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61711         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61712         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61713         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61715         Update.
61716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61719         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61722         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61723         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61724
61725 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61726
61727         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61728
61729 2012-05-19  David S. Miller  <davem@davemloft.net>
61730
61731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61732
61733 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61734
61735         [BZ #14123]
61736         * math/s_ccosh.c: Include <float.h>
61737         (__ccosh): Avoid internal overflow calculating sinh and cosh
61738         values before multiplying by sin and cos values.
61739         * math/s_ccoshf.c: Likewise.
61740         * math/s_ccoshl.c: Likewise.
61741         * math/s_csin.c: Likewise.
61742         * math/s_csinf.c: Likewise.
61743         * math/s_csinl.c: Likewise.
61744         * math/s_csinh.c: Likewise.
61745         * math/s_csinhf.c: Likewise.
61746         * math/s_csinhl.c: Likewise.
61747         * math/libm-test.inc (ccos_test): Add more tests.
61748         (ccosh_test): Likewise.
61749         (csin_test): Likewise.
61750         (csinh_test): Likewise.
61751         * sysdeps/i386/fpu/libm-test-ulps: Update.
61752         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61753
61754 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61755
61756         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61757         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61758
61759         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61760
61761 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61762
61763         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61764         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61765         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61766         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61767         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61768         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61769         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61770         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61771         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61772         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61773         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61774         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61775         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61776         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61777         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61778         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61779         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61780         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61781         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61782         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61783         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61784         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61785         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61786         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61787         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61788         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61789         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61790         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61791         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61792         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61793         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61794
61795 2012-05-18  Andreas Jaeger  <aj@suse.de>
61796
61797         * csu/.gitignore: Delete.
61798
61799 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61800
61801         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61802         (timex): Use __syscall_slong_t.
61803
61804 2012-05-18  Andreas Jaeger  <aj@suse.de>
61805             Carlos O'Donell  <carlos_odonell@mentor.com>
61806
61807         * manual/install.texi (Configuring and compiling): Update
61808         description about files modified in the source directory.
61809         * INSTALL: Regenerated.
61810
61811 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61812
61813         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61814         value.  Use "or" to set return value to -1.
61815         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61816         negate return value.
61817
61818 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61819
61820         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61821         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61822         failure if the compiler has Graphite support disabled.
61823         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61824         Likewise.
61825         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61826         (CFLAGS-memmove.c): Likewise.
61827         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61828         Likewise.
61829
61830 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61831
61832         * sysdeps/x86_64/x32/_itoa.h: New file.
61833
61834         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61835         getdents system call only if kernel and user dirents have the
61836         same d_ino and d_off.
61837
61838         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61839         LLONG_MAX != LONG_MAX.
61840         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61841         (_fitoa_word): Likewise.
61842
61843         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61844         years.
61845         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61846         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61847         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61848
61849         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
61850         include <bits/wordsize.h>.  Check __x86_64__ instead of
61851         __WORDSIZE.
61852         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
61853         if __x86_64__ is defined.  Use anonymous union on fpstate.
61854
61855         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
61856         anonymous union.
61857
61858 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
61859
61860         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
61861         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
61862         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
61863         Refer to _rtld_local_ro instead of _rtld_global_ro.
61864         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
61865         Likewise.
61866         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
61867         Likewise.
61868         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
61869         Likewise.
61870         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
61871         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
61872         of _rtld_global, and rtld_progname instead of _dl_argv[0].
61873
61874         [BZ #10882]
61875         * sysdeps/powerpc/powerpc32/dl-machine.c
61876         (__elf_machine_runtime_setup) [PROF]: Don't reference
61877         _dl_prof_resolve.
61878
61879 2012-05-18  Andreas Jaeger  <aj@suse.de>
61880
61881         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
61882         function only available for GCCs before 3.4 since GCC 3.4
61883         introduced a builtin.
61884         (lrint): Likewise.
61885         (llrintf): Likewise.
61886         (llrint): Likewise.
61887         (fmaxf): Likewise.
61888         (fmax): Likewise.
61889         (fminf): Likewise.
61890         (fmin): Likewise.
61891         (rint): Likewise.
61892         (rintf): Likewise.
61893         (nearbyint): Likewise.
61894         (nearbyintf): Likewise.
61895         (ceil): Likewise.
61896         (ceilf): Likewise.
61897         (floor): Likewise.
61898         (floorf): Likewise.
61899
61900 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61901
61902         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
61903         on both fields and cast pointer to __syscall_ulong_t.
61904
61905         * bits/types.h (__fsword_t): New type.
61906         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
61907         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
61908         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
61909         (__FSWORD_T_TYPE): Likewise.
61910         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
61911         (__FSWORD_T_TYPE): Likewise.
61912         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
61913         (__FSWORD_T_TYPE): Likewise.
61914         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
61915         (__FSWORD_T_TYPE): Likewise.
61916         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
61917         __SWORD_TYPE with __fsword_t.
61918         (statfs64): Likewise.
61919
61920 2012-05-17  David S. Miller  <davem@davemloft.net>
61921
61922         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
61923
61924 2012-05-17  Andreas Jaeger  <aj@suse.de>
61925
61926         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
61927         warning.
61928
61929 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61930
61931         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
61932
61933 2012-05-17  Andreas Jaeger  <aj@suse.de>
61934
61935         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
61936         when it is used.
61937
61938 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61939
61940         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
61941
61942 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61943
61944         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
61945         * sysdeps/x86_64/tst-mallocalign1.c: New file.
61946
61947 2012-05-17  Andreas Jaeger  <aj@suse.de>
61948             Carlos O'Donell  <carlos_odonell@mentor.com>
61949
61950         [BZ #14059]
61951         * sysdeps/x86_64/multiarch/init-arch.h
61952         (bit_YMM_Usable): Rename to...
61953         (bit_AVX_Usable): ... this.
61954         (bit_FMA4_Usable): New macro.
61955         (bit_XMM_state): New macro.
61956         (bit_YMM_state): New macro.
61957         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
61958         [__ASSEMBLER__] (index_AVX_Usable): ... this.
61959         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
61960         (CPUID_OSXSAVE): New macro.
61961         (CPUID_AVX): New macro.
61962         (CPUID_FMA4): New macro.
61963         (index_YMM_Usable): Rename to...
61964         (index_AVX_Usable): ... this.
61965         (HAS_AVX): Use HAS_ARCH_FEATURE.
61966         (HAS_FMA4): Likewise.
61967         (HAS_YMM_USABLE): Remove.
61968         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
61969         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
61970         are present.
61971         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
61972         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
61973         * sysdeps/x86_64/multiarch/Makefile: Likewise.
61974         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
61975         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
61976
61977 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61978
61979         * math/libm-test.c: Support platforms without multiple rounding modes.
61980         * math/bug-nextafter.c: Support platforms without FP exceptions.
61981         * math/bug-nexttoward.c: Likewise.
61982         * math/test-fenv.c: Likewise.
61983         * math/test-misc.c: Likewise.
61984         * stdlib/bug-getcontext.c: Likewise.
61985
61986 2012-05-17  Andreas Jaeger  <aj@suse.de>
61987
61988         * manual/examples/search.c (critter_cmp): Change signature to
61989         avoid warnings.
61990         * manual/string.texi (Collation Functions): Likewise.
61991
61992 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
61993
61994         * bits/types.h: Fold copyright years.
61995         * bits/typesizes.h: Likewise.
61996         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
61997         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
61998         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
61999         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62000         * time/time.h: Likewise.
62001
62002 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62003
62004         [BZ #208]
62005         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62006         in instead of returning them.  Return void.
62007         (__libc_mallinfo): Accumulate over all arenas.
62008         (__malloc_stats): Adjust for change in int_mallinfo interface.
62009
62010 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62011
62012         [BZ #10375]
62013         * configure.in (NM): Add AC_CHECK_TOOL for it.
62014         (libc_extra_cflags): New substituted variable.
62015         Check for -fstack-protector being used implicitly.
62016         * configure: Regenerated.
62017         * config.make.in (config-extra-cflags): New variable,
62018         gets @libc_extra_cflags@.
62019         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62020
62021         [BZ #10375]
62022         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62023         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62024         * configure: Regenerated.
62025         * config.make.in (CPPUNDEFS): New substituted variable.
62026         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62027         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62028         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62029
62030 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62031
62032         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62033         (mq_attr): Use __syscall_slong_t.
62034
62035 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62036
62037         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62038         Check __x86_64__ instead of __WORDSIZE.
62039         (_STAT_VER_LINUX): Likewise.
62040         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62041         __syscall_ulong_t and __syscall_slong_t.
62042         (stat64): Likewise.
62043
62044 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62045
62046         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62047
62048 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62049
62050         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62051
62052 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62053
62054         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62055         __syscall_ulong_t.
62056
62057         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62058         include <bits/wordsize.h>.  Check __x86_64__ instead of
62059         __WORDSIZE.
62060         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62061         defined.
62062         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62063
62064         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62065         include <bits/wordsize.h>.  Check __x86_64__ instead of
62066         __WORDSIZE.
62067         (user_regs_struct): Use "__extension__ unsigned long long"
62068         instead of "unsigned long" if __x86_64__ is defined.
62069         (user): Likewise.  Pad after pointer field if __ILP32__ is
62070         defined.
62071
62072 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62073
62074         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62075         versions 5 to 9.
62076         * configure: Regenerated.
62077         * manual/install.texi (texinfo): Increase version requirement to
62078         4.5 or later.
62079         * INSTALL: Regenerated.
62080
62081         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62082
62083 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62084
62085         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62086
62087         * sysdeps/x86_64/x32/ffs.c: New file.
62088
62089         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62090         __syscall_ulong_t.
62091         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62092         defined.  Use __syscall_ulong_t.
62093         (shminfo): Use __syscall_ulong_t.
62094         (shm_info): Likewise.
62095
62096         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62097         __syscall_ulong_t.
62098
62099         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62100         <bits/wordsize.h>.
62101         (msgqnum_t): Use __syscall_ulong_t.
62102         (msglen_t): Likewise.
62103         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62104         __syscall_ulong_t.
62105
62106         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62107         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62108
62109         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62110
62111         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62112         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62113
62114         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62115         __syscall_slong_t.
62116
62117         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62118         include <bits/wordsize.h>.  Check __x86_64__ instead of
62119         __WORDSIZE.
62120
62121         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62122         "unsigned long long int" if __x86_64__ is defined.
62123         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62124
62125         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62126         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62127         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62128
62129         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62130         <stdint.h>.
62131         (GET_PC): Cast to uintptr_t first.
62132         (GET_FRAME): Likewise.
62133         (GET_STACK): Likewise.
62134
62135         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62136         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62137         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62138         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62139         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62140         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62141         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62142         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62143         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62144         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62145         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62146         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62147         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62148         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62149         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62150         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62151         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62152         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62153         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62154         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62155         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62156         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62157         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62158         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62159         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62160         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62161         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62162         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62163         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62164
62165 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62166
62167         * Makerules (+depfiles): Also collect depfiles from .oS in
62168         $(extra-objs).
62169         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62170         .oS, $(libnldbl-routines)).
62171
62172         * Makerules (native-compile-mkdep-flags): Define.
62173         * sunrpc/Makefile (extra-objs): Add $(addprefix
62174         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62175         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62176         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62177         calling $(make-target-directory).
62178
62179 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62180
62181         * bits/types.h (__snseconds_t): Removed.
62182         * time/time.h (struct timespec): Replace __snseconds_t with
62183         __syscall_slong_t.
62184         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62185         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62186         Likewise.
62187         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62188         (__SNSECONDS_T_TYPE): Likewise.
62189         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62190         (__SNSECONDS_T_TYPE): Likewise.
62191         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62192         (__SNSECONDS_T_TYPE): Likewise.
62193
62194 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62195
62196         * sysdeps/mach/hurd/bits/typesizes.h
62197         (__SYSCALL_SLONG_TYPE): New macro.
62198         (__SYSCALL_ULONG_TYPE): Likewise.
62199
62200 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62201
62202         * bits/types.h (__syscall_slong_t): New type.
62203         (__syscall_ulong_t): Likewise.
62204
62205         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62206         (__SYSCALL_ULONG_TYPE): Likewise.
62207         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62208         (__SYSCALL_SLONG_TYPE): Likewise.
62209         (__SYSCALL_ULONG_TYPE): Likewise.
62210         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62211         (__SYSCALL_SLONG_TYPE): Likewise.
62212         (__SYSCALL_ULONG_TYPE): Likewise.
62213         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62214         (__SYSCALL_SLONG_TYPE): Likewise.
62215         (__SYSCALL_ULONG_TYPE): Likewise.
62216
62217 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62218
62219         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62220         Add sigaltstack-offsets.sym.
62221         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62222         <sigaltstack-offsets.h>.
62223         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62224         longjmp_msg pointer.
62225         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62226         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62227         signal stack.
62228         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62229
62230 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62231
62232         * elf/stackguard-macros.h: Remove file.
62233         * sysdeps/generic/stackguard-macros.h: New file.
62234         * sysdeps/i386/stackguard-macros.h: Likewise.
62235         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62236         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62237         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62238         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62239         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62240         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62241         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62242         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62243         <elf/stackguard-macros.h>.
62244
62245         [BZ #14109]
62246         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62247         __aligned__ in attribute.
62248         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62249         (gregset_t): Likewise.
62250
62251 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62252
62253         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62254         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62255         * sysdeps/x86_64/x32/Implies-after: New file.
62256
62257 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62258
62259         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62260         and access return value for _dl_profile_fixup.  Use R10_LP to
62261         load frame size.
62262
62263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62264
62265         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62266
62267 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62268
62269         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62270         * sysdeps/x86_64/x32/sysdep.h: New file.
62271
62272 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62273
62274         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62275         * sysdeps/x86_64/setjmp.S: Likewise.
62276
62277 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62278
62279         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62280         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62281         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62282         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62283         remove unused global constant.
62284
62285 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62286
62287         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62288         include of <not-cancel.h>.
62289
62290 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62291
62292         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62293
62294 2012-05-15  Jeff Law  <law@redhat.com>
62295             Andreas Jaeger  <aj@suse.de>
62296
62297         [BZ #13594]
62298         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62299         out from...
62300         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62301         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62302         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62303         code changing __hst_map_handle.map.
62304
62305 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62306
62307         * configure.in (sysnames): Look for Implies-before and Implies-after
62308         files.
62309         * configure: Regenerated.
62310
62311 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62312
62313         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62314         8-byte data alignment with LP_SIZE alignment.
62315
62316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62317
62318         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62319         into R10_LP.
62320
62321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62322
62323         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62324
62325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62326
62327         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62328         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62329         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62330         Likewise.
62331         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62332
62333 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62334
62335         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62336         (stackinfo_sub_sp): Likewise.
62337
62338 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62339
62340         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62341         RAX_LP.
62342
62343 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62344
62345         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62346         into R*_LP.
62347
62348 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62349
62350         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62351         sizes into R*_LP.
62352
62353 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62354
62355         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62356
62357 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62358
62359         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62360         into R11_LP and load __x86_64_shared_cache_size_half into
62361         R8_LP.
62362
62363 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62364
62365         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62366         R8_LP.
62367
62368 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62369
62370         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62371         logb for POWER7.
62372         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62373         logbf for POWER7.
62374         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62375         logbl for POWER7.
62376         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62377         powerpc32/power7/fpu/s_logb.c via #include.
62378         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62379         powerpc32/power7/fpu/s_logbf.c via #include.
62380         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62381         powerpc32/power7/fpu/s_logbl.c via #include.
62382
62383 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62384
62385         * README.libm: Remove file.
62386
62387 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62388
62389         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62390         count for x32.  Use R*_LP and omit operand-size suffix.
62391
62392 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62393
62394         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62395         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62396         * sysdeps/x86_64/x32/shlib-versions: New file.
62397
62398 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62399
62400         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62401         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62402         Use _dl_fatal_printf instead.
62403
62404 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62405
62406         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62407         set if not set by the user.  Do not allow for being unset.
62408         * sysdeps/unix/sysv/linux/configure: Regenerated.
62409
62410 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62411
62412         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62413         the `q' suffix from lea and replace .quad with ASM_ADDR.
62414
62415 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62416
62417         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62418         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62419         instead of $17.
62420         (PTR_DEMANGLE): Likewise.
62421
62422 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62423
62424         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62425         (LP_OP): Likewise.
62426         (ASM_ADDR): Likewise.
62427         (RAX_LP): Likewise.
62428         (RBP_LP): Likewise.
62429         (RBX_LP): Likewise.
62430         (RCX_LP): Likewise.
62431         (RDI_LP): Likewise.
62432         (RSI_LP): Likewise.
62433         (RSP_LP): Likewise.
62434         (R8_LP): Likewise.
62435         (R9_LP): Likewise.
62436         (R10_LP): Likewise.
62437         (R10_LP): Likewise.
62438         (R11_LP): Likewise.
62439         (R12_LP): Likewise.
62440         (R13_LP): Likewise.
62441         (R14_LP): Likewise.
62442         (R15_LP): Likewise.
62443
62444 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62445
62446         * sysdeps/x86_64/x32/dl-machine.h: New file.
62447
62448 2012-05-14  Andreas Jaeger  <aj@suse.de>
62449
62450         * manual/Makefile (subdir): Remove export of subdir.
62451         (all): Remove target.
62452         (.PHONY): Remove all from list.
62453         (mkinstalldirs): Remove.
62454         (.PHONY): Remove installdirs from list.
62455         ($(inst_infodir)/libc.info): Use make-target-directory.
62456         (installdirs): Remove.
62457         (subdir_%): Remove.
62458         (glibc-targets): Remove.
62459         (lib): Remove.
62460         (stubs): Remove.
62461         ($(objpfx)stubs ../po/manual.pot): Remove.
62462         ($(objpfx)stamp%): Remove.
62463         (make-target-directory): Remove.
62464         (subdir_install): Remove.
62465         (routines): Remove.
62466         (aux): Remove.
62467         (sources): Remove.
62468         (objects): Remove.
62469         (headers): Remove.
62470
62471         [BZ #13750]
62472         * manual/.gitignore: Remove, it's not needed anymore.
62473         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62474         all files in it.
62475         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62476         directory.
62477         (texis): Renamed to $(objpfx)texis.
62478         (texis-path): New, contains path to generated files.
62479         (chapters.%): Use texis-path for complete path, add extra argument
62480         libc-texinfo.sh.
62481         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62482         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62483         (summary,texi, stamp-summary): Use complete path of
62484         files. Generate files in build dir.
62485         (dir-add.texi): Build in build dir.
62486         (libm-err.texi,stamp-libm-err): Likewise.
62487         (version.texi, stamp-version): Likewise.
62488         (.%c.texi): Likewise.
62489         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62490         (mostlyclean): Remove target.
62491         (realclean): Remove target.
62492         (generated): Add new variable with contents from mostlyclean and
62493         realclean, remove entries duplicated in common-mostlyclean, add
62494         stamp-libm-err and stamp-version.
62495         (generated-dirs): Add libc directory.
62496         ($(inst_infodir)/libc.info): Install files from build dir.
62497
62498         * manual/install.texi (Configuring and compiling): Adjust since
62499         the info files are not part of the tar ball anymore.
62500
62501 2012-05-14  Andreas Jaeger  <aj@suse.de>
62502
62503         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62504         variable.
62505
62506 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62507
62508         [BZ #13717]
62509         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62510         to 2.2.0 where earlier.
62511         * sysdeps/unix/sysv/linux/configure: Regenerated.
62512         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62513         Remove conditional code.
62514         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62515         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62516         Remove conditional code.
62517         [!__NR_lchown]: Likewise.
62518         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62519         [__NR_lchown]: Likewise.
62520         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62521         comment referencing __ASSUME_LCHOWN_SYSCALL.
62522         * sysdeps/unix/sysv/linux/i386/sigaction.c
62523         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62524         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62525         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62526         Remove conditional code.
62527         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62528         (__protocol_available): Remove #if 0 code.
62529         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62530         conditional code.
62531         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62532         * sysdeps/unix/sysv/linux/kernel-features.h
62533         (__ASSUME_GETCWD_SYSCALL): Don't define.
62534         (__ASSUME_REALTIME_SIGNALS): Likewise.
62535         (__ASSUME_PREAD_SYSCALL): Likewise.
62536         (__ASSUME_PWRITE_SYSCALL): Likewise.
62537         (__ASSUME_POLL_SYSCALL): Likewise.
62538         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62539         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62540         non-SPARC.
62541         (__ASSUME_SIOCGIFNAME): Don't define.
62542         (__ASSUME_MSG_NOSIGNAL): Likewise.
62543         (__ASSUME_SENDFILE): Define unconditionally.
62544         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62545         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62546         conditional code.
62547         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62548         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62549         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62550         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62551         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62552         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62553         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62555         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62556         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62558         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62559         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62561         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62562         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62564         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62565         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62567         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62568         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62570         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62571         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62573         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62574         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62576         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62577         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62578         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62579         Remove conditional code.
62580         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62581         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62582         Remove conditional code.
62583         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62584         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62585         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62586         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62587         Remove conditional code.
62588         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62589         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62590         Remove conditional code.
62591         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62592         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62593         Remove conditional code.
62594         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62595         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62596         Remove conditional code.
62597         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62598         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62599         Remove conditional code.
62600         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62601         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62602         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62603         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62604         * sysdeps/unix/sysv/linux/sigaction.c
62605         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62606         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62607         * sysdeps/unix/sysv/linux/sigpending.c
62608         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62609         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62610         * sysdeps/unix/sysv/linux/sigprocmask.c
62611         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62612         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62613         * sysdeps/unix/sysv/linux/sigsuspend.c
62614         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62615         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62616         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62617         (__libc_missing_rt_sigs): Remove.
62618         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62619         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62620         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62621         Remove conditional code.
62622         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62623         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62624         return 1.
62625         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62626         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62627         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62628         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62629
62630 2012-05-14  Andreas Jaeger  <aj@suse.de>
62631
62632         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62633         it's not used in glibc.
62634         (__coshm1): Likewise.
62635         (__acosh1p): Likewise.
62636         (__sgn): Likewise.
62637
62638         * manual/string.texi (Copying and Concatenation): Add missing
62639         variable in concat example.
62640         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62641
62642 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62643
62644         [BZ #14103]
62645         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62646         __builtin_clzl with __builtin_clzll.
62647
62648 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62649
62650         [BZ #14104]
62651         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62652         libc_freeres_ptr.
62653
62654 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62655
62656         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62657         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62658         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62659         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62660
62661 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62662
62663         * NEWS: Update ia64 info.
62664
62665 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62666
62667         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62668         used as bcopy.
62669
62670 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62671
62672         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62673         * sysdeps/unix/syscalls.list (dup3): Likewise.
62674         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62675         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62676
62677 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62678
62679         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62680         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62681
62682 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62683
62684         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62685         thread pointer.
62686         (TLS_IE): Use mov/add instead of movq/addq to load thread
62687         pointer.
62688         (TLS_GD_PREFIX): New.
62689         (TLS_GD): Use it.
62690
62691 2012-05-11  David S. Miller  <davem@davemloft.net>
62692
62693         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62694         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62695         (_FPU_SETCW): Likewise.
62696
62697 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62698
62699         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62700         is 32-byte aligned.
62701
62702 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62703
62704         [BZ #11837]
62705         * iconvdata/gb18030.c: Update tables.
62706         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62707         characters specially.
62708         (BODY for TO_LOOP): Add encoding of missing ranges.
62709
62710 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62711
62712         [BZ #13673]
62713         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62714         * sysdeps/mach/hurd/dup3.c: Likewise.
62715         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62716         * sysdeps/powerpc/memmove.c:: Likewise.
62717
62718 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62719
62720         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62721         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62722
62723 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62724
62725         * elf/elf.h (R_X86_64_RELATIVE64): New.
62726         (R_X86_64_NUM): Updated.
62727         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62728         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62729         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62730         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62731         tst-quad1pie tst-quad2pie
62732         (modules-names): Add tst-quadmod1 tst-quadmod2.
62733         ($(objpfx)tst-quad1): New dependency.
62734         ($(objpfx)tst-quad2): Likewise.
62735         ($(objpfx)tst-quad1pie): Likewise.
62736         ($(objpfx)tst-quad2pie): Likewise.
62737         * sysdeps/x86_64/tst-quad1.c: New file.
62738         * sysdeps/x86_64/tst-quad1pie.c: New file.
62739         * sysdeps/x86_64/tst-quad2.c: Likewise.
62740         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62741         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62742         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62743         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62744         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62745
62746 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62747
62748         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62749         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62750         * streams/stropts.h (t_scalar_t): Define type.
62751
62752         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62753         (_PATH_PRESERVE): Set to "/var/lib".
62754         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62755
62756         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62757         instead of int.
62758
62759         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62760         if __dir_mkfile succeeded.
62761
62762         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62763         checking for _hurd_dtablesize.  Unlock it right after having
62764         finished _hurd_dtable allocation.
62765
62766 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62767
62768         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62769         * sysdeps/mach/hurd/configure: Regenerated.
62770         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62771         special-casing to...
62772         * sysdeps/gnu/configure.in: ... this new file.
62773         * sysdeps/unix/sysv/linux/configure: Regenerated.
62774         * sysdeps/gnu/configure: New generated file.
62775
62776         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62777         for Linux: use nsec instead of usec, as well as:
62778         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62779         members of type struct timespec.
62780         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62781         New macros.
62782         (struct stat64): Likewise.
62783         (_STATBUF_ST_NSEC): New macro.
62784         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62785
62786         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62787         __strtoul_internal rather than strtoul.
62788
62789 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62790
62791         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62792         and reject them.
62793
62794 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62795
62796         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62797         which preserves existing values.
62798         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62799
62800 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62801
62802         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62803         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62804         greater than FD_SETSIZE.
62805
62806 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62807
62808         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62809         allocated, call __vm_protect to finish enabling the existing space, and
62810         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62811         allocate the remainder.
62812
62813 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62814
62815         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62816         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62817
62818 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62819
62820         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62821         sysdeps/mach/hurd/readlink.c.
62822
62823         * posix/tst-sysconf.c (posix_options): Only use
62824         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62825         _POSIX_SYNCHRONIZED_IO when they are defined
62826         * sysdeps/mach/hurd/bits/posix_opt.h:
62827         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62828         (_XOPEN_REALTIME): Undefine macro.
62829         (_XOPEN_REALTIME_THREADS): Undefine macro.
62830         (_XOPEN_SHM): Undefine macro.
62831         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62832         macro to -1.
62833         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62834         macro to -1.
62835         (_POSIX_ASYNC_IO): Undefine macro.
62836         (_POSIX_PRIORITIZED_IO): Undefine macro.
62837         (_POSIX_SPIN_LOCKS): Define macro to -1.
62838
62839         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62840         SA_NODEFER, SA_RESETHAND.
62841         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62842         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62843         F_DUPFD_CLOEXEC.
62844
62845 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62846
62847         * elf/Makefile (pldd-modules): Define unconditionally.
62848
62849 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62850
62851         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
62852
62853 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62854
62855         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
62856         Return ENOENT when name is empty.
62857         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
62858
62859 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62860
62861         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
62862
62863         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
62864
62865 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62866
62867         Fix mlock in all cases except non-readable pages.
62868         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
62869         instead of VM_PROT_ALL as parameter to __vm_wire function.
62870
62871         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
62872         (__mkdir): When path is `/', just fail with EEXIST.
62873         * sysdeps/mach/hurd/mkdirat.c: Likewise.
62874
62875 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62876
62877         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
62878         <sys/uio.h> (for writev).
62879         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
62880         and <sys/param.h> (for MIN).
62881
62882 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62883
62884         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
62885         REQUESTED_TIME.  Properly set the remaining time and return EINTR
62886         if interrupted.
62887
62888 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62889
62890         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
62891         Depend on against $(link-rpcuserlibs).
62892
62893 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62894
62895         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
62896         (__libc_stack_end): Do not use attribute_relro.
62897         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
62898         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
62899         to libthread-provided value.
62900         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
62901         attribute_relro.
62902
62903 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62904
62905         [BZ #3748]
62906         * bits/libc-lock.h (__libc_once_get): New macro.
62907         * sysdeps/mach/bits/libc-lock.h: Likewise.
62908         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
62909         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
62910         instead of using implementation details.
62911
62912         * libio/fileops.c: Unconditionally include <kernel-features.h>.
62913         * libio/freopen.c: Likewise.
62914         * libio/freopen64.c: Likewise.
62915         * misc/syslog.c: Likewise.
62916         * nscd/connections.c: Likewise.
62917         * nscd/netgroupcache.c: Likewise.
62918         * sysdeps/posix/getcwd.c: Likewise.
62919
62920 2012-05-10  Roland McGrath  <roland@hack.frob.com>
62921
62922         * math/w_ilogbf.c: Add #include <limits.h>.
62923
62924 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62925
62926         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
62927         path instead of returning without unlocking.
62928
62929         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
62930         immediate-write ioctls.
62931         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
62932
62933 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62934
62935         * sysdeps/mach/hurd/i386/init-first.c (init): Use
62936         __builtin_frame_address instead of making assumptions about the
62937         location of the return address relative to DATA.  Force early load of
62938         the return address.
62939         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
62940         __builtin_frame_address.
62941
62942         dup3 for GNU Hurd.
62943         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
62944         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
62945         implement dup3 and do some further code clean-ups.
62946         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
62947         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
62948
62949 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62950
62951         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
62952
62953         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
62954         HURD_CRITICAL_END around holding _hurd_dtable_lock.
62955         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
62956         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
62957         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
62958         d->port.lock.
62959
62960         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
62961         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
62962         when handler == SIG_ERR, not when handler != SIG_ERR.
62963
62964 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62965
62966         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
62967         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
62968         definitions.
62969
62970         accept4 for GNU Hurd.
62971         * include/sys/socket.h (__libc_accept4): New prototype.
62972         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
62973         to implement __libc_accept4.
62974         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
62975         __libc_accept4.
62976         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
62977
62978         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
62979         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
62980         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
62981         signal-defines.sym.
62982
62983 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62984
62985         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
62986
62987 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62988
62989         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
62990         assertion on O_CLOEXEC flag.
62991         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
62992         * hurd/intern-fd.c: Likewise.
62993         * hurd/port2fd.c: Likewise.
62994
62995 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62996
62997         [BZ #3906]
62998         * bits/in.h (IPV6_PKTINFO): Define new macro.
62999         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63000
63001 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63002
63003         [BZ #13954]
63004         [BZ #13955]
63005         [BZ #13956]
63006         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63007         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63008         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63009         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63010         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63011         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63012         * math/libm-test.inc (logb_test) : Additional logb tests.
63013
63014 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63015             Andreas Jaeger  <aj@suse.de>
63016
63017         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63018         * configure: Regenerated.
63019         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63020         * config.make.in (link-obsolete-rpc): New substituted variable.
63021         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63022         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63023         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63024         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63025         so that libc.a contains the symbols.
63026         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63027         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63028         * sunrpc/auth_none.c: Likewise.
63029         * sunrpc/auth_unix.c: Likewise.
63030         * sunrpc/authdes_prot.c: Likewise.
63031         * sunrpc/authuxprot.c: Likewise.
63032         * sunrpc/clnt_gen.c: Likewise.
63033         * sunrpc/clnt_perr.c: Likewise.
63034         * sunrpc/clnt_raw.c: Likewise.
63035         * sunrpc/clnt_simp.c: Likewise.
63036         * sunrpc/clnt_tcp.c: Likewise.
63037         * sunrpc/clnt_udp.c: Likewise.
63038         * sunrpc/clnt_unix.c: Likewise.
63039         * sunrpc/des_crypt.c: Likewise.
63040         * sunrpc/des_soft.c: Likewise.
63041         * sunrpc/get_myaddr.c: Likewise.
63042         * sunrpc/key_call.c: Likewise.
63043         * sunrpc/key_prot.c: Likewise.
63044         * sunrpc/netname.c: Likewise.
63045         * sunrpc/pm_getmaps.c: Likewise.
63046         * sunrpc/pm_getport.c: Likewise.
63047         * sunrpc/pmap_clnt.c: Likewise.
63048         * sunrpc/pmap_prot.c: Likewise.
63049         * sunrpc/pmap_prot2.c: Likewise.
63050         * sunrpc/pmap_rmt.c: Likewise.
63051         * sunrpc/publickey.c: Likewise.
63052         * sunrpc/rpc_cmsg.c: Likewise.
63053         * sunrpc/rpc_common.c: Likewise.
63054         * sunrpc/rpc_dtable.c: Likewise.
63055         * sunrpc/rpc_prot.c: Likewise.
63056         * sunrpc/rpc_thread.c: Likewise.
63057         * sunrpc/rtime.c: Likewise.
63058         * sunrpc/svc.c: Likewise.
63059         * sunrpc/svc_auth.c: Likewise.
63060         * sunrpc/svc_raw.c: Likewise.
63061         * sunrpc/svc_run.c: Likewise.
63062         * sunrpc/svc_tcp.c: Likewise.
63063         * sunrpc/svc_udp.c: Likewise.
63064         * sunrpc/svc_unix.c: Likewise.
63065         * sunrpc/svcauth_des.c: Likewise.
63066         * sunrpc/xcrypt.c: Likewise.
63067         * sunrpc/xdr.c: Likewise.
63068         * sunrpc/xdr_array.c: Likewise.
63069         * sunrpc/xdr_float.c: Likewise.
63070         * sunrpc/xdr_intXX_t.c: Likewise.
63071         * sunrpc/xdr_mem.c: Likewise.
63072         * sunrpc/xdr_rec.c: Likewise.
63073         * sunrpc/xdr_ref.c: Likewise.
63074         * sunrpc/xdr_sizeof.c: Likewise.
63075         * sunrpc/xdr_stdio.c: Likewise.
63076
63077 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63078
63079         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63080         change.  Update copyright years.
63081
63082 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63083
63084         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63085
63086 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63087             Joseph Myers  <joseph@codesourcery.com>
63088             Paul Pluzhnikov  <ppluzhnikov@google.com>
63089
63090         [BZ #14012]
63091         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63092         requiring rpcgen.
63093         [cross-compiling] (extra-libs): Likewise.
63094         [cross-compiling] (extra-libs-others): Likewise.
63095         [cross-compiling] (librpcsvc-routines): Likewise.
63096         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63097         [cross-compiling] (omit-deps): Likewise.
63098         (sunrpc-CPPFLAGS): New variable.
63099         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63100         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63101         (cross-rpcgen-objs): New variable.
63102         (extra-objs): Append $(cross-rpcgen-objs).
63103         ($(cross-rpcgen-objs)): New rule.
63104         ($(objpfx)cross-rpcgen): Likewise.
63105         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63106         comment.
63107         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63108         ($(objpfx)x%.stmp): Likewise.
63109         * sunrpc/proto.h [IS_IN_build] (_): Define.
63110         [IS_IN_build] (_libc_intl_domainname): Likewise.
63111
63112 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63113
63114         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63115         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63116         and R_X86_64_TPOFF64.
63117
63118 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63119
63120         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63121         sysdeps/unix/sysv/syscalls.list.
63122         (stime): Likewise.
63123         (utime): Likewise.
63124         * sysdeps/unix/sysv/syscalls.list: Remove file.
63125
63126 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         [BZ #3440]
63129         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63130         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63131         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63132         (__LC_IDENTIFICATION): Make these macros useful in #if
63133         expressions, as required by C99.
63134
63135 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63136
63137         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63138         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63139         after this.
63140
63141 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63142
63143         * stdlib/longlong.h: Updated from GCC.
63144
63145 2012-05-09  Andreas Jaeger  <aj@suse.de>
63146
63147         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63148         default is first entry.
63149         (run_mode): Set type.
63150         (main): Remove informal message about syslog.
63151         (options): Fix typo.
63152
63153         [BZ #14053]
63154         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63155         to asm.
63156         (lrint): Likewise.
63157         (llrintf): Likewise.
63158         (llrint): Likewise.
63159         (rint): Likewise.
63160         (rintf): Likewise.
63161         (nearbyint): Likewise.
63162         (nearbyintf): Likewise.
63163
63164 2012-05-09  Andreas Jaeger  <aj@suse.de>
63165             Pedro Alves  <palves@redhat.com>
63166
63167         * nscd/nscd.c (run_mode): Use enum.
63168         (main): Cleanup coding style issue.
63169
63170 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63171             Andreas Jaeger  <aj@suse.de>
63172
63173         * nscd/nscd.c (go_background): Replaced with...
63174         (run_mode): ... this.
63175         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63176         (options): Add -F --foreground.
63177         (main): Implement it.
63178         (parse_opt): Parse it.
63179
63180 2012-05-09  Andreas Jaeger  <aj@suse.de>
63181
63182         [BZ #14083]
63183         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63184         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63185         -Wconversion warning.
63186         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63187         Likewise.
63188
63189 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63190
63191         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63192         == 0.
63193         (LC_ALL): Use macro-int-constant.
63194         (LC_COLLATE): Likewise.
63195         (LC_CTYPE): Likewise.
63196         (LC_MESSAGES): Likewise.
63197         (LC_MONETARY): Likewise.
63198         (LC_NUMERIC): Likewise.
63199         (LC_TIME): Likewise.
63200         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63201         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63202         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63203         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63204         Specify type.
63205         [C99-based standards] (float_t): Expect type.
63206         [C99-based standards] (double_t): Expect type.
63207         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63208         type.
63209         [C99-based standards] (HUGE_VALL): Likewise.
63210         [C99-based standards] (INFINITY): Likewise.
63211         [C99-based standards] (NAN): Likewise.
63212         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63213         [C99-based standards] (FP_NAN): Likewise.
63214         [C99-based standards] (FP_NORMAL): Likewise.
63215         [C99-based standards] (FP_SUBNORMAL): Likewise.
63216         [C99-based standards] (FP_ZERO): Likewise.
63217         [C99-based standards] (FP_FAST_FMA): Use
63218         optional-macro-int-constant.  Specify type.  Require == 1.
63219         [C99-based standards] (FP_FAST_FMAF): Likewise.
63220         [C99-based standards] (FP_FAST_FMAL): Likewise.
63221         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63222         [C99-based standards] (FP_ILOGBNAN): Likewise.
63223         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63224         Specify type.
63225         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63226         [C99-based standards] (math_errhandling): Specify type.
63227         [ISO99 || ISO11] (signgam): Do not allow.
63228         [non-C99-based standards] (copysignf): Do not allow.
63229         [non-C99-based standards] (exp2f): Likewise.
63230         [non-C99-based standards] (log2f): Likewise.
63231         [non-C99-based standards] (modff): Allow.
63232         [non-C99-based standards] (erff): Do not allow.
63233         [non-C99-based standards] (erfcf): Likewise.
63234         [non-C99-based standards] (gammaf): Likewise.
63235         [non-C99-based standards] (hypotf): Likewise.
63236         [non-C99-based standards] (j0f): Likewise.
63237         [non-C99-based standards] (j1f): Likewise.
63238         [non-C99-based standards] (jnf): Likewise.
63239         [non-C99-based standards] (lgammaf): Likewise.
63240         [non-C99-based standards] (tgammaf): Likewise.
63241         [non-C99-based standards] (y0f): Likewise.
63242         [non-C99-based standards] (y1f): Likewise.
63243         [non-C99-based standards] (ynf): Likewise.
63244         [non-C99-based standards] (isnanf): Likewise.
63245         [non-C99-based standards] (acoshf): Likewise.
63246         [non-C99-based standards] (asinhf): Likewise.
63247         [non-C99-based standards] (atanhf): Likewise.
63248         [non-C99-based standards] (cbrtf): Likewise.
63249         [non-C99-based standards] (expm1f): Likewise.
63250         [non-C99-based standards] (ilogbf): Likewise.
63251         [non-C99-based standards] (log1pf): Likewise.
63252         [non-C99-based standards] (logbf): Likewise.
63253         [non-C99-based standards] (nextafterf): Likewise.
63254         [non-C99-based standards] (remainderf): Likewise.
63255         [non-C99-based standards] (rintf): Likewise.
63256         [non-C99-based standards] (scalbf): Likewise.
63257         [non-C99-based standards] (copysignl): Likewise.
63258         [non-C99-based standards] (exp2l): Likewise.
63259         [non-C99-based standards] (log2l): Likewise.
63260         [non-C99-based standards] (modfl): Allow.
63261         [non-C99-based standards] (erfl): Do not allow.
63262         [non-C99-based standards] (erfcl): Likewise.
63263         [non-C99-based standards] (gammal): Likewise.
63264         [non-C99-based standards] (hypotl): Likewise.
63265         [non-C99-based standards] (j0l): Likewise.
63266         [non-C99-based standards] (j1l): Likewise.
63267         [non-C99-based standards] (jnl): Likewise.
63268         [non-C99-based standards] (lgammal): Likewise.
63269         [non-C99-based standards] (tgammal): Likewise.
63270         [non-C99-based standards] (y0l): Likewise.
63271         [non-C99-based standards] (y1l): Likewise.
63272         [non-C99-based standards] (ynl): Likewise.
63273         [non-C99-based standards] (isnanl): Likewise.
63274         [non-C99-based standards] (acoshl): Likewise.
63275         [non-C99-based standards] (asinhl): Likewise.
63276         [non-C99-based standards] (atanhl): Likewise.
63277         [non-C99-based standards] (cbrtl): Likewise.
63278         [non-C99-based standards] (expm1l): Likewise.
63279         [non-C99-based standards] (ilogbl): Likewise.
63280         [non-C99-based standards] (log1pl): Likewise.
63281         [non-C99-based standards] (logbl): Likewise.
63282         [non-C99-based standards] (nextafterl): Likewise.
63283         [non-C99-based standards] (remainderl): Likewise.
63284         [non-C99-based standards] (rintl): Likewise.
63285         [non-C99-based standards] (scalbl): Likewise.
63286         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63287         [non-C99-based standards] (FP_*): Do not allow.
63288         [C99-based standards] (FP_*): Change to
63289         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63290         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63291         allow.
63292         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63293         (SIG_ERR): Likewise.
63294         [X/Open-based standards] (SIG_HOLD): Likewise.
63295         (SIG_IGN): Likewise.
63296         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63297         positive value.
63298         (SIGFPE): Likewise.
63299         (SIGILL): Likewise.
63300         (SIGINT): Likewise.
63301         (SIGSEGV): Likewise.
63302         (SIGTER): Likewise.
63303         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63304         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63305         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63306         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63307         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63308         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63309         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63310         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63311         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63312         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63313         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63314         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63315         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63316         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63317         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63318         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63319         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63320         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63321         [X/Open-based standards] (SIGTRAP): Likewise.
63322         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63323         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63324         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63325         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63326         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63327         allow.
63328
63329 2012-05-08  Ian Wienand  <ianw@vmware.com>
63330
63331         [BZ #14080]
63332         * time/tzset.c (__tzset_parse_tz): Update default rules for
63333         daylight time changes in the Energy Policy Act of 2005.
63334
63335 2012-05-09  Andreas Jaeger  <aj@suse.de>
63336
63337         [BZ #13983]
63338         * elf/ldconfig.c (parse_conf): Change string to make clear that
63339         ldconfig only issued a warning if ld.so.conf does not exist.
63340
63341 2012-05-08  David S. Miller  <davem@davemloft.net>
63342
63343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63344         movxtod instead of popping the value on the stack.
63345
63346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63347
63348 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63349
63350         * config.h.in: Add HAVE_ARM_PCS_VFP.
63351
63352 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63353
63354         [BZ #13979]
63355         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63356         checking but the checks are disabled for any reason.
63357
63358 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63359
63360         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63361         and ELF64_R_TYPE with ELFW(R_TYPE).
63362
63363 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63364
63365         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63366         (ulimit): Likewise.
63367
63368         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63369         (settimeofday): Likewise.
63370
63371 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63372
63373         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63374         a struct th_u2 inside the union, and move tu_block/tu_code into
63375         a new th_u3 union of tu_block/tu_code inside of that.  Move
63376         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63377         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63378         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63379         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63380         (th_stuff): Change to th_u1.tu_stuff.
63381         (th_data): Define.
63382         (th_msg): Change to th_u1.th_u2.tu_data.
63383
63384 2012-05-07  David S. Miller  <davem@davemloft.net>
63385
63386         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63387
63388         [BZ #14074]
63389         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63390         (SETUP_PIC_REG): Use it.
63391         (SETUP_PIC_REG_LEAF): Use it.
63392
63393 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63394
63395         [BZ #13885]
63396         [BZ #13923]
63397         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63398         USE_AS_EXPM1L.
63399         (EXPL_FINITE): Likewise.
63400         (FLDLOG): Likewise.
63401         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63402         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63403         e_expl.S.
63404         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63405         USE_AS_EXPM1L.
63406         (EXPL_FINITE): Likewise.
63407         (FLDLOG): Likewise.
63408         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63409         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63410         e_expl.S.
63411         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63412         test of -max_value argument for long double.
63413         * sysdeps/i386/fpu/libm-test-ulps: Update.
63414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63415
63416 2012-05-06  David S. Miller  <davem@davemloft.net>
63417
63418         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63419         quad soft-float symbols whose references which are compiler
63420         generated.
63421         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63422
63423 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63424
63425         [BZ #13884]
63426         [BZ #13914]
63427         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63428         USE_AS_EXP10L.
63429         (EXPL_FINITE): Likewise.
63430         (FLDLOG): Likewise.
63431         (c0): Likewise.
63432         (c1): Likewise.
63433         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63434         Adjust comments for base varying.
63435         (__expl_finite): Change alias to EXPL_FINITE.
63436         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63437         e_expl.S.
63438         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63439         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63440         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63441         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63442         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63443         USE_AS_EXP10L.
63444         (EXPL_FINITE): Likewise.
63445         (FLDLOG): Likewise.
63446         (c0): Likewise.
63447         (c1): Likewise.
63448         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63449         Adjust comments for base varying.
63450         (__expl_finite): Change alias to EXPL_FINITE.
63451         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63452         tests for bugs.
63453         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63454
63455         [BZ #14064]
63456         * math/libm-test.inc (check_float_internal): Correct ulp
63457         calculation for subnormal expected results.
63458
63459 2012-05-06  Andreas Jaeger  <aj@suse.de>
63460
63461         * Makeconfig (+math-flags): New, set to -frounding-math.
63462         (+cflags): Add +math-flags so that all of glibc gets compiled with
63463         it.
63464
63465         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63466
63467 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63468
63469         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63470         Disable one test.
63471
63472         [BZ #13787]
63473         [BZ #13922]
63474         [BZ #14036]
63475         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63476         (__ieee754_expl): Allow for and saturate large arguments.
63477         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63478         (u_threshold): Likewise.
63479         (__exp): Call __ieee754_exp before checking for overflow and
63480         underflow.
63481         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63482         (u_threshold): Likewise.
63483         (__expf): Call __ieee754_expf before checking for overflow and
63484         underflow.
63485         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63486         (u_threshold): Likewise.
63487         (__expl): Call __ieee754_expl before checking for overflow and
63488         underflow.
63489         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63490         (__ieee754_expl): Allow for and saturate large arguments.
63491         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63492         missing overflow exception on overflow.
63493         (expm1_test): Do not allow missing overflow exception on overflow.
63494
63495         * sysdeps/i386/fpu/e_expl.c: Move to ...
63496         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63497         rather than using inline asm.
63498         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63499         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63500         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63501
63502         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63503         (nice): Likewise.
63504         (poll): Likewise.
63505         (signal): Likewise.
63506         (time): Likewise.
63507         (times): Likewise.
63508
63509 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63510
63511         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63512         sysdeps/unix/common/syscalls.list.
63513         (fchmod): Likewise.
63514         (fchown): Likewise.
63515         (ftruncate): Likewise.
63516         (getrusage): Likewise.
63517         (gettimeofday): Likewise.
63518         (setpgid): Likewise.
63519         (setregid): Likewise.
63520         (setreuid): Likewise.
63521         (sigaction): Likewise.
63522         (truncate): Likewise.
63523         (vhangup): Likewise.
63524         * sysdeps/unix/common/syscalls.list: Remove file.
63525         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63526         * sysdeps/unix/sysv/linux/Implies: Likewise.
63527
63528 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63529
63530         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63532         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63533         Moved to ...
63534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63535         Here.
63536         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63537         to ...
63538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63539         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63540         to ...
63541         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63542         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63543         to ...
63544         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63545         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63546         to ...
63547         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63548         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63549         to ...
63550         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63551         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63552         to ...
63553         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63554         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63555         to ...
63556         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63557         Here.
63558         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63559         to ...
63560         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63561         Here.
63562         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63563         to ...
63564         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63565         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63566         Moved to ...
63567         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63568         Here.
63569         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63570         to ...
63571         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63572
63573 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63574
63575         * sysdeps/unix/common/bits/dirent.h: Remove file.
63576         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63577
63578         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63579         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63580         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63581         * sysdeps/unix/bsd/isatty.c: Likewise.
63582         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63583         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63584         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63585
63586 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63587
63588         [BZ #13563]
63589         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63590         long double comparison inaccuracies.
63591         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63592         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63593
63594 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63595
63596         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63597         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63598
63599 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63600
63601         [BZ #14049]
63602         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63603         nonzero digits before rounding a hex value.
63604         * stdlib/tst-strtod.c (tests): Add another test.
63605
63606 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63607
63608         * sysdeps/s390/fpu/libm-test-ulps: Update.
63609
63610 2012-05-03  Andreas Jaeger  <aj@suse.de>
63611
63612         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63613         does not get optimized out.
63614         (malloc_opt_barrier): New.
63615
63616 2012-05-03  Andreas Jaeger  <aj@suse.de>
63617             Roland McGrath  <roland@hack.frob.com>
63618
63619         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63620         intermediate file deletion.
63621         (generated): Add .symlist files.
63622
63623 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63624
63625         [BZ #13775]
63626         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63627         Redirect under this condition.
63628         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63629         [__USE_GNU] (__dprintf_chk): Not under this condition.
63630         [__USE_GNU] (__vdprintf_chk): Likewise.
63631         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63632         under this condition.
63633         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63634         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63635         [__USE_XOPEN2K8] (vdprintf): Likewise.
63636         [__USE_GNU] (__dprintf_chk): Not under this condition.
63637         [__USE_GNU] (__vdprintf_chk): Likewise.
63638         [__USE_GNU] (dprintf): Likewise.
63639         [__USE_GNU] (vdprintf): Likewise.
63640
63641 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63642
63643         * elf/Makefile (common-generated): Set this instead of generated for
63644         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63645         $(all-built-dso)-derived lists.
63646
63647 2012-05-03  Andreas Jaeger  <aj@suse.de>
63648
63649         * sysdeps/i386/fpu/libm-test-ulps: Update.
63650
63651         * FAQ: Removed.
63652         * FAQ.in: Likewise.
63653         * scripts/gen-FAQ.pl: Likewise.
63654         * manual/install.texi (Installation): Point to online location of
63655         FAQ.
63656         * Makefile (files-for-dist): Remove FAQ.
63657         (FAQ): Remove.
63658
63659 2012-05-02  Allan McRae  <allan@archlinux.org>
63660
63661         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63662         (LDFLAGS-reldepmod5.so): Likewise.
63663         (LDFLAGS-reldep6mod1.so): Likewise.
63664         (LDFLAGS-reldep6mod4.so): Likewise.
63665         (LDFLAGS-reldep8mod3.so): Likewise.
63666         (LDFLAGS-unload4mod1.so): Likewise.
63667         (LDFLAGS-unload4mod2.so): Likewise.
63668         (LDFLAGS-tst-initorder): Likewise.
63669         (LDFLAGS-tst-initordera2.so): Likewise.
63670         (LDFLAGS-tst-initordera3.so): Likewise.
63671         (LDFLAGS-tst-initordera4.so): Likewise.
63672         (LDFLAGS-tst-initorderb2.so): Likewise.
63673         (LDFLAGS-noload): Likewise.
63674         (LDFLAGS-next): Likewise.
63675         (LDFLAGS-order2mod1.so): Likewise.
63676         (LDFLAGS-order2mod2.so): Likewise.
63677         (LDFLAGS-tst-initorder2): Likewise.
63678         (LDFLAGS-tst-initorder2a.so): Likewise.
63679         (LDFLAGS-tst-initorder2b.so): Likewise.
63680         (LDFLAGS-tst-initorder2c.so): Likewise.
63681         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63682
63683 2012-05-02  David S. Miller  <davem@davemloft.net>
63684
63685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63686
63687 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63688
63689         [BZ #14055]
63690         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63691
63692 2012-05-02  Andreas Jaeger  <aj@suse.de>
63693
63694         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63695         since we manipulate rounding mode.
63696         (CPPFLAGS-test-idouble.c): Likewise.
63697         (CPPFLAGS-test-ifloat.c): Likewise.
63698         (CFLAGS-test-ldouble.c): Likewise.
63699         (CFLAGS-test-double.c): Likewise.
63700         (CFLAGS-test-float.c): Likewise.
63701         (CFLAGS-test-misc.c): Likewise.
63702         (CFLAGS-test-test-fenv.c): Likewise.
63703
63704 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63705
63706         [BZ #2550]
63707         [BZ #2570]
63708         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63709         comparisons to determine direction to adjust input.
63710
63711 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63712
63713         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63714         output to the target.
63715
63716         * scripts/localplt.awk: New file.
63717         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63718         (check-localplt-CFLAGS): Variable removed.
63719         ($(all-built-dso:=.jmprel)): New static pattern rule.
63720         (generated): Add those targets.
63721         (localplt-built-dso): New variable.
63722         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63723
63724         * elf/check-localplt.c: File removed.
63725
63726         * scripts/check-execstack.awk: New file.
63727         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63728         (check-execstack-CFLAGS): Variable removed.
63729         ($(objpfx)check-execstack.h): Target removed.
63730         ($(objpfx)execstack-default): New target.
63731         (generated): Add that instead of check-execstack.h.
63732         ($(all-built-dso:=.phdr)): New static pattern rule.
63733         (generated): Add those targets.
63734         * elf/check-execstack.c: File removed.
63735
63736         * scripts/check-textrel.awk: New file.
63737         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63738         (check-textrel-CFLAGS): Variable removed.
63739         (all-built-dso): Use := to define.o
63740         ($(all-built-dso:=.dyn)): New static pattern rule.
63741         (generated): Add those targets.
63742         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63743         * config.make.in (READELF): New substituted variable.
63744         * elf/check-textrel.c: File removed.
63745
63746 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63747
63748         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63749         allow.
63750         * conform/data/ctype.h-data [C99-based standards] (isblank):
63751         Expect function.
63752         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63753         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63754         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63755         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63756         Specify type.  Require positive value.
63757         (EILSEQ): Likewise.
63758         (ERANGE): Likewise.
63759         [ISO || POSIX] (EILSEQ): Do not expect.
63760         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63761         Specify type.  Require positive value.
63762         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63763         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63764         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63765         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63766         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63767         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63768         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63769         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63770         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63771         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63772         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63773         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63774         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63775         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63776         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63777         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63778         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63779         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63780         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63781         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63782         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63783         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63784         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63785         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63786         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63787         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63788         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63789         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63790         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63791         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63792         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63793         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63794         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63795         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63796         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63797         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63798         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63799         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63800         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63801         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63802         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63803         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63804         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63805         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63806         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63807         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63808         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63809         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63810         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63811         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63812         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63813         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63814         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63815         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63816         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63817         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63818         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63819         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63820         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63821         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63822         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63823         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63824         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63825         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63826         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63827         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63828         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63829         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63830         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63831         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63832         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63833         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63834         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63835         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63836         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63837         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63838         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63839         Require >= 2.
63840         (FLT_ROUNDS): Expect as macro, not constant.
63841         (FLT_MANT_DIG): Use macro-int-constant.
63842         (DBL_MANT_DIG): Likewise.
63843         (LDBL_MANT_DIG): Likewise.
63844         (FLT_DIG): Likewise.
63845         (DBL_DIG): Likewise.
63846         (LDBL_DIG): Likewise.
63847         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63848         (DBL_MIN_EXP): Likewise.
63849         (LDBL_MIN_EXP): Likewise.
63850         (FLT_MAX_EXP): Use macro-int-constant.
63851         (DBL_MAX_EXP): Likewise.
63852         (LDBL_MAX_EXP): Likewise.
63853         (FLT_MAX_10_EXP): Likewise.
63854         (DBL_MAX_10_EXP): Likewise.
63855         (LDBL_MAX_10_EXP): Likewise.
63856         (FLT_MAX): Use macro-constant.
63857         (DBL_MAX): Likewise.
63858         (LDBL_MAX): Likewise.
63859         (FLT_EPSILON): Use macro-constant.  Give upper bound.
63860         (DBL_EPSILON): Likewise.
63861         (LDBL_EPSILON): Likewise.
63862         (FLT_MIN): Likewise.
63863         (DBL_MIN): Likewise.
63864         (LDBL_MIN): Likewise.
63865         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
63866         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
63867         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
63868         [ISO11] (FLT_HAS_SUBNORM): Likewise.
63869         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
63870         [ISO11] (DBL_DECIMAL_DIG): Likewise.
63871         [ISO11] (FLT_DECIMAL_DIG): Likewise.
63872         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
63873         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
63874         [ISO11] (FLT_TRUE_MIN): Likewise.
63875         [ISO11] (LDBL_TRUE_MIN): Likewise.
63876         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63877         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
63878         (SCHAR_MIN): Use macro-int-constant.  Specify type.
63879         (SCHAR_MAX): Likewise.
63880         (UCHAR_MAX): Likewise.
63881         (CHAR_MIN): Likewise.
63882         (CHAR_MAX): Likewise.
63883         (MB_LEN_MAX): Use macro-int-constant.
63884         (SHRT_MIN): Use macro-int-constant.  Specify type.
63885         (SHRT_MAX): Likewise.
63886         (USHRT_MAX): Likewise.
63887         (INT_MAX): Likewise.
63888         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
63889         bound negative.
63890         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63891         bound with "U".
63892         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63893         bound with "L".
63894         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
63895         bound negative.  Suffix upper bound with "L".
63896         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63897         bound with "UL".
63898         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
63899         Specify type.
63900         [C99-based standards] (LLONG_MAX): Likewise.
63901         [C99-based standards] (ULLONG_MAX): Likewise.
63902         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
63903         == 0.
63904         [ISO11] (max_align_t): Require type.
63905         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63906
63907         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
63908         from $CFLAGS, without defining away __attribute__ calls.
63909         (checknamespace): Use $CFLAGS_namespace.
63910
63911         * conform/conformtest.pl (@keywords): Only include C99 keywords
63912         for standards based on C99 or C11.
63913
63914         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
63915         Disable tests.
63916         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
63917         UNIX98]: Likewise.
63918
63919         * conform/conformtest.pl: Handle "macro-int-constant" and test for
63920         usability of symbols in #if.
63921
63922         * conform/conformtest.pl: If macro or constant types start
63923         "promoted:", expect the symbol to be of the following type
63924         promoted by the integer promotions.
63925
63926         * conform/conformtest.pl: Parse all "constant" and "macro" lines
63927         in one place.  Also handle "macro-constant".
63928
63929         * conform/conformtest.pl: Only accept expected macro values with
63930         "==".  Parse all "macro" lines in one place.
63931         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
63932
63933         * conform/conformtest.pl: Handle braced types on "constant" lines
63934         instead of handling "typed-constant".
63935         * conform/data/signal.h-data: Use "constant" instead of
63936         "typed-constant".
63937
63938         * conform/conformtest.pl: Handle "optional-" at start of lines in
63939         one place rather than duplicating several cases.  Handle each
63940         format of "macro" line with initial "optional-".
63941
63942         * conform/conformtest.pl: Only accept expected constant or
63943         optional-constant values with "==".  Parse all "constant" lines in
63944         one place.  Parse all "optional-constant" lines in one place.
63945         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
63946         * conform/data/fmtmsg.h-data: Likewise.
63947         * conform/data/netinet/in.h-data: Likewise.
63948         * conform/data/tar.h-data: Likewise.
63949         * conform/data/limits.h-data: Use "==" form on "constant" and
63950         "optional-constant" lines.
63951
63952         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
63953         Use -std=c99 for XOPEN2K.
63954         (@knownproblems): Remove.
63955         (newtoken): Don't check %isknown.
63956
63957         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
63958         Do not expect macro.
63959         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
63960         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
63961         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
63962         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
63963         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
63964         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
63965         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
63966         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
63967         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
63968         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
63969         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
63970         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
63971         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
63972         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
63973         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
63974         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
63975         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
63976         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
63977         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
63978         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
63979         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
63980         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
63981         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
63982         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
63983         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
63984         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
63985         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
63986         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
63987         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
63988         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
63989         [XPG3] (acosh): Likewise.
63990         [XPG3] (asinh): Likewise.
63991         [XPG3] (atanh): Likewise.
63992         [XPG3] (cbrt): Likewise.
63993         [XPG3] (expm1): Likewise.
63994         [XPG3] (ilogb): Likewise.
63995         [XPG3] (log1p): Likewise.
63996         [XPG3] (logb): Likewise.
63997         [XPG3] (nextafter): Likewise.
63998         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
63999         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64000         [XPG3] (remainder): Likewise.
64001         [XPG3] (rint): Likewise.
64002         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64003         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64004         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64005         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64006         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64007         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64008         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64009         [UNIX98 || XOPEN2K] (scalb): Expect.
64010         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64011         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64012         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64013         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64014         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64015         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64016         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64017         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64018         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64019         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64020         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64021         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64022         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64023         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64024         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64025         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64026         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64027         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64028         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64029         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64030         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64031         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64032         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64033         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64034         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64035         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64036         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64037         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64038         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64039         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64040         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64041         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64042         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64043         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64044         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64045         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64046         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64047         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64048         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64049         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64050         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64051         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64052         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64053         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64054         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64055         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64056         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64057         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64058         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64059         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64060         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64061         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64062         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64063         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64064         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64065         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64066         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64067         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64068         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64069         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64070         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64071         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64072         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64073         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64074         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64075         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64076         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64077         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64078         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64079         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64080         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64081         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64082         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64083         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64084         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64085         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64086         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64087         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64088         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64089         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64090         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64091         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64092         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64093         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64094         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64095         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64096         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64097         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64098         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64099         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64100         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64101         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64102         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64103         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64104         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64105         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64106         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64107         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64108         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64109         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64110         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64111         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64112         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64113         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64114         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64115         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64116         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64117         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64118         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64119         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64120         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64121         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64122         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64123         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64124         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64125         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64126         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64127         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64128         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64129         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64130         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64131         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64132         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64133         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64134         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64135         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64136         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64137         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64138         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64139         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64140         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64141         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64142         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64143         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64144         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64145         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64146         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64147
64148         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64149         _XOPEN_SOURCE_EXTENDED for XPG4.
64150
64151         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64152
64153         * Makeconfig (localtime): Remove variable.
64154         (inst_localtime-file): Likewise.
64155
64156 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64157
64158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64159         Update.
64160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64161         Update.
64162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64163         Update.
64164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64165         Update.
64166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64167         Update.
64168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64169         Update.
64170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64171         Update.
64172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64173         Update.
64174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64175         Update.
64176
64177 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64178
64179         [BZ #2550]
64180         [BZ #2570]
64181         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64182         comparisons to determine direction to adjust input.
64183         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64184         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64185         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64186         Likewise.
64187         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64188         Likewise.
64189         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64190         Likewise.
64191         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64192         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64193         Likewise.
64194         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64195         Likewise.
64196         * math/libm-test.inc (nexttoward_test): Add more tests.
64197
64198 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64199
64200         [BZ #14040]
64201         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64202         in version GLIBC_2.1, not GLIBC_2.0.
64203         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64204         Likewise.
64205
64206 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64207
64208         [BZ #13942]
64209         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64210         (1 - x) * (1 + x).
64211         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64212         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64213         * math/libm-test.inc (acos_test): Add more tests.
64214         (asin_test): Likewise.
64215         * sysdeps/i386/fpu/libm-test-ulps: Update.
64216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64217
64218         [BZ #14034]
64219         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64220         of square root.
64221         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64222         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64223         * math/libm-test.inc (acos_test_tonearest): New function.
64224         (acos_test_towardzero): Likewise.
64225         (acos_test_downward): Likewise.
64226         (acos_test_upward): Likewise.
64227         (asin_test_tonearest): Likewise.
64228         (asin_test_towardzero): Likewise.
64229         (asin_test_downward): Likewise.
64230         (asin_test_upward): Likewise.
64231         (main): Call the new functions.
64232         * sysdeps/i386/fpu/libm-test-ulps: Update.
64233         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64234
64235         [BZ #13884]
64236         [BZ #13924]
64237         * math/e_exp10.c: Include <float.h>.
64238         (__ieee754_exp10): Handle underflow here rather than multiplying
64239         large negative argument by M_LN10.
64240         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64241         of __ieee754_expf.
64242         * math/e_exp10l.c: Include <float.h>.
64243         (__ieee754_exp10l): Handle underflow here rather than multiplying
64244         large negative argument by M_LN10l.
64245         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64246         spurious overflow exception on underflow.
64247
64248 2012-04-29  Marek Polacek  <polacek@redhat.com>
64249
64250         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64251         (__fortify_function): New macro.
64252         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64253         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64254         __extern_always_inline.
64255         * libio/bits/stdio2.h: Likewise.
64256         * libio/bits/stdio.h: Likewise.
64257         * string/string.h: Likewise.
64258         * string/bits/string3.h: Likewise.
64259         * include/stdio.h: Likewise.
64260         * stdlib/bits/stdlib.h: Likewise.
64261         * stdlib/stdlib.h: Likewise.
64262         * rt/bits/mqueue2.h: Likewise.
64263         * rt/mqueue.h: Likewise.
64264         * posix/bits/unistd.h: Likewise.
64265         * posix/unistd.h: Likewise.
64266         * io/bits/poll2.h: Likewise.
64267         * io/bits/fcntl2.h: Likewise.
64268         * io/fcntl.h: Likewise.
64269         * io/sys/poll.h: Likewise.
64270         * misc/bits/syslog.h: Likewise.
64271         * misc/bits/syslog-ldbl.h: Likewise.
64272         * misc/sys/syslog.h: Likewise.
64273         * socket/bits/socket2.h: Likewise.
64274         * socket/sys/socket.h: Likewise.
64275         * debug/tst-chk1.c: Likewise.
64276         * wcsmbs/bits/wchar2.h: Likewise.
64277         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64278         * wcsmbs/wchar.h: Likewise.
64279
64280 2012-04-29  Andreas Jaeger  <aj@suse.de>
64281
64282         * Makerules (tests): Remove enable-check-abi protection.
64283         (check-abi-warn): Remove.
64284         (check-abi-%): Remove check-abi-warn usage.
64285
64286         * configure.in: Remove check-abi configure option.
64287         * configure: Regenerated.
64288         * config.make.in (enable-check-abi): Remove.
64289
64290 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64291
64292         [BZ #14033]
64293         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64294         double functions to double *_finite functions.
64295
64296         [BZ #13941]
64297         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64298         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64299         LDBL_MIN_EXP.
64300         * stdio-common/Makefile (tests): Add tst-sprintf3.
64301         * stdio-common/tst-sprintf3.c: New file.
64302
64303         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64304         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64305
64306 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64307
64308         * conform/conformtest.pl: Remove duplicate typed-constant
64309         handling.
64310
64311 2012-04-28  David S. Miller  <davem@davemloft.net>
64312
64313         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64314         (check-abi-%): Remove AWK script prerequisite and explicit
64315         abilist directory.
64316         (check-abi): Rewrite to just diff the symlist with the abilist.
64317         (config-tls, config-abi-config): Delete, no longer used.
64318         (update-abi-%): Remove AWK script and explicit abilist directory.
64319         (update-abi): Rewrite to simply compare and conditionally copy the
64320         symlist and the sysdep abilist file.  Remove update-abi-config
64321         checks.
64322         * abilist/ld.abilist: Remove.
64323         * abilist/libBrokenLocale.abilist: Remove.
64324         * abilist/libanl.abilist: Remove.
64325         * abilist/libcrypt.abilist: Remove.
64326         * abilist/libdl.abilist: Remove.
64327         * abilist/librt.abilist: Remove.
64328         * abilist/libthread_db.abilist: Remove.
64329         * abilist/libutil.abilist: Remove.
64330         * scripts/extract-abilist.awk: Remove.
64331         * scripts/merge-abilist.awk: Remove.
64332         * sysdeps/generic/libcidn.abilist: New file.
64333         * sysdeps/generic/libnss_compat.abilist: New file.
64334         * sysdeps/generic/libnss_db.abilist: New file.
64335         * sysdeps/generic/libnss_dns.abilist: New file.
64336         * sysdeps/generic/libnss_files.abilist: New file.
64337         * sysdeps/generic/libnss_hesiod.abilist: New file.
64338         * sysdeps/generic/libnss_nis.abilist: New file.
64339         * sysdeps/generic/libnss_nisplus.abilist: New file.
64340         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64341         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64342         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64343         file.
64344         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64345         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64346         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64347         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64348         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64349         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64350         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64351         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64352         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64353         file.
64354         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64355         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64356         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64357         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64358         file.
64359         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64360         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64361         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64362         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64363         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64364         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64365         file.
64366         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64367         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64368         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64369         file.
64370         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64371         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64372         New file.
64373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64374         New file.
64375         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64376         New file.
64377         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64378         New file.
64379         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64380         New file.
64381         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64382         New file.
64383         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64384         New file.
64385         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64386         New file.
64387         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64388         New file.
64389         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64390         New file.
64391         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64392         New file.
64393         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64394         New file.
64395         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64396         New file.
64397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64398         file.
64399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64400         New file.
64401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64402         New file.
64403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64404         file.
64405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64406         New file.
64407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64408         New file.
64409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64410         file.
64411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64412         New file.
64413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64414         New file.
64415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64416         New file.
64417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64418         New file.
64419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64420         New file.
64421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64422         New file.
64423         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64425         file.
64426         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64427         New file.
64428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64429         file.
64430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64431         file.
64432         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64433         file.
64434         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64435         file.
64436         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64437         file.
64438         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64439         New file.
64440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64441         file.
64442         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64443         file.
64444         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64445         New file.
64446         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64447         file.
64448         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64450         file.
64451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64452         New file.
64453         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64454         file.
64455         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64456         file.
64457         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64458         file.
64459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64460         file.
64461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64462         file.
64463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64464         New file.
64465         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64466         file.
64467         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64468         file.
64469         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64470         New file.
64471         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64472         file.
64473         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64474         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64475         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64476         file.
64477         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64478         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64479         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64480         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64481         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64482         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64483         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64484         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64485         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64486         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64489         file.
64490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64491         New file.
64492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64493         file.
64494         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64495         file.
64496         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64497         file.
64498         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64499         file.
64500         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64501         file.
64502         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64503         New file.
64504         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64505         New file.
64506         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64507         file.
64508         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64509         New file.
64510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64511         file.
64512         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64514         file.
64515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64516         New file.
64517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64518         file.
64519         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64520         file.
64521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64522         file.
64523         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64524         file.
64525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64526         file.
64527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64528         New file.
64529         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64530         New file.
64531         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64532         file.
64533         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64534         New file.
64535         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64536         file.
64537
64538 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64539
64540         * conform/conformtest.pl: Fix typo in handling typed-constant from
64541         allow-header.
64542
64543 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64544
64545         * README: Cut down references to pre-2.6 Linux kernels and
64546         Linuxthreads.  Update lists of configurations in libc and ports
64547         and sort alphabetically.  Say "or newer" with Linux kernel version
64548         requirements.
64549
64550         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64551
64552 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64553
64554         [BZ #887]
64555         * math/libm-test.inc (logb_test_downward): New test to expose
64556         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64557         rounding mode.
64558
64559 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64560
64561         [BZ #14027]
64562         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64563         to be done.
64564         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64565         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64566
64567 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64568
64569         * sysdeps/unix/i386/brk.S: Remove file.
64570         * sysdeps/unix/i386/dl-brk.S: Likewise.
64571         * sysdeps/unix/i386/pipe.S: Likewise.
64572         * sysdeps/unix/i386/sigreturn.S: Likewise.
64573         * sysdeps/unix/i386/syscall.S: Likewise.
64574         * sysdeps/unix/i386/vfork.S: Likewise.
64575         * sysdeps/unix/i386/wait.S: Likewise.
64576
64577         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64578         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64579
64580         * configure.in (arm*-none*): Do not allow without
64581         --enable-hacker-mode.
64582         (netbsd*): Remove case setting base_os.
64583         (386bsd*): Likewise.
64584         (freebsd*): Likewise.
64585         (bsdi*): Likewise.
64586         (osf*): Likewise.
64587         (sunos*): Likewise.
64588         (ultrix*): Likewise.
64589         (newsos*): Likewise.
64590         (dynix*): Likewise.
64591         (*bsd*): Likewise.
64592         (sysv*): Likewise.
64593         (isc*): Likewise.
64594         (esix*): Likewise.
64595         (sco*): Likewise.
64596         (minix*): Likewise.
64597         (irix4*): Likewise.
64598         (irix6*): Likewise.
64599         (solaris[2-9]*): Likewise.
64600         (none): Likewise.
64601         * configure: Regenerated.
64602
64603 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64604
64605         [BZ #11521]
64606         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64607         overflow or cancellation in calculating denominator.
64608         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64609         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64610         down expression to avoid unexpected rounding in newer GCCs.
64611         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64612
64613 2012-04-26  David S. Miller  <davem@davemloft.net>
64614
64615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64616         long-double compat symbols.
64617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64622         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64623         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64630
64631 2012-04-25  David S. Miller  <davem@davemloft.net>
64632
64633         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64634         HWCAP_* values only after the memory barriers have been defined.
64635         (atomic_full_barrier): Define.
64636         (atomic_read_barrier): Define.
64637         (atomic_write_barrier): Define.
64638
64639 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64640
64641         * shlib-versions: Add libgcc_s version information.
64642         * sysdeps/generic/libgcc_s.h: Remove.
64643         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64644         libgcc_s.h.
64645         * sysdeps/gnu/unwind-resume.c: Likewise.
64646         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64647
64648 2012-04-25  David S. Miller  <davem@davemloft.net>
64649
64650         * sysdeps/unix/sparc/brk.S: Delete.
64651         * sysdeps/unix/sparc/dl-brk.S: Delete.
64652         * sysdeps/unix/sparc/pipe.S: Delete.
64653         * sysdeps/unix/sparc/sysdep.S: Delete.
64654         * sysdeps/unix/sparc/sysdep.h: Delete.
64655         * sysdeps/unix/sparc/vfork.S: Delete.
64656         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64657         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64658         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64659         (ret_ERRVAL, r0, r1, MOVE): Define.
64660         (JUMPTARGET): Remove.
64661         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64662         sysdeps/unix/sparc/sysdep.h
64663         (ENTRY, END): Remove.
64664         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64665
64666 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64667
64668         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64669         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64670         -DIS_IN_build.
64671
64672         * timezone/README: Update upstream location and email address for
64673         tzcode and tzdata.
64674         * timezone/zdump.c: Update from tzcode 2012b.
64675         * timezone/zic.c: Likewise.
64676
64677         * configure.in (libc_cv_as_needed): Remove test.
64678         * configure: Regenerated.
64679         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64680         conditional definition.
64681         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64682         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64683         * config.make.in (have-as-needed): Remove variable.
64684
64685 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64686             Paul Pluzhnikov  <ppluzhnikov@google.com>
64687
64688         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64689         strings correctly.
64690
64691 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64692
64693         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64694         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64695         * sysdeps/sh/strlen.S: Likewise.
64696
64697 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64698
64699         * sysdeps/unix/fork.S: Remove file.
64700         * sysdeps/unix/i386/fork.S: Likewise.
64701         * sysdeps/unix/sparc/fork.S: Likewise.
64702
64703         * sysdeps/unix/system.c: Remove file.
64704         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64705
64706         * sysdeps/unix/getegid.S: Remove file.
64707         * sysdeps/unix/geteuid.S: Likewise.
64708
64709 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64710
64711         * scripts/check-localplt.awk: New file.
64712         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64713         of diff.
64714         * scripts/data/localplt-generic.data: Add a comment.
64715
64716         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64717         NODE when __dir_mkfile failed.
64718         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64719         Reported by Ludovic Courtès <ludo@gnu.org>.
64720
64721 2012-04-24  Andreas Jaeger  <aj@suse.de>
64722
64723         * Makerules (common-clean): Also remove gen-as-const-headers
64724         files.
64725
64726 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64727
64728         * Makerules (native-compile): Do not change working directory for
64729         build.  Use $(OUTPUT_OPTION) in command.
64730         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64731
64732 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64733
64734         [BZ #13886]
64735         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64736         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64737         * math/libm-test.inc (floor_test): Add more tests.
64738         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64739
64740 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64741
64742         * sysdeps/unix/getdents.c: Remove file.
64743         * sysdeps/unix/sysv/getdents.c: Likewise.
64744         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64745
64746         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64747         sysdeps/unix/mman/syscalls.list.
64748         (mmap): Likewise.
64749         (mprotect): Likewise.
64750         (msync): Likewise.
64751         (munmap): Likewise.
64752         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64753         * sysdeps/unix/mman/syscalls.list: Remove.
64754         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64755
64756         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64757         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64758         * configure: Regenerated.
64759         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64760         $(libgcc_s_suffix).
64761         * config.make.in (libgcc_s_suffix): Remove variable.
64762
64763 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64764
64765         * sysdeps/unix/sysv/gethostname.c: Move to ...
64766         * sysdeps/posix/gethostname.c: ... here.
64767
64768         * sysdeps/unix/execve.S: Remove file.
64769
64770         * sysdeps/unix/_exit.S: Remove file.
64771
64772 2012-04-23  Andreas Jaeger  <aj@suse.de>
64773
64774         [BZ #13739]
64775         * manual/Makefile: Remove make dist support, there's no
64776         need for a stand-alone documentation tar ball.
64777         (TEXI2DVI): Define always, it's not in Makeconfig.
64778         (dist): Removed.
64779         (tar-it): Removed.
64780         (edition): Removed.
64781         (glibc-doc-$(edition).tar): Removed
64782         (%.Z): Removed.
64783         (%.gz): Removed.
64784         (%.uu): Removed.
64785         (ETAGS): Remove, it's in Makeconfig.
64786         (move-if-change): Remove, it's in Makeconfig.
64787
64788 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         [BZ #13970]
64791         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64792         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64793         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64794         (strtod_l, strtof_l, strtold_l): Remove __wur.
64795         It is not necessarily an error to ignore strtol's return value.
64796         One can reliably look at the stored endptr to decide whether
64797         the number had valid syntax.
64798
64799 2012-04-21  Andreas Jaeger  <aj@suse.de>
64800
64801         [BZ #13739]
64802         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64803
64804 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64805
64806         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64807         * sysdeps/unix/sysv/Versions: Remove file.
64808
64809 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64810
64811         [BZ #13927]
64812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64813
64814 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64815
64816         [BZ #7064]
64817         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64818         version from __vm86.
64819
64820 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64821
64822         * sysdeps/unix/common/lxstat.c: Remove file.
64823         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64824
64825         * sysdeps/unix/sysv/Makefile: Remove file.
64826
64827         * sysdeps/unix/sysv/direct.h: Remove file.
64828
64829         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64830         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64831         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64832         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64833         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64834         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64835         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64836
64837         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64838
64839         * sysdeps/unix/xmknod.c: Remove file.
64840         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64841
64842         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64843
64844         * sysdeps/unix/sysv/i386/time.S: Remove file.
64845
64846         * sysdeps/unix/fxstat.c: Remove file.
64847         * sysdeps/unix/xstat.c: Likewise.
64848         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
64849
64850         * sysdeps/unix/sysv/sigaction.c: Remove file.
64851
64852         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
64853         (sysdep_headers): Remove variable.
64854         [termio.h not in sysdep_headers] (generated): Likewise.
64855         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
64856         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
64857         * sysdeps/unix/sysv/tcdrain.c: Likewise.
64858         * sysdeps/unix/sysv/tcflow.c: Likewise.
64859         * sysdeps/unix/sysv/tcflush.c: Likewise.
64860         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
64861         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
64862         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
64863         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
64864         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
64865
64866         * sysdeps/unix/siglist.c: Remove file.
64867
64868         * sysdeps/unix/getppid.S: Remove file.
64869
64870         * sysdeps/unix/mkdir.c: Remove file.
64871         * sysdeps/unix/rmdir.c: Likewise.
64872
64873 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
64874
64875         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
64876         ERR_MAX value.
64877         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
64878         errlist-compat value.
64879
64880 2012-04-18  David S. Miller  <davem@davemloft.net>
64881
64882         * sysdeps/generic/memcopy.h (reg_char): Delete.
64883         * debug/strcat_chk.c: Use char, not reg_char.
64884         * debug/strcpy_chk.c: Likewise.
64885         * debug/strncat_chk.c: Likewise.
64886         * debug/strncpy_chk.c: Likewise.
64887         * string/memchr.c: Likewise.
64888         * string/memrchr.c: Likewise.
64889         * string/rawmemchr.c: Likewise.
64890         * string/strcat.c: Likewise.
64891         * string/strchr.c: Likewise.
64892         * string/strchrnul.c: Likewise.
64893         * string/strcmp.c: Likewise.
64894         * string/strcpy.c: Likewise.
64895         * string/strncat.c: Likewise.
64896         * string/strncmp.c: Likewise.
64897         * string/strncpy.c: Likewise.
64898
64899 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64900
64901         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
64902         __builtin_memcopy is called when src and dest ranges are known to not
64903         overlap.
64904
64905 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64906
64907         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
64908         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
64909         fwd_align_merge macro call.
64910         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
64911         bwd_align_merge macro call.
64912         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64913
64914 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64915
64916         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
64917         bwd_align_merge macros.
64918         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
64919         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
64920         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64921
64922 2012-04-18  David S. Miller  <davem@davemloft.net>
64923
64924         * sysdeps/sparc/sparc64/memcopy.h: Delete.
64925
64926 2012-04-18  Andreas Jaeger  <aj@suse.de>
64927
64928         [BZ# 6794]
64929         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
64930         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
64931         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64932
64933         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
64934         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
64935         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64936
64937         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
64938         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
64939         Adjust for changed ldbl-128 files.
64940
64941         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
64942         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
64943         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64944
64945 2012-04-17  David S. Miller  <davem@davemloft.net>
64946
64947         * sysdeps/sparc/sparc32/memcopy.h: Delete.
64948
64949 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
64950
64951         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
64952         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
64953         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
64954         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
64955         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
64956         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
64957
64958 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64959
64960         [BZ #6794]
64961         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
64962         * math/libm-test.inc: Add ilogb errno and exception tests.
64963         * math/w_ilogb.c: New file: ilogb wrapper.
64964         * math/w_ilogbf.c: New file: ilogbf wrapper.
64965         * math/w_ilogbl.c: New file: ilogbl wrapper.
64966         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
64967         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
64968         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
64969         exception being thrown with 0.0 as argument.
64970         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
64971         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
64972         exception being thrown with 0.0 as argument.
64973         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
64974         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64975         exception being thrown with 0.0 as argument.
64976         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
64977         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64978         exception being thrown with 0.0 as argument.
64979         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
64980         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
64981         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
64982         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
64983         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
64984         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
64985         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
64986         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
64987         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
64988
64989 2012-04-17  Petr Baudis  <pasky@ucw.cz>
64990
64991         * include/sys/uio.h: Change __vector to __iovec to avoid clash
64992         with altivec.
64993
64994 2012-04-16  Marek Polacek  <polacek@redhat.com>
64995
64996         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
64997
64998 2012-04-16  Marek Polacek  <polacek@redhat.com>
64999
65000         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65001         operands of fdivp instruction.
65002
65003 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65004
65005         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65006         * elf/tst-auditmod3b.c: Likewise.
65007         * elf/tst-auditmod4b.c: Likewise.
65008         * elf/tst-auditmod5b.c: Likewise.
65009         * elf/tst-auditmod6b.c: Likewise.
65010         * elf/tst-auditmod6c.c: Likewise.
65011         * elf/tst-auditmod7b.c: Likewise.
65012         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65013         * sysdeps/x86_64/preconfigure.in: Likewise.
65014         * sysdeps/x86_64/preconfigure: Regenerated.
65015
65016 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65017
65018         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65019         __ILP32__.
65020
65021 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65022
65023         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65024         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65025
65026 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65027
65028         [BZ #13973]
65029         * locale/iso-639.def: Fix gl language name. Spotted by
65030         Yaron Shahrabani.
65031
65032 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65033
65034         [BZ #2074]
65035         * libio/libio.h (__io_write_fn): Update comment.
65036
65037 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65038
65039         [BZ #2074]
65040         * stdio.texi (Hook Functions): The user provided writer function
65041         is not allowed to return -1.
65042
65043 2012-04-11  David S. Miller  <davem@davemloft.net>
65044
65045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65046
65047 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65048
65049         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65050         Add a leading slash to rtkaio.
65051
65052 2012-04-11  Jim Meyering  <meyering@redhat.com>
65053
65054         [BZ #11959]
65055         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65056         It is not necessarily an error to ignore fwrite's return
65057         value.  One can reliably use ferror to test for errors after
65058         the fact.
65059
65060 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65061
65062         * bits/types.h (__snseconds_t): New type.
65063         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65064
65065         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65066         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65067         (__SNSECONDS_T_TYPE): Likewise.
65068         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65069         (__SNSECONDS_T_TYPE): Likewise.
65070         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65071         (__SNSECONDS_T_TYPE): Likewise.
65072
65073 2012-04-10  Andreas Jaeger  <aj@suse.de>
65074
65075         [BZ #2636]
65076         * manual/time.texi (Processor Time): Return type of times is
65077         elapsed real time since an arbitrary point in the past.
65078         (CPU Time): Move CLK_TCK from here...
65079         (Processor Time): ...to here.  Correct description.
65080         * manual/conf.texi (Constants for Sysconf): Correct description of
65081         _SC_CLK_TCK.
65082
65083 2012-04-10  David S. Miller  <davem@davemloft.net>
65084
65085         [BZ #13967]
65086         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65087         where the is a gap between DT_REL(A) and DT_JMPREL.
65088
65089 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65090
65091         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65092         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65093         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65094
65095 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65096
65097         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65098         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65099         (dl_main): Handle --inhibit-cache.
65100         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65101         _dl_inhibit_cache.
65102         * elf/dl-load.c (_dl_map_object): Use it.
65103         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65104
65105 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65106
65107         [BZ #13872]
65108         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65109         (__ieee754_powl): Saturate large exponents rather than testing for
65110         overflow of y*log2(x).
65111         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65112         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65113         exceptions.
65114
65115         [BZ #11521]
65116         * math/s_ctan.c: Include <float.h>.
65117         (__ctan): Avoid internal overflow or cancellation in calculating
65118         denominator.
65119         * math/s_ctanf.c: Likewise.
65120         * math/s_ctanl.c: Likewise.
65121         * math/s_ctanh.c: Likewise.
65122         * math/s_ctanhf.c: Likewise.
65123         * math/s_ctanhl.c: Likewise.
65124         * math/libm-test.inc (ctan_test): Add more tests.
65125         (ctanh_test): Likewise.
65126         * sysdeps/i386/fpu/libm-test-ulps: Update.
65127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65128
65129 2012-04-09  Andreas Jaeger  <aj@suse.de>
65130
65131         [BZ #6894]
65132         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65133         is an optional BSD extension.
65134
65135         [BZ #10254]
65136         * manual/stdio.texi (Opening Streams): Document additional fopen
65137         parameters.
65138
65139 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65140
65141         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65142         %eax without telling the compiler.
65143
65144 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65145
65146         [BZ # 13963]
65147         * manual/install.texi: Use sourceware.org.
65148
65149 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65150
65151         [BZ #13873]
65152         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65153         (__ieee754_pow): Generate overflow and underflow using huge*huge
65154         and tiny*tiny rather than just returning constant infinity or zero
65155         for large exponents.
65156         * math/libm-test.inc (pow_test): Require overflow exceptions for
65157         applicable cases of large exponents.
65158
65159         [BZ #706]
65160         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65161         (__ieee754_pow): Use iterative multiplication algorithm only for
65162         integer exponents with absolute value below 1024.  Check for odd
65163         integer exponents when using algorithm for real exponents.
65164         * math/libm-test.inc (pow_test): Add more tests.
65165         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65166
65167 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65168
65169         [BZ #13705]
65170         * math/libm-test.inc (exp_test): Do not allow overflow exception
65171         on underflow test.
65172
65173 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65174
65175         [BZ #13705]
65176         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65177         instead of __kernel_standard_f.
65178
65179 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65180
65181         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65182         * sysdeps/x86_64/memset_chk.S: Likewise.
65183
65184 2012-04-08  Andreas Jaeger  <aj@suse.de>
65185
65186         [BZ #10153]
65187         * manual/startup.texi (Environment Access): Describe return value
65188         for putenv and setenv.
65189
65190         [BZ #6895]
65191         * manual/filesys.texi (Directory Entries): Add description for
65192         DT_LNK.
65193
65194         [BZ #6890]
65195         * manual/filesys.texi (Directory Entries): Clarify that it's file
65196         system not operating system in the description of DT_UNKNOWN.
65197
65198         [BZ #6578]
65199         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65200
65201 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65202
65203         [BZ #6649]
65204         * manual/llio.texi (Opening and Closing Files): Add cross
65205         reference to explain mode argument.
65206
65207 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65208
65209         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65210         * sysdeps/x86_64/memset_chk.S: Likewise.
65211
65212 2012-04-07  David S. Miller  <davem@davemloft.net>
65213
65214         * elf/elf.h (R_SPARC_WDISP10): Define.
65215         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65216         R_SPARC_SIZE32.
65217         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65218         R_SPARC_SIZE64 and R_SPARC_H34.
65219
65220 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65221
65222         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65223         conditions and remove no longer applicable assertion.
65224
65225 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65226
65227         * bits/byteswap.h: Include <features.h>.
65228         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65229         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65230
65231 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65232
65233         * bits/byteswap.h (__bswap_16): Removed.
65234         Include <bits/byteswap-16.h> to get __bswap_16.
65235         * sysdeps/i386/bits/byteswap.h: Likewise.
65236         * sysdeps/s390/bits/byteswap.h: Likewise.
65237         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65238         * bits/byteswap-16.h: New file.
65239         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65240         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65241         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65242         * string/Makefile (headers): Add bits/byteswap-16.h.
65243
65244 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65245
65246         [BZ #13895]
65247         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65248         extra indirection.
65249         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65250         * nss/tst-nss-static.c: New.
65251
65252 2012-04-06  Robert Millan  <rmh@gnu.org>
65253
65254         [BZ #6486]
65255         * manual/llio.texi (File Position Primitive): lseek
65256         refers to WHENCE when it really means OFFSET.
65257
65258 2012-04-06  Andreas Jaeger  <aj@suse.de>
65259
65260         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65261         strncmp declarations.
65262
65263         * abilist/libc.abilist: Add __poll and __ppoll.
65264
65265 2012-04-05  David S. Miller  <davem@davemloft.net>
65266
65267         * scripts/check-local-headers.sh: Accept a host triplet in the
65268         path matched by the exclude regexp.
65269
65270         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65271         definition.
65272         * sysdeps/powerpc/powerpc32/dl-machine.h
65273         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65274         * sysdeps/s390/s390-32/dl-machine.h
65275         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65276         * sysdeps/sparc/sparc32/dl-machine.h
65277         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65278         * sysdeps/sparc/sparc64/dl-machine.h
65279         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65280
65281         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65282         lazy binding.
65283         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65284         undefined symbol errors.
65285
65286         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65287         DT_NEEDED entries.
65288
65289 2012-04-05  Michael Matz  <matz@suse.de>
65290
65291         [BZ #13592]
65292         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65293
65294 2012-04-05  Andreas Jaeger  <aj@suse.de>
65295
65296         [BZ #13908]
65297         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65298         comment.
65299
65300 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65301
65302         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65303         which ROUND is no valid rounding mode.
65304
65305 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65306
65307         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65308         read again.
65309         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65310
65311 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65312
65313         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65314         an exception using FPU order intentionally.
65315
65316 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65317
65318         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65319         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65320         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65321         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65322
65323 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65324
65325         [BZ #12340]
65326         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65327         EINVAL when BUFLEN is too smal.
65328
65329 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65330
65331         [BZ #13553]
65332         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65333         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65334
65335 2012-04-03  Andreas Jaeger  <aj@suse.de>
65336
65337         [BZ #13938]
65338         * manual/setjmp.texi (System V contexts): Fix sentence.
65339
65340         [BZ #13926]
65341         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65342         New macro for this case.
65343         [!__GNUC__] (__bswap_64): New inline function for this case.
65344         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65345         * bits/byteswap.h: Likewise.
65346         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65347         ull, guard with __GLIBC_HAVE_LONG_LONG.
65348
65349         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65350         __GLIBC_HAVE_LONG_LONG.
65351
65352         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65353         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65354
65355 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65356
65357         [BZ #13691]
65358         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65359         inptr and inend, rather than using last_ch.
65360
65361 2012-04-02  David S. Miller  <davem@davemloft.net>
65362
65363         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65364         * stdio-common/printf-parse.h (read_int): Change return type to
65365         'int', return -1 on INT_MAX overflow.
65366         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65367         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65368         overflows INT_MAX.  Check for overflow of in-format-string precision
65369         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65370         SIZE_MAX not INT_MAX for integer overflow test.
65371         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65372         skip the construct in the format string but do not record anything.
65373         * stdio-common/bug22.c: Adjust to test both width/prevision
65374         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65375         explicitly for proper errno values.
65376
65377 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65378
65379         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65380         CHAR_MAX.
65381         * string/test-strcmp.c [! WIDE]: Likewise.
65382         * time/tst-mktime2.c: Likewise for INT_MAX.
65383         * string/test-string.h: #include <sys/param.h> for MIN.
65384
65385         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65386         * sysdeps/i386/init-first.c (init): Likewise.
65387         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65388         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65389         * sysdeps/sh/init-first.c (init): Likewise.
65390
65391 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65392
65393         * po/ru.po: Update from translation team.
65394         * po/vi.po: Likewise.
65395
65396 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65397
65398         * resolv/nss_dns/dns-host.c: Merge copyright years.
65399
65400 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65401
65402         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65403         Optimize memcpy with prefetch if
65404         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65405         src, dst pointers have unequal 16 byte alignments.
65406
65407 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65408
65409         [BZ #13928]
65410         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65411         from a CNAME entry and return the minimum ttl for the query.
65412         (gaih_getanswer_slice): Likewise.
65413
65414 2012-03-30  Jeff Law  <law@redhat.com>
65415
65416         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65417         due to long keys.
65418         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65419         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65420
65421         * resolv/nss_dns/dns-host.c: Update copyright year.
65422
65423 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65424
65425         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65426         requests to save a system call.  Fix check that all bytes are sent.
65427
65428         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65429         comments for sendmmsg.
65430
65431 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65432
65433         [BZ #13691]
65434         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65435         with only 1 character between 0x0041 and 0x01b0.
65436         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65437         * wcsmbs/tst-mbsnrtowcs.c: New file.
65438
65439 2012-03-29  David S. Miller  <davem@davemloft.net>
65440
65441         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65442         small copies by hand.
65443
65444 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65445
65446         [BZ #13761]
65447         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65448         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65449         group memberships.
65450
65451 2012-03-28  David S. Miller  <davem@davemloft.net>
65452
65453         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65454         that branches into memcpy.
65455         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65456         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65457         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65458         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65459         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65460         bits.
65461         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65462         implementation too.
65463         * sysdeps/sparc/mempcpy.S: New file.
65464
65465         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65466         the IFUNC routine in the libc case.
65467         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65468
65469         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65470         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65471         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65472         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65473         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65474         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65475         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65476         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65477
65478         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65479         loop to 256 bytes instead of 64 bytes and fix test signedness.
65480
65481         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65482         * sysdeps/sparc/sparc32/Makefile: rather than here...
65483         * sysdeps/sparc/sparc64/Makefile: and here.
65484
65485 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65486
65487         * malloc/mallocbug.c: Avoid warnings about unused variables.
65488
65489 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65490
65491         [BZ #13760]
65492         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65493         in the right place. Discard and retry query if response is
65494         larger than input buffer size.
65495
65496 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65497
65498         [BZ #369]
65499         [BZ #2678]
65500         [BZ #3866]
65501         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65502         x for large integer exponent.
65503         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65504         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65505         sign of result as needed afterwards.
65506         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65507         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65508         result for underflowing pow the same as for overflow.
65509         (__kernel_standard_l): Handle powl overflow and underflow here
65510         rather than calling __kernel_standard.
65511         * math/libm-test.inc (pow_test): Add more tests.
65512
65513         [BZ #3868]
65514         [BZ #13879]
65515         [BZ #13910]
65516         [BZ #13911]
65517         [BZ #13912]
65518         [BZ #13913]
65519         [BZ #13915]
65520         [BZ #13916]
65521         [BZ #13917]
65522         [BZ #13918]
65523         [BZ #13919]
65524         [BZ #13920]
65525         [BZ #13921]
65526         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65527         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65528         (__kernel_standard_l): New function.
65529         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65530         __kernel_standard.
65531         * math/w_acosl.c (__acosl): Likewise.
65532         * math/w_asinl.c (__asinl): Likewise.
65533         * math/w_atan2l.c (__atan2l): Likewise.
65534         * math/w_atanhl.c (__atanhl): Likewise.
65535         * math/w_coshl.c (__coshl): Likewise.
65536         * math/w_exp10l.c (__exp10l): Likewise.
65537         * math/w_exp2l.c (__exp2l): Likewise.
65538         * math/w_fmodl.c (__fmodl): Likewise.
65539         * math/w_hypotl.c (__hypotl): Likewise.
65540         * math/w_j0l.c (__j0l, __y0l): Likewise.
65541         * math/w_j1l.c (__j1l, __y1l): Likewise.
65542         * math/w_jnl.c (__jnl, __ynl): Likewise.
65543         * math/w_lgammal.c (__lgammal): Likewise.
65544         * math/w_log10l.c (__log10l): Likewise.
65545         * math/w_log2l.c (__log2l): Likewise.
65546         * math/w_logl.c (__logl): Likewise.
65547         * math/w_powl.c (__powl): Likewise.
65548         * math/w_remainderl.c (__remainderl): Likewise.
65549         * math/w_scalbl.c (sysv_scalbl): Likewise.
65550         * math/w_sinhl.c (__sinhl): Likewise.
65551         * math/w_sqrtl.c (__sqrtl): Likewise.
65552         * math/w_tgammal.c (__tgammal): Likewise.
65553         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65554         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65555         * math/libm-test.inc (acos_test): Add more tests.
65556         (acosh_test): Likewise.
65557         (asin_test): Likewise.
65558         (atanh_test): Likewise.
65559         (exp_test): Likewise.
65560         (exp10_test): Likewise.
65561         (exp2_test): Likewise.
65562         (expm1_test): Likewise.
65563         (lgamma_test): Likewise.
65564         (log_test): Likewise.
65565         (log10_test): Likewise.
65566         (log1p_test): Likewise.
65567         (log2_test): Likewise.
65568         (pow_test): Do not allow some spurious overflow exceptions.
65569         (sqrt_test): Add more tests.
65570         (tgamma_test): Likewise.
65571         (y0_test): Likewise.
65572         (y1_test): Likewise.
65573         (yn_test): Likewise.
65574
65575 2012-03-27  Anton Blanchard  <anton@samba.org>
65576
65577         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65578         MAP_HUGETLB.
65579         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65580         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65581         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65582
65583 2012-03-27  David S. Miller  <davem@davemloft.net>
65584
65585         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65586
65587         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65588         have-as-vis3 check.
65589
65590 2012-03-27  Andreas Jaeger  <aj@suse.de>
65591
65592         * sysdeps/x86_64/elf/configure.in: Moved to ...
65593         * sysdeps/x86_64/configure.in: ... here.
65594         * sysdeps/x86_64/elf/start.S: Moved to ...
65595         * sysdeps/x86_64/start.S: ... here.
65596         * sysdeps/x86_64/elf/configure: Delete.
65597
65598         * sysdeps/x86_64/configure.in: Merge contents from
65599         sysdeps/i386/configure.in (without i686 check).
65600
65601         * sysdeps/i386/elf/Versions: Merge into ...
65602         * sysdeps/i386/Versions: ... this.
65603         * sysdeps/i386/elf/Versions: Delete file.
65604         * sysdeps/i386/elf/start.S: Moved to ...
65605         * sysdeps/i386/start.S: ...here.
65606         * sysdeps/i386/elf/configure.in: Merge into...
65607         * sysdeps/i386/configure.in: ...here.
65608         * sysdeps/i386/elf/configure.in: Delete file.
65609         * sysdeps/i386/elf/configure: Delete file.
65610
65611         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65612         * debug/backtracesyms.c: ... here.
65613         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65614         * debug/backtracesymsfd.c: ... here.
65615         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65616         * sysdeps/generic/ifunc-sel.h: ... here.
65617
65618         * sysdeps/unix/i386/start.c: Delete file.
65619         * sysdeps/unix/sparc/start.c: Delete file.
65620         * sysdeps/unix/start.c: Delete file.
65621
65622         * sysdeps/sh/elf/configure.in: Moved to ...
65623         * sysdeps/sh/configure.in: ... here.
65624         * sysdeps/sh/elf/start.S: Moved to ...
65625         * sysdeps/sh/start.S: ... here.
65626         * sysdeps/sh/elf/configure: Delete file.
65627
65628         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65629         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65630         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65631         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65632         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65633         * sysdeps/powerpc/powerpc64/start.S: here.
65634         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65635         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65636         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65637         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65638         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65639
65640         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65641         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65642         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65643         * sysdeps/powerpc/powerpc32/start.S: ... here.
65644         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65645         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65646         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65647
65648         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65649         * sysdeps/powerpc/ifunc-sel.h: ... here.
65650         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65651         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65652
65653         * sysdeps/sparc/elf/configure.in: Moved to ...
65654         * sysdeps/sparc/configure.in: ... here.
65655         * sysdeps/sparc/elf/configure: Delete file.
65656         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65657         * sysdeps/sparc/sparc32/start.S: ... here.
65658         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65659         * sysdeps/sparc/sparc64/start.S: ... here.
65660         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65661         * sysdeps/sparc/sparc32/Makefile: ... this.
65662         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65663         * sysdeps/sparc/sparc64/Makefile: ... this.
65664
65665         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65666         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65667         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65668         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65669         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65670         * sysdeps/s390/s390-32/setjmp.S: ... here.
65671         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65672         * sysdeps/s390/s390-32/configure.in: ... here.
65673         * sysdeps/s390/s390-32/elf/configure: Delete file.
65674         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65675         * sysdeps/s390/s390-32/start.S: ... here.
65676
65677         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65678         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65679         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65680         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65681         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65682         * sysdeps/s390/s390-64/setjmp.S: ... here.
65683         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65684         * sysdeps/s390/s390-64/configure.in: ... here
65685         * sysdeps/s390/s390-64/elf/configure: Delete file.
65686         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65687         * sysdeps/s390/s390-64/start.S: ... here.
65688         * sysdeps/s390/s390-64/elf/configure: Delete.
65689
65690         * configure.in: Remove support for elf directories in sysdeps.
65691
65692         * configure: Regenerated.
65693         * sysdeps/i386/configure: Regenerated.
65694         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65695         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65696         * sysdeps/s390/s390-32/configure: Regenerated.
65697         * sysdeps/s390/s390-64/configure: Regenerated.
65698         * sysdeps/sh/configure: Regenerated.
65699         * sysdeps/sparc/configure: Regenerated.
65700         * sysdeps/x86_64/configure: Regenerated.
65701
65702 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65703
65704         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65705
65706         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65707         denormal result into account.
65708
65709 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65710
65711         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65712         Reported by Allan McRae <allan@archlinux.org>.
65713
65714 2012-03-23  Jeff Law  <law@redhat.com>
65715
65716         * nss/getnssent.c (__nss_getent): Fix typo.
65717
65718 2012-03-23  David S. Miller  <davem@davemloft.net>
65719
65720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65721
65722 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65723
65724         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65725         to pad to uint64_t for each field.
65726         (dl_tls_index): Replace unsigned long with uint64_t.
65727
65728 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65729         Paul Pluzhnikov  <ppluzhnikov@google.com>
65730
65731         [BZ #6528]
65732         * grp/Makefile (otherlibs): Don't set it.
65733         * inet/Makefile (otherlibs): Likewise.
65734         * login/Makefile (otherlibs): Likewise.
65735         * nscd/Makefile (otherlibs): Likewise.
65736         * posix/Makefile (otherlibs): Likewise.
65737         * pwd/Makefile (otherlibs): Likewise.
65738         * rt/Makefile (otherlibs): Likewise.
65739         * sunrpc/Makefile (otherlibs): Likewise.
65740         * nss/Makefile (otherlibs): Likewise.
65741         Add libnss_files to routines and static-only-routines.
65742         ($(objpfx)getent): Remove rule.
65743         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65744         static-only-routines.
65745
65746 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65747
65748         [BZ #13892]
65749         * math/s_cexp.c: Include <float.h>.
65750         (__cexp): Handle exp result overflowing not necessarily
65751         overflowing both real and imaginary parts of result.
65752         * math/s_cexpf.c: Likewise.
65753         * math/s_cexpl.c: Likewise.
65754         * math/libm-test.inc (cexp_test): Add more tests.
65755         * sysdeps/i386/fpu/libm-test-ulps: Update.
65756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65757
65758 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65759
65760         * include/link.h (ELFW): New macro.
65761         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65762         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65763
65764 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65765
65766         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65767         with uint64_t.
65768
65769 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65770
65771         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65772         declaration.
65773         (struct La_x32_retval): Likewise.
65774
65775 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65776
65777         * sysdeps/x86_64/preconfigure.in: New file.
65778         * sysdeps/x86_64/preconfigure: New generated file.
65779
65780 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65781
65782         [BZ #13824]
65783         * math/e_exp2l.c: Include <float.h>.
65784         (__ieee754_exp2l): Handle overflow and underflow cases
65785         separately.  Only pass fractional part of argument to
65786         __ieee754_expl.
65787         * math/libm-test.inc (exp2_test): Add more tests.
65788
65789         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65790         negating x to take absolute value.
65791         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65792         Likewise.
65793         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65794         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65795         Likewise.
65796         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65797         computing low part if x was negated.
65798         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65799
65800 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65801
65802         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65803         la_x32_gnu_pltexit.
65804         (pltexit): Cast int_retval to ptrdiff_t.
65805         * elf/tst-auditmod3b.c: Likewise.
65806         * elf/tst-auditmod4b.c: Likewise.
65807         * elf/tst-auditmod5b.c: Likewise.
65808         * elf/tst-auditmod6b.c: Likewise.
65809         * elf/tst-auditmod6c.c: Likewise.
65810         * elf/tst-auditmod7b.c: Likewise.
65811
65812         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65813         and x32_gnu_pltexit.
65814
65815         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65816         __ELF_NATIVE_CLASS.
65817         (La_x32_regs): New macro.
65818         (La_x32_retval): Likewise.
65819         (la_x32_gnu_pltenter): New function prototype.
65820         (la_x32_gnu_pltexit): Likewise.
65821
65822 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65823
65824         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65825         exponent.
65826
65827         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65828
65829         * configure.in (libc_cv_cc_nofma): Check for option to disable
65830         generation of FMA instructions.
65831         * configure: Regenerate.
65832         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65833         * sysdeps/ieee754/dbl-64/Makefile: New file.
65834         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65835         Remove brandred-fma4.
65836         (CFLAGS-brandred-fma4.c): Remove.
65837         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65838         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65839         define.
65840         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65841         define.
65842
65843 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65844
65845         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65846         LLONG_MAX != LONG_MAX.
65847         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65848         (_fitoa_word): Likewise.
65849         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
65850         LLONG_MAX != LONG_MAX.
65851         * stdio-common/_itowa.h: Include <_itoa.h>.
65852         (_itowa_word): Use _ITOA_WORD_TYPE on value.
65853         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
65854         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
65855         only if not defined.
65856         (_ITOA_WORD_TYPE): Likewise.
65857         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65858         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
65859
65860 2012-03-21  David S. Miller  <davem@davemloft.net>
65861
65862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65863
65864 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65865
65866         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
65867         of x86_64 when setting libc_cv_slibdir, libdir and
65868         libc_cv_localedir.
65869         * sysdeps/unix/sysv/linux/configure: Regenerated.
65870
65871 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65872
65873         * manual/lang.texi (Old Varargs): Remove section.
65874         (How Variadic): Update menu.
65875         (va_start): Do not mention varargs.h.
65876
65877 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65878             Joseph Myers  <joseph@codesourcery.com>
65879
65880         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
65881         link test.
65882         * configure: Regenerated.
65883
65884 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65885
65886         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
65887         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
65888         conformtest.pl
65889
65890 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65891
65892         * NOTES: Remove.
65893         * Makefile (files-for-dist): Remove NOTES.
65894         (NOTES): Remove rule.
65895         * README: Don't refer to NOTES.
65896         * manual/creature.texi: Don't include macros.texi.
65897         * manual/intro.texi (creature.texi): Remove comment referring to
65898         NOTES.
65899
65900         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
65901         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
65902         * configure: Regenerated.
65903         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
65904         LIBC_TRY_CC_OPTION.
65905         (libc_cv_as_i686): Likewise.
65906         (libc_cv_cc_avx): Likewise.
65907         (libc_cv_cc_sse2avx): Likewise.
65908         (libc_cv_cc_fma4): Likewise.
65909         (libc_cv_cc_novzeroupper): Likewise.
65910         * sysdeps/i386/configure: Regenerated.
65911
65912         [BZ #13883]
65913         * sysdeps/i386/fpu/s_cexp.S: Remove.
65914         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
65915         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
65916         * math/libm-test.inc (cexp_test): Add more tests.
65917         * sysdeps/i386/fpu/libm-test-ulps: Update.
65918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65919
65920 2012-03-21  Allan McRae  <allan@archlinux.org>
65921
65922         * timezone/Makefile: Do not install iso3166.tab and zone.tab
65923
65924 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65925
65926         [BZ #13871]
65927         * math/w_exp2.c: Do not include <float.h>.
65928         (o_threshold, u_threshold): Remove.
65929         (__exp2): Calculate result before checking finiteness and calling
65930         __kernel_standard.
65931         * math/w_exp2f.c: Likewise.
65932         * math/w_exp2l.c: Likewise.
65933         * math/libm-test.inc (exp2_test): Require overflow exception for
65934         1e6 input.
65935
65936         [BZ #3866]
65937         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
65938         range of signed 64-bit integers before using fistpll.  Remove
65939         checks for whether integers fit in mantissa bits.
65940         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
65941         the range of signed 32-bit integers before using fistpl.  Remove
65942         checks for whether integers fit in mantissa bits.
65943         * sysdeps/i386/fpu/e_powl.S (p64): New object.
65944         (__ieee754_powl): Test for y outside the range of signed 64-bit
65945         integers before using fistpll.  Reduce 64-bit values to 63-bit
65946         ones as needed.
65947         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
65948         divide-by-zero is raised for zero to large negative powers.
65949         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
65950         (__ieee754_powl): Test for y outside the range of signed 64-bit
65951         integers before using fistpll.  Reduce 64-bit values to 63-bit
65952         ones as needed.
65953         * math/libm-test.inc (pow_test): Add more tests.
65954
65955 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
65956
65957         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
65958         <stdio-common/_itoa.h>.
65959         * debug/segfault.c: Likewise.
65960         * elf/dl-cache.c: Likewise.
65961         * elf/dl-minimal.c: Likewise.
65962         * elf/dl-misc.c: Likewise.
65963         * elf/dl-sysdep.c: Likewise.
65964         * elf/dl-version.c: Likewise.
65965         * elf/rtld.c: Likewise.
65966         * hurd/hurdsock.c: Likewise.
65967         * hurd/lookup-retry.c: Likewise.
65968         * malloc/malloc.c: Likewise.
65969         * malloc/mtrace.c: Likewise.
65970         * nscd/nscd_getgr_r.c: Likewise.
65971         * nscd/nscd_getpw_r.c: Likewise.
65972         * nscd/nscd_getserv_r.c: Likewise.
65973         * posix/getopt_init.c: Likewise.
65974         * posix/wordexp.c: Likewise.
65975         * stdio-common/_itoa.c: Likewise.
65976         * stdio-common/printf_fphex.c: Likewise.
65977         * stdio-common/vfprintf.c: Likewise.
65978         * string/_strerror.c: Likewise.
65979         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
65980         * sysdeps/i386/i686/hp-timing.h: Likewise.
65981         * sysdeps/mach/_strerror.c: Likewise.
65982         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
65983         * sysdeps/mach/hurd/sethostid.c: Likewise.
65984         * sysdeps/mach/hurd/xmknodat.c: Likewise.
65985         * sysdeps/mach/xpg-strerror.c: Likewise.
65986         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
65987         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
65988         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
65989         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
65990         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
65991         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
65992         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
65993         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
65994         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
65995         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
65996         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
65997         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
65998         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
65999         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66000         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66001         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66002         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66003         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66004         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66005         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66006         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66007
66008         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66009
66010         * stdio-common/_itoa.h: Moved to ...
66011         * sysdeps/generic/_itoa.h: Here.
66012
66013         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66014
66015         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66016         instead of "_itoa.h" and "_itowa.h".
66017         * stdio-common/vfprintf.: Likewise.
66018
66019 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66020
66021         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66022         <bits/wordsize.h>.
66023         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66024         (__signbit): Likwise.
66025         (llrintf): Likwise.
66026         (llrint): Likwise.
66027
66028 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66029
66030         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66031         __WORDSIZE != 64.
66032
66033 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66034
66035         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66036         OVERFLOW_EXCEPTION_OK.
66037         * math/libm-test.inc ("Philosophy"): Update comment about
66038         exception testing.
66039         (OVERFLOW_EXCEPTION): Define.
66040         (OVERFLOW_EXCEPTION_OK): Likewise.
66041         (INVALID_EXCEPTION_OK): Renumber.
66042         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66043         (IGNORE_ZERO_INF_SIGN): Likewise.
66044         (test_exceptions): Handle FE_OVERFLOW.
66045         (exp10_test): Expect overflow exceptions.
66046         (exp2_test): Likewise.
66047         (expm1_test): Likewise.
66048         (nextafter_test): Likewise.
66049         (pow_test): Likewise.
66050         (scalbn_test): Likewise.
66051         (scalbln_test): Likewise.
66052
66053 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66054
66055         * sysdeps/x86_64/bits/atomic.h
66056         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66057         64bit integer.
66058         (atomic_exchange_acq): Likewise.
66059         (__arch_exchange_and_add_body): Likewise.
66060         (__arch_add_body): Likewise.
66061         (atomic_add_negative): Likewise.
66062         (atomic_add_zero): Likewise.
66063
66064 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66065
66066         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66067         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66068
66069 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66070
66071         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66072         Check __x86_64__ instead of __WORDSIZE.
66073
66074 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66075
66076         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66077
66078 2012-03-19  David S. Miller  <davem@davemloft.net>
66079
66080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66081
66082         * sysdeps/sparc/fpu/fenv_private.h: New file.
66083         * sysdeps/sparc/fpu/math_private.h: Use it.
66084         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66085         Remove.
66086         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66087         (libc_feholdexcept_setroundl): Remove.
66088         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66089         Remove.
66090         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66091         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66092
66093 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66094
66095         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66096         int64_t instead of long int.
66097         (INSERT_WORDS64): Likwise.
66098
66099 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66100
66101         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66102         _Unwind_GetCFA return to _Unwind_Ptr first.
66103
66104 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66105
66106         [BZ #13629]
66107         * math/s_clog.c: Include <float.h>.
66108         (__clog): Scale large or subnormal inputs.
66109         * math/s_clogf.c: Likewise.
66110         * math/s_clogl.c: Likewise.
66111         * math/s_clog10.c: Include <float.h>.
66112         (M_LOG10_2): Define.
66113         (__clog10): Scale large or subnormal inputs.
66114         * math/s_clog10f.c: Likewise.
66115         * math/s_clog10l.c: Likewise.
66116         * math/libm-test.inc (clog_test): Add more tests.
66117         (clog10_test): Likewise.
66118         * sysdeps/i386/fpu/libm-test-ulps: Update.
66119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66120
66121         [BZ #11451]
66122         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66123         x and y.
66124         * math/libm-test.inc (atan2_test): Add another test.
66125
66126         * Makerules (common-objdir-compile): Remove.
66127         * sysdeps/unix/Makefile (config-generated): Do not add
66128         $(unix-generated) to variable.
66129         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66130         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66131         Remove rule.
66132         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66133         Likewise.
66134         [generic bits/local_lim.h] (before-compile): Do not append to
66135         variable.
66136         [generic bits/local_lim.h] (common-generated): Likewise.
66137         [generic sys/param.h] (before-compile): Do not append to variable.
66138         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66139         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66140         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66141         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66142         include.
66143         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66144         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66145         [generic sys/param.h] ($(addprefix
66146         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66147         [generic sys/param.h] (common-generated): Do not append to
66148         variable.
66149         [generic sys/param.h] (sysdep_headers): Likewise.
66150         [generic bits/errno.h] (before-compile): Do not append to
66151         variable.
66152         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66153         rule.
66154         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66155         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66156         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66157         [generic bits/errno.h] (common-generated): Do not append to
66158         variable.
66159         [generic bits/ioctls.h] (before-compile): Do not append to
66160         variable.
66161         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66162         rule.
66163         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66164         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66165         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66166         rule.
66167         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66168         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66169         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66170         [generic bits/ioctls.h] (common-generated): Do not append to
66171         variable.
66172         [generic sys/syscall.h] (syscall.h): Remove variable.
66173         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66174         rule.
66175         [generic sys/syscall.h] (before-compile): Do not append to
66176         variable.
66177         [generic sys/syscall.h] (common-generated): Likewise.
66178         * sysdeps/unix/errnos-tmpl.c: Remove file.
66179         * sysdeps/unix/errnos.awk: Likewise.
66180         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66181         * sysdeps/unix/ioctls.awk: Likewise.
66182         * sysdeps/unix/mk-local_lim.c: Likewise.
66183         * sysdeps/unix/snarf-ioctls: Likewise.
66184
66185 2012-03-19  Richard Henderson  <rth@twiddle.net>
66186
66187         * sysdeps/i386/fpu/fenv_private.h: New file.
66188         * sysdeps/i386/fpu/math_private.h: Use it.
66189         (math_opt_barrier, math_force_eval): Remove.
66190         (libc_feholdexcept_setround_53bit): Remove.
66191         (libc_feupdateenv_53bit): Remove.
66192         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66193         (math_opt_barrier, math_force_eval): Remove.
66194         (libc_feholdexcept): Remove.
66195         (libc_feholdexcept_setround): Remove.
66196         (libc_fetestexcept, libc_fesetenv): Remove.
66197         (libc_feupdateenv_test): Remove.
66198         (libc_feupdateenv, libc_feholdsetround): Remove.
66199         (libc_feresetround): Remove.
66200
66201         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66202         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66203
66204         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66205         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66206         (libc_feupdateenv_testl): New.
66207         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66208         (libc_feupdateenv_testf): New.
66209         (libc_feupdateenv): Use libc_feupdateenv_test.
66210         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66211         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66212
66213         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66214         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66215         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66216         (libc_feresetround_noex): New.
66217         (libc_feresetround_noexf): New.
66218         (libc_feresetround_noexl): New.
66219         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66220         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66221         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66222         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66223         SET_RESTORE_ROUND.
66224         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66225         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66226         (__cos): Likewise.
66227         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66228         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66229         SET_RESTORE_ROUND_NOEX.
66230         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66231         SET_RESTORE_ROUND_NOEXF.
66232         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66233         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66234         (libc_feholdsetroundf): New.
66235         (libc_feresetround, libc_feresetroundf): New.
66236
66237         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66238         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66239         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66240
66241         * sysdeps/generic/math_private.h: Include <fenv.h>.
66242         (default_libc_feholdexcept): New.
66243         (default_libc_feholdexcept_setround): New.
66244         (default_libc_fesetenv, default_libc_feupdateenv): New.
66245         (libc_feholdexcept): Only define if undefined.
66246         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66247         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66248         (libc_feholdexcept_setroundl): Likewise.
66249         (libc_feholdexcept_setround_53bit): Likewise.
66250         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66251         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66252         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66253         (libc_feupdateenv_53bit): Likewise.
66254         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66255         (libc_feholdexcept): Convert from macro to inline function.
66256         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66257         (libc_fesetenv, libc_feupdateenv): Likewise.
66258
66259         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66260         not previously defined.
66261         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66262         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66263         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66264         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66265         * sysdeps/ieee754/flt-32/math_private.h: New file.
66266         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66267         math_private.h below SET_FLOAT_WORD.
66268         (__isnan, __isinf_ns, __finite): Remove.
66269         (__isnanf, __isinf_nsf, __finitef): Remove.
66270
66271 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66272
66273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66274
66275 2012-03-17  David S. Miller  <davem@davemloft.net>
66276
66277         [BZ #6471]
66278         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66279         for 2.16.
66280
66281 2012-03-16  David S. Miller  <davem@davemloft.net>
66282
66283         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66284         warnings.
66285
66286         [BZ #6471]
66287         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66288         properly.
66289         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66290         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66291         sysdep_routines when subdir is sysvipc.
66292         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66293         __getshmlba helper.
66294
66295         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66296
66297 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66298
66299         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66300         [__LP64__].
66301
66302 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66303
66304         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66305         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66306         (__lround): Renamed to ...
66307         (__llround): This.  Replace long int with long long int.
66308         Define lround functions as aliases of llround functions.
66309         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66310
66311 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66312
66313         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66314         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66315         adresses to uintptr_t.  Replace "long int" and "unsigned long
66316         int" with "greg_t" on va_arg.
66317
66318 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66319
66320         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66321         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66322
66323         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66324         Move e_machine check before EI_CLASS check.  Handle x32
66325         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66326         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66327         SKIP_EM_IA_64 and include
66328         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66329
66330         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66331         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66332         (add_system_dir): New macro.
66333
66334         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66335         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66336
66337 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66338
66339         [BZ #2551]
66340         [BZ #2552]
66341         [BZ #2553]
66342         [BZ #2554]
66343         [BZ #2562]
66344         [BZ #2563]
66345         [BZ #2565]
66346         [BZ #2566]
66347         [BZ #2576]
66348         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66349         (y0): Likewise.
66350         * math/w_j0f.c (j0f): Likewise.
66351         (y0f): Likewise.
66352         * math/w_j0l.c (__j0l): Likewise.
66353         (__y0l): Likewise.
66354         * math/w_j1.c (j1): Likewise.
66355         (y1): Likewise.
66356         * math/w_j1f.c (j1f): Likewise.
66357         (y1f): Likewise.
66358         * math/w_j1l.c (__j1l): Likewise.
66359         (__y1l): Likewise.
66360         * math/w_jn.c (jn): Likewise.
66361         (yn): Likewise.
66362         * math/w_jnf.c (jnf): Likewise.
66363         (ynf): Likewise.
66364         * math/w_jnl.c (__jnl): Likewise.
66365         (__ynl): Likewise.
66366         * math/libm-test.inc (j0_test): Add more tests.
66367         (j1_test): Likewise.
66368         (jn_test): Likewise.  Add trailing semicolon to existing test.
66369         (y0_test): Likewise.
66370         (y1_test): Likewise.
66371         * sysdeps/i386/fpu/libm-test-ulps: Update.
66372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66373
66374         [BZ #13851]
66375         [BZ #13854]
66376         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66377         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66378         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66379         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66380         (__tanl): Set errno for infinite argument.
66381         * sysdeps/i386/fpu/mptan.c: Remove.
66382         * sysdeps/i386/fpu/s_tan.S: Likewise.
66383         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66384         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66385         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66386         * math/libm-test.inc (tan_test): Add more tests and enable more
66387         tests for double and long double.
66388         * sysdeps/i386/fpu/libm-test-ulps: Update.
66389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66390
66391 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66392
66393         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66394         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66395
66396 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66397
66398         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66399         * configure.in: Use it for both main tree and add-ons.
66400         * configure: Regenerated.
66401
66402 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66403
66404         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66405
66406 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66407
66408         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66409         in comment.
66410
66411         [BZ #13851]
66412         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66413         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66414         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66415         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66416         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66417         infinite argument.
66418         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66419         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66420         != 0 for prec == 2.
66421         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66422         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66423         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66424         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66425         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66426         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66427         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66428         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66429         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66430         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66431         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66432         * math/libm-test.inc (cos_test): Add more tests and enable more
66433         tests for long double.
66434         (sin_test): Likewise.
66435         (sincos_test): Likewise.
66436         * sysdeps/i386/fpu/libm-test-ulps: Update.
66437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66438
66439 2012-03-16  David S. Miller  <davem@davemloft.net>
66440
66441         * sysdeps/sparc/fpu/math_private.h: New file.
66442
66443 2012-03-15  David S. Miller  <davem@davemloft.net>
66444
66445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66446         file.
66447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66449         file.
66450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66451         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66454         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66455         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66456         sysdep routines.
66457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66458
66459         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66460         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66461
66462         * sysdeps/sparc/sparc-ifunc.h: New file.
66463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66464         sparc-ifunc.h
66465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66467         Likewise.
66468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66469         Likewise.
66470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66474         Likewise.
66475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66480         Likewise.
66481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66482         Likewise.
66483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66487         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66488         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66489         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66490         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66491         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66492         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66497         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66501         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66502         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66503         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66504         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66505         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66506         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66507
66508 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66509
66510         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66511         scaling.
66512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66513
66514 2012-03-15  Andreas Jaeger  <aj@suse.de>
66515
66516         [BZ #13852]
66517         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66518         ieee754/flt-32 implementation for sin, cos and sincos.
66519         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66520         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66521         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66522         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66523         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66524         ieee754/flt-32 implementation for tan.
66525
66526         * math/libm-test.inc (cos_test): Enable some large input tests for
66527         float as well
66528         (sin_test): Likewise.
66529         (sincos_test): Likewise.
66530         (tan_test): Add tests for large input.
66531
66532         * sysdeps/i386/fpu/libm-test-ulps: Update.
66533
66534 2012-03-15  Andreas Jaeger  <aj@suse.de>
66535
66536         [BZ #13658]
66537         * math/libm-test.inc (cos_test): Add more test cases.
66538         (sin_test): Likewise.
66539         (sincos_test): Likewise.
66540
66541 2012-03-15  Andreas Jaeger  <aj@suse.de>
66542
66543         [BZ #13837]
66544         * math/libm-test.inc (cos_test): Add a test case for large input
66545         value.
66546         (sin_test): Likewise.
66547         (sincos_test): Likewise.
66548
66549 2012-03-15  Andreas Jaeger  <aj@suse.de>
66550             Joseph Myers  <joseph@codesourcery.com>
66551
66552         [BZ #13658]
66553         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66554         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66555         * sysdeps/i386/fpu/branred.c: Likewise.
66556         * sysdeps/i386/fpu/dosincos.c: Likewise.
66557         * sysdeps/i386/fpu/mpa.c: Likewise.
66558         * sysdeps/i386/fpu/s_cos.S: Likewise.
66559         * sysdeps/i386/fpu/s_sin.S: Likewise.
66560         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66561         * sysdeps/i386/fpu/sincos32.c: Likewise.
66562
66563         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66564         Define.
66565         (libc_feupdateenv_53bit): Define.
66566         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66567         Define.
66568         (libc_feupdateenv_53bit): Define.
66569
66570         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66571         53 bit (without extend i386 double precision).
66572
66573         * math/libm-test.inc (sincos_test): Add tests for large input.
66574         (sin): Likewise.
66575         (cos): Likewise.
66576
66577         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66578
66579 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66580
66581         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66582
66583 2012-03-15  David S. Miller  <davem@davemloft.net>
66584
66585         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66586         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66587         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66588         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66593         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66597         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66598         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66599         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66601         file.
66602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66604         file.
66605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66607         file.
66608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66610         file.
66611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66612         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66613         fmin/fmax sysdep routines.
66614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66615
66616 2012-03-14  David S. Miller  <davem@davemloft.net>
66617
66618         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66619         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66621         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66622         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66623         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66624         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66625         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66626         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66627         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66629         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66630         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66631         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66632         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66633         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66634         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66635         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66636         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66637         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66638         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66639         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66642         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66644         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66645         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66646         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66647         routines.
66648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66649         file.
66650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66652         file.
66653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66655         file.
66656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66658         file.
66659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66661         file.
66662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66664         file.
66665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66666         file.
66667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66668         file.
66669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66670         file.
66671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66672         New file.
66673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66674         file.
66675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66676         file.
66677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66679         file.
66680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66682         file.
66683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66685         file.
66686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66688         VIS3 routines.
66689
66690         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66691         New file.
66692
66693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66694
66695         * sysdeps/sparc/configure.in: New file.
66696         * sysdeps/sparc/configure: Generate.
66697         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66698         * configure: Regenerate.
66699         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66700         * config.make.in (have-as-vis3): New.
66701         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66702         available use -Av9d instead of -Av9a.
66703         * sysdeps/sparc/sparc64/Makefile: Likewise.
66704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66706         New file.
66707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66708         file.
66709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66710         New file.
66711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66712         file.
66713         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66714         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66715         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66716         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66717         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66718
66719         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66720         fzeros/fnegs to load 0x80000000 into a float register instead of
66721         using the stack.
66722         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66723
66724 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66725
66726         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66727         bits/syscall.h.
66728         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66729         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66730         ($(inst_includedir)/bits/syscall.h): Remove rule.
66731         ($(objpfx)bits/syscall.d): Include instead of
66732         $(objpfx)syscall-list.d.
66733         (generated): Change syscall-list.h and syscall-list.d to
66734         bits/syscall.h and bits/syscall.d.
66735
66736 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66737
66738         [BZ #13846]
66739         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66740
66741 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66742
66743         [BZ #13841]
66744         * math/s_csqrt.c: Include <float.h>.
66745         (__csqrt): Scale large or subnormal inputs.
66746         * math/s_csqrtf.c: Likewise.
66747         * math/s_csqrtl.c: Likewise.
66748         * math/libm-test.inc (csqrt_test): Add more tests.
66749         * sysdeps/i386/fpu/libm-test-ulps: Update.
66750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66751
66752         [BZ #13840]
66753         * math/libm-test.inc (hypot_test): Add more tests.
66754
66755 2012-03-13  David S. Miller  <davem@davemloft.net>
66756
66757         [BZ #13840]
66758         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66759         double-precision for the calculation instead of scaling.
66760
66761 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66762
66763         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66764         manipulate bits before adding and subtracting TWO52[sx].
66765         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66766         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66767         Likewise.
66768         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66769
66770 2012-03-13  David S. Miller  <davem@davemloft.net>
66771
66772         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66773         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66774         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66775         rtld-global-offsets.h
66776         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66777
66778         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66779         large parameters.
66780
66781         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66782
66783         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66784         'err' in the ifdef scope in which it is actually used.
66785
66786         * nss/nss_db/db-init.c: Include string.h
66787
66788 2012-03-12  David S. Miller  <davem@davemloft.net>
66789
66790         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66791         masking out of the most significant byte of random value used.
66792         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66793         Fix coding style in previous change.
66794
66795         * sysdeps/unix/sysv/linux/kernel-features.h
66796         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66797         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66798         expression.
66799         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66800         later.
66801
66802 2012-03-11  David S. Miller  <davem@davemloft.net>
66803
66804         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66805         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66806         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66807         for 'resultvar' otherwise things get truncated on 64-bit.
66808
66809         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66810         Fix masking out of the most significant byte of random value used.
66811
66812         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66813
66814 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66815
66816         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66817
66818 2012-03-09  David S. Miller  <davem@davemloft.net>
66819
66820         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66821         variables with appropriate CPP guards.
66822         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66823         from the frame pointer, not the stack pointer.  Correct layout
66824         comments.  Fix test on resulting framesize and the management of
66825         the outregs buffer for pltexit.  Preserve floating point return
66826         values across _dl_call_pltexit call.
66827         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66828         framesize and the management of the outregs buffer for pltexit.
66829         Preserve floating point return values across _dl_call_pltexit
66830         call.
66831         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66832         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66833         (la_sparc64_gnu_pltexit): New functions.
66834         (print_exit): Fix format string for return register value.
66835
66836 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66837
66838         * sunrpc/Makefile (others): Add rpcgen.
66839         ($(objpfx)rpcgen): Remove special build rule and dependency on
66840         libc.
66841         * sunrpc/rpcgen.c: New file.
66842
66843 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         [BZ #13673]
66846         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66847         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66848         * sysdeps/i386/crti.S: Likewise.
66849         * sysdeps/i386/crtn.S: Likewise.
66850         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
66851         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
66852         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
66853         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
66854         * sysdeps/sh/crti.S: Likewise.
66855         * sysdeps/sh/crtn.S: Likewise.
66856         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66857
66858         [BZ #13673]
66859         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
66860         with URL.
66861         * locale/programs/locfile-kw.gperf: Likewise.
66862         * locale/programs/charmap-kw.h: Regenerated.
66863         * locale/programs/locfile-kw.h: Likewise.
66864
66865         [BZ #13673]
66866         * intl/plural.y: Replace FSF snail mail address with URL.
66867         * intl/plural.c: Regenerated.
66868
66869 2012-03-09  Richard Henderson  <rth@twiddle.net>
66870
66871         * include/math_private.h: Remove file.
66872         * math/math_private.h: Move file ...
66873         * sysdeps/generic/math_private.h: ... here.
66874
66875         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
66876         * sysdeps/powerpc/fpu/math_private.h: Likewise.
66877         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66878
66879         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
66880         and <math_private.h>.
66881         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
66882         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
66883         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
66884         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
66885         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
66886         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
66887         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
66888         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
66889         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
66890         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
66891         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
66892         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
66893         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
66894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
66895         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
66896         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
66897         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
66898         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
66899         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
66900         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
66901         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
66902         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
66903         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
66904         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
66905         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
66906         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
66907         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
66908         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
66909         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
66910         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
66911         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
66912         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
66913         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
66914         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
66915         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
66916         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
66917         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
66918         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
66919         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
66920         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
66921         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
66922         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
66923         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
66924         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
66925         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
66926         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
66927         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
66928         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
66929         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
66930         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
66931         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
66932         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
66933         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
66934         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
66935         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
66936         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
66937         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
66938         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
66939         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
66940         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
66941         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
66942         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
66943         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
66944         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
66945         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
66946         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
66947         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
66948         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
66949         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
66950         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
66951         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
66952         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
66953         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
66954         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
66955         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
66956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
66957         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
66958         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
66959         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
66960         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
66961         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
66962         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
66963         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
66964         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
66965         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
66966         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
66967         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
66968         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
66969         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
66970         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
66971         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
66972         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
66973         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
66974         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
66975         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
66976         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
66977         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
66978         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
66979         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
66980         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
66981         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
66982         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
66983         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
66984         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
66985         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
66986         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
66987         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
66988         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
66989         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
66990         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
66991         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
66992         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
66993         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
66994         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
66995         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
66996         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
66997         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
66998         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
66999         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67000         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67001         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67002         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67003         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67004         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67005         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67006         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67007         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67008         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67009         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67010         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67011         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67012         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67013         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67014         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67015         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67016         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67017         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67018         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67019         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67020         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67021         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67022         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67023         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67024         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67025         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67026         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67027         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67028         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67029         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67030         * sysdeps/ieee754/k_standard.c: Likewise.
67031         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67032         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67033         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67034         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67035         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67036         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67037         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67038         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67039         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67040         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67041         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67042         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67043         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67044         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67045         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67046         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67047         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67048         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67049         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67050         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67051         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67052         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67053         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67054         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67055         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67056         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67057         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67058         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67059         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67060         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67061         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67062         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67063         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67064         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67065         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67066         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67067         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67068         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67069         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67070         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67071         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67072         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67073         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67074         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67075         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67076         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67077         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67078         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67079         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67080         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67081         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67082         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67083         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67084         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67085         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67086         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67087         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67088         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67089         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67090         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67091         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67092         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67093         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67094         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67095         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67096         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67097         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67098         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67099         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67100         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67101         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67102         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67103         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67104         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67105         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67106         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67107         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67108         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67109         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67110         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67111         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67112         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67113         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67114         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67115         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67116         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67117         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67118         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67119         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67120         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67121         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67122         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67123         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67124         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67125         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67126         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67127         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67128         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67129         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67130         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67131         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67132         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67133         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67134         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67135         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67136         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67137         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67138         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67139         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67140         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67141         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67142         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67143         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67144         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67145         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67146         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67147         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67148         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67149         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67150         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67151         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67152         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67153         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67154         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67155         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67156         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67157         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67158         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67159         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67160         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67161         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67162         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67163         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67164         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67165         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67166         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67167         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67168         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67169         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67170         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67171         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67172         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67173         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67174         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67175         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67176         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67177         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67178         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67179         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67180         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67181         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67182         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67183         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67184         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67185         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67186         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67187         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67188         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67189         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67190         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67191         * sysdeps/ieee754/s_lib_version.c: Likewise.
67192         * sysdeps/ieee754/s_matherr.c: Likewise.
67193         * sysdeps/ieee754/s_signgam.c: Likewise.
67194         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67195         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67196         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67197         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67198         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67199         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67200         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67201         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67202         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67203         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67204         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67205         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67206         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67207         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67208         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67209         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67210         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67211         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67212         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67213         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67214         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67215
67216 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67217
67218         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67219         * sunrpc/rpc_main.c: Likewise.
67220         * sunrpc/rpc_svcout.c: Likewise.
67221
67222 2012-03-09  David S. Miller  <davem@davemloft.net>
67223
67224         * include/math_private.h: New file.
67225
67226 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67227
67228         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67229         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67230         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67231         from <bits/socket_type.h>.
67232         (enum __socket_type): Don't define here.
67233         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67235         bits/socket_type.h.
67236
67237         [BZ #13566]
67238         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67239         checking __USE_GNU.
67240
67241         * Makerules ($(inst_includedir)/%.h): New rule.
67242         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67243         (install-others): Remove variable setting.
67244         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67245
67246 2012-03-08  Richard Henderson  <rth@twiddle.net>
67247
67248         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67249         from macro to inline function; merge with the
67250         !__LIBC_INTERNAL_MATH_INLINES version.
67251         (__ieee754_sqrtf): Likewise.
67252
67253         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67254         to inline function.
67255         (__rintf, __floor, __floorf): Likewise.
67256
67257         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67258         macro to inline function.
67259         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67260
67261         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67262         not <math/math_private.h>.
67263
67264 2012-03-08  David S. Miller  <davem@davemloft.net>
67265
67266         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67267         copyright year.
67268         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67269
67270 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67271
67272         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67273         normalization.
67274         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67275         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67276
67277 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67278
67279         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67280         be defined individually, they must be defined as a block.  Define
67281         S for printing a string instead of hidint the different by using a
67282         macro for adding the 'l'.
67283         * stdio-common/tst-fphex-wide.c: Adjust.
67284
67285 2012-03-07  Marek Polacek  <polacek@redhat.com>
67286
67287         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67288
67289 2012-03-08  Marek Polacek  <polacek@redhat.com>
67290
67291         [BZ #13806]
67292         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67293         * stdio-common/tst-fphex.c: Define a few macros to make the
67294         test reusable.  Use them.
67295         * stdio-common/tst-fphex-wide.c: New file.
67296
67297 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67298
67299         [BZ #6911]
67300         * manual/macros.texi (gnusystems): New macro.
67301         (nongnusystems): Likewise.
67302         (gnulinuxhurdsystems): Likewise.
67303         (gnuhurdsystems): Likewise..
67304         (gnulinuxsystems): Likewise.
67305         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67306         variants of the GNU system, not "GNU system".
67307         * manual/conf.texi: Likewise.
67308         * manual/errno.texi: Likewise.  Update example of errno macro
67309         expansion.
67310         * manual/filesys.texi: Likewise.
67311         (getumask): Document as specific to GNU/Hurd.
67312         * manual/install.texi: Likewise.  Reword some references to
67313         GNU/Linux.
67314         * manual/intro.texi: Likewise.
67315         * manual/io.texi: Likewise.
67316         (File Name Portability): Detail which constraints are inapplicable
67317         to all GNU systems and which are only inapplicable to GNU/Hurd.
67318         * manual/job.texi: Likewise.
67319         * manual/llio.texi: Likewise.
67320         (O_NOCTTY): Document as present on GNU/Linux.
67321         * manual/maint.texi: Likewise.
67322         * manual/memory.texi: Likewise.
67323         * manual/pattern.texi: Likewise.
67324         * manual/pipe.texi: Likewise.
67325         * manual/process.texi: Likewise.
67326         * manual/resource.texi: Likewise.
67327         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67328         child on GNU/Hurd.
67329         * manual/setjmp.texi: Likewise.
67330         * manual/signal.texi: Likewise.
67331         * manual/startup.texi: Likewise.
67332         * manual/stdio.texi: Likewise.
67333         * manual/terminal.texi: Likewise.
67334         (ONLCR): Document as POSIX.
67335         (OXTABS): Document availability on GNU/Linux as XTABS.
67336         (ONOEOT): Document availability separately from other bits.
67337         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67338         * manual/time.texi: Likewise.
67339         * manual/users.texi: Likewise.
67340         * INSTALL: Regenerated.
67341         * sysdeps/gnu/errlist.c: Regenerated.
67342
67343         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67344         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67345         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67346         puts.
67347         * configure: Regenerated.
67348
67349 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67350
67351         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67352         default includes instead of AC_HEADER_CHECK.
67353         * sysdeps/i386/configure: Regenerated.
67354
67355         [BZ #10716]
67356         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67357         * math/s_cacoshf.c (__cacoshf): Likewise.
67358         * math/s_cacoshl.c (__cacoshl): Likewise.
67359         * math/s_casinh.c (__casinh): Set signs of result from argument.
67360         * math/s_casinhf.c (__casinhf): Likewise.
67361         * math/s_casinhl.c (__casinhl): Likewise.
67362         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67363         (casinh_test): Add more tests.
67364         * sysdeps/i386/fpu/libm-test-ulps: Update.
67365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67366
67367 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67368
67369         * po/zh_TW.po: Update from translation team.
67370
67371         * login/Makefile (distribute): Remove variable.
67372         * catgets/Makefile: Likewise.
67373         * mach/Makefile: Likewise.
67374         * malloc/Makefile: Likewise.
67375         * misc/Makefile: Likewise.
67376         * iconv/Makefile: Likewise.
67377         * nscd/Makefile: Likewise.
67378         * hurd/Makefile: Likewise.
67379         * manual/Makefile: Likewise.
67380         * locale/Makefile: Likewise.
67381         * intl/Makefile: Likewise.
67382         * conform/Makefile: Likewise.
67383         * nss/Makefile: Likewise.
67384         * time/Makefile: Likewise.
67385         * soft-fp/Makefile: Likewise.
67386         * dirent/Makefile: Likewise.
67387         * gmon/Makefile: Likewise.
67388         * po/Makefile: Likewise.
67389         * rt/Makefile: Likewise.
67390         * socket/Makefile: Likewise.
67391         * math/Makefile: Likewise.
67392         * signal/Makefile: Likewise.
67393         * debug/Makefile: Likewise.
67394         * elf/Makefile: Likewise.
67395         * timezone/Makefile: Likewise.
67396         * stdlib/Makefile: Likewise.
67397         * iconvdata/Makefile: Likewise.
67398         * sunrpc/Makefile: Likewise.
67399         * io/Makefile: Likewise.
67400         * argp/Makefile: Likewise.
67401         * inet/Makefile: Likewise.
67402         * hesiod/Makefile: Likewise.
67403         * grp/Makefile: Likewise.
67404         * csu/Makefile: Likewise.
67405         * wctype/Makefile: Likewise.
67406         * crypt/Makefile: Likewise.
67407         * libio/Makefile: Likewise.
67408         * string/Makefile: Likewise.
67409         * nis/Makefile: Likewise.
67410         * resolv/Makefile: Likewise.
67411         * stdio-common/Makefile: Likewise.
67412         * wcsmbs/Makefile: Likewise.
67413         * dlfcn/Makefile: Likewise.
67414         * posix/Makefile: Likewise.
67415
67416         [BZ #6959]
67417         * timezone/Makefile: Don't install timezone files, just the programs
67418         and scripts.
67419
67420 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67421
67422         * nss/databases.def: Add missing gshadow entry.
67423
67424         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67425
67426 2012-03-06  Marek Polacek  <polacek@redhat.com>
67427
67428         [BZ #13726]
67429         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67430         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67431         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67432         * stdio-common/tst-long-dbl-fphex.c: New file.
67433
67434 2012-03-06  David S. Miller  <davem@davemloft.net>
67435
67436         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67437         (set_obp_int): New function.
67438         (get_obp_int): New function.
67439         (__get_clockfreq_via_dev_openprom): Likewise.
67440         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67441         Avoid unused variable warnings on 'val' and use builtin_expect.
67442         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67443         __builtin_expect.
67444         (INLINE_CLONE_SYSCALL): Likewise.
67445
67446 2012-03-05  David S. Miller  <davem@davemloft.net>
67447
67448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67449
67450 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67451
67452         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67453
67454         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67455         only for |x| >= 40.
67456         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67457
67458 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67459
67460         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67461         Replace gettimeofday with __vdso_gettimeofday.
67462
67463         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67464         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67465         __vdso_clock_gettime and __vdso_getcpu.
67466
67467         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67468         time with __vdso_time.
67469
67470 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67471
67472         * manual/lang.texi (size_t): Note types to which size_t may be
67473         equivalent with the GNU C Library, but do not describe when
67474         differences between them are significant.
67475
67476 2012-03-05  Andreas Jaeger  <aj@suse.de>
67477
67478         * sysdeps/i386/fpu/libm-test-ulps: Update.
67479
67480 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67481
67482         [BZ #3976]
67483         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67484         (__ieee754_pow): Save and restore rounding mode and use
67485         round-to-nearest for main computations.
67486         * math/libm-test.inc (pow_test_tonearest): New function.
67487         (pow_test_towardzero): Likewise.
67488         (pow_test_downward): Likewise.
67489         (pow_test_upward): Likewise.
67490         (main): Call the new functions.
67491         * sysdeps/i386/fpu/libm-test-ulps: Update.
67492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67493
67494         [BZ #3976]
67495         * math/libm-test.inc (cosh_test_tonearest): New function.
67496         (cosh_test_towardzero): Likewise.
67497         (cosh_test_downward): Likewise.
67498         (cosh_test_upward): Likewise.
67499         (sinh_test_tonearest): Likewise.
67500         (sinh_test_towardzero): Likewise.
67501         (sinh_test_downward): Likewise.
67502         (sinh_test_upward): Likewise.
67503         (main): Call the new functions.
67504         * sysdeps/i386/fpu/libm-test-ulps: Update.
67505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67506
67507 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67508
67509         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67510         default stack guard is set in last bytes.
67511         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67512
67513 2012-03-05  Kees Cook  <keescook@chromium.org>
67514
67515         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67516
67517         [BZ #13656]
67518         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67519         possibly allocate from heap instead of stack.
67520         * stdio-common/bug-vfprintf-nargs.c: New file.
67521         * stdio-common/Makefile (tests): Add nargs overflow test.
67522
67523 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67524
67525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67526
67527 2012-03-03  Marek Polacek  <polacek@redhat.com>
67528
67529         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67530         * math/math_private.h: Likewise.
67531         * stdlib/tst-strtod.c: Likewise.
67532         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67533         * sysdeps/x86_64/bits/atomic.h: Likewise.
67534
67535 2012-03-02  David S. Miller  <davem@davemloft.net>
67536
67537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67540         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67541         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67542         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67543         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67544         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67545
67546 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67547
67548         [BZ #13792]
67549         * manual/examples/README: New file, says the example source files
67550         can be used under GPL>=2.
67551         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67552         line containing just "*/".
67553         * manual/examples/add.c: Add copyright header (GPL>=2).
67554         * manual/examples/argp-ex1.c: Likewise.
67555         * manual/examples/argp-ex2.c: Likewise.
67556         * manual/examples/argp-ex3.c: Likewise.
67557         * manual/examples/argp-ex4.c: Likewise.
67558         * manual/examples/atexit.c: Likewise.
67559         * manual/examples/db.c: Likewise.
67560         * manual/examples/dir.c: Likewise.
67561         * manual/examples/dir2.c: Likewise.
67562         * manual/examples/execinfo.c: Likewise.
67563         * manual/examples/filecli.c: Likewise.
67564         * manual/examples/filesrv.c: Likewise.
67565         * manual/examples/fmtmsgexpl.c: Likewise.
67566         * manual/examples/genpass.c: Likewise.
67567         * manual/examples/inetcli.c: Likewise.
67568         * manual/examples/inetsrv.c: Likewise.
67569         * manual/examples/isockad.c: Likewise.
67570         * manual/examples/longopt.c: Likewise.
67571         * manual/examples/memopen.c: Likewise.
67572         * manual/examples/memstrm.c: Likewise.
67573         * manual/examples/mkfsock.c: Likewise.
67574         * manual/examples/mkisock.c: Likewise.
67575         * manual/examples/mygetpass.c: Likewise.
67576         * manual/examples/pipe.c: Likewise.
67577         * manual/examples/popen.c: Likewise.
67578         * manual/examples/rprintf.c: Likewise.
67579         * manual/examples/search.c: Likewise.
67580         * manual/examples/select.c: Likewise.
67581         * manual/examples/setjmp.c: Likewise.
67582         * manual/examples/sigh1.c: Likewise.
67583         * manual/examples/sigusr.c: Likewise.
67584         * manual/examples/stpcpy.c: Likewise.
67585         * manual/examples/strdupa.c: Likewise.
67586         * manual/examples/strftim.c: Likewise.
67587         * manual/examples/strncat.c: Likewise.
67588         * manual/examples/subopt.c: Likewise.
67589         * manual/examples/swapcontext.c: Likewise.
67590         * manual/examples/termios.c: Likewise.
67591         * manual/examples/testopt.c: Likewise.
67592         * manual/examples/testpass.c: Likewise.
67593         * manual/examples/timeval_subtract.c: Likewise.
67594
67595         [BZ #13792]
67596         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67597         function to ...
67598         * manual/timeval_subtract.c.texi: ... here, new file.
67599
67600 2012-03-02  David S. Miller  <davem@davemloft.net>
67601
67602         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67603
67604 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67605
67606         [BZ #3976]
67607         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67608         (__sin): Save and restore rounding mode and use round-to-nearest
67609         for all computations.
67610         (__cos): Save and restore rounding mode and use round-to-nearest
67611         for all computations.
67612         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67613         <fenv.h>.
67614         (tan): Save and restore rounding mode and use round-to-nearest for
67615         all computations.
67616         * math/libm-test.inc (cos_test_tonearest): New function.
67617         (cos_test_towardzero): Likewise.
67618         (cos_test_downward): Likewise.
67619         (cos_test_upward): Likewise.
67620         (sin_test_tonearest): Likewise.
67621         (sin_test_towardzero): Likewise.
67622         (sin_test_downward): Likewise.
67623         (sin_test_upward): Likewise.
67624         (tan_test_tonearest): Likewise.
67625         (tan_test_towardzero): Likewise.
67626         (tan_test_downward): Likewise.
67627         (tan_test_upward): Likewise.
67628         (main): Call the new functions.
67629         * sysdeps/i386/fpu/libm-test-ulps: Update.
67630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67631
67632         [BZ #10135]
67633         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67634         small n, then large n, before computing and testing k+n.
67635         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67636         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67637         Likewise.
67638         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67639         Likewise.
67640         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67641         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67642         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67643         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67644         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67645         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67646         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67647         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67648         * math/libm-test.inc (scalbn_test): Add more tests.
67649         (scalbln_test): Likewise.
67650
67651         * manual/filesys.texi (mode_t): Describe constraints on size and
67652         signedness, not exact equivalence to a particular type.
67653         (ino_t): Likewise.
67654         (ino64_t): Likewise.
67655         (dev_t): Likewise.
67656         (nlink_t): Likewise.
67657         (blkcnt_t): Likewise.
67658         (blkcnt64_t): Likewise.
67659         * manual/llio.texi (off_t): Likewise.
67660
67661         [BZ #3976]
67662         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67663         (__ieee754_exp): Save and restore rounding mode and use
67664         round-to-nearest for all computations.
67665         * math/libm-test.inc (exp_test_tonearest): New function.
67666         (exp_test_towardzero): Likewise.
67667         (exp_test_downward): Likewise.
67668         (exp_test_upward): Likewise.
67669         (main): Call the new functions.
67670         * sysdeps/i386/fpu/libm-test-ulps: Update.
67671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67672
67673 2012-03-01  Chris Demetriou  <cgd@google.com>
67674
67675         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67676         have predictable order.
67677
67678 2012-03-01  David S. Miller  <davem@davemloft.net>
67679
67680         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67681
67682         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67683         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67684         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67685         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67686
67687         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67688         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67689         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67691         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67692         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67693         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67694         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67695         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67696
67697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67698
67699         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67700         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67701         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67702
67703         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67704         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67705         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67706         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67707         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67708         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67709         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67710         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67711         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67712         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67713         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67714         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67715         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67716         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67717         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67718         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67719         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67720         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67721         * sysdeps/sparc/elf/configure: Regenerated.
67722
67723 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67724
67725         * configure.in (AS, LD): Require binutils 2.20 or later.
67726         * configure: Regenerated.
67727         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67728         as required minimum version.
67729         * INSTALL: Regenerated.
67730
67731         [BZ #2541]
67732         [BZ #4108]
67733         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67734         before squaring exponent.
67735         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67736         bottom long double and 27 bits of top long double before squaring
67737         exponent.
67738         * math/libm-test.inc (erfc_test): Add more tests.
67739         * sysdeps/i386/fpu/libm-test-ulps: Update.
67740         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67742
67743 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67744
67745         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67746         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67747         containing bit-fields.
67748         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67749         * soft-fp/single.h (_FP_UNION_S): Likewise.
67750         * soft-fp/double.h (_FP_UNION_D): Likewise.
67751
67752 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67753
67754         [BZ #13786]
67755         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67756         not include ../strcmp.S.
67757         [USE_AS_STRNCASECMP_L]: Likewise.
67758         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67759         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67760         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67761         (__strncasecmp_l_ia32): Define as alias to
67762         __strncasecmp_l_nonascii.
67763
67764         [BZ #5794]
67765         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67766         * sysdeps/i386/fpu/libm-test-ulps: Update.
67767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67768
67769         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67771
67772 2012-02-29  Jeff Law  <law@redhat.com>
67773
67774         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67775         out of bounds read.
67776
67777 2012-02-29  Marek Polacek  <polacek@redhat.com>
67778
67779         [BZ #13706]
67780         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67781         * elf/Makefile: Add rules to run tst-unused-dep.out.
67782
67783 2012-02-28  David S. Miller  <davem@davemloft.net>
67784
67785         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67786         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67787         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67788         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67789         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67790         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67791
67792 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67793
67794         * math/libm-test.inc (llround_test): Move one test from
67795         lround_test.  Use TEST_f_L in moved test.
67796         (lround_test): Move misplaced test to llround_test.  Add testcase
67797         from bug 2561.
67798
67799 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67800
67801         * sysdeps/x86_64/fpu/e_expf.S: New file.
67802         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67803
67804 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67805
67806         [BZ #13637]
67807         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67808         of remain_len that may cause incomplete multi-byte character and
67809         false match.
67810         * posix/bug-regex33.c: New file.
67811         * posix/Makefile (tests): Add bug-regex33.
67812
67813 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67814
67815         * manual/macros.texi: New file.
67816         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67817         * manual/libc.texinfo: Include macros.texi.
67818         * manual/creatute.texi: Likewise.
67819         * manual/install.texi: Likewise.
67820         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67821         @glibcadj{} in references to the GNU C Library.
67822         * manual/charset.texi: Likewise.
67823         * manual/conf.texi: Likewise.
67824         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67825         when not using those macros.
67826         * manual/creature.texi: Likewise.
67827         * manual/crypt.texi: Likewise.
67828         * manual/errno.texi: Likewise.
67829         * manual/filesys.texi: Likewise.
67830         * manual/header.texi: Likewise.
67831         * manual/install.texi: Likewise.
67832         * manual/intro.texi: Likewise.
67833         * manual/io.texi: Likewise.
67834         * manual/job.texi: Likewise.
67835         * manual/lang.texi: Likewise.
67836         * manual/libc.texiinfo: Likewise.
67837         * manual/llio.texi: Likewise.
67838         * manual/locale.texi: Likewise.
67839         * manual/maint.texi: Likewise.
67840         * manual/math.texi: Likewise.
67841         * manual/memory.texi: Likewise.
67842         * manual/message.texi: Likewise.
67843         * manual/nss.texi: Likewise.
67844         * manual/pattern.texi: Likewise.
67845         * manual/process.texi: Likewise.
67846         * manual/resource.texi: Likewise.
67847         * manual/search.texi: Likewise.
67848         * manual/setjmp.texi: Likewise.
67849         * manual/signal.texi: Likewise.
67850         * manual/socket.texi: Likewise.
67851         * manual/startup.texi: Likewise.
67852         * manual/stdio.texi: Likewise.
67853         * manual/string.texi: Likewise.
67854         * manual/sysinfo.texi: Likewise.
67855         * manual/syslog.texi: Likewise.
67856         * manual/terminal.texi: Likewise.
67857         * manual/time.texi: Likewise.
67858         * manual/users.texi: Likewise.
67859         * INSTALL: Regenerated.
67860         * NOTES: Regenerated.
67861         * sysdeps/gnu/errlist.c: Regenerated.
67862
67863 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
67864
67865         * include/dirent.h: Include <dirstream.h> before
67866         <dirent/dirent.h>.
67867
67868 2012-02-28  David S. Miller  <davem@davemloft.net>
67869
67870         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
67871         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
67872         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
67873         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
67874
67875 2012-02-27  David S. Miller  <davem@davemloft.net>
67876
67877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
67878         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
67879         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
67880         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
67881
67882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
67883         frame pointer instead of stack pointer relative arg slot.
67884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67885         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67886         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67887
67888 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
67889
67890         [BZ #3992]
67891         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
67892
67893 2012-02-27  David S. Miller  <davem@davemloft.net>
67894
67895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
67896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
67898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
67899         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67900         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67901         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
67902         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
67903
67904 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67905
67906         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
67907         later.  Allow versions 5-9.
67908         * configure: Regenerated.
67909         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
67910         required minimum version and 4.6 as recommended version.  Do not
67911         mention bugs in GCC 2.7 and 2.8.
67912         * INSTALL: Regenerated.
67913
67914 2012-02-27  David S. Miller  <davem@davemloft.net>
67915
67916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
67917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
67918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
67919         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
67920         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
67921         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
67922         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
67923         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
67924
67925         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
67926         manipulate bits before adding and subtracting TWO112[sx].
67927         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67928
67929 2012-02-27  Roland McGrath  <roland@hack.frob.com>
67930
67931         [BZ #13775]
67932         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
67933         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
67934         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
67935         being in POSIX, because they are in 1003.1-2008.
67936
67937         * rt/tst-aio.c: Include <fcntl.h>.
67938         * rt/tst-aio7.c: Likewise.
67939         * rt/tst-aio64.c: Likewise.
67940
67941         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
67942
67943 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67944
67945         * manual/install.texi (--with-headers): Describe headers as
67946         interface headers, not private headers.
67947         (Specific advice for GNU/Linux systems): Describe use of headers
67948         from "make headers_install", not private headers from older
67949         kernels.
67950         * INSTALL: Regenerated.
67951         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
67952         Change to 2.6.19.
67953         * sysdeps/unix/sysv/linux/configure: Regenerated.
67954
67955         * manual/llio.texi (fclean): Remove documentation.
67956
67957         * manual/Makefile (libc-texi-generated): New variable.  Include
67958         version.texi.
67959         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
67960         $(libc-texi-generated), not duplicated list of files.
67961         (version.texi, stamp-version): New rules.
67962         (realclean): Remove $(libc-texi-generated), not individual files
67963         from that list.  Do not remove dir-add.texinfo.
67964         * manual/libc.texinfo: Comment out uses of edition numbers and
67965         references to printed manual.  Remove last-updated dates.
67966         (EDITION): Comment out.
67967         (ISBN): Likewise.
67968         (VERSION, UPDATED): Remove.
67969         (version.texi): Include.
67970
67971 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
67972
67973         * sysdeps/posix/spawni.c: Include <signal.h>.
67974         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
67975         * sysdeps/pthread/aio_fsync.c: Likewise.
67976
67977 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
67978
67979         * conform/Makefile (tests): Run only when not cross-compiling and
67980         when fast-check is not defined.
67981
67982         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
67983         * conform/data/limits.h-data: Fixes for POSIX2008.
67984         * conform/run-conformtest.sh: Run all tests.
67985         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
67986         headers.
67987         * include/bits/dlfcn.h: Likewise.
67988         * include/langinfo.h: Likewise.
67989         * include/monetary.h: Likewise.
67990         * include/sys/poll.h: Likewise.
67991
67992         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
67993         for __USE_GNU.
67994         * posix/spawn.h: Define __need_sigset_t.
67995         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
67996         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
67997         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
67998         to get sigevent_t only.
67999         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68000         only for __USE_GNU.
68001         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68002         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68003         process_vm_writev only for __USE_GNU.
68004         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68005
68006         * conform/Makefile: For now ignore errors from run-conformtest.
68007         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68008         POSIX to avoid namespace pollution.  Don't prepend headers.
68009         * conform/data/aio.h-data: Fixes for POSIX testing.
68010         * conform/data/fcntl.h-data: Likewise.
68011         * conform/data/glob.h-data: Likewise.
68012         * conform/data/grp.h-data: Likewise.
68013         * conform/data/pthread.h-data: Likewise.
68014         * conform/data/pwd.h-data: Likewise.
68015         * conform/data/signal.h-data: Likewise.
68016         * conform/data/spawn.h-data: Likewise.
68017         * conform/data/stdio.h-data: Likewise.
68018         * conform/data/stdlib.h-data: Likewise.
68019         * conform/data/stropts.h-data: Likewise.
68020         * conform/data/sys/mman.h-data: Likewise.
68021         * conform/data/sys/stat.h-data: Likewise.
68022         * conform/data/sys/types.h-data: Likewise.
68023         * conform/data/sys/wait.h-data: Likewise.
68024         * conform/data/time.h-data: Likewise.
68025         * conform/data/unistd.h-data: Likewise.
68026         * conform/data/utime.h-data: Likewise.
68027
68028         * io/sys/stat.h: fchmod was always in POSIX.
68029         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68030         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68031         * rt/aio.h: Define __need_timespec before including <time.h>.
68032         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68033         struct.  Add forward declaration of pthread_attr_t and use it in
68034         sigevent.
68035         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68036         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68037         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68038         always remove CLK_TCK definition.
68039
68040 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68041
68042         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68043
68044 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68045
68046         * conform/run-conformtest.sh: New file.
68047         * conform/Makefile: Run run-conformtest for tests.
68048         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68049         support.
68050
68051         * conform/data/uchar.h-data: New file.
68052         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68053         * conform/data/arpa/inet.h-data: Likewise.
68054         * conform/data/assert.h-data: Likewise.
68055         * conform/data/complex.h-data: Likewise.
68056         * conform/data/cpio.h-data: Likewise.
68057         * conform/data/ctype.h-data: Likewise.
68058         * conform/data/dirent.h-data: Likewise.
68059         * conform/data/dlfcn.h-data: Likewise.
68060         * conform/data/errno.h-data: Likewise.
68061         * conform/data/fcntl.h-data: Likewise.
68062         * conform/data/float.h-data: Likewise.
68063         * conform/data/fmtmsg.h-data: Likewise.
68064         * conform/data/fnmatch.h-data: Likewise.
68065         * conform/data/ftw.h-data: Likewise.
68066         * conform/data/glob.h-data: Likewise.
68067         * conform/data/grp.h-data: Likewise.
68068         * conform/data/iconv.h-data: Likewise.
68069         * conform/data/inttypes.h-data: Likewise.
68070         * conform/data/langinfo.h-data: Likewise.
68071         * conform/data/libgen.h-data: Likewise.
68072         * conform/data/limits.h-data: Likewise.
68073         * conform/data/locale.h-data: Likewise.
68074         * conform/data/math.h-data: Likewise.
68075         * conform/data/monetary.h-data: Likewise.
68076         * conform/data/mqueue.h-data: Likewise.
68077         * conform/data/ndbm.h-data: Likewise.
68078         * conform/data/net/if.h-data: Likewise.
68079         * conform/data/netdb.h-data: Likewise.
68080         * conform/data/netinet/in.h-data: Likewise.
68081         * conform/data/nl_types.h-data: Likewise.
68082         * conform/data/poll.h-data: Likewise.
68083         * conform/data/pthread.h-data: Likewise.
68084         * conform/data/pwd.h-data: Likewise.
68085         * conform/data/regex.h-data: Likewise.
68086         * conform/data/sched.h-data: Likewise.
68087         * conform/data/search.h-data: Likewise.
68088         * conform/data/semaphore.h-data: Likewise.
68089         * conform/data/setjmp.h-data: Likewise.
68090         * conform/data/signal.h-data: Likewise.
68091         * conform/data/spawn.h-data: Likewise.
68092         * conform/data/stdarg.h-data: Likewise.
68093         * conform/data/stdio.h-data: Likewise.
68094         * conform/data/stdlib.h-data: Likewise.
68095         * conform/data/string.h-data: Likewise.
68096         * conform/data/strings.h-data: Likewise.
68097         * conform/data/stropts.h-data: Likewise.
68098         * conform/data/sys/ipc.h-data: Likewise.
68099         * conform/data/sys/mman.h-data: Likewise.
68100         * conform/data/sys/msg.h-data: Likewise.
68101         * conform/data/sys/resource.h-data: Likewise.
68102         * conform/data/sys/select.h-data: Likewise.
68103         * conform/data/sys/sem.h-data: Likewise.
68104         * conform/data/sys/shm.h-data: Likewise.
68105         * conform/data/sys/socket.h-data: Likewise.
68106         * conform/data/sys/stat.h-data: Likewise.
68107         * conform/data/sys/statvfs.h-data: Likewise.
68108         * conform/data/sys/time.h-data: Likewise.
68109         * conform/data/sys/timeb.h-data: Likewise.
68110         * conform/data/sys/times.h-data: Likewise.
68111         * conform/data/sys/types.h-data: Likewise.
68112         * conform/data/sys/uio.h-data: Likewise.
68113         * conform/data/sys/un.h-data: Likewise.
68114         * conform/data/sys/utsname.h-data: Likewise.
68115         * conform/data/sys/wait.h-data: Likewise.
68116         * conform/data/syslog.h-data: Likewise.
68117         * conform/data/tar.h-data: Likewise.
68118         * conform/data/termios.h-data: Likewise.
68119         * conform/data/utime.h-data: Likewise.
68120         * conform/data/utmpx.h-data: Likewise.
68121         * conform/data/varargs.h-data: Likewise.
68122         * conform/data/wchar.h-data: Likewise.
68123         * conform/data/wctype.h-data: Likewise.
68124         * conform/data/wordexp.h-data: Likewise.
68125
68126         * include/stropts.h: New file.
68127         * include/uchar.h: New file.
68128         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68129         * include/assert.h: Likewise.
68130         * include/ctype.h: Likewise.
68131         * include/dirent.h: Likewise.
68132         * include/dlfcn.h: Likewise.
68133         * include/fcntl.h: Likewise.
68134         * include/fnmatch.h: Likewise.
68135         * include/glob.h: Likewise.
68136         * include/grp.h: Likewise.
68137         * include/libio.h: Likewise.
68138         * include/locale.h: Likewise.
68139         * include/math.h: Likewise.
68140         * include/net/if.h: Likewise.
68141         * include/netdb.h: Likewise.
68142         * include/netinet/in.h: Likewise.
68143         * include/pthread.h: Likewise.
68144         * include/pwd.h: Likewise.
68145         * include/regex.h: Likewise.
68146         * include/sched.h: Likewise.
68147         * include/search.h: Likewise.
68148         * include/setjmp.h: Likewise.
68149         * include/signal.h: Likewise.
68150         * include/stdio.h: Likewise.
68151         * include/stdlib.h: Likewise.
68152         * include/string.h: Likewise.
68153         * include/sys/cdefs.h: Likewise.
68154         * include/sys/mman.h: Likewise.
68155         * include/sys/msg.h: Likewise.
68156         * include/sys/resource.h: Likewise.
68157         * include/sys/select.h: Likewise.
68158         * include/sys/socket.h: Likewise.
68159         * include/sys/stat.h: Likewise.
68160         * include/sys/statvfs.h: Likewise.
68161         * include/sys/time.h: Likewise.
68162         * include/sys/times.h: Likewise.
68163         * include/sys/uio.h: Likewise.
68164         * include/sys/utsname.h: Likewise.
68165         * include/sys/wait.h: Likewise.
68166         * include/termios.h: Likewise.
68167         * include/time.h: Likewise.
68168         * include/ulimit.h: Likewise.
68169         * include/unistd.h: Likewise.
68170         * include/utime.h: Likewise.
68171         * include/wchar.h: Likewise.
68172         * include/wctype.h: Likewise.
68173         * include/wordexp.h: Likewise.
68174
68175         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68176
68177         * time/time.h: TIME_UTC must be a macro.
68178         Make timespec_get available for ISO C11 only as well.
68179
68180 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68181
68182         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68183         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68184
68185 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68186
68187         * configure.in: Use -o not -a in test for unsupported multi-arch.
68188
68189 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68190
68191         * manual/texinfo.tex: Update to version 2012-01-19.16.
68192
68193 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68194
68195         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68196
68197 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68198
68199         [BZ #13738]
68200         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68201         * manual/fdl-1.3.texi: New file.
68202         * manual/fdl-1.1.texi: File removed.
68203
68204         [BZ #13738]
68205         * manual/libc.texinfo (FDL_VERSION): New @set.
68206         Use it for mention of FDL in cover text.
68207         (Documentation License): Use it in @include file name.
68208
68209 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68210             Roland McGrath  <roland@hack.frob.com>
68211
68212         [BZ #5461]
68213         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68214         (not LONG_LONG_MAX and LONG_LONG_MIN.
68215         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68216         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68217         name.
68218         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68219
68220 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68221
68222         [BZ #2547]
68223         [BZ #11365]
68224         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68225         manipulate bits before adding and subtracting TWO23[sx].
68226         * math/libm-test.inc (nearbyint_test): Add more tests.
68227
68228 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68229
68230         [BZ #2548]
68231         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68232         bits before adding and subtracting TWO23[sx].
68233         * math/libm-test.inc (rint_test): Add more tests.
68234         (rint_test_tonearest): Likewise.
68235         (rint_test_towardzero): Likewise.
68236         (rint_test_downward): Likewise.
68237         (rint_test_upward: Likewise.
68238
68239 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68240
68241         [BZ #10110]
68242         * include/stdc-predef.h: New file.  Extracted from features.h.
68243         * include/features.h: Include stdc-predef.h.
68244         * Makefile (headers): Add stdc-predef.h.
68245         * CONFORMANCE (Compiler limitations): Update.
68246
68247 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68248
68249         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68250
68251 2012-02-21  David S. Miller  <davem@davemloft.net>
68252
68253         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68254         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68255
68256 2012-02-20  David S. Miller  <davem@davemloft.net>
68257
68258         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68259         using a normal save/restore sequence, rather than allocating a
68260         dummy stack frame just to store a frame pointer and restore.
68261         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68262
68263 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68264
68265         * manual/install.texi: Fix stray word in line-wrapped comment.
68266
68267 2012-02-20  David S. Miller  <davem@davemloft.net>
68268
68269         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68270         both binutils and gcc support GOTDATA.
68271
68272         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68273         "rd %pc" in the PIC register setup sequences.
68274
68275         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68276         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68277         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68278         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68279         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68280         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68281         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68282         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68283         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68284         (SYSCALL_ERROR_HANDLER): Likewise.
68285         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68286         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68287         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68288         (SYSCALL_ERROR_HANDLER): Likewise.
68289
68290         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68291         (HAVE_GCC_GOTDATA): New.
68292         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68293         relocation support in both binutils and gcc.
68294         * sysdeps/sparc/elf/configure: Regenerate.
68295
68296         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68297         * sysdeps/sparc/sparc32/elf/configure: Delete.
68298         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68299         * sysdeps/sparc/sparc64/elf/configure: Delete.
68300         * sysdeps/sparc/elf/configure.in: New file.
68301         * sysdeps/sparc/elf/configure: Generate.
68302
68303         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68304         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68305         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68306         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68307         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68308
68309 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68310
68311         * manual/install.texi: Do not mention specific glibc version
68312         numbers.
68313         * manual/libc.texinfo (VERSION, UPDATED): Update.
68314         (@copying): Use @copyright{} and range of years.
68315
68316 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68317
68318         [BZ #13695]
68319         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68320         [crti.S not in sysdirs] (generated): Do not append.
68321         [crti.S not in sysdirs] (omit-deps): Likewise.
68322         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68323         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68324         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68325         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68326         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68327         Likewise.
68328         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68329         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68330         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68331         * csu/defs.awk: Remove file.
68332         * sysdeps/generic/initfini.c: Likewise.
68333         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68334         variable.
68335         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68336         Likewise.
68337
68338 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68339
68340         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68341         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68342         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68343         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68344         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68345         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68346         <bits/epoll.h>.
68347         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68348         (__EPOLL_PACKED): Define to empty if not defined by
68349         <bits/epoll.h>.
68350         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68351         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68352         bits/epoll.h.
68353
68354 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68355
68356         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68357         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68358         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68359         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68360         <bits/timerfd.h>.
68361         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68362         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68363         bits/timerfd.h.
68364
68365 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68366
68367         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68368         in C locale.
68369         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68370         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68371         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68373
68374 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68375
68376         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68377         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68378
68379 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68380
68381         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68382         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68383         defined.
68384         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68385         Likewise.
68386         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68387         entry for 2.16.
68388
68389 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68390
68391         * math/w_acos.c: Use non-signaling floating-point comparisons.
68392         * math/w_acosf.c: Likewise.
68393         * math/w_acosh.c: Likewise.
68394         * math/w_acoshf.c: Likewise.
68395         * math/w_acoshl.c: Likewise.
68396         * math/w_acosl.c: Likewise.
68397         * math/w_asin.c: Likewise.
68398         * math/w_asinf.c: Likewise.
68399         * math/w_asinl.c: Likewise.
68400         * math/w_atanh.c: Likewise.
68401         * math/w_atanhf.c: Likewise.
68402         * math/w_atanhl.c: Likewise.
68403         * math/w_exp2.c: Likewise.
68404         * math/w_exp2f.c: Likewise.
68405         * math/w_exp2l.c: Likewise.
68406         * math/w_j0.c: Likewise.
68407         * math/w_j0f.c: Likewise.
68408         * math/w_j0l.c: Likewise.
68409         * math/w_j1.c: Likewise.
68410         * math/w_j1f.c: Likewise.
68411         * math/w_j1l.c: Likewise.
68412         * math/w_jn.c: Likewise.
68413         * math/w_jnf.c: Likewise.
68414         * math/w_log.c: Likewise.
68415         * math/w_log10.c: Likewise.
68416         * math/w_log10f.c: Likewise.
68417         * math/w_log10l.c: Likewise.
68418         * math/w_log2.c: Likewise.
68419         * math/w_log2f.c: Likewise.
68420         * math/w_log2l.c: Likewise.
68421         * math/w_logf.c: Likewise.
68422         * math/w_logl.c: Likewise.
68423         * math/w_sqrt.c: Likewise.
68424         * math/w_sqrtf.c: Likewise.
68425         * math/w_sqrtl.c: Likewise.
68426         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68427         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68428         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68429         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68430         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68431
68432 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68433
68434         [BZ #9739]
68435         * manual/string.texi (strnlen): Use correct parameter name in
68436         equivalent expression.
68437
68438 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68439
68440         [BZ #11174]
68441         * manual/users.texi (seteuid): Consistently use neweuid for
68442         argument name.
68443
68444 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68445
68446         [BZ #13704]
68447         * manual/nss.texi (Services in the NSS configuration): Correct
68448         list of services in example configuration file.
68449
68450 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68451
68452         [BZ #11322]
68453         * manual/arith.texi: Remove statements about negative zero
68454         behaving identically to zero.
68455
68456 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68457
68458         [BZ #5993]
68459         * manual/install.texi: Do not document upgrading from libc5.
68460
68461 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68462
68463         [BZ #4596]
68464         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68465
68466 2012-02-18  David S. Miller  <davem@davemloft.net>
68467
68468         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68469         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68470         %o7 across the call.
68471         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68472         instead.
68473         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68474         SETUP_PIC_REG_LEAF.
68475         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68476         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68477         * sysdeps/sparc/crtn.S: Likewise.
68478
68479 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68480
68481         * aout/Makefile: Remove.
68482
68483 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68484
68485         [BZ #13058]
68486         * manual/examples/argp-ex1.c (main): Format definition in GNU
68487         style.
68488         * manual/examples/argp-ex2.c (main): Likewise.
68489         * manual/examples/argp-ex3.c (main): Likewise.
68490         * manual/examples/argp-ex4.c (main): Likewise.
68491         * manual/examples/longopt.c (main): Use new-style prototype
68492         definition.
68493         * manual/examples/strncat.c (main): Specify return type and use
68494         (void) for arguments.
68495         * manual/examples/subopt.c (main): Use char **argv argument.
68496
68497 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68498
68499         [BZ #5077]
68500         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68501         rounding modes.
68502
68503 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68504
68505         [BZ #6907]
68506         * manual/string.texi (strchr): Change when strchrnul is
68507         recommended.
68508
68509 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68510
68511         [BZ #174]
68512         * manual/locale.texi (setlocale): Document LOCPATH.
68513
68514 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68515
68516         [BZ #10210]
68517         * manual/process.texi (execle): Move @dots{} before last argument.
68518
68519 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68520
68521         [BZ #12047]
68522         * manual/charset.texi (Generic Charset Conversion): Fix typo
68523         (LC_TYPE -> LC_CTYPE).
68524
68525 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68526
68527         [BZ #5805]
68528         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68529         (scalbnf): Likewise.
68530         (scalbnl): Likewise.
68531         (scalbln): Likewise.
68532         (scalblnf): Likewise.
68533         (scalblnl): Likewise.
68534         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68535         (vwarnx): Likewise.
68536         (verr): Likewise.
68537         (verrx): Likewise.
68538         * manual/filesys.texi (telldir): Use braces around return type.
68539         * manual/llio.texi (mmap): Add space after comma.
68540         (mmap64): Likewise.
68541         * manual/math.texi (jn): Use @var{} on parameter names.
68542         (jnf): Likewise.
68543         (jnl): Likewise.
68544         (yn): Likewise.
68545         (ynf): Likewise.
68546         (ynl): Likewise.
68547         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68548         line.
68549         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68550         "...".
68551         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68552         (sched_get_priority_max): Likewise.
68553         * manual/signal.texi (sigvec): Add space after comma.
68554         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68555         names.
68556         (if_indextoname): Likewise.
68557         (if_freenameindex): Likewise.
68558         (sendto): Use ',' instead of '.' in prototype.
68559         * manual/startup.texi (syscall): Use @dots{} instead of literal
68560         "...".
68561         * manual/stdio.texi (__fpending): Separate initial words of
68562         paragraph from @deftypefun line.
68563         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68564         "...".
68565         (vsyslog): Use @var{} on parameter names.
68566         * manual/terminal.texi (stty): Use @var{} on parameter names.
68567         * manual/users.texi (getutmp): Use @var{} on parameter names.
68568         (getutmpx): Likewise.
68569
68570 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68571
68572         [BZ #6884]
68573         * manual/stdio.texi (fopen): Fix typos in description of
68574         ",ccs=STRING".
68575
68576 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68577
68578         [BZ #4026]
68579         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68580         get clock_id definition.
68581
68582 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68583
68584         [BZ #4822]
68585         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68586         (madvise): Cast every argument to void on its own.
68587
68588 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68589
68590         [BZ #9902]
68591         * manual/startup.texi (Exit Status): Fix typo.
68592
68593 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68594
68595         [BZ #10140]
68596         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68597         * manual/examples/argp-ex2.c: Likewise.
68598         * manual/examples/argp-ex3.c: Likewise.
68599
68600 2012-02-16  Richard Henderson  <rth@redhat.com>
68601
68602         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68603         * sysdeps/s390/s390-32/initfini.c: Remove.
68604         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68605         * sysdeps/s390/s390-64/initfini.c: Remove.
68606
68607 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68608
68609         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68610         compiler output for sysdeps/generic/initfini.c.
68611         * sysdeps/sh/elf/initfini.c: Remove file.
68612
68613 2012-02-16  David S. Miller  <davem@davemloft.net>
68614
68615         [BZ #11494]
68616         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68617
68618         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68619         * sysdeps/sparc/crti.S: New file.
68620         * sysdeps/sparc/crtn.S: New file.
68621         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68622         * sysdeps/sparc/sparc64/Makefile: Likewise.
68623
68624 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68625
68626         [BZ #3335]
68627         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68628
68629 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68630
68631         [BZ #4822]
68632         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68633
68634         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68635         (write, read, close): Likewise.
68636         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68637
68638 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68639
68640         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68641         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68642         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68643         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68644         <bits/signalfd.h>.
68645         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68646         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68647         bits/signalfd.h.
68648
68649 2012-02-14  Marek Polacek  <polacek@redhat.com>
68650
68651         * sysdeps/x86_64/crti.S: New file.
68652         * sysdeps/x86_64/crtn.S: New file.
68653         * sysdeps/x86_64/elf/initfini.c: Remove file.
68654
68655 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68656
68657         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68658         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68659         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68660         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68661         <bits/inotify.h>.
68662         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68663         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68664         bits/inotify.h.
68665
68666 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68667
68668         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68669         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68670         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68671         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68672         <bits/eventfd.h>.
68673         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68674         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68675         bits/eventfd.h.
68676
68677 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68678
68679         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68680         __feraiseexcept instead of feraiseexcept.
68681
68682         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68683         nanosleep invocations.
68684         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68685         strings, and add error checking for a nanosleep invocations.
68686
68687 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68688
68689         Replace FSF snail mail address with URLs, as per GNU coding standards.
68690         Most of the snail mail addresses were wrong anyway, and omitting
68691         them makes the source code easier to maintain.  Almost all of the
68692         changes are to license notices and to locale LC_IDENTIFICATION
68693         addresses, except for this one:
68694         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68695         not its snail mail address.
68696
68697 2012-02-09  Richard Henderson  <rth@twiddle.net>
68698
68699         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68700         of kernel-features.h.
68701
68702         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68703
68704 2012-02-08  Marek Polacek  <polacek@redhat.com>
68705
68706         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68707         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68708         * sysdeps/gnu/_G_config.h: Likewise.
68709         * sysdeps/generic/_G_config.h: Likewise.
68710
68711 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68712
68713         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68714         tests.
68715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68716
68717         * sysdeps/powerpc/powerpc32/crti.S: New file.
68718         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68719         * sysdeps/powerpc/powerpc64/crti.S: New file.
68720         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68721
68722         * Makeconfig (have-initfini): Don't set.
68723         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68724         * configure.in (nopic_initfini): Don't substitute.
68725         * config.h.in (HAVE_INITFINI): Don't #undef.
68726         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68727         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68728
68729 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68730
68731         Support crti.S and crtn.S provided directly by architectures.
68732         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68733         [crti.S in sysdirs] (omit-deps): Likewise.
68734         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68735         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68736         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68737         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68738         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68739         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68740         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68741         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68742         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68743         compiler output for sysdeps/generic/initfini.c.
68744         * sysdeps/i386/elf/Makefile: Remove file.
68745         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68746
68747 2012-02-07  Marek Polacek  <polacek@redhat.com>
68748
68749         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68750         * sysdeps/gnu/_G_config.h: Likewise.
68751         * sysdeps/mach/hurd/_G_config.h: Likewise.
68752
68753 2012-02-07  Marek Polacek  <polacek@redhat.com>
68754
68755         * math/Makefile (tests): Add tst-CMPLX2.
68756         * math/tst-CMPLX2.c: New file.
68757
68758 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68759
68760         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68761
68762         * math/libm-test.inc (jn_test): Add missing L suffix.
68763
68764 2012-02-06  Marek Polacek  <polacek@redhat.com>
68765
68766         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68767         * sysdeps/i386/fpu/e_powf.S: Likewise.
68768         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68769         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68770         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68771         * sysdeps/i386/fpu/e_pow.S: Likewise.
68772         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68773         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68774         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68775         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68776         * sysdeps/i386/fpu/e_log2.S: Likewise.
68777         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68778         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68779         * sysdeps/i386/fpu/e_powl.S: Likewise.
68780         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68781         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68782         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68783         * sysdeps/i386/fpu/e_logl.S: Likewise.
68784         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68785         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68786         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68787         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68788         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68789         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68790         * sysdeps/i386/fpu/e_log.S: Likewise.
68791         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68792         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68793         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68794         * sysdeps/i386/fpu/e_logf.S: Likewise.
68795         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68796         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68797         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68798         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68799         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68800         * sysdeps/i386/fpu/e_log10.S: Likewise.
68801         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68802         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68803         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68804         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68805         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68806         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68807         * sysdeps/i386/asm-syntax.h: Likewise.
68808         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68809         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68810         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68811         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68812         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68813         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68814         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68815         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68816         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68817         * sysdeps/powerpc/sysdep.h: Likewise.
68818         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68819         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68820
68821 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68822
68823         [BZ #411]
68824         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68825
68826 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68827
68828         * sysdeps/i386/sysdep.h: Include <features.h>.
68829         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68830         version.
68831
68832 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68833
68834         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68835         Define.
68836         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68837         LOAD_PIC_REG_STR.
68838
68839 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68840
68841         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68842         (SETUP_PIC_REG): Use GET_PC_THUNK.
68843         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68844         macro.
68845
68846 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68847
68848         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
68849         for non-PIC compilation.
68850         (SETUP_PIC_REG): Add .p2align directive.
68851         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
68852         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
68853         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
68854         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
68855         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
68856         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
68857         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
68858         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
68859         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
68860         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
68861         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
68862         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
68863         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
68864         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
68865         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
68866         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
68867         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
68868         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
68869         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
68870         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
68871         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
68872         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
68873         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
68874         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
68875         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
68876         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
68877         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
68878         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
68879         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
68880         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
68881         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
68882         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
68883         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
68884         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
68885         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
68886         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
68887         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
68888         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
68889         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
68890         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
68891         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
68892
68893 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68894
68895         * math/tst-CMPLX.c: Include <stdio.h>.
68896
68897 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
68898
68899         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
68900         float.
68901         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
68902         * sysdeps/sparc/bits/mathdef.h: Likewise.
68903
68904 2012-01-31  Marek Polacek  <polacek@redhat.com>
68905
68906         * libio/libio.h: Don't define _PARAMS.
68907         * locale/programs/config.h: Don't define PARAMS.
68908         * stdlib/strtol_l.c: Likewise.
68909         (__strtol_l): Remove PARAMS from the prototype.
68910
68911 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
68912
68913         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
68914         names.  Just use the correct names.  Remove unnecessary wrapper
68915         functions.
68916         * malloc/arena.c: Likewise.
68917         * malloc/hooks.c: Likewise.
68918
68919         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
68920         ARENA_TEST says not to.  Simplify test for creation of a new arena.
68921         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
68922
68923 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
68924
68925         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
68926         into tail calls.
68927         (update_get_addr): New function.
68928         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
68929         GET_ADDR_MODULE parameter.
68930
68931 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68932
68933         * crypt/cert.c: Remove __STDC__ conditionals.
68934         * crypt/crypt-entry.c: Likewise.
68935         * crypt/crypt_util.c: Likewise.
68936         * libio/filedoalloc.c: Likewise.
68937         * libio/fileops.c: Likewise.
68938         * libio/genops.c: Likewise.
68939         * libio/iofclose.c: Likewise.
68940         * libio/iofdopen.c: Likewise.
68941         * libio/iofopen.c: Likewise.
68942         * libio/iofopen64.c: Likewise.
68943         * libio/iogetdelim.c: Likewise.
68944         * libio/iopopen.c: Likewise.
68945         * libio/obprintf.c: Likewise.
68946         * libio/oldfileops.c: Likewise.
68947         * libio/oldiofclose.c: Likewise.
68948         * libio/oldiofdopen.c: Likewise.
68949         * libio/oldiofopen.c: Likewise.
68950         * libio/oldiopopen.c: Likewise.
68951         * libio/wfiledoalloc.c: Likewise.
68952         * libio/wgenops.c: Likewise.
68953         * locale/programs/xmalloc.c: Likewise.
68954         * misc/syslog.c: Likewise.
68955         * stdio-common/xbug.c: Likewise.
68956         * string/memchr.c: Likewise.
68957         * string/memcmp.c: Likewise.
68958         * string/memrchr.c: Likewise.
68959         * string/rawmemchr.c: Likewise.
68960         * sysdeps/posix/getcwd.c: Likewise.
68961         * time/strftime_l.c: Likewise.
68962
68963 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68964
68965         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
68966         * config.make.in (config-cflags-sse2avx): Define.
68967         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
68968         Fix typo.
68969
68970 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
68971
68972         * scripts/config.guess: Update from upstream config git repository.
68973         * scripts/config.sub: Likewise.
68974
68975 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
68976
68977         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
68978         (EM_NUM): Update.
68979         (R_TILEPRO_*, R_TILEGX_*): New macros.
68980
68981         * scripts/firstversions.awk: Fix bug in version range handling.
68982
68983         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
68984
68985         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
68986
68987         * include/sys/epoll.h: New file.
68988         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
68989         libc_hidden_def.
68990
68991 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
68992
68993         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
68994         Avoid unnecessary __WORDSIZE == 64 test.
68995         (fmaxf): Use VEX format if possible.
68996         (fmax): Likewise.
68997         (fminf): Likewise.
68998         (fmin): Likewise.
68999
69000         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69001         * math/math_private.h: Remove libc_fegetround* and
69002         libc_fesetround*.
69003         * sysdeps/i386/configure.in: Check for -msse2avx.
69004         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69005         also if SSE2AVX is defined.
69006         Remove libc_fegetround* and libc_fesetround*.
69007         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69008         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69009         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69010         of HAS_YMM_USABLE.
69011         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69012         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69013         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69014         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69015         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69016
69017         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69018
69019 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69020
69021         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69022         size is not set.
69023         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69024
69025 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69026
69027         [BZ #13618]
69028         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69029         relocation.
69030         * Makeconfig (libm): Define.
69031         * elf/Makefile: Add rules to build and run tst-relsort1.
69032         * elf/tst-relsort1.c: New file.
69033         * elf/tst-relsort1mod1.c: New file.
69034         * elf/tst-relsort1mod2.c: New file.
69035
69036 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69037
69038         * math/s_ldexp.c: Remove __STDC__ conditionals.
69039         * math/s_ldexpf.c: Likewise.
69040         * math/s_ldexpl.c: Likewise.
69041         * math/s_nextafter.c: Likewise.
69042         * math/s_nexttowardf.c: Likewise.
69043         * math/s_significand.c: Likewise.
69044         * math/s_significandf.c: Likewise.
69045         * math/s_significandl.c: Likewise.
69046         * math/w_jnl.c: Likewise.
69047         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69048         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69049         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69050         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69051         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69052         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69053         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69054         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69055         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69056         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69057         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69058         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69059         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69060         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69061         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69062         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69063         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69064         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69065         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69066         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69067         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69068         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69069         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69070         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69071         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69072         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69073         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69074         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69075         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69076         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69077         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69078         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69079         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69080         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69081         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69082         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69083         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69084         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69085         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69086         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69087         * sysdeps/ieee754/k_standard.c: Likewise.
69088         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69089         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69090         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69091         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69092         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69093         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69094         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69095         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69096         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69097         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69098         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69099         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69100         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69101         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69102         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69103         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69104         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69105         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69106         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69107         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69108         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69109         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69110         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69111         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69112         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69113         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69114         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69115         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69116         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69117         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69118         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69119         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69120         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69121         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69122         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69123         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69124         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69125         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69126         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69127         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69128         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69129         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69130         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69131         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69132         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69133         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69134         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69135         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69136         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69137         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69138         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69139         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69140         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69141         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69142         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69143         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69144         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69145         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69146         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69147         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69148         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69149         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69150         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69151         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69152         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69153         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69154         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69155         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69156         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69157         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69158         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69159         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69160         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69161         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69162         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69163         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69164         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69165         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69166         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69167         * sysdeps/ieee754/s_matherr.c: Likewise.
69168         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69169         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69170         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69171         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69172
69173 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69174
69175         * crypt/md5.h: Remove __STDC__ conditionals.
69176         * libio/libioP.h: Likewise.
69177         * locale/programs/config.h: Likewise.
69178         * sysdeps/generic/sysdep.h: Likewise.
69179         * sysdeps/i386/asm-syntax.h: Likewise.
69180         * sysdeps/s390/asm-syntax.h: Likewise.
69181         * sysdeps/unix/sysdep.h: Likewise.
69182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69184
69185 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69186
69187         * libio/libio.h: Remove __STDC__ conditionals.
69188         * malloc/obstack.h: Likewise.
69189         * math/complex.h: Likewise.
69190         * math/math.h: Likewise.
69191         * sysdeps/generic/_G_config.h: Likewise.
69192         * sysdeps/gnu/_G_config.h: Likewise.
69193         * sysdeps/mach/hurd/_G_config.h: Likewise.
69194         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69195         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69196         * sysdeps/sparc/bits/mathdef.h: Likewise.
69197
69198 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69199
69200         [BZ #13583]
69201         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69202         Clean up HAS_* macros.
69203         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69204         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69205         possible.
69206         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69207         HAS_AVX.
69208         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69209         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69210         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69211         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69212         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69213
69214 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69215
69216         * elf/tst-unique3.cc (gets): Remove declaration.
69217         * elf/tst-unique3lib.cc (gets): Likewise.
69218         * elf/tst-unique3lib2.cc (gets): Likewise.
69219         * elf/tst-unique4.cc (gets): Likewise.
69220
69221 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69222
69223         * include/stdio.h: Add C++ protection.  Add gets declarations and
69224         definitions.
69225         * debug/tst-chk1.c: Don't declare gets here.
69226         * stdio-common/tst-gets.c: Likewise.
69227
69228 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69229
69230         * posix/glob: Remove directory.
69231
69232 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69233
69234         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69235
69236 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69237
69238         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69239         of the non-standard EPFNOSUPPORT.
69240
69241 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69242
69243         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69244         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69245         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69246
69247 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69248
69249         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69250
69251 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69252
69253         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69254         transient errors.
69255         * nscd/grpcache.c (cache_addgr): Likewise.
69256         * nscd/hstcache.c (cache_addhst): Likewise.
69257         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69258         * nscd/pwdcache.c (cache_addpw): Likewise.
69259         * nscd/servicescache.c (cache_addserv): Likewise.
69260
69261 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69262
69263         * malloc/malloc.c: Various cleanups.
69264         * malloc/hooks.c: Likewise.
69265
69266         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69267         * stdlib/bug-fmtmsg1.c: New file.
69268
69269         * stdlib/fmtmsg.c (init): Add missing unlock.
69270         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69271
69272 2012-01-12  Marek Polacek  <polacek@redhat.com>
69273
69274         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69275         and _GNU_SOURCE.
69276
69277 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69278
69279         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69280         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69281         macro to ensure uniqueness of label name.
69282         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69283         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69284
69285 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69286
69287         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69288
69289         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69290         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69291         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69292         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69293
69294 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69295
69296         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69297
69298         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69299         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69300         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69301
69302         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69303
69304         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69305         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69306         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69307         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69308
69309         * math/bits/math-finite.h: Add ldexp support.
69310
69311 2012-01-10  Marek Polacek  <polacek@redhat.com>
69312
69313         * locale/programs/localedef.h (show_archive_content): Add noreturn
69314         attribute.
69315
69316 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69317
69318         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69319
69320 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69321
69322         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69323
69324         * io/Makefile (headers): Add bits/poll2.h.
69325
69326 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69327
69328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69329         typo #include statement.
69330
69331 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69332
69333         * include/sys/cdefs.h: Define __attribute_alloc_size.
69334         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69335         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69336         * elf/pldd.c: Likewise.
69337         * iconv/iconv_charmap.c: Likewise.
69338         * iconv/iconvconfig.c: Likewise.
69339         * iconv/strtab.c: Likewise.
69340         * locale/programs/locale.c: Likewise.
69341         * locale/programs/localedef.h: Likewise.
69342         * locale/programs/simple-hash.c: Likewise.
69343         * nscd/nscd.h: Likewise.
69344         * nss/makedb.c: Likewise.
69345         * sysdeps/generic/ldconfig.h: Likewise.
69346         * locale/programs/localedef.c: Remove xmalloc prototype.
69347         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69348
69349 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69350
69351         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69352         appropriate.
69353
69354 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69355
69356         * math/Makefile (tests): Add tst-CMPLX.
69357         * math/tst-CMPLX.c: New file.
69358
69359         * math/complex.h (CMPLXL): Fix typo.
69360
69361         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69362         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69363         GLIBC_2.16.
69364         * debug/tst-chk1.c: Add poll and ppoll tests.
69365         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69366         * include/sys/poll.h: Add hidden proto for ppoll.
69367         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69368         * sysdeps/mach/hurd/ppoll.c: Likewise.
69369         * io/ppoll.c: Likewise.
69370         * debug/poll_chk.c: New file.
69371         * debug/ppoll_chk.c: New file.
69372         * include/bits/poll2.h: New file.
69373         * io/bits/poll2.h: New file.
69374
69375         [BZ #1350]
69376         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69377
69378         * configure.in: static is always set to yes.  Remove.
69379         * config.make.in: Don't set build-static.
69380         * Makeconfig: Remove use of build-static.
69381         * dlfcn/Makefile: Likewise.
69382         * elf/Makefile: Likewise.
69383         * math/Makefile: Likewise.
69384         * misc/Makefile: Likewise.
69385         * nptl/Makefile: Likewise.
69386         * sysdeps/mach/hurd/Makefile: Likewise.
69387
69388         * configure.in: PWD_P is not used anymore.
69389         * config.make.in: Remove PWD_P entry.
69390
69391         * configure.in: Remove last remnants of RANLIB.
69392         No need to check for signed size_t anymore.
69393         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69394         and IA-64.
69395         Remove __builtin_expect test because we require at least gcc 3.4.
69396         * aclocal.m4: Likewise.
69397
69398         * wcsmbs/mbrtoc16.c: Implement using towc function.
69399         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69400         * wcsmbs/wcsmbsload.c: Likewise.
69401         * iconv/gconv_simple.c: Likewise.
69402         * iconv/gconv_int.h: Likewise.
69403         * iconv/gconv_builtin.h: Likewise.
69404         * iconv/iconv_prog.c: Remove CHAR16 handling.
69405
69406         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69407
69408         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69409
69410         * configure.in: Remove --with-elf and --enable-bounded options.
69411         Dont set base_machine for ia64.  More non-ELF conditions removed.
69412         Remove testing and setting of leading underscore information.
69413         * config.make.in (build-bounded): Set to no.
69414         * config.h.in: Remove NO_UNDERSCORES entry.
69415         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69416         them.
69417         * csu/start.c: Remove !NO_UNDERSCORE code.
69418         * locale/localeinfo.h: Likewise.
69419         * sysdeps/generic/machine-gmon.h: Likewise.
69420         * sysdeps/generic/sysdep.h: Likewise.
69421         * sysdeps/i386/sysdep.h: Likewise.
69422         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69423         * sysdeps/mach/sysdep.h: Likewise.
69424         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69425         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69426         * sysdeps/sh/sysdep.h: Likewise.
69427         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69428         * sysdeps/unix/i386/sysdep.S: Likewise.
69429         * sysdeps/unix/sparc/start.c: Likewise.
69430         * sysdeps/unix/sparc/sysdep.S: Likewise.
69431         * sysdeps/unix/sparc/sysdep.h: Likewise.
69432         * sysdeps/unix/start.c: Likewise.
69433         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69434         * sysdeps/x86_64/sysdep.h: Likewise.
69435
69436 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69437
69438         [BZ #13553]
69439         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69440         for non-gcc.
69441         * argp/argp-fmtstream.h: Use const instead __const.
69442         * argp/argp.h: Likewise.
69443         * assert/assert.h: Likewise.
69444         * bits/fenv.h: Likewise.
69445         * bits/sched.h: Likewise.
69446         * bits/sigset.h: Likewise.
69447         * bits/sigthread.h: Likewise.
69448         * catgets/nl_types.h: Likewise.
69449         * conform/data/pthread.h-data: Likewise.
69450         * crypt/crypt-private.h: Likewise.
69451         * crypt/crypt.h: Likewise.
69452         * crypt/crypt_util.c: Likewise.
69453         * ctype/ctype.h: Likewise.
69454         * debug/execinfo.h: Likewise.
69455         * debug/mbsnrtowcs_chk.c: Likewise.
69456         * debug/mbsrtowcs_chk.c: Likewise.
69457         * debug/wcsnrtombs_chk.c: Likewise.
69458         * debug/wcsrtombs_chk.c: Likewise.
69459         * debug/wcstombs_chk.c: Likewise.
69460         * dirent/dirent.h: Likewise.
69461         * dlfcn/dlfcn.h: Likewise.
69462         * elf/neededtest4.c: Likewise.
69463         * grp/grp.h: Likewise.
69464         * gshadow/gshadow.h: Likewise.
69465         * iconv/gconv.h: Likewise.
69466         * iconv/gconv_int.h: Likewise.
69467         * iconv/gconv_simple.c: Likewise.
69468         * iconv/iconv.h: Likewise.
69469         * iconv/loop.c: Likewise.
69470         * iconv/skeleton.c: Likewise.
69471         * include/aio.h: Likewise.
69472         * include/aliases.h: Likewise.
69473         * include/argz.h: Likewise.
69474         * include/arpa/inet.h: Likewise.
69475         * include/assert.h: Likewise.
69476         * include/dirent.h: Likewise.
69477         * include/dlfcn.h: Likewise.
69478         * include/execinfo.h: Likewise.
69479         * include/fcntl.h: Likewise.
69480         * include/fenv.h: Likewise.
69481         * include/glob.h: Likewise.
69482         * include/grp.h: Likewise.
69483         * include/libintl.h: Likewise.
69484         * include/mntent.h: Likewise.
69485         * include/netdb.h: Likewise.
69486         * include/pwd.h: Likewise.
69487         * include/rpc/netdb.h: Likewise.
69488         * include/sched.h: Likewise.
69489         * include/search.h: Likewise.
69490         * include/shadow.h: Likewise.
69491         * include/signal.h: Likewise.
69492         * include/stdio.h: Likewise.
69493         * include/stdlib.h: Likewise.
69494         * include/string.h: Likewise.
69495         * include/sys/socket.h: Likewise.
69496         * include/sys/stat.h: Likewise.
69497         * include/sys/statfs.h: Likewise.
69498         * include/sys/statvfs.h: Likewise.
69499         * include/sys/syslog.h: Likewise.
69500         * include/sys/time.h: Likewise.
69501         * include/sys/uio.h: Likewise.
69502         * include/time.h: Likewise.
69503         * include/unistd.h: Likewise.
69504         * include/utmp.h: Likewise.
69505         * include/wchar.h: Likewise.
69506         * include/wctype.h: Likewise.
69507         * inet/aliases.h: Likewise.
69508         * inet/arpa/inet.h: Likewise.
69509         * inet/netinet/ether.h: Likewise.
69510         * inet/netinet/in.h: Likewise.
69511         * intl/libintl.h: Likewise.
69512         * io/bits/fcntl2.h: Likewise.
69513         * io/fcntl.h: Likewise.
69514         * io/ftw.h: Likewise.
69515         * io/sys/poll.h: Likewise.
69516         * io/sys/stat.h: Likewise.
69517         * io/sys/statfs.h: Likewise.
69518         * io/sys/statvfs.h: Likewise.
69519         * io/utime.h: Likewise.
69520         * libio/bits/stdio.h: Likewise.
69521         * libio/bits/stdio2.h: Likewise.
69522         * libio/libio.h: Likewise.
69523         * libio/libioP.h: Likewise.
69524         * libio/stdio.h: Likewise.
69525         * locale/lc-ctype.c: Likewise.
69526         * locale/locale.h: Likewise.
69527         * login/utmp.h: Likewise.
69528         * malloc/arena.c: Likewise.
69529         * malloc/malloc.c: Likewise.
69530         * malloc/malloc.h: Likewise.
69531         * malloc/mcheck.c: Likewise.
69532         * malloc/mtrace.c: Likewise.
69533         * math/bits/mathcalls.h: Likewise.
69534         * math/fenv.h: Likewise.
69535         * math/math_private.h: Likewise.
69536         * misc/bits/error.h: Likewise.
69537         * misc/bits/syslog.h: Likewise.
69538         * misc/err.h: Likewise.
69539         * misc/error.h: Likewise.
69540         * misc/fstab.h: Likewise.
69541         * misc/mntent.h: Likewise.
69542         * misc/regexp.h: Likewise.
69543         * misc/search.h: Likewise.
69544         * misc/sgtty.h: Likewise.
69545         * misc/sys/mman.h: Likewise.
69546         * misc/sys/syslog.h: Likewise.
69547         * misc/sys/uio.h: Likewise.
69548         * misc/sys/xattr.h: Likewise.
69549         * misc/ttyent.h: Likewise.
69550         * nis/rpcsvc/ypclnt.h: Likewise.
69551         * nss/nss.h: Likewise.
69552         * posix/bits/unistd.h: Likewise.
69553         * posix/fnmatch.h: Likewise.
69554         * posix/glob.h: Likewise.
69555         * posix/sched.h: Likewise.
69556         * posix/spawn.h: Likewise.
69557         * posix/sys/wait.h: Likewise.
69558         * posix/unistd.h: Likewise.
69559         * posix/wordexp.h: Likewise.
69560         * pwd/pwd.h: Likewise.
69561         * resolv/netdb.h: Likewise.
69562         * resource/sys/resource.h: Likewise.
69563         * rt/aio.h: Likewise.
69564         * rt/bits/mqueue2.h: Likewise.
69565         * rt/mqueue.h: Likewise.
69566         * shadow/shadow.h: Likewise.
69567         * signal/signal.h: Likewise.
69568         * socket/send.c: Likewise.
69569         * socket/sendto.c: Likewise.
69570         * socket/sys/socket.h: Likewise.
69571         * stdio-common/printf.h: Likewise.
69572         * stdlib/bits/stdlib.h: Likewise.
69573         * stdlib/fmtmsg.h: Likewise.
69574         * stdlib/monetary.h: Likewise.
69575         * stdlib/stdlib.h: Likewise.
69576         * stdlib/ucontext.h: Likewise.
69577         * streams/stropts.h: Likewise.
69578         * string/argz.h: Likewise.
69579         * string/bits/string2.h: Likewise.
69580         * string/string.h: Likewise.
69581         * string/strings.h: Likewise.
69582         * sunrpc/rpc/auth.h: Likewise.
69583         * sunrpc/rpc/auth_des.h: Likewise.
69584         * sunrpc/rpc/clnt.h: Likewise.
69585         * sunrpc/rpc/netdb.h: Likewise.
69586         * sunrpc/rpc/pmap_clnt.h: Likewise.
69587         * sunrpc/rpc/xdr.h: Likewise.
69588         * sysdeps/generic/inttypes.h: Likewise.
69589         * sysdeps/generic/net/if.h: Likewise.
69590         * sysdeps/generic/sys/swap.h: Likewise.
69591         * sysdeps/gnu/net/if.h: Likewise.
69592         * sysdeps/gnu/utmpx.h: Likewise.
69593         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69594         * sysdeps/i386/i486/bits/string.h: Likewise.
69595         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69596         * sysdeps/s390/bits/string.h: Likewise.
69597         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69598         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69599         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69600         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69601         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69602         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69603         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69604         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69605         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69606         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69607         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69608         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69609         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69610         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69611         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69612         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69613         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69614         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69615         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69616         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69617         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69618         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69619         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69620         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69621         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69622         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69623         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69624         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69625         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69626         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69627         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69628         * sysvipc/sys/ipc.h: Likewise.
69629         * sysvipc/sys/msg.h: Likewise.
69630         * sysvipc/sys/sem.h: Likewise.
69631         * sysvipc/sys/shm.h: Likewise.
69632         * termios/termios.h: Likewise.
69633         * time/sys/time.h: Likewise.
69634         * time/time.h: Likewise.
69635         * wcsmbs/bits/wchar2.h: Likewise.
69636         * wcsmbs/uchar.h: Likewise.
69637         * wcsmbs/wchar.h: Likewise.
69638         * wctype/wctype.h: Likewise.
69639
69640         [BZ #13551]
69641         * Makeconfig: Remove all but ELF support including AIX support.
69642         * Makerules: Likewise.
69643         * config.h.in: Likewise.
69644         * config.make.in: Likewise.
69645         * configure: Likewise.
69646         * configure.in: Likewise.
69647         * csu/Makefile: Likewise.
69648         * csu/version.c: Likewise.
69649         * debug/Makefile: Likewise.
69650         * dlfcn/Makefile: Likewise.
69651         * elf/Makefile: Likewise.
69652         * extra-lib.mk: Likewise.
69653         * iconv/Makefile: Likewise.
69654         * include/libc-symbols.h: Likewise.
69655         * include/shlib-compat.h: Likewise.
69656         * resolv/Makefile: Likewise.
69657         * resolv/res_libc.c: Likewise.
69658         * rt/Makefile: Likewise.
69659         * sysdeps/i386/asm-syntax.h: Likewise.
69660         * sysdeps/i386/sysdep.h: Likewise.
69661         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69662         * sysdeps/mach/sysdep.h: Likewise.
69663         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69664         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69665         * sysdeps/s390/asm-syntax.h: Likewise.
69666         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69667         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69668         * sysdeps/sh/sysdep.h: Likewise.
69669         * sysdeps/unix/sparc/sysdep.h: Likewise.
69670         * sysdeps/wordsize-32/divdi3.c: Likewise.
69671         * sysdeps/x86_64/sysdep.h: Likewise.
69672
69673         * argp/Versions: Remove _argp_unlock_xxx.
69674
69675         [BZ #13559]
69676         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69677         * abilist/libBrokenLocale.abilist: Likewise.
69678         * abilist/libanl.abilist: Likewise.
69679         * abilist/libc.abilist: Likewise.
69680         * abilist/libcrypt.abilist: Likewise.
69681         * abilist/libdl.abilist: Likewise.
69682         * abilist/libm.abilist: Likewise.
69683         * abilist/libnsl.abilist: Likewise.
69684         * abilist/libpthread.abilist: Likewise.
69685         * abilist/libresolv.abilist: Likewise.
69686         * abilist/librt.abilist: Likewise.
69687         * abilist/libthread_db.abilist: Likewise.
69688         * abilist/libutil.abilist: Likewise.
69689         * abilist/libnss_db.abilist: New file.
69690
69691         * scripts/abilist.awk: Add support for indirect functions.
69692
69693         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69694
69695         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69696
69697         * shlib-versions: Remove entries for ports architectures.
69698
69699         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69700         files in ports.
69701         * elf/stackguard-macros.h: Remove support for IA-64.
69702         * elf/tst-auditmod1.c: Likewise.
69703         * sysdeps/generic/ldsodefs.h: Likewise.
69704
69705         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69706         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69707         configure files.
69708
69709         [BZ #13552]
69710         * configure.in: Remove --enable-omitfp support.
69711         * FAQ.in: Adjust.
69712         * config.make.in: Likewise.
69713         * Makeconfig: Likewise.
69714         * manual/install.texi: Likewise.
69715
69716         In case anyone cares, the IA-64 architecture could move to ports.
69717         * sysdeps/ia64/*: Removed.
69718         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69719         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69720
69721         [BZ #13555]
69722         * configure.in: Remove entries for unsupported architectures.
69723
69724         [BZ #13533]
69725         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69726         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69727         routines.
69728         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69729         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69730         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69731         fall back to using wcrtomb.
69732         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69733         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69734         renaming.
69735         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69736         * wcsmbs/tst-c16c32-1.c: New file.
69737
69738         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69739         local variable.
69740
69741         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69742
69743         * elf/tst-unique3.cc: Add explicit declaration of gets.
69744         * elf/tst-unique3lib.cc: Likewise.
69745         * elf/tst-unique3lib2.cc: Likewise.
69746         * elf/tst-unique4.cc: Likewise.
69747
69748         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69749
69750 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69751
69752         [BZ #13566]
69753         * assert/assert.h (static_assert): Don't define for C++.
69754         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69755         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69756
69757 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69758
69759         * iconv/loop.c (single loop): Fix assertion in storing of
69760         remaining bytes.
69761
69762         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69763
69764 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69765
69766         * posix/getconf.c: Update copyright year.
69767         * nss/getent.c: Likewise.
69768         * nss/makedb.c: Likewise.
69769         * iconv/iconvconfig.c: Likewise.
69770         * iconv/iconv_prog.c: Likewise.
69771         * elf/ldconfig.c: Likewise.
69772         * elf/pldd.c: Likewise.
69773         * elf/sotruss.ksh: Likewise.
69774         * catgets/gencat.c: Likewise.
69775         * csu/version.c: Likewise.
69776         * elf/ldd.bash.in: Likewise.
69777         * elf/sprof.c (print_version): Likewise.
69778         * locale/programs/locale.c: Likewise.
69779         * locale/programs/localedef.c: Likewise.
69780         * login/programs/pt_chown.c: Likewise.
69781         * nscd/nscd.c (print_version): Likewise.
69782         * debug/xtrace.sh: Likewise.
69783         * malloc/memusage.sh: Likewise.
69784         * malloc/mtrace.pl: Likewise.
69785         * debug/catchsegv.sh: Likewise.
69786
69787 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69788
69789         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69790         pure attribute.
69791
69792 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69793
69794         [BZ #13533]
69795         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69796         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69797         transformations.
69798         * iconv/gconv_int.h: Likewise.
69799         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69800         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69801         from libc for GLIBC_2.16.
69802         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69803         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69804         * wcsmbs/uchar.h: Really define mbstate_t.
69805         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69806         * wcsmbs/c16rtomb.c: New file.
69807         * wcsmbs/mbrtoc16.c: New file.
69808         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69809         for C/POSIX locale.
69810         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69811         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69812
69813         * wcsmbs/wchar.h: Add missing __restrict.
69814
69815 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69816
69817         [BZ #13532]
69818         * time/Makefile (routines): Add timespec_get.
69819         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69820         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69821         timespec for ISO C11.
69822         * time/timespec_get.c: New file.
69823         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69824         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69825
69826         [BZ #13531]
69827         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69828         * stdlib/stdlib.h: Declare aligned_alloc.
69829         * Versions.def: Add GLIBC_2.16 for libc.
69830         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69831
69832         [BZ 13527]
69833         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69834         ISO C11.
69835
69836         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69837         code.
69838
69839         [BZ #13528]
69840         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69841
69842         [BZ #13529]
69843         * assert/assert.h (static_assert): Define.
69844
69845         * version.h: Update for 2.16 development version.
69846
69847         [BZ #13526]
69848         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
69849         _ISOC11_SOURCE.
69850
69851         * version.h (RELEASE): Bump for 2.15 release.
69852         * include/features.h (__GLIBC_MINOR__): Bump to 15.
69853
69854         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
69855         Patch by Marek Polacek <mpolacek@redhat.com>.
69856
69857         * bits/byteswap.h: Protect long long constants with __extension__.
69858         * sysdeps/i386/bits/byteswap.h: Likewise.
69859         * sysdeps/ia64/bits/byteswap.h: Likewise.
69860         * sysdeps/s390/bits/byteswap.h: Likewise.
69861         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69862
69863 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69864
69865         [BZ #13540]
69866         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
69867         destination buffer.
69868         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
69869
69870 2011-12-23  Marek Polacek  <polacek@redhat.com>
69871
69872         * elf/dl-addr.c (determine_info): Add inline keyword.
69873         * elf/tst-auditmod4b.c (check_avx): Likewise.
69874         * elf/tst-auditmod6b.c (check_avx): Likewise.
69875         * elf/tst-auditmod6c.c (check_avx): Likewise.
69876         * elf/tst-auditmod7b.c (check_avx): Likewise.
69877
69878 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69879
69880         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
69881         !__SSE_MATH__.
69882
69883 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69884
69885         [BZ #13540]
69886         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
69887         processing for last bytes.
69888
69889 2011-08-06  Bruno Haible  <bruno@clisp.org>
69890
69891         [BZ #13061]
69892         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
69893         U+0385, not to U+1FEE.
69894
69895         [BZ #13062]
69896         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
69897         entry for U+00A5 U+0301.
69898
69899 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69900
69901         [BZ #13166]
69902         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
69903         buffer for the output is too small.
69904
69905         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
69906         optimization.
69907
69908         [BZ #13185]
69909         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
69910         SSE flags if possible.
69911
69912 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69913
69914         [BZ #13540]
69915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
69916         processing for last bytes.
69917
69918 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
69919
69920         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
69921         (syscall-list-default-options, syscall-list-default-condition)
69922         (syscall-list-includes): Define.
69923         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
69924         list of ABIs and options and #if conditions for each ABI.  Do not
69925         handle common syscalls between ABIs specially.
69926         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
69927         Remove.
69928         (syscall-list-variants, syscall-list-32bit-options)
69929         (syscall-list-32bit-condition, syscall-list-64bit-options)
69930         (syscall-list-64bit-condition): Define.
69931         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
69932         (syscall-list-variants, syscall-list-32bit-options)
69933         (syscall-list-32bit-condition, syscall-list-64bit-options)
69934         (syscall-list-64bit-condition): Define.
69935         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
69936         Remove.
69937         (syscall-list-variants, syscall-list-32bit-options)
69938         (syscall-list-32bit-condition, syscall-list-64bit-options)
69939         (syscall-list-64bit-condition): Define.
69940         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
69941         Remove.
69942         (syscall-list-variants, syscall-list-32bit-options)
69943         (syscall-list-32bit-condition, syscall-list-64bit-options)
69944         (syscall-list-64bit-condition): Define.
69945
69946 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69947
69948         * locale/iso-639.def: Add brx entry.
69949
69950         [BZ #13328]
69951         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
69952         Proposed by Mariusz_Cukr <marcukr@op.pl>.
69953
69954         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
69955         __feraiseexcept_renamed.
69956
69957 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69958
69959         [BZ #13538]
69960         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
69961         EPOLLET with unsigned values.
69962         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69963         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69964
69965         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
69966         to large cancellation.
69967         * math/s_cacoshf.c: Likewise.
69968         * math/s_cacoshl.c: Likewise.
69969
69970 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
69971
69972         [BZ #13305]
69973         [BZ #12786]
69974         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
69975         * math/s_cacoshf.c: Likewise.
69976         * math/s_cacoshl.c: Likewise.
69977
69978 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69979
69980         [BZ #13439]
69981         * iconv/gconv.h: Define __GCONV_SWAP.
69982         * iconvdata/unicode.c: The swap bit must be stored in __flags.
69983         * iconvdata/utf-16.c: Likewise.
69984         * iconvdata/utf-32.c: Likewise.
69985
69986 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
69987
69988         [BZ #13524]
69989         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
69990         numerator after shifting it by one limb.
69991
69992 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
69993
69994         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
69995         under [__USE_EXTERN_INLINES].
69996
69997 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
69998
69999         [BZ #13446]
70000         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70001
70002 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70003
70004         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70005         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70006         optimized code.
70007         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70008         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70009         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70010         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70011         for strncasecmp/strncasecmp_l compilation.
70012         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70013         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70014
70015 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70016
70017         [BZ #13484]
70018         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70019         of __asm__.
70020
70021 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70022
70023         [BZ #13506]
70024         * time/tzfile.c (__tzfile_read): Check values from file header.
70025
70026 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70027
70028         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70029         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70030         * powerpc/powerpc32/dl-start.S: Likewise.
70031         * powerpc/powerpc32/elf/start.S: Likewise.
70032         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70033         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70034         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70035         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70036         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70037         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70038         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70039         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70040         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70041         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70042         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70043         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70044         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70045         * powerpc/powerpc32/memset.S: Likewise.
70046         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70047         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70048         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70049         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70050         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70051         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70052         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70053         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70054         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70055         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70056         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70057         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70058         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70059
70060 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70061
70062         * math/libm-test.inc: Added more nearbyint tests.
70063         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70064         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70065         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70066         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70067
70068 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70069
70070         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70071         FD_CLOEXEC.
70072
70073 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70074
70075         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70076         Add wcscpy-ssse3 wcscpy-c.
70077         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70078         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70079         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70080         * sysdeps/x86_64/wcschr.S: New file.
70081         * sysdeps/x86_64/wcsrchr.S: New file.
70082         * string/test-strcmp.c: Remove checking of wcscmp function for
70083         wrong alignments.
70084         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70085         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70086         wcsrchr-sse2 wcsrchr-c.
70087         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70088         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70089         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70090         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70091         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70092         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70093         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70094         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70095         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70096         * wcsmbc/wcschr.c (WCSCHR): New macro.
70097
70098 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70099
70100         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70101         * wcsmbs/test-wcsrchr.c: New file.
70102         * string/test-strrchr.c: Add wcsrchr support.
70103         (WIDE): New macro.
70104         * wcsmbs/test-wcscpy.c: New file.
70105         * string/test-strcpy.c: Add wcscpy support.
70106         (WIDE): New macro.
70107
70108 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70109
70110         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70111         the inner loop.
70112
70113 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70114
70115         [BZ #13472]
70116         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70117
70118 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70119
70120         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70121         Minor optimizations.
70122
70123         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70124         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70125         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70126
70127 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70128
70129         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70130         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70131         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70132         for gcc to avoid warnings.
70133         * inet/Makefile (tests): Add tst-checks.
70134         * inet/tst-checks.c: New file.
70135
70136         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70137         warning.
70138
70139         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70140         __wmemcmp_sse2.
70141
70142         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70143         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70144
70145         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70146
70147 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70148
70149         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70150         problem.
70151
70152         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70153
70154 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70155
70156         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70157         conditional on GCC version.
70158         (__arch_compare_and_exchange_val_8_acq)
70159         (__arch_compare_and_exchange_val_16_acq)
70160         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70161         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70162         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70163
70164 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70165
70166         * sysdeps/sh/backtrace.c: New file.
70167
70168 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70169
70170         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70171         parenthesis.
70172
70173 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70174
70175         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70176         falling back to utime.
70177
70178 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70179
70180         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70181         expectations for float.
70182
70183 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70184
70185         * locale/weight.h (findidx): Add parameter len.
70186         * locale/weightwc.h (findidx): Likewise.
70187         * posix/fnmatch_loop.c (FCT): Adjust caller.
70188         * posix/regcomp.c (build_equiv_class): Likewise.
70189         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70190         * posix/regexec.c (check_node_accept_bytes): Likewise.
70191         * string/strcoll_l.c (STRCOLL): Likewise.
70192         * string/strxfrm_l.c (STRXFRM): Likewise.
70193
70194 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70195
70196         * Makefile.in: Remove CVSOPT handling.
70197         * configure.in: Remove use of AC_REVISION.
70198         * iconvdata/Makefile (distribute): No need to filter out CVS.
70199         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70200         handling.
70201
70202 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70203
70204         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70205         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70206         [USE_AS_STRNCASECMP_L]: Likewise.
70207         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70208         NO_TLS_DIRECT_SEG_REFS.
70209         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70210         Fix argument offsets for non-PIC.
70211         [USE_AS_STRNCASECMP_L]: Likewise.
70212         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70213         NO_TLS_DIRECT_SEG_REFS.
70214
70215 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70216
70217         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70218         O_CLOEXEC.
70219         * locale/loadlocale.c (_nl_load_locale): Likewise.
70220
70221 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70222
70223         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70224         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70225         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70226         (SYSCALL_GETTIME): Set errno on error.
70227
70228         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70229         count references to noai6ai_cached.
70230
70231 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70232
70233         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70234
70235         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70236         FD_CLOEXEC for /proc/self/maps.
70237
70238         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70239         FD_CLOEXEC for /proc/meminfo.
70240
70241         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70242         gai.conf.
70243
70244         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70245         FD_CLOEXEC for given file.
70246
70247         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70248
70249         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70250         FD_CLOEXEC for /etc/hosts.
70251         (_gethtent): Likewise.
70252
70253         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70254
70255         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70256         cancellation and set FD_CLOEXEC for /etc/netgroup.
70257
70258         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70259         reading /etc/publickey.
70260
70261         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70262         allow cancellation when reading /etc/group.
70263
70264         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70265         cancellation.
70266         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70267
70268         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70269         when using data file.
70270
70271         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70272
70273         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70274         (write_nis_obj): Use "c" and "e" in fopen.
70275
70276         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70277
70278         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70279
70280         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70281
70282         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70283
70284         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70285         locale.alias.
70286
70287         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70288
70289         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70290
70291         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70292
70293         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70294         file parsing and set FD_CLOEXEC.
70295
70296 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70297
70298         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70299
70300 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70301
70302         * malloc/arena.c (arena_get2): Don't call reused_arena when
70303         _int_new_arena failed.
70304
70305 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70306
70307         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70308         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70309         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70310         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70311         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70312         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70313         to compile strcasecmp and strncasecmp.
70314         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70315         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70316
70317         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70318
70319 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70320
70321         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70322         locale-defines.sym to gen-as-const-headers.
70323         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70324         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70325         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70326         to compile strcasecmp and strncasecmp.
70327         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70328         strcasecmp_l and strncasecmp_l.
70329         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70330         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70331         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70332         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70333         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70334         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70335         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70336         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70337         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70338         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70339         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70340
70341 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70342
70343         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70344         result of SYSDEP_GETTIME_CPU to retval.
70345         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70346         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70347
70348         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70349         variable.
70350
70351         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70352         mantissa words.
70353         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70354
70355         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70356         from unused variable.
70357
70358         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70359         DWARF definitions.
70360         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70361         for assembling.
70362
70363         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70364         over namespaces.
70365
70366         * sunrpc/rpc_prot.c (rejected): Fix case value.
70367
70368         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70369         unsigned long long int to avoid warnings in shift.
70370
70371         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70372         of use of trans.
70373         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70374         variable tmp.
70375
70376         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70377         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70378         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70379
70380         * nis/nis_table.c (nis_list): Use variable of correct type for
70381         result of __follow_path call.
70382
70383 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70384
70385         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70386         of math functions ceil, trunc, floor, round, and sqrt, when
70387         avaliable on the platform.
70388         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70389         name clash.
70390         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70391         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70392         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70393
70394 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70395
70396         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70397         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70398
70399 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70400
70401         * include/unistd.h: Fix __readlink return type.
70402         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70403
70404 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70405
70406         * stdlib/ucontext.h: Undo last change for makecontext.
70407
70408 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70409
70410         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70411
70412         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70413         * setjmp/setjmp.h: Mark functions as non-leaf.
70414         * setjmp/bits/setjmp2.h: Likewise.
70415         * stdlib/ucontext.h: Likewise.
70416
70417 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70418
70419         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70420         (reused_arena): Don't check arena limit.
70421         (arena_get2): Atomically check arena limit.
70422
70423 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70424
70425         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70426         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70427
70428         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70429         instructions.
70430
70431 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70432
70433         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70434         handler when locking.
70435
70436         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70437         Fix size of allocated buffer.
70438
70439 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70440
70441         [BZ #10103]
70442         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70443         declarations for long double functions.
70444         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70445
70446         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70447
70448 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70449
70450         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70451         installed.
70452
70453         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70454         is disabled.
70455
70456 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70457
70458         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70459
70460 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70461
70462         * include/alloca.h (stackinfo_alloca_round): Define.
70463         (extend_alloca): Use it.
70464         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70465         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70466         here.
70467
70468         * scripts/check-local-headers.sh: Ignore libaudit.h.
70469
70470         * nscd/Makefile (extra-objs): Make recursively expanded.
70471
70472 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70473
70474         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70475         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70476
70477         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70478         * posix/tst-rfc3484-2.c: Likewise.
70479         * posix/tst-rfc3484-3.c: Likewise.
70480
70481         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70482         process_vm_writev.
70483         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70484         process_vm_writev.
70485         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70486         process_vm_writev from libc using GLIBC_2.15 version.
70487
70488         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70489
70490 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70491
70492         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70493         stack usage.
70494
70495 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70496
70497         [BZ #13367]
70498         * nss/getent.c (initgroups_keys): Show error message in case no group
70499         names are given.
70500
70501         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70502         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70503         __bump_nl_timestamp.
70504         * nscd/connections (nscd_init): When host database is served open
70505         netlink socket and request notification about configuration changes.
70506         (main_loop_poll): Track netlink file descriptor and bump timestamp
70507         in case data becomes available.
70508         (main_loop_epoll): Likewise.
70509         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70510         (database_pers_head): Add extra_data fileds.
70511         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70512         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70513         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70514         Adjust caller.
70515         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70516         in6ai data, call __free_in6ai.
70517         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70518         Add -DHAVE_NETLINK.
70519         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70520         interface information.  Reuse previous data if netlink timestamp
70521         is not changed.
70522         (__bump_nl_timestamp): New function.
70523         (__free_in6ai): New function.
70524
70525 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70526
70527         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70528         close_not_cancel_no_status here.
70529         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70530
70531 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70532
70533         [BZ #13276]
70534         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70535         return value.
70536
70537         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70538         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70539         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70540
70541 2011-07-03  Andreas Jaeger  <aj@suse.de>
70542
70543         [BZ #10709]
70544         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70545         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70546         * math/libm-test.inc (sin_test): Add test case.
70547
70548 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70549
70550         [BZ #13337]
70551         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70552         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70553
70554         * elf/chroot_canon.c (chroot_canon): Cleanups.
70555
70556         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70557
70558         [BZ #13335]
70559         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70560         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70561
70562         * string/test-strchr.c: Make usable for strchrnul testing.
70563         * string/test-strchrnul.c: New file.
70564         * string/Makefile (strop-tests): Add strchrnul.
70565
70566         * po/it.po: Update from translation team.
70567         * po/es.po: Likewise.
70568
70569 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70570
70571         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70572         the three constants needed as parameters.  Drop the others.
70573         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70574         __m128i_strloadu_tolower.
70575         Create and initialize variable zero and use it in all the places
70576         where _mm_setzero_si128 was used.
70577
70578         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70579         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70580         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70581         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70582         anymore.
70583         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70584         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70585         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70586         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70587         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70588         __mpranred, __mptan.
70589         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70590         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70591         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70592         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70593         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70594         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70595         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70596         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70597         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70598
70599 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70600
70601         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70602         redefine if SHARED.
70603         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70604
70605         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70606         wide char related routines to wcsmbs subdir.
70607
70608 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70609
70610         [BZ #13344]
70611         * misc/sys/cdefs.h (__THROWNL): Define.
70612         * posix/unistd.h: Use __THREADNL instead of __THREAD
70613         for memory synchronization functions.
70614
70615 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70616
70617         [BZ #13349]
70618         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70619         doesn't exist.
70620         * manual/stdio.texi (Obstack Streams): Node removed.
70621
70622 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70623
70624         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70625         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70626         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70627
70628         * math/math_private.h (math_force_eval): Allow non-addressable
70629         arguments.
70630         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70631
70632 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70633
70634         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70635         file is not needed.
70636
70637         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70638         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70639         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70640         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70641         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70642         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70643         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70644         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70645         Add AVX variants.
70646         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70647         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70648         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70649         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70650         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70651         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70652         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70653         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70654         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70655         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70656         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70657         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70658         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70659         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70660         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70661         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70662         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70663         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70664         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70665
70666         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70667         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70668
70669         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70670         place.  Use VEX encoding when compiling for AVX.
70671
70672 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70673
70674         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70675         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70676
70677         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70678
70679 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70680
70681         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70682         useless if() expression.
70683         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70684         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70685         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70686         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70687         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70688         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70689         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70690         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70691         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70692         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70693         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70694         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70695         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70696         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70697         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70698         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70699         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70700         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70701         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70702
70703         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70704
70705 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70706
70707         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70708         condition.
70709         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70710
70711 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70712
70713         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70714         .text section.  Avoid duplicate constants.
70715         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70716         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70717         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70718         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70719         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70720         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70721         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70722         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70723         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70724         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70725         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70726         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70727         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70728         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70729         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70730         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70731         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70732         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70733         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70734         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70735         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70736         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70737         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70738         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70739         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70740         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70741         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70742         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70743         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70744         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70745         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70746         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70747         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70748         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70749         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70750         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70751         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70752         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70753         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70754         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70755         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70756         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70757         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70758         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70759         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70760
70761 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70762
70763         * sysdeps/x86_64/dla.h: Move to ...
70764         * sysdeps/x86_64/fpu/dla.h: ...here.
70765         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70766         situations.  Use __builtin_fma only for gcc 4.6 and up.
70767
70768         * config.make.in: Add have-mfma4 entry.
70769         * configure.in: Substitute libc_cv_cc_fma4.
70770         * math/Makefile (dbl-only-routines): Add sincostab.
70771         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70772         Use __sincostab not sincos.
70773         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70774         name is a macro.
70775         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70776         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70777         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70778         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70779         using __copysign.
70780         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70781         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70782         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70783         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70784         and __inv.
70785         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70786         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70787         __copysign.
70788         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70789         define aliases when function name is a macro.
70790         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70791         sysdeps/ieee754/dbl-64/sincos.tbl.
70792         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70793         fma4-enabled routines.
70794         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70795         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70796         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70797         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70798         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70799         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70800         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70801         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70802         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70803         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70804         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70805         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70806         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70807         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70808         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70809         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70810         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70811         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70812         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70813         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70814         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70815         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70816         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70817         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70818         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70819         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70820         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70821         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70822         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70823         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70824
70825         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70826         rename.
70827         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70828         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70829         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70830         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70831         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70832         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70833         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70834         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70835
70836 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70837
70838         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70839
70840 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70841
70842         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70843
70844         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70845         prediction.
70846         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70847
70848         * string/strnlen.c: Don't define STRNLEN, reverse logic.
70849         Remove unused variable magic_bits.
70850         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
70851
70852         * string/strnlen.c: Define and use STRNLEN macro.
70853         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
70854         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
70855         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
70856         * wcsmbs/wcslen.c: Define and use WCSLEN.
70857         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
70858         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
70859         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
70860         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
70861         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
70862         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
70863         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
70864
70865 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70866
70867         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
70868         strnlen-sse2-no-bsf.
70869         Rename strlen-no-bsf to strlen-sse2-no-bsf.
70870         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
70871         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
70872         Add strnlen support.
70873         (USE_AS_STRNLEN): New macro.
70874         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
70875         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
70876         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
70877         * sysdeps/x86_64/wcslen.S: New file.
70878
70879 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
70880
70881         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
70882         XMM-moves are used for copying on small sizes.
70883
70884 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70885
70886         * wcsmbs/Makefile (strop-tests): Add wcschr.
70887         * wcsmbs/test-wcschr.c: New file.
70888         * string/test-strchr.c: Update.
70889         Add wcschr support.
70890         (WIDE): New macro.
70891
70892 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70893
70894         * wcsmbs/Makefile (strop-tests): Add wcslen.
70895         * wcsmbs/test-wcslen.c: New file.
70896         * string/test-strlen.c: Update.
70897         Add wcslen support.
70898         (WIDE): New macro.
70899
70900 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70901
70902         * po/it.po: Update from translation team.
70903
70904 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70905
70906         * sysdeps/x86_64/wcscmp.S: Update.
70907         Fix wrong comparison semantics.
70908         wcscmp shall use signed comparison not unsigned.
70909         Don't use substraction to avoid overflow bug.
70910         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
70911         * wcsmbc/wcscmp.c: Likewise.
70912         * string/test-strcmp.c: Likewise.
70913         Add new tests to check cases with negative values.
70914
70915 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70916
70917         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
70918         * sysdeps/x86_64/dla.h: ...here.  New file.
70919         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
70920         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70921         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70922         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70923         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70924         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70925         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70926         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70927         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70928
70929 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
70930
70931         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
70932         __ynl_finite aliases.
70933
70934 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70935
70936         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70937
70938         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
70939         define DLA_FMA.
70940         [DLA_FMA] (EMULV): Use DLA_FMA.
70941         [DLA_FMA] (MUL12): Use EMULV.
70942         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
70943         that are not needed.
70944         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70945         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70946         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70947         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70948         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70949         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70950         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70951
70952 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
70953
70954         * math/s_nan.c: Undef __nan.
70955         * math/s_nanf.c: Undef __nanf.
70956         * math/s_nanl.c: Undef __nanl.
70957         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
70958         "math_private.h".
70959
70960 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70961
70962         * math/s_catan.c: Add branch predictions.
70963         * math/s_catanf.c: Likewise.
70964         * math/s_catanh.c: Likewise.
70965         * math/s_catanhf.c: Likewise.
70966         * math/s_catanhl.c: Likewise.
70967         * math/s_catanl.c: Likewise.
70968         * math/s_cexp.c: Likewise.
70969         * math/s_cexpf.c: Likewise.
70970         * math/s_cexpl.c: Likewise.
70971         * math/s_clog.c: Likewise.
70972         * math/s_clog10.c: Likewise.
70973         * math/s_clog10f.c: Likewise.
70974         * math/s_clog10l.c: Likewise.
70975         * math/s_clogf.c: Likewise.
70976         * math/s_clogl.c: Likewise.
70977         * math/s_csqrt.c: Likewise.
70978         * math/s_csqrtf.c: Likewise.
70979         * math/s_csqrtl.c: Likewise.
70980         * math/s_ctanf.c: Likewise.
70981         * math/s_ctanh.c: Likewise.
70982         * math/s_ctanhf.c: Likewise.
70983         * math/s_ctanhl.c: Likewise.
70984         * math/s_ctanl.c: Likewise.
70985
70986         * math/math_private.h: Define __nan, __nanf, __nanl.
70987         * math/s_cacosh.c: Include <math_private.h>.
70988         * math/s_cacoshl.c: Likewise.
70989         * math/s_casinh.c: Likewise.
70990         * math/s_casinhf.c: Likewise.
70991         * math/s_casinhl.c: Likewise.
70992         * math/s_ccos.c: Rely entire on ccosh.
70993         * math/s_ccosf.c: Rely entire on ccoshf.
70994         * math/s_ccosl.c: Rely entirely on ccoshl.
70995         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
70996         Remove tests for FE_INVALID.
70997         * math/s_ccoshf.c: Likewise.
70998         * math/s_ccoshl.c: Likewise.
70999         * math/s_csin.c: Likewise.
71000         * math/s_csinf.c: Likewise.
71001         * math/s_csinh.c Likewise.
71002         * math/s_csinhf.c: Likewise.
71003         * math/s_csinhl.c: Likewise.
71004         * math/s_csinl.c: Likewise.
71005         * math/s_ctan.c: Likewise.
71006         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71007         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71008         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71009
71010 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71011
71012         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71013         compilation problems.
71014
71015         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71016         __builtin_expect.
71017
71018 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71019
71020         * sysdeps/i386/configure.in: Test for -mfma4 option.
71021         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71022         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71023         COMMON_CPUID_INDEX_80000001.
71024         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71025         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71026         use it if FMA3 is not supported.
71027         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71028
71029         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71030         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71031
71032 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71033
71034         [BZ #12892]
71035         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71036         it would create a cycle with a link time dependency.
71037
71038 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71039
71040         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71041         instruction.
71042         * string/Makefile (strop-tests): Add rawmemchr.
71043         * string/test-rawmemchr.c: New file.
71044
71045         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71046         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71047         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71048         when compiling str{,n}casecmp and when AVX is available.  Hook up
71049         new optimized code in initializers.
71050
71051 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71052
71053         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71054         __feraiseexcept instead of feraiseexcept.
71055
71056 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71057
71058         * math/math_private.h: Define defaults for libc_fetestexcept and
71059         libc_feupdateenv.
71060         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71061         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71062         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71063         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71064         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71065         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71066         libc_fetestexcept and libc_feupdateenv.
71067
71068         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71069         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71070         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71071         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71072         libc_feholdexcept_setround.
71073
71074         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71075         Add s_nearbyint-c and s_nearbyintf-c.
71076         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71077         nearbyintf inlines.
71078         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71079         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71080         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71081         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71082
71083         * math/math_private.h: Define defaults for libc_fegetround,
71084         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71085         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71086         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71087         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71088         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71089         standard functions.
71090         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71091         Remove comments and hacks for old compiler versions.
71092         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71093         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71094         libc_feholdexceptl.
71095
71096 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71097
71098         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71099         (__feraiseexcept_renamed): Add __NTH.
71100         (feraiseexcept): Add __NTH.  Rename local variables to fix
71101         namespace violations.
71102
71103 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71104
71105         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71106
71107         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71108
71109         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71110         recently added interfaces.
71111         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71112
71113         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71114         about macro parameter expansion.
71115
71116         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71117         __NO_MATH_INLINES is defined.  Cleanups.
71118
71119         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71120         and __floorf is target has SSE4.1.
71121         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71122         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71123         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71124         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71125
71126         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71127         name.
71128         (floorf): Likewise.
71129
71130         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71131
71132 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71133
71134         * misc/sys/cdefs.h: Fix last change.
71135
71136         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71137         database lookup.
71138
71139 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71140
71141         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71142
71143         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71144         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71145         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71146         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71147         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71148         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71149         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71150         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71151         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71152         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71153         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71154         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71155         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71156         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71157         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71158         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71159         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71160         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71161         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71162         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71163         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71164         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71165
71166         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71167         ceil, ceilf, floor, floorf.
71168
71169         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71170         Perform IRELATIVE relocations last.
71171
71172         * elf/do-rel.h: Add another parameter nrelative, replacing the
71173         local variable with the same name.  Change name of the function
71174         to end in Rel or Rela (uppercase).
71175         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71176         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71177         elf_dynamic_do_##reloc function.
71178
71179 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71180
71181         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71182         is sufficient, at least on modern CPUs.
71183
71184         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71185
71186         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71187         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71188
71189         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71190         __expl_finite.
71191         * math/bits/math-finite.h: Add entries for exp.
71192         * math/e_expl.c: Add __*_finite alias.
71193         * sysdeps/i386/fpu/e_exp.S: Likewise.
71194         * sysdeps/i386/fpu/e_expf.S: Likewise.
71195         * sysdeps/i386/fpu/e_expl.c: Likewise.
71196         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71197         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71198         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71199         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71200         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71201         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71202         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71203
71204         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71205         is sufficient, at least on modern CPUs.
71206
71207         * ctype/ctype-info.c (__ctype_init): Define.
71208         * include/ctype.h (__ctype_init): Declare.
71209         (__ctype_b_loc): The variable is always initialized.
71210         (__ctype_toupper_loc): Likewise.
71211         (__ctype_tolower_loc): Likewise.
71212         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71213         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71214
71215 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71216
71217         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71218
71219         * configure.in: Also look in $cxxmachine/include for C++ system
71220         headers.
71221
71222 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71223
71224         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71225         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71226         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71227         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71228         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71229         (USE_AS_WMEMCMP): New macro.
71230         Fixing indents.
71231         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71232         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71233         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71234         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71235         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71236         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71237         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71238         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71239         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71240         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71241         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71242         (USE_AS_WMEMCMP): New macro.
71243         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71244         * sysdeps/string/test-memcmp.c: Update.
71245         Fix simple_wmemcmp.
71246         Add new tests.
71247         * wcsmbs/wmemcmp.c: Update.
71248         (WMEMCMP): New macro.
71249         Fix overflow bug.
71250
71251 2011-10-12  Andreas Jaeger  <aj@suse.de>
71252
71253         [BZ #13268]
71254         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71255
71256 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71257
71258         * libio/iofwide.c (do_length): Avoid warning.
71259
71260         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71261
71262 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71263
71264         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71265
71266         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71267         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71268         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71269         * sysdeps/i386/i686/fpu/e_log.S: New file.
71270         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71271         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71272
71273         * ctype/ctype.h: Add support for inlined isXXX functions when
71274         compiling C++ code.
71275
71276 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71277
71278         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71279
71280         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71281
71282 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71283
71284         [BZ #13291]
71285         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71286
71287 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71288
71289         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71290         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71291         feraiseexcept.
71292
71293         * sysdeps/x86_64/memrchr.S: Check for zero size.
71294
71295         * string/stratcliff.c: Add memrchr tests.
71296
71297 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71298
71299         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71300         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71301         rawmemchr-sse2 rawmemchr-sse2-bsf.
71302         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71303         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71304         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71305         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71306         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71307         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71308         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71309         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71310         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71311         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71312         * string/memrchr.c (MEMRCHR): New macro.
71313
71314 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71315
71316         Add integration with gcc's -ffinite-math-only and optimize wrapper
71317         functions in libm.
71318         * Versions.def: Define GLIBC_2.15 version for libm.
71319         * math/Makefile (headers): Add bits/math-finite.h.
71320         * math/bits/math-finite.h: New file.
71321         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71322         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71323         * math/e_acoshl.c: Add __*_finite alias.
71324         * math/e_acosl.c: Likewise.
71325         * math/e_asinl.c: Likewise.
71326         * math/e_atan2l.c: Likewise.
71327         * math/e_atanhl.c: Likewise.
71328         * math/e_coshl.c: Likewise.
71329         * math/e_exp10.c: Likewise.
71330         * math/e_exp10f.c: Likewise.
71331         * math/e_exp10l.c: Likewise.
71332         * math/e_exp2l.c: Likewise.
71333         * math/e_fmodl.c: Likewise.
71334         * math/e_gammal_r.c: Likewise.
71335         * math/e_hypotl.c: Likewise.
71336         * math/e_j0l.c: Likewise.
71337         * math/e_j1l.c: Likewise.
71338         * math/e_jnl.c: Likewise.
71339         * math/e_lgammal_r.c: Likewise.
71340         * math/e_log10l.c: Likewise.
71341         * math/e_log2l.c: Likewise.
71342         * math/e_logl.c: Likewise.
71343         * math/e_powl.c: Likewise.
71344         * math/e_sinhl.c: Likewise.
71345         * math/e_sqrtl.c: Likewise.
71346         * math/e_scalb.c: Completely rewritten and optimized.
71347         * math/e_scalbf.c: Likewise.
71348         * math/e_scalbl.c: Likewise.
71349         * math/w_acos.c: Likewise.
71350         * math/w_acosf.c: Likewise.
71351         * math/w_acosl.c: Likewise.
71352         * math/w_acosh.c: Likewise.
71353         * math/w_acoshf.c: Likewise.
71354         * math/w_acoshl.c: Likewise.
71355         * math/w_asin.c: Likewise.
71356         * math/w_asinf.c: Likewise.
71357         * math/w_asinl.c: Likewise.
71358         * math/w_atan2.c: Likewise.
71359         * math/w_atan2f.c: Likewise.
71360         * math/w_atan2l.c: Likewise.
71361         * math/w_atanh.c: Likewise.
71362         * math/w_atanhf.c: Likewise.
71363         * math/w_atanhl.c: Likewise.
71364         * math/w_exp10.c: Likewise.
71365         * math/w_exp10f.c: Likewise.
71366         * math/w_exp10l.c: Likewise.
71367         * math/w_fmod.c: Likewise.
71368         * math/w_fmodf.c: Likewise.
71369         * math/w_fmodl.c: Likewise.
71370         * math/w_j0.c: Likewise.
71371         * math/w_j0f.c: Likewise.
71372         * math/w_j0l.c: Likewise.
71373         * math/w_j1.c: Likewise.
71374         * math/w_j1f.c: Likewise.
71375         * math/w_j1l.c: Likewise.
71376         * math/w_jn.c: Likewise.
71377         * math/w_jnf.c: Likewise.
71378         * math/w_log.c: Likewise.
71379         * math/w_logf.c: Likewise.
71380         * math/w_logl.c: Likewise.
71381         * math/w_log10.c: Likewise.
71382         * math/w_log10f.c: Likewise.
71383         * math/w_log10l.c: Likewise.
71384         * math/w_log2.c: Likewise.
71385         * math/w_log2f.c: Likewise.
71386         * math/w_log2l.c: Likewise.
71387         * math/w_pow.c: Likewise.
71388         * math/w_powf.c: Likewise.
71389         * math/w_powl.c: Likewise.
71390         * math/w_remainder.c: Likewise.
71391         * math/w_remainderf.c: Likewise.
71392         * math/w_remainderl.c: Likewise.
71393         * math/w_scalb.c: Likewise.
71394         * math/w_scalbf.c: Likewise.
71395         * math/w_scalbl.c: Likewise.
71396         * math/w_sqrt.c: Likewise.
71397         * math/w_sqrtf.c: Likewise.
71398         * math/w_sqrtl.c: Likewise.
71399         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71400         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71401         used.
71402         * math/math_private.h: Declare __kernel_standard_f.
71403         * math/w_cosh.c: Remove cruft and optimize a bit.
71404         * math/w_coshf.c: Likewise.
71405         * math/w_coshl.c: Likewise.
71406         * math/w_exp2.c: Likewise.
71407         * math/w_exp2f.c: Likewise.
71408         * math/w_exp2l.c: Likewise.
71409         * math/w_hypot.c: Likewise.
71410         * math/w_hypotf.c: Likewise.
71411         * math/w_hypotl.c: Likewise.
71412         * math/w_lgamma.c: Likewise.
71413         * math/w_lgamma_r.c: Likewise.
71414         * math/w_lgammaf.c: Likewise.
71415         * math/w_lgammaf_r.c: Likewise.
71416         * math/w_lgammal.c: Likewise.
71417         * math/w_lgammal_r.c: Likewise.
71418         * math/w_sinh.c: Likewise.
71419         * math/w_sinhf.c: Likewise.
71420         * math/w_sinhl.c: Likewise.
71421         * math/w_tgamma.c: Likewise.
71422         * math/w_tgammaf.c: Likewise.
71423         * math/w_tgammal.c: Likewise.
71424         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71425         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71426         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71427         Minor optimizations.  Pretty printing.  Remove cruft.
71428         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71429         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71430         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71431         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71432         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71433         * sysdeps/i386/fpu/e_asin.S: Likewise.
71434         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71435         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71436         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71437         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71438         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71439         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71440         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71441         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71442         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71443         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71444         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71445         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71446         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71447         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71448         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71449         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71450         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71451         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71452         * sysdeps/i386/fpu/e_log.S: Likewise.
71453         * sysdeps/i386/fpu/e_log10.S: Likewise.
71454         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71455         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71456         * sysdeps/i386/fpu/e_log2.S: Likewise.
71457         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71458         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71459         * sysdeps/i386/fpu/e_logf.S: Likewise.
71460         * sysdeps/i386/fpu/e_logl.S: Likewise.
71461         * sysdeps/i386/fpu/e_pow.S: Likewise.
71462         * sysdeps/i386/fpu/e_powf.S: Likewise.
71463         * sysdeps/i386/fpu/e_powl.S: Likewise.
71464         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71465         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71466         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71467         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71468         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71469         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71470         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71471         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71472         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71473         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71474         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71475         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71476         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71477         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71478         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71479         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71480         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71481         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71482         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71483         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71484         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71485         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71486         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71487         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71488         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71489         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71490         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71491         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71492         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71493         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71494         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71495         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71496         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71497         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71498         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71499         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71500         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71501         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71502         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71503         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71504         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71505         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71506         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71507         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71508         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71509         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71510         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71511         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71512         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71513         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71514         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71515         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71516         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71517         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71518         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71519         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71520         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71521         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71522         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71523         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71524         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71525         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71526         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71527         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71528         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71529         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71530         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71531         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71532         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71533         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71534         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71535         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71536         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71537         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71538         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71539         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71540         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71541         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71542         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71543         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71544         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71545         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71546         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71547         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71548         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71549         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71550         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71551         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71552         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71553         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71554         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71555         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71556         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71557         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71558         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71559         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71560         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71561         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71562         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71563         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71564         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71565         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71566         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71567         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71568         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71569         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71570         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71571         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71572         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71573         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71574         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71575         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71576         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71577         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71578         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71579         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71580         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71581         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71582         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71583         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71584         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71585         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71586         (__isnanf): Likewise.
71587         (__isinf_ns): Likewise.
71588         (__isinf_nsf): Likewise.
71589         (__finite): Likewise.
71590         (__finitef): Likewise.
71591         (__ieee754_sqrt): Define as macro.
71592         (__ieee754_sqrtf): Define as macro.
71593         (__ieee754_sqrtl): Define as macro.
71594         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71595         inlined copy.
71596         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71597         __FINITE_MATH_ONLY__ consistent.
71598         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71599
71600 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71601
71602         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71603         of rawmemchr.
71604
71605         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71606
71607 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71608
71609         * po/ja.po: Update from translation team.
71610
71611 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71612
71613         * locale/programs/locarchive.c (prepare_address_space): New function.
71614         (create_archive, enlarge_archive, open_archive): Use it.
71615
71616         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71617         inside [SHARED], where it is used.
71618
71619         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71620
71621         * nss/getent.c (netgroup_keys): Remove unused variable.
71622         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71623
71624 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71625
71626         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71627         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71628         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71629         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71630         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71631         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71632         * math/Makefile (libm-calls): Add s_isinf_ns.
71633         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71634         * math/multc3.c: Likewise.
71635         * math/s_casin.c: Likewise.
71636         * math/s_casinf.c: Likewise.
71637         * math/s_casinl.c: Likewise.
71638         * math/s_ccos.c: Likewise.
71639         * math/s_ccosf.c: Likewise.
71640         * math/s_ccosl.c: Likewise.
71641         * math/s_ctan.c: Likewise.
71642         * math/s_ctanf.c: Likewise.
71643         * math/s_ctanh.c: Likewise.
71644         * math/s_ctanhf.c: Likewise.
71645         * math/s_ctanhl.c: Likewise.
71646         * math/s_ctanl.c: Likewise.
71647         * math/w_fmod.c: Likewise.
71648         * math/w_fmodf.c: Likewise.
71649         * math/w_fmodl.c: Likewise.
71650         * math/w_remainder.c: Likewise.
71651         * math/w_remainderf.c: Likewise.
71652         * math/w_remainderl.c: Likewise.
71653         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71654         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71655         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71656         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71657         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71658         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71659         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71660         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71661
71662         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71663         of the number.
71664         * stdio-common/printf_fphex.c: Likewise.
71665         * stdio-common/printf_size.c: Likewise.
71666
71667         * math/e_exp10.c: Include math_private.h using <...> not "...".
71668         * math/e_exp10f.c: Likewise.
71669         * math/e_exp10l.c: Likewise.
71670         * math/e_exp2l.c: Likewise.
71671         * math/e_j0l.c: Likewise.
71672         * math/e_j1l.c: Likewise.
71673         * math/e_jnl.c: Likewise.
71674         * math/e_lgammal_r.c: Likewise.
71675         * math/e_rem_pio2l.c: Likewise.
71676         * math/e_scalb.c: Likewise.
71677         * math/e_scalbf.c: Likewise.
71678         * math/e_scalbl.c: Likewise.
71679         * math/k_cosl.c: Likewise.
71680         * math/k_sinl.c: Likewise.
71681         * math/k_tanl.c: Likewise.
71682         * math/s_cacoshf.c: Likewise.
71683         * math/s_catan.c: Likewise.
71684         * math/s_catanf.c: Likewise.
71685         * math/s_catanh.c: Likewise.
71686         * math/s_catanhf.c: Likewise.
71687         * math/s_catanhl.c: Likewise.
71688         * math/s_catanl.c: Likewise.
71689         * math/s_ccosh.c: Likewise.
71690         * math/s_ccoshf.c: Likewise.
71691         * math/s_ccoshl.c: Likewise.
71692         * math/s_cexp.c: Likewise.
71693         * math/s_cexpf.c: Likewise.
71694         * math/s_cexpl.c: Likewise.
71695         * math/s_clog.c: Likewise.
71696         * math/s_clog10.c: Likewise.
71697         * math/s_clog10f.c: Likewise.
71698         * math/s_clog10l.c: Likewise.
71699         * math/s_clogf.c: Likewise.
71700         * math/s_clogl.c: Likewise.
71701         * math/s_csin.c: Likewise.
71702         * math/s_csinf.c: Likewise.
71703         * math/s_csinh.c: Likewise.
71704         * math/s_csinhf.c: Likewise.
71705         * math/s_csinhl.c: Likewise.
71706         * math/s_csinl.c: Likewise.
71707         * math/s_csqrt.c: Likewise.
71708         * math/s_csqrtf.c: Likewise.
71709         * math/s_csqrtl.c: Likewise.
71710         * math/s_ctan.c: Likewise.
71711         * math/s_ctanf.c: Likewise.
71712         * math/s_ctanh.c: Likewise.
71713         * math/s_ctanhf.c: Likewise.
71714         * math/s_ctanhl.c: Likewise.
71715         * math/s_ctanl.c: Likewise.
71716         * math/s_ldexp.c: Likewise.
71717         * math/s_ldexpf.c: Likewise.
71718         * math/s_ldexpl.c: Likewise.
71719         * math/s_significand.c: Likewise.
71720         * math/s_significandf.c: Likewise.
71721         * math/s_significandl.c: Likewise.
71722         * math/w_acos.c: Likewise.
71723         * math/w_acosf.c: Likewise.
71724         * math/w_acosh.c: Likewise.
71725         * math/w_acoshf.c: Likewise.
71726         * math/w_acoshl.c: Likewise.
71727         * math/w_acosl.c: Likewise.
71728         * math/w_asin.c: Likewise.
71729         * math/w_asinf.c: Likewise.
71730         * math/w_asinl.c: Likewise.
71731         * math/w_atan2.c: Likewise.
71732         * math/w_atan2f.c: Likewise.
71733         * math/w_atan2l.c: Likewise.
71734         * math/w_atanh.c: Likewise.
71735         * math/w_atanhf.c: Likewise.
71736         * math/w_atanhl.c: Likewise.
71737         * math/w_cosh.c: Likewise.
71738         * math/w_coshf.c: Likewise.
71739         * math/w_coshl.c: Likewise.
71740         * math/w_dremf.c: Likewise.
71741         * math/w_exp10.c: Likewise.
71742         * math/w_exp10f.c: Likewise.
71743         * math/w_exp10l.c: Likewise.
71744         * math/w_exp2.c: Likewise.
71745         * math/w_exp2f.c: Likewise.
71746         * math/w_fmod.c: Likewise.
71747         * math/w_fmodf.c: Likewise.
71748         * math/w_fmodl.c: Likewise.
71749         * math/w_hypot.c: Likewise.
71750         * math/w_hypotf.c: Likewise.
71751         * math/w_hypotl.c: Likewise.
71752         * math/w_j0.c: Likewise.
71753         * math/w_j0f.c: Likewise.
71754         * math/w_j0l.c: Likewise.
71755         * math/w_j1.c: Likewise.
71756         * math/w_j1f.c: Likewise.
71757         * math/w_j1l.c: Likewise.
71758         * math/w_jn.c: Likewise.
71759         * math/w_jnf.c: Likewise.
71760         * math/w_jnl.c: Likewise.
71761         * math/w_lgamma.c: Likewise.
71762         * math/w_lgamma_r.c: Likewise.
71763         * math/w_lgammaf.c: Likewise.
71764         * math/w_lgammaf_r.c: Likewise.
71765         * math/w_lgammal.c: Likewise.
71766         * math/w_lgammal_r.c: Likewise.
71767         * math/w_log.c: Likewise.
71768         * math/w_log10.c: Likewise.
71769         * math/w_log10f.c: Likewise.
71770         * math/w_log10l.c: Likewise.
71771         * math/w_log2.c: Likewise.
71772         * math/w_log2f.c: Likewise.
71773         * math/w_log2l.c: Likewise.
71774         * math/w_logf.c: Likewise.
71775         * math/w_logl.c: Likewise.
71776         * math/w_pow.c: Likewise.
71777         * math/w_powf.c: Likewise.
71778         * math/w_powl.c: Likewise.
71779         * math/w_remainder.c: Likewise.
71780         * math/w_remainderf.c: Likewise.
71781         * math/w_remainderl.c: Likewise.
71782         * math/w_scalb.c: Likewise.
71783         * math/w_scalbf.c: Likewise.
71784         * math/w_scalbl.c: Likewise.
71785         * math/w_sinh.c: Likewise.
71786         * math/w_sinhf.c: Likewise.
71787         * math/w_sinhl.c: Likewise.
71788         * math/w_sqrt.c: Likewise.
71789         * math/w_sqrtf.c: Likewise.
71790         * math/w_sqrtl.c: Likewise.
71791         * math/w_tgamma.c: Likewise.
71792         * math/w_tgammaf.c: Likewise.
71793         * math/w_tgammal.c: Likewise.
71794
71795         * po/ja.po: Update from translation team.
71796
71797 2011-09-29  Andreas Jaeger  <aj@suse.de>
71798
71799         [BZ #13179]
71800         * sunrpc/netname.c (netname2host): Fix logic.
71801
71802         [BZ #6779]
71803         [BZ #6783]
71804         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71805         correctly.
71806         * math/w_remainder.c (__remainder): Likewise.
71807         * math/w_remainderf.c (__remainderf): Likewise.
71808         * math/libm-test.inc (remainder_test): Add test cases.
71809
71810 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71811
71812         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71813         sdiv_qrnnd.
71814
71815 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71816
71817         * string/test-memcmp.c: Avoid unncessary #defines.
71818         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71819
71820 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71821
71822         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71823         Use new sse2 version for core i3 - i7 as it's faster
71824         than sse42 version.
71825         (bit_Prefer_PMINUB_for_stringop): New.
71826         * sysdeps/x86_64/rawmemchr.S: Update.
71827         Replace with faster SSE2 version.
71828         * sysdeps/x86_64/memrchr.S: New file.
71829         * sysdeps/x86_64/memchr.S: Update.
71830         Replace with faster SSE2 version.
71831
71832 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71833
71834         * elf/dl-load.c (lose): Add cast to avoid warning.
71835
71836 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71837
71838         * po/ca.po: Update from translation team.
71839
71840         * inet/getnetgrent_r.c: Hook up nscd.
71841         * nscd/Makefile (routines): Add nscd_netgroup.
71842         (nscd-modules): Add netgroupcache.
71843         (CFLAGS-netgroupcache.c): Define.
71844         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71845         (cache_search): Add const to second parameter.
71846         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71847         INNETGR.
71848         (dbs): Add netgrdb entry.
71849         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
71850         (verify_persistent_db): Handle netgrdb.
71851         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
71852         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
71853         GETFDNETGR.
71854         (netgroup_response_header): Define.
71855         (innetgroup_response_header): Define.
71856         (datahead): Add netgroup_response_header and innetgroup_response_header
71857         elements.
71858         * nscd/nscd.conf: Add entries for netgroup cache.
71859         * nscd/nscd.h (dbtype): Add netgrdb.
71860         (_PATH_NSCD_NETGROUP_DB): Define.
71861         (netgroup_iov_disabled): Declare.
71862         (xmalloc, xcalloc, xrealloc): Move declarations here.
71863         (cache_search): Adjust prototype.
71864         Add netgroup-related prototypes.
71865         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
71866         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
71867         (__nscd_innetgr): Declare.
71868         * nscd/selinux.c (perms): Use access_vector_t as element type and
71869         add netgroup-related initializers.
71870         * nscd/netgroupcache.c: New file.
71871         * nscd/nscd_netgroup.c: New file.
71872         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
71873         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
71874         For four parameters use innetgr.
71875         * nss/nss_files/files-init.c: Add definition and callback for netgr.
71876         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
71877         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
71878         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
71879
71880         * nscd/connections.c (register_traced_file): Don't register file
71881         for disabled databases.
71882
71883 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
71884
71885         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
71886
71887         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
71888         from tree and freeing node.
71889
71890 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
71891
71892         * nss/nsswitch.c (__nss_database_lookup): Handle
71893         nss_parse_service_list out of memory case.
71894
71895 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
71896
71897         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
71898         out of memory case.
71899
71900 2011-10-04  Andreas Schwab  <schwab@redhat.com>
71901
71902         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
71903         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
71904         pass it down.
71905         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
71906         elf_machine_rela, elf_machine_lazy_rel.
71907         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
71908         (ELF_DYNAMIC_DO_REL): Likewise.
71909         (ELF_DYNAMIC_DO_RELA): Likewise.
71910         (ELF_DYNAMIC_RELOCATE): Likewise.
71911         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
71912         to ELF_DYNAMIC_DO_REL.
71913         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
71914         (dl_main): In trace mode always set __RTLD_NOIFUNC.
71915         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
71916         elf_machine_rela.
71917         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
71918         skip_ifunc, don't call ifunc function if non-zero.
71919         (elf_machine_rela): Likewise.
71920         (elf_machine_lazy_rel): Likewise.
71921         (elf_machine_lazy_rela): Likewise.
71922         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
71923         (elf_machine_lazy_rel): Likewise.
71924         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
71925         Likewise.
71926         (elf_machine_lazy_rel): Likewise.
71927         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
71928         Likewise.
71929         (elf_machine_lazy_rel): Likewise.
71930         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
71931         (elf_machine_lazy_rel): Likewise.
71932         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
71933         (elf_machine_lazy_rel): Likewise.
71934         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
71935         (elf_machine_lazy_rel): Likewise.
71936         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
71937         (elf_machine_lazy_rel): Likewise.
71938         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
71939         (elf_machine_lazy_rel): Likewise.
71940         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
71941         (elf_machine_lazy_rel): Likewise.
71942
71943 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
71944
71945         * nss/nss_files/files-init.c (_nss_files_init): Use static
71946         initialization for all the *_traced_file variables.
71947
71948 2011-09-28  Andreas Schwab  <schwab@redhat.com>
71949
71950         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71951
71952 2011-09-27  Roland McGrath  <roland@hack.frob.com>
71953
71954         [BZ #13226]
71955         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
71956
71957 2011-09-27  Andreas Schwab  <schwab@redhat.com>
71958
71959         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71960         Reread the line before reparsing it.
71961
71962 2011-09-26  Andreas Schwab  <schwab@redhat.com>
71963
71964         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
71965
71966 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
71967             Maxim Kuvyrkov  <maxim@codesourcery.com>
71968             Joseph Myers  <joseph@codesourcery.com>
71969
71970         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
71971         if needed for __stack_chk_guard.
71972
71973 2011-09-19  Roland McGrath  <roland@hack.frob.com>
71974
71975         * sysdeps/posix/spawni.c (script_execute): Always define it.
71976         It will be optimized away if unused.
71977         (maybe_script_execute): New function.
71978         (__spawni): Call it.
71979
71980         * Makerules: Don't include tls.make.
71981         (config-tls): Always set to thread.
71982         * tls.make.c: File removed.
71983
71984 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
71985
71986         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
71987         * config.make.in (CPPFLAGS-config): New substituted variable.
71988
71989 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
71990
71991         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
71992
71993         [BZ #13192]
71994         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
71995         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
71996
71997 2011-09-15  Roland McGrath  <roland@hack.frob.com>
71998
71999         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72000         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72001         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72002         (CALL_FAIL): Likewise.
72003         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72004         (CALL_FAIL): Macro removed.
72005         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72006
72007 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72008
72009         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72010         for __FINITE_MATH_ONLY__ == 1.
72011
72012 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72013
72014         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72015         __ieee754_sqrt instead of sqrt.
72016         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72017         __ieee754_sqrtf instead of sqrtf.
72018         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72019         __floorf instead of floorf.
72020         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72021         __floorf, __truncf instead of floorf, truncf.
72022
72023 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72024
72025         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72026
72027         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72028         __extern_always_inline.
72029         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72030         32-bit.
72031
72032 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72033
72034         * elf/rtld.c (dl_main): Also relocate in dependency order when
72035         doing symbol dependency testing.
72036
72037 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72038
72039         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72040         Always define `refsym'.
72041
72042 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72043
72044         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72045         (__FD_ELT): Renamed from __FDELT.
72046         * misc/bits/select2.h (__FD_ELT): Likewise.
72047         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72048         __FD_MASK instead of __FDELT, __FDMASK.
72049         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72050         Likewise.
72051         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72052         Likewise.
72053
72054         * elf/Makefile (gen-ldd): Fix pattern.
72055
72056         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72057         (init_tls): Likewise.
72058
72059 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72060
72061         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72062
72063 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72064
72065         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72066         `struct cmsghdr *' instead of `void *'.
72067         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72068         Likewise.
72069
72070 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72071
72072         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72073         if non-absolute.
72074         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72075         ldd_rewrite_script.
72076
72077 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72078
72079         * configure.in: Remove --with-tls option.
72080         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72081         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72082         out in case it is missing.
72083         * sysdeps/ia64/elf/configure.in: Likewise.
72084         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72085         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72086         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72087         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72088         * sysdeps/sh/elf/configure.in: Likewise.
72089         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72090         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72091         * sysdeps/x86_64/elf/configure.in: Likewise.
72092         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72093         * sysdeps/mach/hurd/tls.h: Likewise.
72094
72095         [BZ #13067]
72096         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72097
72098         [BZ #13090]
72099         * configure.in: Fix use of AC_INIT.
72100
72101         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72102
72103 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72104
72105         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72106         __set_errno.
72107         * malloc/hooks.c: Likewise.
72108
72109         [BZ #11929]
72110         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72111         variables statically.
72112         (narenas): Initialize.
72113         (list_lock): Initialize.
72114         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72115         initializtion of main_arena and list_lock.  Small cleanups.
72116         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72117         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72118         Add initializers to main_arena and mp_.
72119         (malloc_state): Remove pagesize member.  Change all users to use
72120         GLRO(dl_pagesize).
72121
72122         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72123         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72124         is always initialized.
72125
72126         * malloc/malloc.c: Removed unused configurations and dead code.
72127         * malloc/arena.c: Likewise.
72128         * malloc/hooks.c: Likewise.
72129         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72130
72131         * include/tls.h: Removed.  USE___THREAD must always be defined.
72132         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72133         * elf/dl-libc.c: Likewise.
72134         * elf/dl-tsd.c: Likewise.
72135         * include/errno.h: Likewise.
72136         * include/netdb.h: Likewise.
72137         * include/resolv.h: Likewise.
72138         * inet/herrno-loc.c: Likewise.
72139         * inet/herrno.c: Likewise.
72140         * malloc/arena.c: Likewise.
72141         * malloc/hooks.c: Likewise.
72142         * malloc/malloc.c: Likewise.
72143         * resolv/res-state.c: Likewise.
72144         * resolv/res_libc.c: Likewise.
72145         * sysdeps/i386/dl-machine.h: Likewise.
72146         * sysdeps/ia64/dl-machine.h: Likewise.
72147         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72148         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72149         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72150         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72151         * sysdeps/sh/dl-machine.h: Likewise.
72152         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72153         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72154         * sysdeps/unix/i386/sysdep.S: Likewise.
72155         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72156         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72157         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72158         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72159         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72160         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72161         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72162         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72163         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72164         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72165         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72166         * sysdeps/x86_64/dl-machine.h: Likewise.
72167         * tls.make.c: Likewise.
72168
72169         * configure.in: Remove --with-__thread option.  Make tests for
72170         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72171         tls_model attribute fail if no support is available.  Remove
72172         USE_IN_LIBIO.
72173         * Makeconfig: Adjust for dropped configure option.  All features are
72174         now mandatory.
72175         * Makerules: Likewise.
72176         * Versions.def: Likewise.
72177         * argp/argp-fmtstream.c: Likewise.
72178         * argp/argp-fmtstream.h: Likewise.
72179         * argp/argp-help.c: Likewise.
72180         * assert/assert.c: Likewise.
72181         * config.h.in: Likewise.
72182         * config.make.in: Likewise.
72183         * configure: Likewise.
72184         * configure.in: Likewise.
72185         * csu/Versions: Likewise.
72186         * csu/init.c: Likewise.
72187         * elf/tst-audit2.c: Likewise.
72188         * elf/tst-tls10.c: Likewise.
72189         * elf/tst-tls10.h: Likewise.
72190         * elf/tst-tls11.c: Likewise.
72191         * elf/tst-tls12.c: Likewise.
72192         * elf/tst-tls14.c: Likewise.
72193         * elf/tst-tlsmod11.c: Likewise.
72194         * elf/tst-tlsmod12.c: Likewise.
72195         * elf/tst-tlsmod13.c: Likewise.
72196         * elf/tst-tlsmod13a.c: Likewise.
72197         * elf/tst-tlsmod14a.c: Likewise.
72198         * elf/tst-tlsmod15b.c: Likewise.
72199         * elf/tst-tlsmod16a.c: Likewise.
72200         * elf/tst-tlsmod16b.c: Likewise.
72201         * elf/tst-tlsmod7.c: Likewise.
72202         * elf/tst-tlsmod8.c: Likewise.
72203         * elf/tst-tlsmod9.c: Likewise.
72204         * gmon/gmon.c: Likewise.
72205         * grp/fgetgrent_r.c: Likewise.
72206         * grp/putgrent.c: Likewise.
72207         * hurd/fopenport.c: Likewise.
72208         * include/libc-symbols.h: Likewise.
72209         * include/tls.h: Likewise.
72210         * intl/gettextP.h: Likewise.
72211         * intl/loadinfo.h: Likewise.
72212         * locale/global-locale.c: Likewise.
72213         * locale/localeinfo.h: Likewise.
72214         * mach/devstream.c: Likewise.
72215         * malloc/arena.c: Likewise.
72216         * malloc/set-freeres.c: Likewise.
72217         * misc/err.c: Likewise.
72218         * misc/getttyent.c: Likewise.
72219         * misc/mntent_r.c: Likewise.
72220         * posix/getopt.c: Likewise.
72221         * posix/wordexp.c: Likewise.
72222         * pwd/fgetpwent_r.c: Likewise.
72223         * resolv/Versions: Likewise.
72224         * resolv/res_hconf.c: Likewise.
72225         * shadow/fgetspent_r.c: Likewise.
72226         * shadow/putspent.c: Likewise.
72227         * stdio-common/printf_fphex.c: Likewise.
72228         * stdio-common/tmpfile.c: Likewise.
72229         * stdlib/abort.c: Likewise.
72230         * stdlib/fmtmsg.c: Likewise.
72231         * sunrpc/auth_unix.c: Likewise.
72232         * sunrpc/clnt_perr.c: Likewise.
72233         * sunrpc/clnt_tcp.c: Likewise.
72234         * sunrpc/clnt_udp.c: Likewise.
72235         * sunrpc/clnt_unix.c: Likewise.
72236         * sunrpc/openchild.c: Likewise.
72237         * sunrpc/svc_simple.c: Likewise.
72238         * sunrpc/svc_tcp.c: Likewise.
72239         * sunrpc/svc_udp.c: Likewise.
72240         * sunrpc/svc_unix.c: Likewise.
72241         * sunrpc/xdr.c: Likewise.
72242         * sunrpc/xdr_array.c: Likewise.
72243         * sunrpc/xdr_rec.c: Likewise.
72244         * sunrpc/xdr_ref.c: Likewise.
72245         * sunrpc/xdr_stdio.c: Likewise.
72246
72247 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72248
72249         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72250
72251 2011-07-03  Andreas Jaeger  <aj@suse.de>
72252
72253         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72254         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72255         regenerate with gen-libm-tests.pl.
72256
72257 2010-05-12  Petr Baudis  <pasky@suse.cz>
72258
72259         [BZ #11589]
72260         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72261         around j0() zero points by switching to j1().
72262         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72263         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72264         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72265         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72266
72267 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72268
72269         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72270         instead of 0.
72271         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72272         instead of 0.
72273         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72274         Patch in part by Pavel Roskin <proski@gnu.org>.
72275
72276         [BZ #13138]
72277         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72278         realloc.
72279         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72280         Free memory block if necessary.
72281
72282         [BZ #12847]
72283         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72284         be NULL.  Don't lock in this case.
72285
72286 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72287
72288         * elf/elf.h (ELFOSABI_GNU): New macro.
72289         (ELFOSABI_LINUX): Define to that.
72290
72291 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72292
72293         * string/strncat.c (strncat): Undef the symbol in case it has been
72294         defined in bits/string.h.
72295
72296 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72297
72298         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72299
72300         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72301         link map.
72302
72303 2011-08-17  Andreas Jaeger  <aj@suse.de>
72304
72305         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72306
72307 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72308             Ian Lance Taylor  <iant@google.com>
72309
72310         * math/libm-test.inc (lround_test): New testcase.
72311         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72312
72313 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72314
72315         * Makefile: Remove support for automatic cvs check-ins.
72316         * Makerules: Likewise.
72317         * config.make.in: Likewise.
72318         * configure.in: Likewise.
72319         * intl/Makefile: Likewise.
72320         * locale/Makefile: Likewise.
72321         * po/Makefile: Likewise.
72322         * posix/Makefile: Likewise.
72323         * sysdeps/gnu/Makefile: Likewise.
72324         * sysdeps/mach/hurd/Makefile: Likewise.
72325         * sysdeps/sparc/sparc32/Makefile: Likewise.
72326
72327         [BZ #13118]
72328         * posix/Makefile (bug-regex32-ENV): Define.
72329         Patch by John Stanley <jpsinthemix@verizon.net>.
72330
72331         * misc/Makefile (headers): Add bits/select2.h.
72332         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72333         * misc/bits/select2.h: New file.
72334         * include/bits/select2.h: New file.
72335         * debug/Makefile (routines): Add fdelt_chk.
72336         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72337         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72338         FD_ISSET.
72339         * debug/fdelt_chk.c: New file.
72340
72341         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72342         * wcsmbs/test-wmemcmp.c: Likewise.
72343         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72344         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72345
72346 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72347
72348         * string/Makefile (strop-tests): Add memcmp.
72349         * string/test-wmemcmp.c: New file.
72350         * string/test-memcmp.c: Add wmemcmp support.
72351
72352 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72353
72354         [BZ #13153]
72355         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72356         2011-07-19 change.
72357
72358         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72359         garbage value in a __mach_port_mod_refs call in the cases of the
72360         task-self and thread-self ports.
72361
72362 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72363
72364         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72365
72366 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72367
72368         * elf/dl-load.c (lose): Check for non-null L.
72369
72370 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72371
72372         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72373
72374         * elf/dl-libc.c (dlerror_run): Pass back error code from
72375         dl_catch_error.
72376
72377         [BZ #13123]
72378         * elf/dl-load.c (lose): Free l_origin if it is valid.
72379
72380         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72381         names.
72382         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72383         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72384         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72385         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72386         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72387         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72388
72389 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72390
72391         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72392         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72393         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72394         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72395         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72396         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72397         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72398         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72399         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72400         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72401
72402 2011-08-15  Alan Modra  <amodra@gmail.com>
72403
72404         [BZ #13092]
72405         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72406         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72407         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72408         ppc_mcount to static-only-routines.
72409         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72410         __mcount_internal.
72411         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72412         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72413
72414 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72415
72416         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72417         for finite and infinity parameters.
72418
72419 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72420
72421         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72422         and add nop instructions for throughput optimization.
72423         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72424
72425 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72426
72427         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72428         aligned copy for power7 with vector-scalar instructions.
72429         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72430
72431 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72432
72433         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72434         AVX check.
72435
72436 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72437
72438         [BZ #13144]
72439         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72440         last change.
72441
72442 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72443
72444         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72445         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72446         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72447         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72448         clock_gettime.
72449
72450 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72451
72452         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72453         Forgot to demangle the pointer.
72454
72455         * sysdeps/i386/sysdep.h: Define atom_text_section.
72456         * sysdeps/x86_64/sysdep.h: Likewise.
72457         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72458         section with atom_text_section.
72459         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72460         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72461         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72462         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72463         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72464
72465         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72466         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72467         already be defined.  Change to take two parameters and don't assign
72468         result to variable.  Adjust all users.
72469         Define INTERNAL_GETTIME if not already defined.
72470         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72471         call.
72472         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72473         HAVE_CLOCK_GETTIME_VSYSCALL.
72474         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72475
72476         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72477         gettimeofday vsyscall, just use time.
72478
72479 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72480
72481         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72482         <errno.h>.
72483
72484 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72485
72486         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72487         syscall on x86-64.
72488         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72489         syscall.
72490         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72491         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72492         syscall if possible.
72493
72494 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72495
72496         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72497         e_ident.  Don't pass to find_mapsXX.
72498         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72499
72500 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72501
72502         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72503         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72504         * sysdeps/x86_64/multiarch/strchr.S: Update.
72505         Check bit_slow_BSF bit.
72506         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72507         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72508         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72509
72510 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72511
72512         [BZ #13134]
72513         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72514         before glibc 2.15.
72515         (tryshell): Define.
72516         (__spawni): Change last parameter to be flag.  Test
72517         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72518         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72519         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72520         * posix/spawni.c: Likewise.
72521         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72522         * posix/spawnp.c: Likewise.  Change normal version to use
72523         SPAWN_XFLAGS_USE_PATH.
72524         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72525         SPAWN_XFLAGS_TRY_SHELL.
72526
72527         [BZ #13150]
72528         * posix/glob.h: Remove gcc 1.x support.
72529
72530         [BZ #13068]
72531         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72532
72533 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72534
72535         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72536         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72537         strrchr-sse2-bsf
72538         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72539         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72540         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72541         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72542         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72543         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72544
72545 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72546
72547         * sysdeps/x86_64/wcscmp.S: New file.
72548
72549         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72550         wcscmp-c wcscmp-sse2
72551         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72552         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72553         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72554         * wcsmbs/wcscmp.c: Allow renaming.
72555
72556 2011-09-05  David S. Miller  <davem@davemloft.net>
72557
72558         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72559         stack slot, rather than the struct return pointer slot.
72560         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72561         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72563         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72564
72565 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72566
72567         * po/ja.po: Update from translation team.
72568
72569         [BZ #13144]
72570         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72571         kernel in 64-bit binaries.
72572
72573 2011-09-01  David S. Miller  <davem@davemloft.net>
72574
72575         * elf/elf.h (HWCAP_SPARC_*): Move to..
72576         * sysdeps/sparc/sysdep.h: this new file and add new values.
72577         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72578         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72579         _DL_HWCAP_COUNT to 24.
72580         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72581         entries.
72582         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72583         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72584         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72585         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72586         instead of magic constants.
72587         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72588
72589 2011-08-31  David S. Miller  <davem@davemloft.net>
72590
72591         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72593         Reimplement to do errno handling inline.
72594         (SYSCALL_ERROR_HANDLER): New macro.
72595         (__SYSCALL_STRING): Do not do errno handling in asm.
72596         (__CLONE_SYSCALL_STRING): Delete.
72597         (__INTERNAL_SYSCALL_STRING): Delete.
72598         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72599         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72600         (PSEUDO): Reimplement to do errno handling inline.
72601         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72602         (SYSCALL_ERROR_HANDLER): New macro.
72603         (__SYSCALL_STRING): Do not do errno handling in asm.
72604         (__CLONE_SYSCALL_STRING): Delete.
72605         (__INTERNAL_SYSCALL_STRING): Delete.
72606         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72607         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72608         i386.
72609         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72610         (inline_syscall*): Add 'err' argument.
72611         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72612         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72613         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72614         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72615
72616         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72617         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72618
72619 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72620
72621         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72622
72623 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72624
72625         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72626         directive.
72627
72628 2011-08-24  David S. Miller  <davem@davemloft.net>
72629
72630         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72631
72632 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72633
72634         * elf/Makefile: Add rules to build and run unload8 test.
72635         * elf/unload8.c: New file.
72636         * elf/unload8mod1.c: New file.
72637         * elf/unload8mod1x.c: New file.
72638         * elf/unload8mod2.c: New file.
72639         * elf/unload8mod3.c: New file.
72640
72641         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72642         it wasn't used.
72643
72644 2011-08-23  David S. Miller  <davem@davemloft.net>
72645
72646         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72647         subtract stack bias.
72648         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72649         %sp not %fp in calculations.
72650         (_JMPBUF_UNWINDS_ADJ): Likewise.
72651
72652         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72653         (aio_suspend): Call it to force an exception region around the
72654         AIO_MISC_WAIT() invocation.
72655
72656 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72657
72658         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72659         backslash.
72660
72661 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72662
72663         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72664         protection macro.
72665         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72666         and <dl-machine.h>.
72667         (Elf64_FuncDesc): Remove.
72668
72669 2011-08-22  David S. Miller  <davem@davemloft.net>
72670
72671         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72672         sigaltstack check, add missing cfi directives.
72673         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72674         missing cfi directives, and sigaltstack handling.
72675
72676 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72677
72678         [BZ #11724]
72679         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72680         object is seen twice.
72681         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72682
72683         * elf/Makefile (distribute): Add tst-initorder2.c.
72684         (tests): Add tst-initorder2.
72685         (modules-names): Add tst-initorder2a tst-initorder2b
72686         tst-initorder2c tst-initorder2d.  Add rules to build them.
72687         ($(objpfx)tst-initorder2.out): New rule.
72688         * elf/tst-initorder2.c: New file.
72689         * elf/tst-initorder2.exp: New file.
72690
72691 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72692
72693         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72694
72695         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72696         dependencies back to end of function.
72697
72698         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72699         $(elfobjdir)/ld.so.
72700
72701 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72702
72703         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72704         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72705         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72706         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72707         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72708         of __vdso_gettimeofday.
72709         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72710         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72711         attribute_hidden.
72712         (_libc_vdso_platform_setup): Remove initialization of
72713         __vdso_gettimeofday and __vdso_time.
72714
72715 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72716
72717         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72718         and fgetc_unlocked.
72719         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72720         getc_unlocked.
72721
72722         * elf/dl-open.c (add_to_global): Report additions to the global scope
72723         for LD_DEBUG=scopes.
72724         (dl_open_worker): Also print scope of newly loaded dependencies.
72725         (_dl_show_scope): Indicate if there is no scope.
72726
72727         [BZ #13114]
72728         * stdio-common/Makefile (tests): Add bug24.
72729         * stdio-common/bug24.c: New file.
72730
72731 2011-08-19  Andreas Jaeger  <aj@suse.de>
72732
72733         [BZ #13114]
72734         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72735         non-existant file when using close-on-exec mode.
72736
72737 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72738
72739         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72740         the very first instruction.
72741
72742         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72743         the CFI state in the end.
72744         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72745         inclusion of dl-trampoline.h.
72746         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72747
72748 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72749
72750         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72751         expectations for long double.
72752
72753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72754         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72755
72756 2011-08-14  David S. Miller  <davem@davemloft.net>
72757
72758         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72759         artificual limit depends upon the system page size.
72760
72761 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72762
72763         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72764         * resolv/Makefile: Define CFLAGS-libresolv.
72765
72766 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72767
72768         * nss/makedb.c (compute_tables): Make variables used in nested
72769         function static.
72770
72771 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72772
72773         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72774         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72775         if buffer was too small.
72776
72777         * elf/pldd.c (main): Attach to all threads in the process.
72778         Rewrite /proc handling to use *at functions.
72779
72780 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72781
72782         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72783         specifies first scope to show.
72784         (dl_open_worker): Update callers.  Move printing scope of new
72785         object to before the relocation.
72786         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72787         * sysdeps/generic/ldsodefs.h: Update declaration.
72788
72789         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72790         string for the scope number.
72791
72792 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72793
72794         * nscd/servicescache.c (cache_addserv): Make sure written is always
72795         initialized.
72796
72797 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72798
72799         * sysdeps/i386/i486/bits/atomic.h
72800         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72801         statement expression, so as to suppress "set but not used" warning.
72802         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72803
72804         * string/strncat.c (STRNCAT): Use prototype definition.
72805
72806         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72807         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72808         -Iprograms here.
72809         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72810         (localedef-modules): Add localedef.
72811         (locale-modules): Add locale.
72812
72813         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72814         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72815         to avoid a warning.
72816
72817 2011-08-14  David S. Miller  <davem@davemloft.net>
72818
72819         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72820         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72821
72822 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72823
72824         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72825         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72826         * elf/rtld.c (dl_main): Set l_name of vDSO.
72827         Call _dl_show_scope when DL_DEBUG_SCOPES.
72828         (process_dl_debug): Recognize scopes flag and also set it for all.
72829         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72830         Declare _dl_show_scope.
72831
72832         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72833         (do_dlopen): Pass caller_dlopen to dl_open.
72834         (__libc_dlopen_mode): Initialize caller_dlopen.
72835
72836         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72837         of libc.  Make tolower call locale-independent.  Optimize a bit by
72838         using isdigit instead of isalnum.
72839         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72840
72841 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72842
72843         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72844         was a dependency or dynamically loaded.
72845
72846 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72847
72848         * intl/l10nflist.c: Allow architecture-specific pop function.
72849         * sysdeps/x86_64/l10nflist.c: New file.
72850
72851         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
72852         classification.
72853
72854 2011-08-10  Andreas Schwab  <schwab@redhat.com>
72855
72856         * include/dirent.h: Add libc_hidden_proto for scandirat and
72857         scandirat64.  Don't declare __scandirat64.
72858         * dirent/scandirat.c: Add libc_hidden_def.
72859         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
72860         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
72861
72862 2011-08-10  David S. Miller  <davem@davemloft.net>
72863
72864         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
72865         enum.
72866         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72867         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72868         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72869
72870 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
72871
72872         * Versions.def [libc]: Add GLIBC_2.15.
72873         * dirent/Makefile (routines): Add scandirat and scandirat64.
72874         * dirent/Versions [libc]: Export scandirat and scandirat64 for
72875         GLIBC_2.15.
72876         * dirent/dirent.h: Declare scandirat and scandirat64.
72877         * dirent/scandirat.c: New file.
72878         * dirent/scandirat64.c: New file.
72879         * sysdeps/wordsize-64/scandirat.c: New file.
72880         * sysdeps/wordsize-64/scandirat64.c: New file.
72881         * dirent/opendir.c: Define opendirat.
72882         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
72883         using scandirat.
72884         * dirent/scandir64.c: Adjust for scandir.c change.
72885         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
72886         __scandirat64, and __scandir_cancel_handler.
72887         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
72888         additional parameter and use openat instead of open (outside of ld.so).
72889         Add new __opendir as wrapper around __opendirat.
72890         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
72891         here without requiring old scandirat implementation.
72892
72893 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
72894
72895         * dirent/scandir.c (cancel_handler): Renamed to
72896         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
72897         defined.  Adjust users.
72898         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
72899         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
72900
72901 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
72902
72903         * string/test-string.h (IMPL): Use __STRING to expand name and then
72904         stringify it.
72905
72906         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
72907         of cleanups.
72908
72909 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72910
72911         * string/Makefile: Update.
72912         (strop-tests): Append strncat.
72913         * string/test-wcscmp.c: New file.
72914         New comprehensive test for wcscmp.
72915         * string/test-strcmp.c: Update.
72916         (WIDE): New define.
72917
72918 2011-07-22  Andreas Schwab  <schwab@redhat.com>
72919
72920         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
72921         line.
72922
72923 2011-07-26  Andreas Schwab  <schwab@redhat.com>
72924
72925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
72926         encoding to ACE if AI_IDN.
72927
72928 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
72929
72930         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
72931         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
72932
72933 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72934
72935         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
72936         Fix overflow bug in strncat.
72937         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
72938
72939         * string/test-strncat.c: Update.
72940         Add new tests for checking overflow bugs.
72941
72942 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72943
72944         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72945         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
72946         * sysdeps/i386/i686/multiarch/strcat.S: New file.
72947         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
72948         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
72949         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
72950         * sysdeps/i386/i686/multiarch/strncat.S: New file.
72951         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
72952         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
72953
72954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
72955         (USE_AS_STRCAT): Define.
72956         Add strcat and strncat support.
72957         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72958
72959 2011-07-25  Andreas Schwab  <schwab@redhat.com>
72960
72961         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
72962         __n bigger than INT_MAX+1.
72963         (__strncmp_g): Likewise.
72964
72965 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
72966
72967         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
72968         * libio/stido.h: Likewise.
72969
72970         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
72971         (AF_NFC): Define.
72972         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
72973         (AF_NFC): Define.
72974
72975         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
72976         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72977         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72978         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
72979         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72980
72981         [BZ #13021]
72982         * scripts/test-installation.pl: Don't expect libnss_test1 to be
72983         installed.
72984
72985         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
72986         typo.
72987         (_dl_x86_64_save_sse): Likewise.
72988
72989 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
72990
72991         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
72992         OSXSAVE.
72993         (_dl_x86_64_save_sse): Likewise.
72994
72995         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
72996
72997         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
72998
72999 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73000
73001         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73002         change.
73003         (_dl_x86_64_save_sse): Use correct AVX check.
73004
73005 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73006
73007         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73008         bug in strncpy/strncat.
73009         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73010
73011 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73012
73013         * string/tester.c (test_strcat): Add tests for different alignments
73014         of source and destination.
73015         (test_strncat): Likewise.
73016
73017 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73018
73019         [BZ #12852]
73020         * posix/glob.c (glob): Check passed in values before using them in
73021         expressions to avoid some overflows.
73022         (glob_in_dir): Likewise.
73023
73024         [BZ #13007]
73025         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73026         check for AVX enablement so that we don't crash with old kernels and
73027         new hardware.
73028         * elf/tst-audit4.c: Add same checks here.
73029         * elf/tst-audit6.c: Likewise.
73030
73031         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73032
73033 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73034
73035         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73036
73037 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73038
73039         * po/cs.po: Update from translation team.
73040         * po/bg.po: Likewise.
73041
73042 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73043
73044         * misc/sys/cdefs.h: Add support for const attribute.
73045         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73046         to gnu_dev_{major,minor,makedev} functions.
73047
73048 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73049
73050         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73051
73052 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73053
73054         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73055         strlen results.
73056
73057 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73058
73059         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73060         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73061         register in order to avoid conflicts with the soft frame pointer
73062         being held in r11 when necessary.
73063         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73064         (INTERNAL_VSYSCALL_NCS): Likewise.
73065
73066 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73067
73068         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73069         * elf/dl-fini.c (_dl_fini): Adjust caller.
73070         * elf/dl-close.c (_dl_close_worker): Likewise.
73071         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73072
73073 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73074
73075         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73076         "aux_cache->nlibs < 0".
73077
73078         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73079         in the reload-count case.
73080
73081 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73082
73083         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73084         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73085         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73086         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73087         * sysdeps/x86_64/multiarch/strcat.S: New file.
73088         * sysdeps/x86_64/multiarch/strncat.S: New file.
73089         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73090         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73091         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73092         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73093         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73094         (USE_AS_STRCAT): Define.
73095         Add strcat and strncat support.
73096         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73097         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73098         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73099         * string/strncat.c: Update.
73100         (USE_AS_STRNCAT): Define.
73101         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73102         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73103         and i7.
73104         * sysdeps/x86_64/multiarch/init-arch.h
73105         (bit_Prefer_PMINUB_for_stringop): New.
73106         (index_Prefer_PMINUB_for_stringop): Likewise.
73107         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73108         bit_Prefer_PMINUB_for_stringop.
73109
73110 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73111
73112         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73113         buffer64.
73114         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73115         of casting of buffer.
73116         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73117         buffer32 and buffer64.
73118         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73119         writes instead of casting of buffer.
73120         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73121         buffer32.
73122         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73123         casting of buffer.
73124
73125 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73126
73127         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73128
73129 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73130
73131         * nscd/nscd.c (termination_handler): Don't do anything for a database
73132         if it has not yet been initialized.
73133
73134 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73135
73136         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73137
73138 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73139
73140         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73141
73142 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73143
73144         * po/nl.po: Update from translation team.
73145         * po/sv.po: Likewise.
73146
73147 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73148
73149         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73150         now disallowed by GCC.
73151
73152         * configure.in (use-default-link): Default to yes if a test -shared
73153         link meets our qualifications.
73154         * configure: Regenerated.
73155
73156         * config.make.in (output-format): New variable.
73157         * configure.in: Check for ld --print-output-format support.
73158         * configure: Regenerated.
73159         * Makerules ($(common-objpfx)format.lds)
73160         [$(output-format) != unknown]: Just use $(output-format),
73161         instead of the linker-script munging.
73162
73163 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73164
73165         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73166         of $(common-objpfx)shlib.lds.
73167         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73168
73169         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73170         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73171
73172         * configure.in (-z relro check): Adjust test code to add a large
73173         writable data section after it.
73174         * configure: Regenerated.
73175
73176 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73177
73178         * configure.in (-z relro check): Fix test code to make the variable
73179         truly const.
73180         * configure: Regenerated.
73181
73182 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73183
73184         * nscd/nscd.h (struct traced_file): Define.
73185         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73186         elements.  Add traced_files.
73187         (inotify_fd): Declare.
73188         (register_traced_file): Declare.
73189         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73190         (inotify_fd): Export.
73191         (resolv_conf_descr): Remove.
73192         (nscd_init): Move inotify descriptor creation to main.
73193         Don't register files for notification here.
73194         (register_traced_file): New function.
73195         (invalidate_cache): Don't use reset_res to determine whether to call
73196         res_init, go through the list of registered files.
73197         (main_loop_poll): The inotify descriptors are now stored in the
73198         structures for the traced files.
73199         (main_loop_epoll): Likewise.
73200         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73201         to __nss_disable_nscd.
73202         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73203         for a database anymore.  Check the records for all the registered
73204         files instead.
73205         * nss/Makefile (libnss_files-routines): Add files-init.
73206         (libnss_db-routines): Add db-init.
73207         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73208         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73209         * nss/nss_db/db-init.c: New file.
73210         * nss/nss_files/files-init.c: New file.
73211         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73212         __nss_lookup_function.
73213         (__nss_lookup_function): Call nss_load_library.
73214         (nss_load_all_libraries): New function.
73215         (__nss_disable_nscd): Take parameter with callback function for files
73216         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73217         used for the cached services.
73218         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73219         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73220         options for features to all the files in nscd.
73221
73222         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73223
73224 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73225
73226         * csu/elf-init.c (__libc_csu_init): Comment typo.
73227
73228 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73229
73230         * po/pl.po: Update from translation team.
73231         * po/ja.po: Likewise.
73232         * po/ru.po: Likewise.
73233         * po/ko.po: Likewise.
73234         * po/fr.po: Likewise.
73235
73236 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73237
73238         * configure.in (.ctors/.dtors header and trailer check):
73239         Use an empirical test on a built program.
73240         * configure: Regenerated.
73241
73242         * configure.in (-z relro check): Use an empirical test on a built DSO.
73243         Detect, but do not require, on ia64.
73244         * configure: Regenerated.
73245
73246         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73247         Update tests that use readelf to use $READELF instead.
73248         * configure: Regenerated.
73249
73250 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73251
73252         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73253         if the result is not used.
73254
73255 2011-07-05  Andreas Jaeger  <aj@suse.de>
73256
73257         [BZ#9696]
73258         * stdlib/tst-strtod.c: Add testcase.
73259
73260 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73261
73262         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73263         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73264         The latter has a higher limit.  Take additional parameter to pass to
73265         the new function.
73266         (__pathconf): Pass file to __statfs_link_max.
73267         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73268         __statfs_link_max.
73269         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73270         __statfs_link_max.
73271
73272         [BZ #12868]
73273         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73274         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73275         Handle Lustre.
73276         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73277         (__statfs_filesize_max): Likewise.
73278         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73279
73280 2011-07-05  Andreas Jaeger  <aj@suse.de>
73281
73282         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73283
73284 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73285
73286         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73287         `status' variable.
73288         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73289         Likewise.
73290
73291 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73292
73293         * Makefile (strop-tests): Add strncat.
73294         * string/test-strncat.c: New file.
73295
73296 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73297
73298         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73299
73300 2011-06-21  Andreas Jaeger  <aj@suse.de>
73301
73302         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73303         Copy rule from iconvdata/Makefile.
73304
73305 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73306
73307         [BZ #12922]
73308         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73309         but no long options are defined, just return 'W'.
73310
73311 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73312
73313         [BZ #9696]
73314         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73315
73316 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73317
73318         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73319         netgroups to read.
73320         (innetgr): Likewise.
73321
73322 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73323
73324         * config.make.in (install_root): Default to $(DESTDIR).
73325
73326 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73327
73328         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73329
73330 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73331
73332         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73333
73334         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73335         containing directory rather than embedding absolute directory names.
73336
73337         * scripts/check-local-headers.sh: Rewritten using awk.
73338         Match by word, not by line.  Print error messages for matches.
73339         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73340
73341         * Makerules [shlib-lds-flags empty]:
73342         ($(common-objpfx)libc_pic.opts): New target.
73343         ($(common-objpfx)libc_pic.os.clean): New target.
73344         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73345
73346         * config.make.in (OBJCOPY): New variable.
73347         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73348         * configure: Regenerated.
73349
73350         * config.make.in (use-default-link): New variable.
73351         * configure.in (use_default_link): Grok --with-default-link to set it.
73352         * configure: Regenerated.
73353         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73354         (shlib-lds, shlib-lds-flags): Define to empty.
73355
73356         * Makerules (shlib-lds): New variable.
73357         (shlib-lds-flags): New variable.
73358         (build-shlib, build-moduile, build-module-asneeded): Use it.
73359         ($(common-objpfx)libc.so): Use $(shlib-lds).
73360         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73361         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73362
73363         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73364         DT_FLAGS/DT_FLAGS_1 with zero flags.
73365
73366         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73367         linker script munging.
73368
73369 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73370
73371         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73372         as 128-bit value.
73373         * crypt/sha512.c (sha512_process_block): Perform total addition using
73374         128-bit if possible.
73375         (__sha512_finish_ctx): Likewise.
73376         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73377         as 64-bit value.
73378         * crypt/sha256.c (SWAP64): Define.
73379         (sha256_process_block): Perform total addition using 64-bit if
73380         possible.
73381         (__sha256_finish_ctx): Likewise.
73382
73383 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73384
73385         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73386         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73387         * nscd/hstcache.c (cache_addhst): Likewise.
73388         * nscd/grpcache.c (cache_addgr): Likewise.
73389         * nscd/aicache.c (addhstaiX): Likewise.
73390         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73391
73392 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73393
73394         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73395         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73396         * nscd/hstcache.c (cache_addhst): Likewise.
73397         * nscd/grpcache.c (cache_addgr): Likewise.
73398         * nscd/aicache.c (addhstaiX): Likewise.
73399
73400 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73401
73402         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73403         domain only when needed.
73404
73405 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73406
73407         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73408         is always restored.
73409
73410 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73411
73412         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73413         are re-adding the entry.
73414         * nscd/servicescache.c (cache_addserv): Likewise.
73415
73416 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73417
73418         * sysdeps/generic/dl-irel.h: fix protection against multiple
73419         inclusions.
73420         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73421
73422 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73423
73424         [BZ #12935]
73425         * malloc/memusage.sh: Fix quoting in message.
73426         * debug/xtrace.sh: Likewise.
73427
73428         * configure.in: Remove support for --experimental-malloc option, make
73429         it the default.
73430         * config.make.in: Likewise.
73431         * malloc/Makefile: Likewise.
73432
73433 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73434
73435         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73436         two-byte characters.
73437
73438 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73439
73440         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73441         AC_CACHE_CHECK invocation.
73442         * configure: Regenerated.
73443
73444         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73445
73446 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73447
73448         [BZ #12350]
73449         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73450         bit from old_res_options.
73451
73452         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73453
73454         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73455         value type for setfct.
73456
73457 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73458
73459         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73460         __gettimeofday instead of gettimeofday.
73461
73462 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73463
73464         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73465
73466 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73467
73468         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73469
73470         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73471         info.
73472
73473 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73474
73475         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73476         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73477         strcpy-sse2-unaligned strncpy-sse2-unaligned
73478         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73479         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73480         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73481         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73482         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73483         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73484         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73485         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73486         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73487         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73488         (STRCPY): Support SSE2 and SSSE3 versions.
73489
73490 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73491
73492         [BZ #12874]
73493         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73494         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73495         kernels which artificially limit size of requests.
73496
73497 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73498
73499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73500         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73501         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73502         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73503         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73504         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73505         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73506         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73507         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73508         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73509         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73510         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73511         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73512         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73513         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73514         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73515         Enable unaligned load optimization for Intel Core i3, i5 and i7
73516         processors.
73517         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73518         Define.
73519         (index_Fast_Unaligned_Load): Define.
73520         (HAS_FAST_UNALIGNED_LOAD): Define.
73521
73522 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73523
73524         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73525
73526 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73527
73528         [BZ #12907]
73529         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73530         until it is clear that the information is realy needed.
73531         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73532
73533 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73534
73535         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73536
73537 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73538
73539         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73540         /sys/devices/system/cpu/online if it is usable.
73541
73542         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73543         reading the information from the /proc filesystem to once a second.
73544
73545 2011-06-21  Andreas Jaeger  <aj@suse.de>
73546
73547         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73548         NULL after inclusion of kernel headers.
73549
73550 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73551
73552         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73553         calls to internal_setent.
73554
73555         [BZ #12885]
73556         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73557         addresses using gethostbyname4_r ignore IPv4 addresses.
73558
73559         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73560         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73561
73562         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73563
73564 2011-06-20  David S. Miller  <davem@davemloft.net>
73565
73566         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73567         inclusions.
73568         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73569
73570         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73571         (elf_irel): Use it.
73572         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73573         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73574         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73575         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73576         * sysdeps/x86_64/dl-irel.h: Likewise.
73577
73578         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73579         * elf/dl-sym.c: Likewise.
73580
73581 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73582
73583         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73584         need to dereference resplen2.
73585
73586 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73587
73588         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73589
73590 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73591
73592         * Makeconfig: Define vardbdir and inst_vardbdir.
73593         * nss/Makefile: Add rules to install db-Makefile.
73594
73595         * nss/nss_db/db-XXX.c: Cleanup.
73596
73597         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73598         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73599         GLIBC_PRIVATE.
73600         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73601         * nss/makedb.c: Implement -g option to specify that value strings
73602         are generated and should not be added to table iterated over for
73603         get*ent calls.
73604         * nss/nss_db/db-initgroups.c: New file.
73605
73606         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73607         interface.
73608
73609         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73610         (internal_getgrouplist): Adjust to name change.
73611         Update use_initgroups_entry if this is not the first call.
73612         * nss/databases.def: Add initgroups entry.
73613
73614         * nss/makedb.c (compute_tables): Check result of multiple hash table
73615         sizes to minimize maximum chain length.
73616
73617 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73618
73619         * Versions.def: Add entry for libnss_db.
73620         * shlib-versions: Likewise.
73621         * nss/Makefile: Add rules to build libnss_db.
73622         * nss/Versions: Add libnss_db information.  Organize libnss_files
73623         entries better.
73624         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73625         makedb progra.  Some minor improvements to generate smaller files.
73626         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73627         here from...
73628         * nss/makedb.c: ...here.
73629         Improve database format to be smaller and require less memory at
73630         runtime.
73631         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73632         db anymore.
73633         * nss/nss_db/db-netgrp.c: Likewise.
73634         * nss/nss_db/db-open.c: Likewise.
73635         * nss/nss_files/flies-XXX.x: Adjust comments.
73636         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73637         * nss/nss_files/files-grp.c: Likewise.
73638         * nss/nss_files/files-hosts.c: Likewise.
73639         * nss/nss_files/files-network.c: Likewise.
73640         * nss/nss_files/files-proto.c: Likewise.
73641         * nss/nss_files/files-pwd.c: Likewise.
73642         * nss/nss_files/files-rpc.c: Likewise.
73643         * nss/nss_files/files-service.c: Likewise.
73644         * nss/nss_files/files-sgrp.c: Likewise.
73645         * nss/nss_files/files-spwd.c: Likewise.
73646         * nss/nss_db/db-alias.c: Removed.
73647         * nss/nss_db/dummy-db.h: Removed.
73648
73649 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73650
73651         * nss/makedb.c: Rewritten to not use database library.
73652         * nss/Makefile: Update to build new makedb program.
73653
73654 2011-06-14  Andreas Jaeger  <aj@suse.de>
73655
73656         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73657         memset declaration.
73658
73659 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73660
73661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73662         tmpbuf.
73663
73664 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73665
73666         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73667         * elf/Makefile ($(objpfx)ld.so): Likewise.
73668
73669         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73670         Don't list ld.so twice in dependencies.
73671
73672         * posix/bug-regex31.c: Include <stdlib.h>.
73673
73674         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73675
73676         * nis/nss_compat/compat-spwd.c
73677         (getspent_next_nss_netgr): Remove unused variable.
73678         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73679
73680         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73681         nonmembers" output to use the right array.
73682
73683         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73684
73685         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73686
73687         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73688         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73689         * catgets/gencat.c (read_input_file): Likewise.
73690         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73691
73692         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73693         variable definition inside #if's controlling its use.
73694
73695         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73696
73697         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73698
73699         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73700
73701         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73702         unreachable code.
73703
73704         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73705
73706         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73707         * configure: Regenerated.
73708
73709         * Makerules: Revert last change.
73710         * elf/Makefile: Likewise.
73711
73712 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73713
73714         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73715         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73716         (reloc-link): Likewise.
73717
73718 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73719
73720         * elf/Makefile: Add rules to build pldd.
73721         * elf/pldd.c: New file.
73722         * elf/pldd-xx.c: New file.
73723
73724 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73725
73726         * version.h: Update for 2.15 development version.
73727
73728 2011-06-07  David S. Miller  <davem@davemloft.net>
73729
73730         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73731         ifuncs.
73732         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73733         elf_machine_lazy_rel): Likewise.
73734         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73735         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73736         elf_machine_lazy_rel): Likewise.
73737         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73738         dl_hwcap via passed in argument.
73739         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73740         Likewise.
73741
73742 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73743
73744         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73745
73746 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73747
73748         [BZ #12849]
73749         * manual/fdl-1.1.texi: New file, verbatim from:
73750         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73751         * manual/lgpl-2.1.texi: New file, verbatim from:
73752         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73753         * manual/Makefile (licenses): New variable, list those new file names.
73754         (texis): Use it.
73755         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73756
73757         * manual/fdl.texi: File removed.
73758         * manual/lesser.texi: File removed.
73759         * manual/libc.texinfo (Copying, Documentation License):
73760         Use new @include file names, put @appendix directive before @include.
73761
73762 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73763
73764         [BZ #12841]
73765         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73766         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73767         (mq_open): Add __NTH.
73768
73769 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73770
73771         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73772         Assume Intel Core i3/i5/i7 processor if AVX is available.
73773
73774 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73775
73776         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73777         typo.
73778
73779 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73780
73781         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73782         memory.  Use alloca_account.  Fix memory leak when retrying.
73783
73784 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73785
73786         * version.h (RELEASE): Bump for 2.14 release.
73787         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73788
73789         * config.make.in (RANLIB): Remove entry.
73790
73791 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73792
73793         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73794         (libc.pot): Work around missing support for .ksh extension in xgettext.
73795
73796         [BZ #12684]
73797         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73798         if both request failed.
73799         (send_dg): In case of server errors clear resplen or *resplen2.
73800
73801         [BZ #12454]
73802         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73803         when there are multiple maps.
73804         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73805         (_dl_fini): Remove test here.
73806
73807         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73808
73809 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73810
73811         [BZ #12350]
73812         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73813         bit from old_res_options.
73814         (gaih_inet): Likewise.
73815
73816         [BZ #11099]
73817         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73818         as signed.
73819
73820         * resolv/res_init.c (res_setoptions): Make the code more compact.
73821
73822         [BZ #11558]
73823         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73824         set RES_USEVC.
73825
73826         [BZ #11634]
73827         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73828
73829         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73830
73831         [BZ #11781]
73832         * malloc/malloc.h: Declare malloc hook variables as volatile.
73833
73834         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73835         in last patch.
73836
73837         [BZ #11799]
73838         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73839         raise in the comment.
73840         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73841         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73842         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73843
73844 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73845
73846         [BZ #12811]
73847         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73848         grow the buffers more if it already has to be sufficient.
73849         (build_wcs_upper_buffer): Likewise.
73850         * posix/regexec.c (check_matching): Likewise.
73851         (clean_state_log_if_needed): Likewise.
73852         (extend_buffers): Don't enlarge buffers beyond size of the input
73853         buffer.
73854         Patches mostly by Emil Wojak <emil@wojak.eu>.
73855         * posix/bug-regex32.c: New file.
73856         * posix/Makefile (tests): Add bug-regex32.
73857
73858         * locale/findlocale.c (_nl_find_locale): Return right away if
73859         _nl_explode_name failed.
73860         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
73861
73862         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
73863
73864         * debug/xtrace.sh: Unify messages.
73865         * malloc/memusage.sh: Likewise.
73866
73867         [BZ #12813]
73868         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
73869         time symbol from vDSO.  Substitute with vsyscall if not available.
73870         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
73871         __vdso_time.
73872
73873         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
73874         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
73875         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
73876         Add sendmmsg and internal_sendmmsg.
73877         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
73878         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
73879         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
73880
73881         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
73882         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
73883         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
73884
73885 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
73886
73887         [BZ #12813]
73888         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
73889         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
73890         available.
73891         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
73892         __vdso_getcpu.
73893
73894         [BZ #12814]
73895         * iconvdata/Makefile (tests): Add bug-iconv9.
73896         * iconvdata/bug-iconv9.c: New file.
73897
73898 2011-05-27  Andreas Schwab  <schwab@redhat.com>
73899
73900         [BZ #12814]
73901         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
73902
73903 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
73904
73905         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
73906         (struct user_regs_struct): Change intcs field back to cs.
73907
73908 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
73909
73910         * po/ja.po: Update from translation team.
73911
73912 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
73913
73914         [BZ #12795]
73915         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
73916         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
73917
73918 2011-05-20  Andreas Schwab  <schwab@redhat.com>
73919
73920         * stdlib/longlong.h: Update from GCC.
73921
73922 2011-05-23  Andreas Schwab  <schwab@redhat.com>
73923
73924         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
73925         parameter name.
73926         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
73927         Add parameter name.
73928         (__sysconf): Pass it down.
73929
73930 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
73931
73932         [BZ #12671]
73933         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
73934         some situations.
73935         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
73936         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
73937         add in in __libc_use_alloca calls.  Adjust callers.
73938         (glob): Use malloc in some situations.
73939
73940         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
73941         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
73942         pltexit.
73943
73944 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
73945
73946         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
73947         and CLOCK_BOOTTIME_ALARM.
73948
73949         [BZ #12782]
73950         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
73951         is returned.
73952
73953         * string/_strerror.c (__strerror_r): Print negative errors as signed
73954         numbers.
73955
73956         [BZ #12777]
73957         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
73958         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
73959         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
73960
73961         * configure.in: Fix typo in redirection and correct removal of test
73962         files in two cases.
73963
73964         [BZ #12788]
73965         * locale/setlocale.c (new_composite_name): Fix test to check for
73966         identical name of all categories.
73967
73968         [BZ #12792]
73969         * libio/filedoalloc.c (local_isatty): New function.
73970         (_IO_file_doallocate): Use local_isatty.
73971         * stdio-common/perror.c (perror): In case a new stream is used
73972         forward the stream error.
73973         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
73974         error flag.
73975
73976 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
73977
73978         [BZ #11884]
73979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
73980         alloca.
73981         * include/alloca.h (extend_alloca_account): Define.
73982
73983         [BZ #11857]
73984         * posix/regex.h: Fix comments with documentation of user-accessible
73985         fields after compilation and describe correct free'ing of pattern
73986         after re_compile_pattern.
73987         Patch by Reuben Thomas <rrt@sc3d.org>.
73988
73989 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
73990
73991         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
73992         and -mno-altivec to prevent the compiler from using Altivec and/or
73993         VSX instructions when the corresponding registers are not available.
73994
73995 2011-05-19  Andreas Schwab  <schwab@redhat.com>
73996
73997         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
73998
73999 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74000
74001         * libio/freopen.c (freopen): Use __dup2, not dup2.
74002         * libio/freopen64.c (freopen64): Likewise.
74003
74004 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74005
74006         [BZ #12775]
74007         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74008         * math/Makefile (tests): Add test-powl.
74009         (CFLAGS-test-powl.c): Define.
74010         * math/test-powl.c: New file.
74011
74012 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74013
74014         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74015
74016 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74017
74018         [BZ #11837]
74019         * iconvdata/gb18030.c: Update to GB18020-2005.
74020
74021 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74022
74023         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74024         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74025         Patch by Aharon Robbins <arnold@skeeve.com>.
74026
74027         [BZ #11892]
74028         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74029         on the stack.
74030
74031         [BZ #11895]
74032         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74033         through underflows.
74034
74035         [BZ #12766]
74036         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74037         point to strings before performing equality test for error_one_per_line
74038         mode.
74039
74040         [BZ #11697]
74041         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74042
74043         [BZ #11820]
74044         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74045         (struct user_fpregs_struct): Avoid __uint*_t types.
74046
74047         [BZ #6420]
74048         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74049         symbol info.  Use it instead of calling _dl_addr locally.
74050         (lock_and_info): New function.
74051         (tr_freehook): Call lock_and_info and pass symbol info as additional
74052         parameter to tr_where.
74053         (tr_mallochook): Likewise.
74054         (tr_reallochook): Likewise.
74055         (tr_memalignhook): Likewise.
74056
74057         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74058         used and couldn't be at all thread-safe.
74059
74060 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74061
74062         * libio/freopen.c (freopen): Don't close old file descriptor
74063         before the new one is opened.  Instead dup the new file descriptor
74064         to the old one after the new stream is created.
74065         * libio/freopen64.c (freopen64): Likewise.
74066         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74067         * libio/fileops.c (_IO_new_file_close_it): Handle new
74068         _IO_FLAGS2_NOCLOSE flag.
74069         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74070         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74071         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74072         _IO_FLAGS2_NOCLOSE flag.
74073         * include/unistd.h: Add hidden_proto for dup3.
74074         Define __have_dup3.
74075         * io/dup3.c: Define hidden symbol.
74076         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74077
74078         [BZ #7101]
74079         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74080         when an incomplete long option is used.
74081         * posix/tst-getopt_long1.c: New file.
74082         * posix/Makefile (tests): Add tst-getopt_long1.
74083
74084         [BZ #10138]
74085         * scripts/config.guess: Update from autoconf-2.68.
74086         * scripts/config.sub: Likewise.
74087
74088         [BZ #10157]
74089         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74090         tests into ...
74091         (has_cpuclock): ...this.  New function.
74092         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74093         macro here based on has_cpuclock code.
74094
74095         [BZ #10149]
74096         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74097         First byte (not low byte) is now always NUL.
74098         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74099
74100         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74101         Use non-cancelable interfaces.
74102
74103         [BZ #9809]
74104         * locale/iso-639.def: Add entry for Sorani.
74105
74106         [BZ #11901]
74107         * include/stdlib.h: Move include protection to the right place.
74108         Define abort_msg_s.  Declare __abort_msg with it.
74109         * stdlib/abort.c (__abort_msg): Adjust type.
74110         * assert/assert.c (__assert_fail_base): New function.  Majority
74111         of code from __assert_fail.  Allocate memory for __abort_msg with
74112         mmap.
74113         (__assert_fail): Now call __assert_fail_base.
74114         * assert/assert-perr.c: Remove bulk of implementation.  Use
74115         __assert_fail_base.
74116         * include/assert.hL Declare __assert_fail_base.
74117         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74118         mmap.
74119         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74120
74121 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74122
74123         [BZ #11952]
74124         [BZ #12453]
74125         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74126         until all modules are registered in the DTV.
74127         * elf/Makefile: Add rules to build and run tst-tls19.
74128         * elf/tst-tls19.c: New file.
74129         * elf/tst-tls19mod1.c: New file.
74130         * elf/tst-tls19mod2.c: New file.
74131         * elf/tst-tls19mod3.c: New file.
74132         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74133
74134         [BZ #12083]
74135         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74136         correctly.
74137
74138         [BZ #12601]
74139         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74140         two-byte sequence errors.
74141         * iconvdata/Makefile (tests): Add bug-iconv8.
74142         * iconvdata/bug-iconv8.c: New file.
74143
74144         [BZ #12626]
74145         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74146         buf2 definition.
74147
74148         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74149
74150         [BZ #12432]
74151         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74152         (dummy_getcfa): New function.
74153         (init): Get _Unwind_GetCFA address, use dummy if not found.
74154         (backtrace_helper): In recursion check, also check whether CFA changes.
74155         (__backtrace): Completely initialize arg.
74156
74157         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74158         storing incomplete byte sequence in state object.  Avoid testing for
74159         guaranteed too small input if we know there is enough data available.
74160
74161 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74162
74163         * Makeconfig (+link-pie): Indent.
74164         * Rules (binaries-pie): Define if $(have-fpie) and
74165         $(build-shared).
74166         (binaries-shared): Also filter out $(binaries-pie).
74167         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74168         * nscd/Makefile (others-pie): Add nscd.
74169         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74170         ($(objpfx)nscd): Remove command override.
74171         * login/Makefile (others-pie): Add pt_chown.
74172         ($(objpfx)pt_chown): Remove command override.
74173         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74174         remove command overrides.
74175
74176 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74177
74178         * libio/tst_putwc.c: Fix error messages.
74179
74180         [BZ #12724]
74181         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74182         currently writing and seek to current position when not.
74183         * libio/Makefile (tests): Add bug-fclose1.
74184         * libio/bug-fclose1.c: New file.
74185
74186 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74187
74188         [BZ #12511]
74189         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74190         don't set DF_1_NODELETE here.
74191         (do_lookup_x): When entering new entry test for copy relocation
74192         and if necessary set DF_1_NODELETE flag.
74193         * elf/tst-unique4.cc: New file.
74194         * elf/tst-unique4.h: New file.
74195         * elf/tst-unique4lib.cc: New file.
74196         * elf/Makefile: Add rules to build and run tst-unique4.
74197         Patch by Piotr Bury <pbury@goahead.com>.
74198
74199 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74200
74201         [BZ #12052]
74202         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74203
74204         [BZ #12625]
74205         * misc/mntent_r.c (addmntent): Flush the stream after the output
74206
74207         [BZ #12393]
74208         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74209         (is_trusted_path_normalize): Skip initial colon.  Append slash
74210         to empty buffer.  Duplicate is_trusted_path code but allow
74211         constructed patch to be prefix.
74212         (is_dst): Allow $ORIGIN followed by /.
74213         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74214         Correct testing of result of is_trusted_path_normalize
74215         (decompose_rpath): Fix warning.
74216
74217 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74218
74219         [BZ #11257]
74220         * grp/initgroups.c (internal_getgrouplist): When we found the service
74221         list through the initgroups entry in nsswitch.conf do not always
74222         continue on a successful lookup.  Don't always use the
74223         __nss_group_database value if it is set.
74224         * nss/nsswitch.conf (initgroups): Change action for successful db
74225         lookup to continue for compatibility.
74226
74227 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74228
74229         [BZ #11532]
74230         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74231         and CP774 modules.
74232         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74233         and CP774 modules.
74234         * iconvdata/tst-tables.sh: Likewise.
74235         * iconvdata/cp770.c: New file.
74236         * iconvdata/cp771.c: New file.
74237         * iconvdata/cp772.c: New file.
74238         * iconvdata/cp773.c: New file.
74239         * iconvdata/cp774.c: New file.
74240         * iconvdata/testdata/CP770: New file.
74241         * iconvdata/testdata/CP770..UTF8: New file.
74242         * iconvdata/testdata/CP771: New file.
74243         * iconvdata/testdata/CP771..UTF8: New file.
74244         * iconvdata/testdata/CP772: New file.
74245         * iconvdata/testdata/CP772..UTF8: New file.
74246         * iconvdata/testdata/CP773: New file.
74247         * iconvdata/testdata/CP773..UTF8: New file.
74248         * iconvdata/testdata/CP774: New file.
74249         * iconvdata/testdata/CP774..UTF8: New file.
74250
74251         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74252         END CHARMAP line.
74253         * iconvdata/gen-8bit-gap.sh: Likewise.
74254         * iconvdata/gen-8bit.sh: Likewise.
74255
74256         * locale/iso-639.def: Add ary entry.
74257
74258         [BZ #11258]
74259         * locale/C-translit.h.in: Add U20A1 transliteration.
74260
74261         [BZ #12178]
74262         * locale/iso-639.def: Add wae entry.
74263         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74264
74265         [BZ #12545]
74266         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74267         for n.
74268
74269         [BZ #12711]
74270         * locale/C-translit.h.in: Add entry for U20B9.
74271         Patch by pravin.d.s@gmail.com.
74272
74273 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74274
74275         [BZ #12713]
74276         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74277         ENAMETOOLONG use generic getcwd.
74278         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74279         in rtld.  Use *stat64.
74280         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74281         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74282         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74283         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74284         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74285         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74286         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74287         __fstatat64 macros.
74288         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74289         * dirent/rewinddir.c: Add libc_hidden_def.
74290         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74291         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74292
74293         * include/dirent.h (__alloc_dir): Add flags parameter.
74294         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74295         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74296         __alloc_dir.
74297         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74298         from fdopendir if O_CLOEXEC is already set.
74299
74300 2011-03-15  Alan Modra  <amodra@gmail.com>
74301
74302         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74303         l_tls_firstbyte_offset non-zero.  Save padding offset in
74304         l_tls_firstbyte_offset for later use.
74305         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74306         freeing static tls block.
74307
74308 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74309
74310         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74311         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74312         being defined by the kernel headers.
74313
74314 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74315
74316         [BZ #12734]
74317         * resolv/resolv.h: Define RES_NOTLDQUERY.
74318         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74319         no-tld-query and set RES_NOTLDQUERY.
74320         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74321         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74322         modern BIND to search name as TLD unless forbidden.
74323
74324 2011-05-07  Petr Baudis  <pasky@suse.cz>
74325             Ulrich Drepper  <drepper@gmail.com>
74326
74327         [BZ #12393]
74328         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74329         (is_trusted_path): ...to here.
74330         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74331         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74332         using is_trusted_path_normalize() in setuid scripts.
74333
74334 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74335
74336         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74337         __BEGIN/__END_DECLS.
74338
74339 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74340
74341         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74342         NSS_STATUS_NOTFOUND if no record was found.
74343
74344 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74345
74346         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74347         (headers-not-in-tirpc): Remove rpc/netdb.h
74348         * resolv/netdb.h: Revert last change.
74349
74350 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74351
74352         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74353         circular dependency between libgcc.a and libc.a.
74354
74355 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74356
74357         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74358         * nis/Makefile: Don't install rpcsvc/*.
74359         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74360         instead of <rpc/types.h>.
74361         (MAXHOSTNAMELEN): Define.
74362
74363 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74364
74365         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74366
74367 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74368
74369         [BZ #12714]
74370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74371         gethostbyname4_r when IPv6 results are possible.
74372
74373 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74374
74375         [BZ #12723]
74376         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74377         _PC_PIPE_BUF handling.
74378
74379 2011-04-30  Bruno Haible  <bruno@clisp.org>
74380
74381         [BZ #12717]
74382         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74383         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74384         to 'int'.
74385         * inet/getnameinfo.c (getnameinfo): Likewise.
74386
74387 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74388
74389         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74390         to groups setting in database lookup.
74391         * nss/nsswitch.conf: Add initgroups entry.
74392
74393 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74394
74395         [BZ #12685]
74396         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74397         mode string.
74398         Patch by Eric Blake <eblake@redhat.com>.
74399
74400 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74401
74402         * sunrpc/Makefile (need-export-routines): Add svc_run.
74403         (routines): Remove svc_run.
74404         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74405         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74406         * sunrpc/svc_run.c (svc_run): Likewise.
74407         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74408
74409 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74410
74411         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74412         problem in reallocation in last patch.
74413
74414 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74415
74416         * sunrpc/Makefile: Move inclusion of Rules.
74417
74418 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74419
74420         * nss/nss_files/files-initgroups.c: New file.
74421         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74422         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74423         _nss_files_initgroups_dyn.
74424
74425 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74426
74427         * elf/elf.h (R_ARM_IRELATIVE): Define.
74428
74429 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74430
74431         * po/ru.po: Update from translation team.
74432
74433 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74434
74435         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74436         dependencies.
74437
74438 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74439
74440         [BZ #12653]
74441         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74442         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74443         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74444         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74445         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74446
74447 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74448
74449         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74450         differing bytes.
74451         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74452         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74453         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74454
74455 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74456
74457         [BZ #12420]
74458         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74459         storing it.
74460         * stdlib/bug-getcontext.c: New file.
74461         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74462
74463 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74464
74465         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74466         instructions into .machine "z9-109".
74467         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74468         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74469
74470 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74471
74472         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74473         between environment variables and auxiliary vector.
74474
74475 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74476
74477         * Makefile: Add rules to build linkobj/libc.so.
74478         * include/libc-symbols.h: Define libc_hidden_nolink.
74479         * include/rpc/auth.h: Mark functions which are to be hidden.
74480         * include/rpc/auth_des.h: Likewise.
74481         * include/rpc/auth_unix.h: Likewise.
74482         * include/rpc/clnt.h: Likewise.
74483         * include/rpc/des_crypt.h: Likewise.
74484         * include/rpc/key_prot.h: Likewise.
74485         * include/rpc/pmap_clnt.h: Likewise.
74486         * include/rpc/pmap_prot.h: Likewise.
74487         * include/rpc/pmap_rmt.h: Likewise.
74488         * include/rpc/rpc_msg.h: Likewise.
74489         * include/rpc/svc.h: Likewise.
74490         * include/rpc/svc_auth.h: Likewise.
74491         * include/rpc/xdr.h: Likewise.
74492         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74493         * nss/Makefile: Likewise.
74494         * sunrpc/Makefile: Don't install headers.  Build library with normal
74495         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74496         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74497         for the compat linking library.  Remove use of INTDEF/INTUSE.
74498         * sunrpc/auth_none.c: Likewise.
74499         * sunrpc/auth_unix.c: Likewise.
74500         * sunrpc/authdes_prot.c: Likewise.
74501         * sunrpc/authuxprot.c: Likewise.
74502         * sunrpc/clnt_gen.c: Likewise.
74503         * sunrpc/clnt_perr.c: Likewise.
74504         * sunrpc/clnt_raw.c: Likewise.
74505         * sunrpc/clnt_simp.c: Likewise.
74506         * sunrpc/clnt_tcp.c: Likewise.
74507         * sunrpc/clnt_udp.c: Likewise.
74508         * sunrpc/clnt_unix.c: Likewise.
74509         * sunrpc/des_crypt.c: Likewise.
74510         * sunrpc/des_soft.c: Likewise.
74511         * sunrpc/get_myaddr.c: Likewise.
74512         * sunrpc/key_call.c: Likewise.
74513         * sunrpc/key_prot.c: Likewise.
74514         * sunrpc/netname.c: Likewise.
74515         * sunrpc/pm_getmaps.c: Likewise.
74516         * sunrpc/pm_getport.c: Likewise.
74517         * sunrpc/pmap_clnt.c: Likewise.
74518         * sunrpc/pmap_prot.c: Likewise.
74519         * sunrpc/pmap_prot2.c: Likewise.
74520         * sunrpc/pmap_rmt.c: Likewise.
74521         * sunrpc/publickey.c: Likewise.
74522         * sunrpc/rpc_cmsg.c: Likewise.
74523         * sunrpc/rpc_common.c: Likewise.
74524         * sunrpc/rpc_dtable.c: Likewise.
74525         * sunrpc/rpc_prot.c: Likewise.
74526         * sunrpc/rpc_thread.c: Likewise.
74527         * sunrpc/rtime.c: Likewise.
74528         * sunrpc/svc.c: Likewise.
74529         * sunrpc/svc_auth.c: Likewise.
74530         * sunrpc/svc_authux.c: Likewise.
74531         * sunrpc/svc_raw.c: Likewise.
74532         * sunrpc/svc_run.c: Likewise.
74533         * sunrpc/svc_simple.c: Likewise.
74534         * sunrpc/svc_tcp.c: Likewise.
74535         * sunrpc/svc_udp.c: Likewise.
74536         * sunrpc/svc_unix.c: Likewise.
74537         * sunrpc/svcauth_des.c: Likewise.
74538         * sunrpc/xcrypt.c: Likewise.
74539         * sunrpc/xdr.c: Likewise.
74540         * sunrpc/xdr_array.c: Likewise.
74541         * sunrpc/xdr_float.c: Likewise.
74542         * sunrpc/xdr_intXX_t.c: Likewise.
74543         * sunrpc/xdr_mem.c: Likewise.
74544         * sunrpc/xdr_rec.c: Likewise.
74545         * sunrpc/xdr_ref.c: Likewise.
74546         * sunrpc/xdr_sizeof.c: Likewise.
74547         * sunrpc/xdr_stdio.c: Likewise.
74548
74549 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74550
74551         [BZ #12650]
74552         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74553         * sysdeps/ia64/dl-tls.h: Likewise.
74554         * sysdeps/powerpc/dl-tls.h: Likewise.
74555         * sysdeps/s390/dl-tls.h: Likewise.
74556         * sysdeps/sh/dl-tls.h: Likewise.
74557         * sysdeps/sparc/dl-tls.h: Likewise.
74558         * sysdeps/x86_64/dl-tls.h: Likewise.
74559         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74560
74561 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74562
74563         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74564         rpath element also skip the following colon.
74565         (expand_dynamic_string_token): Add is_path parameter and pass
74566         down to DL_DST_REQUIRED and _dl_dst_substitute.
74567         (decompose_rpath): Call expand_dynamic_string_token with
74568         non-zero is_path.  Ignore empty rpaths.
74569         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74570         with zero is_path.
74571
74572 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74573
74574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74575         Make cancelable.
74576
74577 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74578
74579         [BZ #12655]
74580         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74581         Patch by Filipe David Manana <fdmanana@apache.org>.
74582
74583 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74584
74585         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74586         Maintain aligned stack.
74587         (CHECK_RSP): Remove unused macro.
74588
74589 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74590
74591         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74592         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74593
74594 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74595
74596         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74597
74598         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74599
74600 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74601
74602         [BZ #12518]
74603         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74604         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74605         * sysdeps/x86_64/memmove.c: New file.
74606         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74607         (memcpy): Renamed to ...
74608         (__new_memcpy): This.
74609         (memcpy): Provide GLIBC_2_14 memcpy.
74610         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74611         (memcpy): Provide GLIBC_2_2_5 memcpy.
74612
74613 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74614
74615         [BZ #12631]
74616         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74617
74618 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74619
74620         * misc/syncfs.c: New file.
74621         * misc/Makefile (routines): Add syncfs.
74622         * posix/unistd.h: Declare syncfs.
74623         * sysdeps/unix/syscalls.list: Add syncfs.
74624
74625 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74626
74627         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74628         open_by_handle_at.
74629         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74630         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74631         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74632         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74633         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74634         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74635         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74636
74637 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74638
74639         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74640         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74641         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74642         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74643         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74645         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74646
74647         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74648         sync_file_range.c with -fexceptions.
74649         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74650         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74651         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74652         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74653         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74654         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74655         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74656         sync_file_range as cancellation point
74657         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74658         now a wrapper around __call_sync_file_range with cancellation handling.
74659         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74660         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74661         function name to __call_sync_file_range.
74662         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74663         Add call_sync_file_range.
74664
74665 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74666
74667         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74668         bits/timex.h.
74669
74670 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74671
74672         * iconv/iconv.h: Fix typo in comment.
74673         * io/fcntl.h: Likewise.
74674         * libio/stdio.h: Likewise.
74675         * posix/spawn.h: Likewise.
74676         * posix/unistd.h: Likewise.
74677         * stdlib/stdlib.h: Likewise.
74678         * time/time.h: Likewise.
74679         * wcsmbs/wchar.h: Likewise.
74680
74681         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74682         open_by_handle): Add.
74683         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74684         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74685         Augment a few comments.
74686         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74687         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74688         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74690         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74691         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74692         open_by_handle.
74693
74694         * io/fcntl.h (AT_EMPTY_PATH): Define.
74695
74696 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74697
74698         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74699         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74700         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74701         to...
74702         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74703         * Versions.def: Add GLIBC_2.14.
74704         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74705         Export.
74706
74707 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74708
74709         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74710         round counter.
74711         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74712
74713 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74714
74715         [BZ #12597]
74716         * string/test-strncmp.c (do_page_test): New function.
74717         (check2): Likewise.
74718         (test_main): Call check2.
74719         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74720
74721 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74722
74723         [BZ #12587]
74724         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74725         Handle cache information in CPU leaf 4.
74726         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74727
74728 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74729
74730         [BZ #12583]
74731         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74732         character representation.
74733         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74734
74735 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74736
74737         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74738         END(__isnan) to END(__isnanf) to match function entry point/label
74739         EALIGN(__isnanf,...).
74740
74741 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74742
74743         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74744
74745 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74746
74747         [BZ #12510]
74748         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74749         copy from the symbol referenced in the relocation to initialize the
74750         used variable.
74751         Patch by Piotr Bury <pbury@goahead.com>.
74752         * elf/Makefile: Add rules to build and tst-unique3.
74753         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74754         * elf/tst-unique3.cc: New file.
74755         * elf/tst-unique3.h: New file.
74756         * elf/tst-unique3lib.cc: New file.
74757         * elf/tst-unique3lib2.cc: New file.
74758
74759         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74760
74761 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74762
74763         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74764         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74765         to _start.
74766
74767 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74768
74769         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74770         to-be-loaded object along a path to loader is ld.so.
74771
74772 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74773             Ulrich Drepper  <drepper@gmail.com>
74774
74775         * sysdeps/x86_64/memset.S: After aligning destination, code
74776         branches to different locations depending on the value of
74777         misalignment, when multiarch is enabled. Fix this.
74778
74779 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74780
74781         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74782         Set _x86_64_preferred_memory_instruction for AMD processsors.
74783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74784         Set bit_Prefer_SSE_for_memop for AMD processors.
74785
74786 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74787
74788         * libio/fmemopen.c (fmemopen): Optimize a bit.
74789
74790 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74791
74792         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74793
74794 2011-03-03  Roland McGrath  <roland@redhat.com>
74795
74796         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74797
74798 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74799
74800         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74801         __bzero_ultra1 instead of __memset_ultra1.
74802
74803 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74804             Ulrich Drepper  <drepper@gmail.com>
74805
74806         [BZ #12509]
74807         * include/link.h (struct link_map): Add l_orig_initfini.
74808         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74809         returning unsuccessfully.
74810         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74811         close of a file loaded at startup, restore the original l_initfini
74812         list.
74813         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74814         list, store the pointer.
74815         * elf/Makefile ($(objpfx)noload-mem): New rule.
74816         (noload-ENV): Define.
74817         (tests): Add $(objpfx)noload-mem.
74818         * elf/noload.c: Include <memcheck.h>.
74819         (main): Call mtrace.  Close all opened handles.
74820
74821 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74822
74823         [BZ #12454]
74824         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74825         dependencies are missing.
74826
74827 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74828
74829         Fix __if_freereq crash: Unlike the generic version which uses free,
74830         Hurd needs munmap.
74831         * sysdeps/mach/hurd/ifreq.h: New file.
74832
74833 2011-01-27  Petr Baudis  <pasky@suse.cz>
74834             Ulrich Drepper  <drepper@gmail.com>
74835
74836         [BZ 12445]#
74837         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74838         to extend_alloca().
74839         * stdio-common/bug23.c: New file.
74840         * stdio-common/Makefile (tests): Add bug23.
74841
74842 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74843             Ulrich Drepper  <drepper@gmail.com>
74844
74845         [BZ #12489]
74846         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74847         before performing relro protection.  At old place add assertion
74848         to make sure nothing changed.
74849
74850 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
74851             Glauber de Oliveira Costa  <glommer@gmail.com>
74852
74853         * elf/elf.h: Add new ARM TLS relocs.
74854
74855 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
74856
74857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
74858         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
74859         cast from r3.
74860         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
74861         'tests' variable.
74862         * sysdeps/wordsize-64/tst-writev.c: New file.
74863
74864 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
74865
74866         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
74867         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
74868         insns in _dl_start to prevent a TOC reference before relocs are
74869         resolved.
74870
74871 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
74872
74873         [BZ #12469]
74874         * Makeconfig: Remove RANLIB definition.
74875         * Makerules: Don't use RANLIB.
74876         * aclocal.m4: Remove ranlib test.
74877         * configure.in: No need to check for ranlib.
74878         * elf/rtld-Rules: Don't use RANLIB.
74879
74880 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74881
74882         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
74883         protection macro.
74884         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
74885         inclusion protection macro.
74886
74887         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
74888         SIGRTMIN and SIGRTMAX and print information in that case only when
74889         SIGRTMIN is defined.
74890
74891 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
74892
74893         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
74894         arginfo fn returning -1.
74895
74896         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
74897         and thousands string is zero terminated.
74898
74899 2011-02-03  Andreas Schwab  <schwab@redhat.com>
74900
74901         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
74902         sysdeps/unix/sysv/linux/bits/socket.h.
74903
74904 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74905
74906         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
74907         (__CPU_COUNT): Remove old macros.
74908         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
74909         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
74910         (__CPU_ALLOC, __CPU_FREE): Add macros.
74911         (__sched_cpualloc, __sched_cpufree): Add declarations.
74912
74913 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
74914
74915         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
74916         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
74917         * nscd/aicache.c (addhstaiX): Return timeout of added value.
74918         (readdhstai): Return value of addhstaiX call.
74919         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
74920         (addgrbyX): Return value returned by cache_addgr.
74921         (readdgrbyname): Return value returned by addgrbyX.
74922         (readdgrbygid): Likewise.
74923         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
74924         (addpwbyX): Return value returned by cache_addpw.
74925         (readdpwbyname): Return value returned by addhstbyX.
74926         (readdpwbyuid): Likewise.
74927         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
74928         (addservbyX): Return value returned by cache_addserv.
74929         (readdservbyname): Return value returned by addservbyX:
74930         (readdservbyport): Likewise.
74931         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
74932         (addhstbyX): Return value returned by cache_addhst.
74933         (readdhstbyname): Return value returned by addhstbyX.
74934         (readdhstbyaddr): Likewise.
74935         (readdhstbynamev6): Likewise.
74936         (readdhstbyaddrv6): Likewise.
74937         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
74938         (readdinitgroups): Return value returned by addinitgroupsX.
74939         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
74940         (prune_cache): Keep track of timeout value of re-added entries.
74941         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
74942         * nscd/nscd.h: Adjust prototypes of readd* functions.
74943
74944 2011-02-04  Roland McGrath  <roland@redhat.com>
74945
74946         * nis/nis_server.c (nis_servstate): Use the right name for 0.
74947         (nis_stats): Likewise.
74948         * nis/nis_modify.c (nis_modify): Likewise.
74949         * nis/nis_remove.c (nis_remove): Likewise.
74950         * nis/nis_add.c (nis_add): Likewise.
74951
74952         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
74953
74954         * posix/fnmatch_loop.c: Add some consts.
74955
74956         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
74957
74958 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
74959
74960         [BZ #12460]
74961         * config.make.in (config-cflags-novzeroupper): Define.
74962         * configure.in: Substitute libc_cv_cc_novzeroupper.
74963         * elf/Makefile (AVX-CFLAGS): Define.
74964         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
74965         (CFLAGS-tst-auditmod4a.c): Likewise.
74966         (CFLAGS-tst-auditmod4b.c): Likewise.
74967         (CFLAGS-tst-auditmod6b.c): Likewise.
74968         (CFLAGS-tst-auditmod6c.c): Likewise.
74969         (CFLAGS-tst-auditmod7b.c): Likewise.
74970         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
74971
74972 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
74973
74974         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
74975         function to the callback.
74976         Patch partly by Jiri Olsa <jolsa@redhat.com>.
74977
74978 2011-02-02  Andreas Schwab  <schwab@redhat.com>
74979
74980         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
74981         of errno.
74982
74983 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
74984
74985         [BZ #11724]
74986         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
74987         of constructors.
74988         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
74989         of destructors.
74990         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
74991
74992         [BZ #11724]
74993         * elf/Makefile: Add rules to build and run new test.
74994         * elf/tst-initorder.c: New file.
74995         * elf/tst-initorder.exp: New file.
74996         * elf/tst-initordera1.c: New file.
74997         * elf/tst-initordera2.c: New file.
74998         * elf/tst-initordera3.c: New file.
74999         * elf/tst-initordera4.c: New file.
75000         * elf/tst-initorderb1.c: New file.
75001         * elf/tst-initorderb2.c: New file.
75002         * elf/tst-order-a1.c: New file.
75003         * elf/tst-order-a2.c: New file.
75004         * elf/tst-order-a3.c: New file.
75005         * elf/tst-order-a4.c: New file.
75006         * elf/tst-order-b1.c: New file.
75007         * elf/tst-order-b2.c: New file.
75008         * elf/tst-order-main.c: New file.
75009         New test case by George Gensure <werkt0@gmail.com>.
75010
75011 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75012
75013         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75014         decoding ACE if AI_CANONIDN.
75015
75016 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75017
75018         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75019
75020 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75021
75022         * version.h (RELEASE): Bump for 2.13 release.
75023         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75024
75025         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75026
75027         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75028         MADV_NOHUGEPAGE.
75029         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75030         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75031         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75032         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75033         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75034         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75035
75036         * posix/getconf.c: Update copyright year.
75037         * catgets/gencat.c: Likewise.
75038         * csu/version.c: Likewise.
75039         * debug/catchsegv.sh: Likewise.
75040         * debug/xtrace.sh: Likewise.
75041         * elf/ldconfig.c: Likewise.
75042         * elf/ldd.bash.in: Likewise.
75043         * elf/sprof.c (print_version): Likewise.
75044         * iconv/iconv_prog.c: Likewise.
75045         * iconv/iconvconfig.c: Likewise.
75046         * locale/programs/locale.c: Likewise.
75047         * locale/programs/localedef.c: Likewise.
75048         * malloc/memusage.sh: Likewise.
75049         * malloc/mtrace.pl: Likewise.
75050         * nscd/nscd.c (print_version): Likewise.
75051         * nss/getent.c: Likewise.
75052
75053         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75054         PF_CAIF, and PF_ALG.
75055         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75056
75057 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75058
75059         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75060         (modules-names): Use them.
75061         (ifunc-test-modules, ifunc-pie-tests): Define.
75062         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75063         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75064         (test-extras): Likewise.
75065         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75066         $(compile-command.c).
75067         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75068         (all-built-dso): Define.
75069         (check-textrel.out, check-execstack.out): Depend on it.
75070
75071         * configure.in: Don't override --enable-multi-arch.
75072
75073 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75074
75075         [BZ #6812]
75076         * nscd/hstcache.c (tryagain): Define.
75077         (cache_addhst): Return tryagain not notfound for temporary errors.
75078         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75079         failed.
75080
75081 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75082
75083         [BZ #10563]
75084         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75085         to make the syscall.
75086         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75087
75088         [BZ #12378]
75089         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75090         and fall back to matching as normal character if the string ends before
75091         the matching ']' is found.  This is what POSIX requires.
75092         * posix/testfnm.c: Adjust test result.
75093         * posix/globtest.sh: Adjust test result.  Add new test.
75094         * posix/tst-fnmatch.input: Likewise.
75095         * posix/tst-fnmatch2.c: Add new test.
75096
75097 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75098
75099         * elf/Makefile (check-execstack): Revert last change.  Depend on
75100         check-execstack.h.
75101         (check-execstack.h): New target.
75102         (generated): Add check-execstack.h.
75103         * elf/check-execstack.c: Include "check-execstack.h".
75104         (main): Revert last change.
75105         (handle_file): Return zero if GNU_STACK is absent and
75106         DEFAULT_STACK_PERMS doesn't include PF_X.
75107
75108 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75109
75110         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75111         in child fails because the descriptor is already closed.
75112         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75113         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75114         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75115
75116         [BZ #12397]
75117         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75118         syscall.
75119
75120         [BZ #10484]
75121         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75122         temporary buffer used to handle multi lookups locally.
75123         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75124
75125 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75126
75127         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75128         loader is ld.so.
75129
75130 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75131
75132         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75133         alignment for SSE2.
75134
75135 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75136
75137         [BZ #12394]
75138         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75139         characters.  When rounding increased number of integer digits recompute
75140         number of groups.
75141         * stdio-common/tst-grouping.c: New file.
75142         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75143
75144 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75145
75146         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75147         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75148
75149         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75150         void.
75151         * bits/select.h: Likewise.
75152
75153 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75154
75155         * po/ja.po: Update from translation team.
75156
75157 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75158
75159         [BZ #11155]
75160         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75161         implementation just like for lxstat, fxstatat, et al.
75162
75163 2010-12-27  Jim Meyering  <meyering@redhat.com>
75164
75165         [BZ #12348]
75166         * posix/regexec.c (build_trtable): Return failure indication upon
75167         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75168
75169 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75170
75171         [BZ #12201]
75172         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75173         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75174         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75175         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75176
75177         [BZ #12207]
75178         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75179
75180         [BZ #12204]
75181         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75182         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75183
75184 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75185
75186         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75187         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75188         script has SORT_BY_INIT_PRIORITY.
75189         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75190         NO_CTORS_DTORS_SECTIONS is defined.
75191         * elf/soinit.c: Likewise.
75192         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75193         NO_CTORS_DTORS_SECTIONS is defined.
75194         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75195         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75196         * sysdeps/sh/init-first.c: Likewise.
75197         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75198
75199 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75200
75201         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75202         always use the slow path.
75203
75204 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75205
75206         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75207         similar rule which adds the sysdep directories to the header search in
75208         order to pick up the correct platform stackinfo.h.
75209         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75210         perform test if it is, otherwise return successfully without testing.
75211         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75212         DEFAULT_STACK_PERMS define in stackinfo.h.
75213         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75214         defined in stackinfo.h.
75215         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75216         DEFAULT_STACK_PERMS defined in stackinfo.h.
75217         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75218         * sysdeps/ia64/stackinfo.h: Likewise.
75219         * sysdeps/s390/stackinfo.h: Likewise.
75220         * sysdeps/sh/stackinfo.h: Likewise.
75221         * sysdeps/sparc/stackinfo.h: Likewise.
75222         * sysdeps/x86_64/stackinfo.h: Likewise.
75223         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75224         PF_X for powerpc64.  Retain PF_X for powerpc32.
75225
75226 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75227
75228         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75229         accurately.
75230         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75231         GETDENTS_64BIT_ALIGNED.
75232
75233 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75234
75235         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75236
75237 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75238
75239         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75240         _GNU_SOURCE.
75241
75242         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75243         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75244         Remove __restrict.
75245         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75246         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75247
75248 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75249
75250         [BZ #11655]
75251         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75252         are initialized.
75253
75254 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75255
75256         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75257
75258 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75259
75260         * po/it.po: Update from translation team.
75261
75262 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75263
75264         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75265         unused codes.
75266
75267 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75268
75269         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75270
75271 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75272
75273         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75274         specially.
75275         (gaih_getanswer_slice): Likewise.
75276
75277 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75278
75279         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75280
75281 2010-05-31  Petr Baudis  <pasky@suse.cz>
75282
75283         [BZ #11149]
75284         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75285         silently even in the chroot mode.
75286
75287 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75288
75289         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75290         last patch a bit.  Pretty printing
75291
75292 2010-05-31  Petr Baudis <pasky@suse.cz>
75293
75294         [BZ #10085]
75295         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75296         initialization of skip_initgroups_dyn.
75297
75298 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75299
75300         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75301         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75302
75303 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75304
75305         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75306
75307 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75308
75309         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75310         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75311         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75312         ($(objpfx)tst-fnmatch-mem): New rule.
75313         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75314         * posix/tst-fnmatch.c (main): Call mtrace.
75315
75316 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75317
75318         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75319         Support Intel processor model 6 and model 0x2c.
75320
75321 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75322
75323         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75324           signed comparison.
75325
75326 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75327
75328         [BZ #12205]
75329         * string/test-strncasecmp.c (check_result): New function.
75330         (do_one_test): Use it.
75331         (check1): New function.
75332         (test_main): Use it.
75333         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75334         Support strcasecmp and strncasecmp.
75335
75336 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75337
75338         [BZ #12194]
75339         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75340         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75341
75342 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75343
75344         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75345         IFUNC support.
75346         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75347         memset-x86-64.
75348         * sysdeps/x86_64/multiarch/bzero.S: New file.
75349         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75350         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75351         * sysdeps/x86_64/multiarch/memset.S: New file.
75352         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75353         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75354         Set bit_Prefer_SSE_for_memop for Intel processors.
75355         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75356         Define.
75357         (index_Prefer_SSE_for_memop): Define.
75358         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75359
75360 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75361
75362         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75363         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75364
75365 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75366
75367         [BZ #12191]
75368         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75369         (__x86_64_raw_data_cache_size_half): Likewise.
75370         (__x86_64_raw_shared_cache_size): Likewise.
75371         (__x86_64_raw_shared_cache_size_half): Likewise.
75372
75373         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75374         (__x86_64_raw_data_cache_size_half): Likewise.
75375         (__x86_64_raw_shared_cache_size): Likewise.
75376         (__x86_64_raw_shared_cache_size_half): Likewise.
75377         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75378         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75379         and __x86_64_raw_shared_cache_size_half.  Round
75380         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75381         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75382         to multiple of 256 bytes.
75383
75384 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75385
75386         [BZ #12167]
75387         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75388         of inacessible symlinks.  Verify result of symlink before returning it.
75389         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75390         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75391
75392 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75393
75394         * math/math.h (isinf): Fix typo in comment.
75395
75396 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75397
75398         * po/da.po: Update from translation team.
75399
75400 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75401
75402         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75403         is added to the list.
75404
75405 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75406             Ulrich Drepper  <drepper@gmail.com>
75407
75408         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75409         the global list here.  Move code to...
75410         (_dl_add_to_namespace_list): ...here.  New function.
75411         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75412         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75413         * elf/dl-load.c (lose): Don't remove the element from the list.
75414         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75415         (_dl_map_object): Likewise.
75416
75417 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75418
75419         [BZ #12159]
75420         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75421         into all bytes of SSE register.
75422         Patch by Richard Li <richardpku@gmail.com>.
75423
75424 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75425
75426         [BZ #12140]
75427         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75428         perturbing.
75429
75430 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75431
75432         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75433         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75434         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75435         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75437         submachine.
75438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75439
75440 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75441
75442         * include/dlfcn.h (__RTLD_SECURE): Define.
75443         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75444         mode & __RTLD_SECURE instead.
75445         (open_path): Rename preloaded parameter to secure.
75446         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75447         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75448         * elf/dl-deps.c (openaux): Likewise.
75449         * elf/rtld.c (struct map_args): Remove is_preloaded.
75450         (map_doit): Don't use it.
75451         (dl_main): Likewise.
75452         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75453         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75454
75455 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75456
75457         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75458         (sysd-rules-targets): Remove duplicates.
75459         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75460         rtld-%.$o dependency.
75461
75462 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75463
75464         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75465         _dl_map_object do it.
75466
75467 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75468
75469         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75470         fast fma builtins, define the macros in the C99 standard.
75471         (FP_FAST_FMAF): Likewise.
75472         (FP_FAST_FMAL): Likewise.
75473         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75474
75475         * bits/mathdef.h: Update copyright year.
75476         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75477
75478 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75479
75480         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75481         builtins, define the macros in the C99 standard.
75482         (FP_FAST_FMAF): Likewise.
75483         (FP_FAST_FMAL): Likewise.
75484         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75485         multiply/add.
75486         (FP_FAST_FMAF): Likewise.
75487
75488 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75489
75490         [BZ #3268]
75491         * math/libm-test.inc (fma_test): Some new testcases.
75492         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75493         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75494         y and infinite z.  Do multiplication by C already in long double.
75495         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75496         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75497         y and infinite z.  Do bitwise or of inexact bit into u.d.
75498         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75499         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75500         * sysdeps/i386/fpu/s_fma.S: Removed.
75501         * sysdeps/i386/fpu/s_fmal.S: Removed.
75502
75503 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75504
75505         [BZ #3268]
75506         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75507         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75508         computation is not scheduled after fetestexcept.  Fix value
75509         of minimum denormal long double.
75510
75511 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75512
75513         [BZ #3268]
75514         * math/libm-test.inc (fma_test): Add some more tests.
75515         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75516         correctly.
75517
75518 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75519
75520         * scripts/data/localplt-s390-linux-gnu.data: New file.
75521         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75522
75523 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75524
75525         [BZ #3268]
75526         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75527         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75528         instead of dbl-64.
75529         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75530         inlines.
75531         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75532         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75533         if one of x and y is very large and the other is subnormal.
75534         * sysdeps/s390/fpu/s_fmaf.c: New file.
75535         * sysdeps/s390/fpu/s_fma.c: New file.
75536         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75537         * sysdeps/powerpc/fpu/s_fma.S: New file.
75538         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75539         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75540         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75541
75542 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75543
75544         [BZ #3268]
75545         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75546         fma tests.
75547         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75548         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75549         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75550         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75551         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75552         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75553         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75554
75555 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75556
75557         [BZ #12078]
75558         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75559         * posix/bug-regex31.input: Add test case.
75560
75561 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75562
75563         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75564         * posix/bug-regex31.input: New file.
75565
75566         [BZ #12078]
75567         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75568         (parse_sub_exp): Fix last change, use postorder.
75569
75570         * posix/bug-regex31.c: New file.
75571         * posix/Makefile: Add rules to build and run bug-regex31.
75572
75573         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75574
75575         [BZ #12078]
75576         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75577
75578         [BZ #12108]
75579         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75580         to have entries in sys_siglist.
75581
75582         [BZ #12093]
75583         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75584         be NULL.
75585
75586 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75587
75588         [BZ #3268]
75589         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75590         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75591         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75592         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75593         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75594         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75595         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75596         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75597         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75598         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75599         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75600         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75601         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75602         * math/ftestexcept.c (fetestexcept): Likewise.
75603         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75604         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75605         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75606         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75607         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75608         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75609         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75610
75611 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75612
75613         [BZ #12107]
75614         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75615         newline.
75616
75617 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75618
75619         * string/bug-strstr1.c: New file.
75620         * string/Makefile: Add rules to build and run bug-strstr1.
75621
75622 2010-10-05  Eric Blake  <eblake@redhat.com>
75623
75624         [BZ #12092]
75625         * string/str-two-way.h (two_way_long_needle): Always clear memory
75626         when skipping input due to the shift table.
75627
75628 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75629
75630         [BZ #12005]
75631         * malloc/mcheck.c: Handle large requests.
75632
75633         [BZ #12077]
75634         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75635         for strncmp and strncasecmp.
75636         * string/stratcliff.c: Add tests for strcmp and strncmp.
75637         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75638
75639 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75640
75641         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75642         __set_fpscr.
75643
75644 2010-09-30  Andreas Jaeger  <aj@suse.de>
75645
75646         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75647         (CGROUP_SUPER_MAGIC): Define.
75648         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75649         Handle btrfs and cgroup file systems.
75650         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75651         Likewise.
75652
75653 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75654
75655         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75656         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75657
75658 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75659
75660         [BZ #12067]
75661         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75662         trying to locate the ELF header.
75663
75664 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75665
75666         [BZ #11611]
75667         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75668         Mask out sign-bit copies when constructing f_fsid.
75669
75670 2010-09-24  Petr Baudis <pasky@suse.cz>
75671
75672         * debug/stack_chk_fail_local.c: Add missing licence exception.
75673         * debug/warning-nop.c: Likewise.
75674
75675 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75676
75677         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75678         implementing getdents64 using getdents syscall, set d_type if
75679         __ASSUME_GETDENTS32_D_TYPE.
75680
75681 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75682
75683         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75684         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75685
75686 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75687
75688         [BZ #12037]
75689         * posix/unistd.h: Undo change of feature selection for ftruncate from
75690         2010-01-11.
75691
75692 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75693
75694         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75695         detection.
75696
75697 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75698
75699         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75700         fanotify_mark.
75701         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75702
75703 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75704
75705         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75706         variables after CHECK_SP call.
75707         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75708
75709 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75710             Ulrich Drepper  <drepper@redhat.com>
75711
75712         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75713         re-relocationg ld.so.
75714         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75715         _dl_init_paths call.
75716         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75717         here anymore.
75718
75719 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75720
75721         * resolv/res_init.c (__res_vinit): Count the default server we added.
75722
75723 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75724             Ulrich Drepper  <drepper@redhat.com>
75725
75726         [BZ #11968]
75727         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75728         (____longjmp_chk): Use %ebx for saving value across system call.
75729         Add unwind info.
75730
75731 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75732
75733         * manual/Makefile: Don't mix pattern rules with normal rules.
75734
75735 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75736
75737         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75738         operation.
75739         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75740         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75741         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75742         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75744         Likewise.
75745
75746 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75747
75748         [BZ #11979]
75749         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75750         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75751
75752 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75753
75754         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75755         * sysdeps/x86_64/addmul_1.S: Likewise.
75756         * sysdeps/x86_64/lshift.S: Likewise.
75757         * sysdeps/x86_64/mul_1.S: Likewise.
75758         * sysdeps/x86_64/rshift.S: Likewise.
75759         * sysdeps/x86_64/sub_n.S: Likewise.
75760         * sysdeps/x86_64/submul_1.S: Likewise.
75761
75762 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75763
75764         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75765         Define __sched_param instead of SCHED_* and sched_param when
75766         <bits/sched.h> is included with __need_schedparam defined.
75767         * bits/sched.h [__need_schedparam]
75768         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75769         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75770         (__defined_schedparam): Define to 1.
75771         (__sched_param): New structure, identical to sched_param.
75772         (__need_schedparam): Undefine.
75773
75774 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75775
75776         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75777         (epoll_create1): Declare.
75778
75779         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75780
75781 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75782
75783         [BZ #7066]
75784         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75785         shifting retval into place.
75786
75787 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75788
75789         * nis/rpcsvc/nis.h: Update copyright notice.
75790         * nis/rpcsvc/nis.x: Likewise.
75791         * nis/rpcsvc/nis_callback.h: Likewise.
75792         * nis/rpcsvc/nis_callback.x: Likewise.
75793         * nis/rpcsvc/nis_object.x: Likewise.
75794         * nis/rpcsvc/nis_tags.h: Likewise.
75795         * nis/rpcsvc/yp.h: Likewise.
75796         * nis/rpcsvc/yp.x: Likewise.
75797         * nis/rpcsvc/ypupd.h: Likewise.
75798         * nis/yp_xdr.c: Likewise.
75799         * nis/ypupdate_xdr.c: Likewise.
75800
75801         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75802         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75803         (pmap_getport): Use __libc_rpc_getport.
75804         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75805         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75806         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75807
75808 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75809
75810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75811         fanotify_mark.
75812
75813 2010-08-27  Roland McGrath  <roland@redhat.com>
75814
75815         * sysdeps/i386/i686/multiarch/Makefile
75816         (CFLAGS-varshift.c): New variable.
75817
75818 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75819
75820         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75821         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75822
75823         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75824
75825         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75826
75827 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75828
75829         * sysdeps/x86_64/strlen.S: Unroll the loop.
75830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75831         strlen-sse2 strlen-sse2-bsf.
75832         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75833         __strlen_no_bsf if bit_Slow_BSF is set.
75834         (__strlen_sse42): Removed.
75835         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75836         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75837
75838 2010-08-25  Roland McGrath  <roland@redhat.com>
75839
75840         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75841         * sysdeps/x86_64/multiarch/varshift.c: New file.
75842         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75843         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75844         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75845         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75846
75847 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75848
75849         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75850         strlen-sse2 strlen-sse2-bsf.
75851         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
75852         __strlen_sse2_bsf if bit_Slow_BSF is unset.
75853         (__strlen_sse2): Removed.
75854         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
75855         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
75856         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
75857         bit_Slow_BSF for Atom.
75858         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
75859         (index_Slow_BSF): Define.
75860         (HAS_SLOW_BSF): Define.
75861
75862 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
75863
75864         [BZ #10851]
75865         * resolv/res_init.c (__res_vinit): When no server address at all
75866         is given default to loopback.
75867
75868 2010-08-24  Roland McGrath  <roland@redhat.com>
75869
75870         * configure.in: Remove config-name.h generation.
75871         * configure: Regenerated.
75872         * config-name.in: File removed.
75873         * scripts/config-uname.sh: New file.
75874         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
75875         ($(objdir)config-name.h): New target.
75876
75877         * sunrpc/rpc_parse.h: Avoid nested comment.
75878
75879 2010-08-24  Richard Henderson  <rth@redhat.com>
75880             Ulrich Drepper  <drepper@redhat.com>
75881             H.J. Lu  <hongjiu.lu@intel.com>
75882
75883         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
75884         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
75885         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
75886         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
75887         _mm_alignr_epi8 with _mm_loadu_si128.
75888         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
75889         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
75890         (__m128i_shift_right): Removed.
75891         * sysdeps/i386/i686/multiarch/varshift.h: New file.
75892         * sysdeps/i386/i686/multiarch/varshift.S: New file.
75893         * sysdeps/x86_64/multiarch/varshift.h: New file.
75894         * sysdeps/x86_64/multiarch/varshift.S: New file.
75895
75896 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
75897
75898         * configure.in: Move assembler checks to before sysdep dir checking.
75899
75900 2010-08-20  Petr Baudis  <pasky@suse.cz>
75901
75902         * LICENSES: Sync the sunrpc license.
75903
75904 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
75905
75906         * sunrpc/auth_des.c: Update copyright notice once again.
75907         * sunrpc/auth_none.c: Likewise.
75908         * sunrpc/auth_unix.c: Likewise.
75909         * sunrpc/authdes_prot.c: Likewise.
75910         * sunrpc/authuxprot.c: Likewise.
75911         * sunrpc/bindrsvprt.c: Likewise.
75912         * sunrpc/clnt_gen.c: Likewise.
75913         * sunrpc/clnt_perr.c: Likewise.
75914         * sunrpc/clnt_raw.c: Likewise.
75915         * sunrpc/clnt_simp.c: Likewise.
75916         * sunrpc/clnt_tcp.c: Likewise.
75917         * sunrpc/clnt_udp.c: Likewise.
75918         * sunrpc/clnt_unix.c: Likewise.
75919         * sunrpc/des_crypt.c: Likewise.
75920         * sunrpc/des_soft.c: Likewise.
75921         * sunrpc/get_myaddr.c: Likewise.
75922         * sunrpc/getrpcport.c: Likewise.
75923         * sunrpc/key_call.c: Likewise.
75924         * sunrpc/key_prot.c: Likewise.
75925         * sunrpc/openchild.c: Likewise.
75926         * sunrpc/pm_getmaps.c: Likewise.
75927         * sunrpc/pm_getport.c: Likewise.
75928         * sunrpc/pmap_clnt.c: Likewise.
75929         * sunrpc/pmap_prot.c: Likewise.
75930         * sunrpc/pmap_prot2.c: Likewise.
75931         * sunrpc/pmap_rmt.c: Likewise.
75932         * sunrpc/rpc/auth.h: Likewise.
75933         * sunrpc/rpc/auth_unix.h: Likewise.
75934         * sunrpc/rpc/clnt.h: Likewise.
75935         * sunrpc/rpc/des_crypt.h: Likewise.
75936         * sunrpc/rpc/key_prot.h: Likewise.
75937         * sunrpc/rpc/netdb.h: Likewise.
75938         * sunrpc/rpc/pmap_clnt.h: Likewise.
75939         * sunrpc/rpc/pmap_prot.h: Likewise.
75940         * sunrpc/rpc/pmap_rmt.h: Likewise.
75941         * sunrpc/rpc/rpc.h: Likewise.
75942         * sunrpc/rpc/rpc_des.h: Likewise.
75943         * sunrpc/rpc/rpc_msg.h: Likewise.
75944         * sunrpc/rpc/svc.h: Likewise.
75945         * sunrpc/rpc/svc_auth.h: Likewise.
75946         * sunrpc/rpc/types.h: Likewise.
75947         * sunrpc/rpc/xdr.h: Likewise.
75948         * sunrpc/rpc_clntout.c: Likewise.
75949         * sunrpc/rpc_cmsg.c: Likewise.
75950         * sunrpc/rpc_common.c: Likewise.
75951         * sunrpc/rpc_cout.c: Likewise.
75952         * sunrpc/rpc_dtable.c: Likewise.
75953         * sunrpc/rpc_hout.c: Likewise.
75954         * sunrpc/rpc_main.c: Likewise.
75955         * sunrpc/rpc_parse.c: Likewise.
75956         * sunrpc/rpc_parse.h: Likewise.
75957         * sunrpc/rpc_prot.c: Likewise.
75958         * sunrpc/rpc_sample.c: Likewise.
75959         * sunrpc/rpc_scan.c: Likewise.
75960         * sunrpc/rpc_scan.h: Likewise.
75961         * sunrpc/rpc_svcout.c: Likewise.
75962         * sunrpc/rpc_tblout.c: Likewise.
75963         * sunrpc/rpc_util.c: Likewise.
75964         * sunrpc/rpc_util.h: Likewise.
75965         * sunrpc/rpcinfo.c: Likewise.
75966         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
75967         * sunrpc/rpcsvc/key_prot.x: Likewise.
75968         * sunrpc/rpcsvc/klm_prot.x: Likewise.
75969         * sunrpc/rpcsvc/mount.x: Likewise.
75970         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
75971         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
75972         * sunrpc/rpcsvc/rex.x: Likewise.
75973         * sunrpc/rpcsvc/rstat.x: Likewise.
75974         * sunrpc/rpcsvc/rusers.x: Likewise.
75975         * sunrpc/rpcsvc/sm_inter.x: Likewise.
75976         * sunrpc/rpcsvc/spray.x: Likewise.
75977         * sunrpc/rpcsvc/yppasswd.x: Likewise.
75978         * sunrpc/rtime.c: Likewise.
75979         * sunrpc/svc.c: Likewise.
75980         * sunrpc/svc_auth.c: Likewise.
75981         * sunrpc/svc_authux.c: Likewise.
75982         * sunrpc/svc_raw.c: Likewise.
75983         * sunrpc/svc_run.c: Likewise.
75984         * sunrpc/svc_simple.c: Likewise.
75985         * sunrpc/svc_tcp.c: Likewise.
75986         * sunrpc/svc_udp.c: Likewise.
75987         * sunrpc/svc_unix.c: Likewise.
75988         * sunrpc/svcauth_des.c: Likewise.
75989         * sunrpc/xcrypt.c: Likewise.
75990         * sunrpc/xdr.c: Likewise.
75991         * sunrpc/xdr_array.c: Likewise.
75992         * sunrpc/xdr_float.c: Likewise.
75993         * sunrpc/xdr_mem.c: Likewise.
75994         * sunrpc/xdr_rec.c: Likewise.
75995         * sunrpc/xdr_ref.c: Likewise.
75996         * sunrpc/xdr_sizeof.c: Likewise.
75997         * sunrpc/xdr_stdio.c: Likewise.
75998
75999         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76000         handling.
76001
76002 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76003
76004         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76005
76006 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76007
76008         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76009         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76010         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76011         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76012         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76013         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76014         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76015         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76016         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76017         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76018         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76019         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76020         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76021         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76022
76023 2010-07-26  Anton Blanchard  <anton@samba.org>
76024
76025         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76026         * malloc/arena.c (heap_trim): Likewise.
76027
76028 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76029
76030         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76031         here.  Not...
76032         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76033         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76034
76035 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76036
76037         * sysdeps/i386/elf/Makefile: New file.
76038
76039 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76040
76041         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76042         from fanotify_init.
76043         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76044         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76045
76046 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76047
76048         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76049         of strncasecmp_l.
76050         * sysdeps/multiarch/strcmp.S: Likewise.
76051
76052 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76053
76054         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76055         strncase_l-nonascii.
76056         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76057         Add strncase_l-ssse3.
76058         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76059         * sysdeps/x86_64/strcmp.S: Likewise.
76060         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76061         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76062         * sysdeps/x86_64/strncase.S: New file.
76063         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76064         * sysdeps/x86_64/strncase_l.S: New file.
76065         * string/Makefile (strop-tests): Add strncasecmp.
76066         * string/test-strncasecmp.c: New file.
76067
76068         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76069         warning.
76070
76071         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76072         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76073
76074 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76075
76076         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76077
76078 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76079
76080         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76081         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76082         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76083
76084 2010-05-01  Alan Modra  <amodra@gmail.com>
76085
76086         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76087         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76088         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76089         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76090         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76091         tidying.  Don't tail-call __sigjmp_save for static lib.
76092         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76093         save location.
76094         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76095         (CALL_MCOUNT): Add eh info, and nop after bl.
76096         (TAIL_CALL_SYSCALL_ERROR): New macro.
76097         (PSEUDO_RET): Use it.
76098         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76099         Correct save location of integer regs and cr.
76100         (_dl_profile_resolve): Correct cr save location.  Delete nops
76101         after bl when SHARED.  Reduce cfi size a little by better
76102         placement of cfi directives.
76103         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76104         make a stack frame.  Instead use parm save area as a temp.
76105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76106         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76108         Don't make a stack frame for parent, use parm save area.
76109         Increase child stack frame to 112 bytes.  Don't save unused reg,
76110         and adjust reg usage.  Set up cfi on error recovery and
76111         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76113         (__makecontext): Add dummy nop after jump to exit.
76114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76115         Use correct parm save area and cr save, reduce stack frame.
76116         Correct cfi for possible PSEUDO_RET frame setup.
76117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76118         Branch to local label emitted by PSEUDO_RET rather than
76119         __syscall_error.
76120
76121 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76122
76123         [BZ #11904]
76124         * locale/programs/locale.c (print_assignment): New function.
76125         (show_locale_vars): Use it.
76126
76127 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76128
76129         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76130         field.
76131         (struct statfs64): Likewise.
76132         (_STATFS_F_FLAGS): Define.
76133         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76134         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76135         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76136         (ST_VALID): Define locally.
76137         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76138         __statvfs_getflags, use the provided value.
76139         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76140         __ASSUME_STATFS_F_FLAGS.
76141
76142         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76143
76144         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76145         Add sys/fanotify.h.
76146         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76147         fanotify_mask for GLIBC_2.13.
76148         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76149         fanotify_init and fanotify_mark.
76150         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76151         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76152
76153         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76154         Add prlimit.
76155         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76156         prlimit64 for GLIBC_2.13.
76157         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76158         prlimit64.
76159         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76160         syscall.
76161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76162         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76163         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76164         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76165         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76166         add prlimit alias.
76167         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76168
76169         [BZ #11903]
76170         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76171         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76172
76173         * nss/Makefile: Add rules to build and run tst-nss-test1.
76174         * shlib-versions: Add entry for libnss_test1.
76175         * nss/nss_test1.c: New file.
76176         * nss/tst-nss-test1.c: New file.
76177
76178         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76179         (__nss_configure_lookup): Set appropriate entry in
76180         __nss_configure_lookup to true.
76181         * nss/nsswitch.h: Define enum with indeces of databases in
76182         databases and __nss_database_custom arrays.  Declare
76183         __nss_database_custom.
76184         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76185         to avoid using nscd when custom rules are installed.
76186         * nss/getXXbyYY_r.c: Likewise.
76187         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76188
76189         * nss/nss_files/files-parse.c: Whitespace fixes.
76190
76191 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76192
76193         [BZ #11883]
76194         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76195         * posix/fnmatch_loop.c: Likewise.
76196
76197 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76198
76199         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76200         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76201         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76202         * Versions.def [GLIBC_2.13]: Add.
76203
76204 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76205
76206         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76207         Also fail if tpwd after pwuid call is NULL.
76208
76209 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76210
76211         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76212         when converting to ms.
76213
76214 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76215
76216         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76217         EOPNOTSUPP errors with ENOTTY.
76218         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76219         EOPNOTSUPP errors with ENOTTY.
76220
76221 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76222
76223         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76224         Add strcasecmp_l-ssse3.
76225         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76226         strcasecmp.
76227         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76228         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76229         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76230
76231 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76232
76233         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76234
76235         * string/Makefile (strop-tests): Add strcasecmp.
76236         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76237         strcasecmp_l-nonascii.
76238         (gen-as-const-headers): Add locale-defines.sym.
76239         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76240         * sysdeps/x86_64/strcasecmp.S: New file.
76241         * sysdeps/x86_64/strcasecmp_l.S: New file.
76242         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76243         * sysdeps/x86_64/locale-defines.sym: New file.
76244         * string/test-strcasecmp.c: New file.
76245
76246         * string/test-strcasestr.c: Test both ends of the range of characters.
76247         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76248
76249 2010-07-29  Roland McGrath  <roland@redhat.com>
76250
76251         [BZ #11856]
76252         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76253
76254 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76255
76256         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76257         for ld.so.
76258
76259 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76260
76261         * manual/memory.texi (Malloc Tunable Parameters): Document
76262         M_PERTURB.
76263
76264 2010-07-26  Roland McGrath  <roland@redhat.com>
76265
76266         [BZ #11840]
76267         * configure.in (-fgnu89-inline check): Set and substitute
76268         gnu89_inline, not libc_cv_gnu89_inline.
76269         * configure: Regenerated.
76270         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76271
76272 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76273
76274         * string/test-strnlen.c: New file.
76275         * string/Makefile (strop-tests): Add strnlen.
76276         * string/tester.c (test_strnlen): Add a few more test cases.
76277         * string/tst-strlen.c: Better error reporting.
76278
76279         * sysdeps/x86_64/strnlen.S: New file.
76280
76281 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76282
76283         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76284         lower-latency instructions.
76285
76286 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76287
76288         * string/test-strcasestr.c: New file.
76289         * string/test-strstr.c: New file.
76290         * string/Makefile (strop-tests): Add strstr and strcasestr.
76291         * string/str-two-way.h: Don't undefine MAX.
76292         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76293
76294 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76295
76296         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76297         strcasestr-nonascii.
76298         (CFLAGS-strcasestr-nonascii.c): Define.
76299         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76300         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76301         Remove unused attribute.
76302
76303 2010-07-20  Roland McGrath  <roland@redhat.com>
76304
76305         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76306         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76307         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76308         like LD_HWCAP_MASK can disable hwcaps.
76309
76310 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76311
76312         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76313
76314 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76315
76316         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76317         call in strcasestr.
76318         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76319         __strcasestr_sse42_nonascii.
76320         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76321         strcasestr-nonascii.c.
76322         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76323
76324 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76325
76326         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76327         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76328         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76329         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76330
76331 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76332
76333         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76334         fcntl.
76335
76336 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76337
76338         [BZ #11577]
76339         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76340         dl_signal_cerror.
76341
76342 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76343
76344         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76345         _PC_PIPE_BUF using F_GETPIPE_SZ.
76346
76347 2010-07-05  Roland McGrath  <roland@redhat.com>
76348
76349         * manual/arith.texi (Rounding Functions): Fix rint description
76350         implicit in round description.
76351
76352 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76353
76354         * elf/Makefile: Fix linking for a few tests to make recent linker
76355         happy.
76356
76357 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76358
76359         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76360         $(common-objpfx)libc_nonshared.a.
76361
76362 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76363
76364         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76365         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76366         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76367         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76368         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76369         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76370         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76371         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76386         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76387         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76388         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76389         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76390         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76391         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76392         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76393         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76394         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76395         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76396         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76397         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76412
76413 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76414
76415         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76416         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76417         * string/memmove.c (memmove): Renamed to ...
76418         (MEMMOVE): ...this.  Default to memmove.
76419         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76420         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76421         (END_CHK): Define.
76422         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76423         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76424         mempcpy-ssse3-back memmove-ssse3-back.
76425         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76426         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76427         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76428         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76429         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76430         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76431         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76432         * sysdeps/x86_64/multiarch/memmove.c: New file.
76433         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76434         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76435         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76436         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76437         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76438         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76439         Define.
76440         (index_Fast_Copy_Backward): Define.
76441         (HAS_ARCH_FEATURE): Define.
76442         (HAS_FAST_REP_STRING): Define.
76443         (HAS_FAST_COPY_BACKWARD): Define.
76444
76445 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76446
76447         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76448         Restore proper fallback handling.
76449
76450 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76451
76452         [BZ #11701]
76453         * posix/group_member.c (__group_member): Correct checking loop.
76454
76455         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76456         OOM in getpwuid_r correctly.  Return error number when the caller
76457         should return, otherwise -1.
76458         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76459         call returning > 0 value.
76460         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76461
76462 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76463
76464         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76465         libc_nonshared.a from targets in modules-names.
76466
76467 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76468
76469         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76470         requires it.
76471
76472 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76473
76474         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76475         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76476         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76477         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76478
76479 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76480
76481         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76482
76483 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76484
76485         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76486         and F_GETPIPE_SZ.
76487         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76488         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76489         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76490         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76491         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76492         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76493
76494 2010-06-14  Roland McGrath  <roland@redhat.com>
76495
76496         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76497
76498 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76499
76500         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76501         __REDIRECT followed by __THROW.
76502         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76503         * posix/getopt.h (getopt): Likewise.
76504
76505 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76506
76507         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76508         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76509         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76510         in AT_FLAGS.
76511         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76512         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76513
76514 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76515
76516         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76517
76518 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76519
76520         [BZ #11640]
76521         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76522         Properly check family and model.
76523
76524 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76525
76526         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76527
76528 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76529
76530         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76531
76532 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76533
76534         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76535         symbol reference.
76536
76537 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76538
76539         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76540         symbol reference.
76541
76542 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76543
76544         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76545         and internal_recvmmsg.
76546         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76547         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76548         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76549         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76550
76551         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76552         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76553         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76554
76555 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76556
76557         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76558
76559 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76560
76561         POWER7 optimizations.
76562         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76563         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76564
76565 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76566
76567         * version.h: Update for 2.13 development version.
76568
76569 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76570
76571         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76572         exceptions.  Return 0.
76573
76574 2010-05-07  Roland McGrath  <roland@redhat.com>
76575
76576         * elf/ldconfig.c (main): Add a const.
76577
76578 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76579
76580         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76581         (args_options): Add no-idn option.
76582         (ahosts_keys_int): Add idn_flags to ai_flags.
76583         (parse_option): Handle 'i' option to clear idn_flags.
76584
76585         * malloc/malloc.c (_int_free): Possible race in the most recently
76586         added check.  Only act on the data if no current modification
76587         happened.
76588
76589 See ChangeLog.17 for earlier changes.