manual: fix typos in the message chapter
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
2
3         * manual/message.texi: Fix typos & grammar errors.
4
5 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
6
7         * manual/contrib.texi: Fix spelling typos.
8         * manual/crypt.texi: Likewise.
9         * manual/filesys.texi: Likewise.
10         * manual/locale.texi: Likewise.
11         * manual/message.texi: Likewise.
12         * manual/nss.texi: Likewise.
13         * manual/string.texi: Likewise.
14
15 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
16
17         * manual/locale.texi: Fix typos & grammar errors.
18
19 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
20
21         * manual/charset.texi: Fix typos & grammar errors.
22
23 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
24
25         * manual/string.texi: Fix typos.
26
27 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
28
29         * manual/ctype.texi: Fix typos.
30
31 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
32
33         * manual/memory.texi: Fix various typos & grammar errors.
34
35 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
36
37         [BZ #20255]
38         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
39         * math/libm-test.inc (fdim_test_data): Add another test.
40
41         [BZ #6796]
42         [BZ #20255]
43         [BZ #20256]
44         * math/s_fdim.c: Include <math_private.h>.
45         (__fdim): Use math_narrow_eval on result.
46         * math/s_fdimf.c: Include <math_private.h>.
47         (__fdimf): Use math_narrow_eval on result.
48         * sysdeps/i386/fpu/s_fdim.S: Remove file.
49         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
50         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
51         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
52         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
53         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
54         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
55         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
56         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
57         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
58         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
59         * math/libm-test.inc (fdim_test_data): Expect errno setting on
60         overflow.  Add sNaN tests.
61
62         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
63         fpclassify.
64         * math/s_fdimf.c (__fdimf): Likewise.
65         * math/s_fdiml.c (__fdiml): Likewise.
66
67 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
68
69         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
70         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
71         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
72         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
73         ifunc'ed strcasecmp/strncasecmp.
74         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
75         [EALIGN]: Removed.
76         [END]: Likewise.
77         [__strcasecmp]: Define instead of the above to control symbol name.
78         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
79         for __strcasecmp_power8.
80         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
81         for __strncasecmp_power8.
82         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
83         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
84         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
85         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
86         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
87         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
88
89 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
90
91         [BZ #20252]
92         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
93         arguments when second argument is a NaN.
94         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
95         qNaN tests.
96
97         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
98         (conj_test_data): Likewise.
99         (copysign_test_data): Likewise.
100         (creal_test_data): Likewise.
101         (fma_test_data): Likewise.
102         (fmod_test_data): Likewise.
103
104         [BZ #20250]
105         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
106         itself.
107         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
108         zero input to itself.
109         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
110         Likewise.
111         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
112         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
113         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
114         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
115         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
116
117 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
118
119         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
120         * nptl/tst-cancel4-common.c: New file.
121         * nptl/tst-cancel4-common.h: Likewise.
122         * nptl/tst-cancel4.c: Move common definitions to
123         tst-cancel4-common.{c,h} file.
124         * nptl/tst-cancel4_1.c: New test.
125         * nptl/tst-cancel4_2.c: New test.
126
127 2016-06-13  Florian Weimer  <fweimer@redhat.com>
128
129         [BZ #20248]
130         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
131         (write_message): New function.
132         (stackoverflow_handler): Call it instead of printf, to avoid
133         excessive stack usage by printf.
134         (do_test): Restore SIGSEGV, SIGBUS default handlers.
135
136 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
137
138         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
139         (prio_inherit_missing): Remove define.
140         * sysdeps/unix/sysv/linux/arm/kernel-features.h
141         (__ASSUME_FUTEX_LOCK_PI): Likewise.
142         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
143         Likewise.
144         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
145         (__ASSUME_FUTEX_LOCK_PI): Likewise.
146         * sysdeps/unix/sysv/linux/mips/kernel-features.h
147         (__ASSUME_FUTEX_LOCK_PI): Likewise.
148         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
149         (__ASSUME_FUTEX_LOCK_PI): Likewise.
150
151 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
152
153         [BZ #19670]
154         [BZ #19672]
155
156         * io/test-lfs.c (do_prepare): Use xmalloc.
157         * io/tst-fcntl.c (do_prepare): Likewise.
158         * libio/tst-fopenloc.c (do_bz17916): Likewise.
159         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
160         * login/tst-utmp.c (do_prepare): Likewise.
161         * posix/tst-exec.c (do_prepare): Likewise.
162         * posix/tst-pathconf.c (prepare): Likewise.
163         * posix/tst-spawn.c (do_prepare): Likewise.
164         * posix/tst-truncate.c (do_prepare): Likewise.
165         * rt/tst-aio.c (do_prepare): Likewise.
166         * rt/tst-aio64.c (do_prepare): Likewise.
167
168 2016-06-11  Florian Weimer  <fweimer@redhat.com>
169
170         [BZ #20237]
171         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
172         (get*ent): Set entidx to NULL during initialization.  If entidx is
173         NULL, start iteration from the beginning.
174
175 2016-06-11  Florian Weimer  <fweimer@redhat.com>
176
177         * malloc/malloc.c (musable): Return correct size for dumped fake
178         mmapped chunk.
179
180 2016-06-11  Florian Weimer  <fweimer@redhat.com>
181
182         [BZ #20222]
183         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
184         (_IO_cookie_write): Likewise.
185         (_IO_cookie_seek): Likewise.
186         (_IO_cookie_close): Likewise.
187         (_IO_old_cookie_seek): Likewise.
188         (set_callbacks): New function.
189         (_IO_cookie_init): Call set_callbacks to copy callbacks.
190
191 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
192
193         * locale/programs/localedef.c (oldstyle_tables): Remove.
194         * locale/programs/localedef.h (oldstyle_tables): Likewise.
195
196 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
197
198         [BZ #20240]
199         * math/Makefile (CFLAGS-s_modf.c): New variable.
200         (CFLAGS-s_modff.c): Likewise.
201         (CFLAGS-s_modfl.c): Likewise.
202         * math/libm-test.inc (modf_test_data): Add sNaN tests.
203
204 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
205
206         [BZ #20215]
207         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
208         [!__GNUC_PREREQ (3,2)]: Likewise.
209
210 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
211
212         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
213         (msghdr.msg_controllen): Likewise.
214         (cmsghdr.cmsg_len): Likewise.
215         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
216         ptw-oldsendmsg.
217         (CFLAGS-oldrecvmsg.c): Remove rule.
218         (CFLAGS-oldsendmsg.c): Likewise.
219         (CFLAGS-recvmsg.c): Add rule.
220         (CFLAGS-sendmsg.c): Likewise.
221         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
222         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
223         (CFLAGS-recvmsg.c): Remove rule.
224         (CFLAGS-sendmsg.c): Likewise.
225         (CFLAGS-oldrecvmsg.c): Likewise.
226         (CFLAGS-oldsendmsg.c): Likewise.
227         (CFLAGS-recvmmsg.c): Likewise.
228         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
229         to kernel defined interfaces.
230         (msghdr.msg_controllen): Likewise.
231         (cmsghdr.cmsg_len): Likewise.
232         (msghdr.__glibc_reserved1): Remove member.
233         (msghdr.__glibc_reserved2): Likewise.
234         (cmsghdr.__glibc_reserved1): Likewise.
235         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
236         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
237         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
238         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
239         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
240         version.
241         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
242         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
243         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
244         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
245         Remove recvmsg and sendmsg.
246         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
247         Likewise.
248         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
249         Likewise.
250         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
251         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
252         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
253         Likewise.
254         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
255         Likewise.
256         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
257         [libc] (GLIBC_2.24): Likewise.
258         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
259         Likewise.
260         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
261         Likewise.
262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
263         [libc] (GLIBC_2.24): Likewise.
264         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
265         Likewise.
266         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
267         Likewise.
268         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
269         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
270         Likewise.
271         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
272         Likewise.
273         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
274         Likewise.
275         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
276         Likewise.
277         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
278         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
279         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
280         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
281         version for {recv,send,recm,sendm}msg.
282         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
283         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
284         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
285         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
286         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
287         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
288         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
289         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
290         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
291         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
292         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
293         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
295         Likewise.
296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
297         Likewise.
298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
300         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
301         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
302         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
303         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
304         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
305         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
306         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
308         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
309         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
310         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
311
312 2016-06-10  Florian Weimer  <fweimer@redhat.com>
313
314         [BZ #19564]
315         Remove __malloc_initialize_hook from the API.
316         * malloc/malloc.h (__malloc_initialize_hook): Remove.
317         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
318         #pragma GCC poison.
319         * malloc/malloc-hooks.h: New file.
320         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
321         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
322         (old__malloc_initialize_hook): Rename from
323         __malloc_initialize_hook to evade poisoning.  Turn into compat
324         symbol.
325         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
326         __malloc_initialize_hook.
327         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
328         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
329         * manual/memory.texi (Hooks for Malloc): Remove
330         __malloc_initialize_hook.  Adjust hook example.
331
332 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
333
334         [BZ #20235]
335         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
336         itself.
337         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
338         * math/libm-test.inc (log2_test_data): Add sNaN tests.
339
340         [BZ #20234]
341         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
342         infinity or NaN input to itself.
343
344         [BZ #20233]
345         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
346         to itself.
347
348         [BZ #20232]
349         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
350         itself.
351
352 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
353
354         * sysdeps/x86_64/start.S (_start): Always indirect branch to
355         __libc_start_main via GOT.
356
357 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
358
359         * sysdeps/x86_64/memcopy.h: New file.
360         * sysdeps/x86_64/wordcopy.c: Likewise.
361
362 2016-06-09  Florian Weimer  <fweimer@redhat.com>
363
364         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
365         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
366         <cstdlib>.
367         (optimization_barrier): New.
368         (do_test): Use it.  Call quick_exit in the global namespace.
369         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
370         instead of <cstdlib>, <thread>.
371         (optimization_barrier): New.
372         (non_main_thread): Adjust declaration.  Call optimization_barrier.
373         Call quick_exit in the global namespace.
374         (do_test): Call optimization_barrier.  Use pthread_create,
375         pthread_join instead of std::thread.
376
377 2016-06-09  Andreas Schwab  <schwab@suse.de>
378
379         [BZ #19755]
380         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
381         new entries in auto-propagate mode.
382         * nscd/grpcache.c (cache_addgr): Likewise.
383
384 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
385
386         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
387         New functions.
388         (add_temp_file): Use them.
389
390 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
391
392         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
393
394 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
395
396         [BZ #20229]
397         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
398         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
399         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
400
401         [BZ #20228]
402         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
403         itself.
404         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
405         * math/libm-test.inc (log10_test_data): Add sNaN tests.
406
407         [BZ #20227]
408         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
409         itself.
410         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
411         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
412         * math/libm-test.inc (log_test_data): Add sNaN tests.
413
414         [BZ #20226]
415         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
416         itself.
417         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
418         * math/libm-test.inc (exp_test_data): Add sNaN tests.
419         (exp10_test_data): Likewise.
420         (expm1_test_data): Likewise.
421
422         [BZ #20225]
423         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
424         itself.
425         * math/s_ldexpf.c (__ldexpf): Likewise.
426         * math/s_ldexpl.c (__ldexpl): Likewise.
427         * math/w_scalbln.c (__w_scalbln): Likewise.
428         * math/w_scalblnf.c (__w_scalblnf): Likewise.
429         * math/w_scalblnl.c (__w_scalblnl): Likewise.
430         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
431         (scalbln_test_data): Likewise.
432
433         [BZ #20224]
434         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
435         argument to itself.
436         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
437
438 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
439
440         [BZ #19776]
441         * sysdeps/x86_64/memcpy.S: Make it dummy.
442         * sysdeps/x86_64/mempcpy.S: Likewise.
443         * sysdeps/x86_64/memmove.S: New file.
444         * sysdeps/x86_64/memmove_chk.S: Likewise.
445         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
446         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
447         * sysdeps/x86_64/memmove.c: Removed.
448         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
449         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
450         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
451         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
452         Likewise.
453         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
454         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
455         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
456         memcpy-sse2-unaligned, memmove-avx-unaligned,
457         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
458         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
459         (__libc_ifunc_impl_list): Replace
460         __memmove_chk_avx512_unaligned_2 with
461         __memmove_chk_avx512_unaligned.  Remove
462         __memmove_chk_avx_unaligned_2.  Replace
463         __memmove_chk_sse2_unaligned_2 with
464         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
465         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
466         with __memmove_avx512_unaligned.  Replace
467         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
468         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
469         with __memcpy_chk_avx512_unaligned.  Remove
470         __memcpy_chk_avx_unaligned_2.  Replace
471         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
472         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
473         Replace __memcpy_avx512_unaligned_2 with
474         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
475         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
476         with __mempcpy_chk_avx512_unaligned.  Remove
477         __mempcpy_chk_avx_unaligned_2.  Replace
478         __mempcpy_chk_sse2_unaligned_2 with
479         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
480         Replace __mempcpy_avx512_unaligned_2 with
481         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
482         Replace __mempcpy_sse2_unaligned_2 with
483         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
484         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
485         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
486         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
487         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
488         (ENTRY): Removed.
489         (END): Likewise.
490         (ENTRY_CHK): Likewise.
491         (libc_hidden_builtin_def): Likewise.
492         Don't include ../memcpy.S.
493         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
494         __memcpy_chk_avx512_unaligned_erms and
495         __memcpy_chk_avx512_unaligned.  Use
496         __memcpy_chk_avx_unaligned_erms and
497         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
498         Default to __memcpy_chk_sse2_unaligned.
499         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
500         Change function suffix from unaligned_2 to unaligned.
501         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
502         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
503         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
504         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
505         (ENTRY): Removed.
506         (END): Likewise.
507         (ENTRY_CHK): Likewise.
508         (libc_hidden_builtin_def): Likewise.
509         Don't include ../mempcpy.S.
510         (mempcpy): New.  Add a weak alias.
511         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
512         __mempcpy_chk_avx512_unaligned_erms and
513         __mempcpy_chk_avx512_unaligned.  Use
514         __mempcpy_chk_avx_unaligned_erms and
515         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
516         Default to __mempcpy_chk_sse2_unaligned.
517
518 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
519
520         [BZ #19881]
521         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
522         into ...
523         * sysdeps/x86_64/memset.S: This.
524         (__bzero): Removed.
525         (__memset_tail): Likewise.
526         (__memset_chk): Likewise.
527         (memset): Likewise.
528         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
529         defined.
530         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
531         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
532         (__memset_zero_constant_len_parameter): Check SHARED instead of
533         PIC.
534         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
535         memset-avx2 and memset-sse2-unaligned-erms.
536         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
537         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
538         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
539         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
540         (__bzero): Enabled.
541         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
542         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
543         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
544         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
545         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
546         (memset): Removed.
547         (__memset_chk): Likewise.
548         (MEMSET_SYMBOL): New.
549         (libc_hidden_builtin_def): Replace __memset_sse2 with
550         __memset_sse2_unaligned.
551         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
552         __memset_chk_sse2 and __memset_chk_avx2 with
553         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
554         Use __memset_chk_sse2_unaligned_erms or
555         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
556         __memset_chk_avx512_unaligned_erms and
557         __memset_chk_avx512_unaligned.
558
559 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
560
561         * math/gen-auto-libm-test.c (fp_format_desc): remove
562         suffix member.
563         (output_generic_value): Remove usage of suffix member,
564         and the resulting unuse of the fp_format argument.
565         (output_for_one_input_case): Remove unused fp_format
566         parameter.
567
568         * math/auto-libm-test-out: Regenerate.
569
570         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
571         usage with TEST_COND_ibm128.
572         (TEST_COND_flt_32): Remove.
573         (TEST_COND_dbl_64): Remove.
574         (TEST_COND_ldbl_96_intel): Remove.
575         (TEST_COND_ldbl_96_m68k): Remove.
576         (TEST_COND_ldbl_128): Remove.
577
578 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
579
580         * auto-libm-test-in:
581         Replace flt-32 usage with binary32.
582         Replace dbl-64 usage with binary64.
583         Replace ldbl-intel-96 usage with intel96.
584         Replace ldbl-m68k-96 usage with m68k96.
585         Replace ldbl-128ibm usage with ibm128.
586         Replace ldbl-128 usage with binary128.
587
588         * auto-libm-test-out: Regenerate.
589
590 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
591
592         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
593         (parse_ulps): Dynamically generate type name matching
594         string from all_floats.
595         (get_ulps): Generate the ulps as an array instead.
596         (output_ulps): Dynamically compose the type based
597         on the number of supported formats, and print
598         the indices as type specific helper macros.
599
600         * math/libm-test.inc: Remove comment about CHOOSE.
601         (ulp_data): Generate the type in libm-test-ulps.h.
602         (ULP_IDX): New macro.
603         (find_ulps): Update usage of max_ulp.
604
605         * math/test-double-vlen2.h (CHOOSE): Remove.
606         * math/test-double-vlen4.h (CHOOSE): Likewise.
607         * math/test-double-vlen8.h (CHOOSE): Likewise.
608         * math/test-float.c (CHOOSE): Likewise.
609         * math/test-float-finite.c (CHOOSE): Likewise.
610         * math/test-double.c (CHOOSE): Likewise.
611         * math/test-double-finite.c (CHOOSE): Likewise.
612         * math/test-idouble.c (CHOOSE): Likewise.
613         * math/test-ifloat.c (CHOOSE): Likewise.
614         * math/test-ildoubl.c (CHOOSE): Likewise.
615         * math/test-ldouble-finite.c (CHOOSE): Likewise.
616         * math/test-ldouble.c (CHOOSE): Likewise.
617
618         * math/test-float.h (TEST_FLOAT): Remove.
619         * math/test-double.h (TEST_DOUBLE): Likewise.
620         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
621
622 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
623
624         * math/gen-libm-test.pl: (apply_lit): New subroutine.
625         (parse_args): Strip C suffix from floating point literals
626         typed with 'f' and wrap them with LIT().
627
628         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
629         (test_ff_f_data_nexttoward): Rename to
630         (test_fj_f_data): New struct.
631         (nexttoward_test_data): Relabel tests as
632         TEST_fj_f instead of TEST_ff_f.
633
634 2016-06-08  Florian Weimer  <fweimer@redhat.com>
635
636         Emacs bug 23726.
637         * malloc/malloc.c (dumped_main_arena_start): Update comment.
638         (__libc_realloc): Correct size computation for dumped fake mmapped
639         chunks.
640
641 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
642
643         [BZ #20219]
644         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
645         to itself.
646         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
647
648         [BZ #20218]
649         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
650         to itself.
651         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
652
653 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
654
655         [BZ #20195]
656         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
657         check to ...
658         (init_cpu_features): Here.
659
660 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
661
662         [BZ #20214]
663         * sysdeps/unix/sysv/linux/bits/in.h
664         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
665          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
666         Define to 1.
667         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
668          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
669         Define to 0.
670         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
671         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
672
673 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
674
675         [BZ #20198]
676         * stdlib/Makefile (tests): Add tst-quick_exit, and
677         tst-thread-quick_exit.
678         [ifeq ($(have-cxx-thread_local),yes)]
679         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
680         (CFLAGS-tst-thread-quick_exit.o): Likewise.
681         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
682         (LDLIBS-tst-thread-quick_exit): Likewise.
683         [ifneq ($(have-cxx-thread_local),yes)]
684         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
685         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
686         If run_dtors is true call __call_tls_dtors.
687         (exit): Call __run_exit_handlers with run_dtors set to true.
688         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
689         definition.
690         * stdlib/quick_exit.c (quick_exit): Remove function.
691         (__new_quick_exit): New function.
692         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
693         function.
694         * stdlib/tst-quick_exit.cc: New file.
695         * stdlib/tst-thread-quick_exit.cc: New file.
696         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
697         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
698         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
699         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
700         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
701         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
702         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
703         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
704         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
705         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
706         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
707         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
708         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
709         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
710         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
711         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
716         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
717         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
718         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
719         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
720         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
721         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
722         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
723         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
724         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
725         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
726
727 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
728
729         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
730         a typo in comments.
731
732 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
733
734         [BZ #20213]
735         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
736         argument to itself.
737         * math/libm-test.inc (asin_test_data): Add sNaN tests.
738
739 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
740
741         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
742         required flags.
743         (CFLAGS-pwritev64.c): Likewise.
744         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
745         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
746         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
747         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
748         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
749         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
750         syscall from auto-generation.
751         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
752         [WORDSIZE == 64] (pwritev64): Remove macro.
753         [!PWRITEV] (PWRITEV): Likewise.
754         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
755         [!PWRITEV] (PWRITE): Likewise.
756         [!PWRITEV] (OFF_T): Likewise.
757         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
758         (LO_HI_LONG): Remove macro.
759         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
760         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
761         (PWRITEV): Remove macro.
762         (PWRITEV_REPLACEMENTE): Likewise.
763         (PWRITE): Likewise.
764         (OFF_T): Likewise.
765         (pwritev64): New function.
766         * nptl/tst-cancel4.c (tf_writev): Add test.
767
768         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
769         required flags.
770         (CFLAGS-preadv64.c): Likewise.
771         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
772         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
773         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
774         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
775         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
776         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
777         syscall from auto-generation.
778         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
779         [WORDSIZE == 64] (preadv64): Remove macro.
780         [!PREADV] (PREADV): Likewise.
781         [!PREADV] (PREADV_REPLACEMENT): Likewise.
782         [!PREADV] (PREAD): Likewise.
783         [!PREADV] (OFF_T): Likewise.
784         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
785         (LO_HI_LONG): Remove macro.
786         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
787         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
788         (PREADV): Remove macro.
789         (PREADV_REPLACEMENTE): Likewise.
790         (PREAD): Likewise.
791         (OFF_T): Likewise.
792         (preadv64): New function.
793         * nptl/tst-cancel4.c (tf_preadv): Add test.
794
795 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
796
797         [BZ #20212]
798         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
799         argument to itself.
800         * math/libm-test.inc (acos_test_data): Add sNaN tests.
801
802 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
803
804         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
805         New symbol defined as libc_hidden_def.
806         (strcasestr): Became a weak alias to __strcasestr.
807         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
808         according to multi-arch support.  Move __stpncpy hidden
809         definition from here to...
810         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
811         symbol stpncpy.
812         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
813         libc_hidden_builtin_def.
814         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
815         memset symbol to use when multi-arch support is available.
816
817 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
818
819         * dlfcn/tst-rec-dlopen.c: Include string.h.
820
821 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
822
823         * manual/install.texi: Remove mention of --without-tls
824         * INSTALL: Regenerate.
825
826 2016-06-05  Florian Weimer  <fweimer@redhat.com>
827
828         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
829         Remove.
830         (call_function, interposed_malloc_called): New variables.
831         (malloc): New function.
832         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
833         and clear call_function as needed.
834
835 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
836
837         * include/wchar.h (__wmemset): Use __typeof.
838
839 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
840
841         * include/wchar.h (__wmemset): Declare function without typeof.
842
843 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
844
845         [BZ #20205]
846         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
847         exponent when incrementing negative subnormal with low mantissa
848         word zero.
849         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
850         Add another test.
851
852 2016-06-03  Florian Weimer  <fweimer@redhat.com>
853
854         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
855         __wmemset instead of wmemset.
856
857 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
858
859         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
860         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
861         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
862         __USE_KERNEL_IPV6_DEFS to 0.
863         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
864         Update comment.
865
866 2016-06-01  Florian Weimer  <fweimer@redhat.com>
867
868         [BZ #19861]
869         Do not use IFUNC resolver with potentially unrelocated symbol.
870         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
871         (DEFINE_FORK): Remove macro and inline definition.
872         (fork_alias): Renamed from fork_ifunc.
873         (__fork_alias): Renamed from __fork_ifunc.
874
875 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
876
877         [BZ 19653]
878         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
879         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
880
881 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
882
883         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
884         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
885         i386-linux-gnu).
886         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
887         Set to no.
888         * sysdeps/mach/hurd/configure: Refresh.
889
890 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
891
892         [BZ #20178]
893         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
894         on failure instead of exit.
895
896 2016-05-30  Roland McGrath  <roland@hack.frob.com>
897
898         [BZ #3629]
899         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
900         of POSIX.1-2008.
901
902 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
903
904         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
905           Use PLT entry for calling _hurd_self_sigstate.
906
907 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
908
909         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
910         available logical processors with SMT level type sharing L2
911         cache for Intel processors.
912
913 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
914
915         [BZ #20160]
916         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
917         argument to itself before returning the result.
918         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
919         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
920         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
921         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
922         Likewise.
923         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
924         Likewise.
925         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
926         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
927         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
928         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
929         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
930         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
931
932         [BZ #20160]
933         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
934         argument to itself before returning the result.
935         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
936         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
937         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
938         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
939         Likewise.
940         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
941         Likewise.
942         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
943         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
944         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
945         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
946         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
947         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
948
949 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
950
951         * libm-test.inc: Replace usage of M_El with
952         (lit_e): New macro.
953
954 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
955
956         * libm-test.inc: Replace usage of M_PI_4l with
957         (lit_pi_4_d): New macro.
958
959 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
960
961         * libm-test.inc: Replace usage of M_PIl with
962         (lit_pi): New macro.
963
964 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
965
966         * libm-test.inc: Replace usage of M_PI2l with
967         (lit_pi_2_d): New macro.
968
969         * math/test-double.h (LITM): New macro.
970         * math/test-float.h (LITM): Likewise.
971         * math/test-ldouble.h (LITM): Likewise.
972
973 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
974
975         * libm-test.inc (M_PI_34l): Rename to
976         (lit_pi_3_m_4_d): New Macro.
977         (M_PI_34_LOG10El): Rename to
978         (lit_pi_3_m_4_ln10_m_d): New Macro.
979         (M_PI2_LOG10El): Rename to
980         (lit_pi_2_ln10_m_d):  New Macro.
981         (M_PI4_LOG10El): Rename to
982         (lit_pi_4_ln10_m_d):  New Macro.
983         (M_PI_LOG10El): Rename to
984         (lit_pi_ln10_d):  New Macro.
985
986 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
987
988         [BZ #20157]
989         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
990         determine whether to negate low half if [_ARCH_PPCGR], and integer
991         comparison otherwise.
992         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
993         determine whether to negate low half.
994
995         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
996         (NO_TEST_INLINE_DOUBLE): Likewise.
997         (TEST_COND_x86_64): Likewise.
998         (TEST_COND_x86): Likewise.
999         (M_PI_6l): Likewise.
1000
1001 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1002
1003         * math/libm-test.inc:
1004         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1005         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1006         (TEST_LDOUBLE): Update usage to evaluate as true if
1007         the guarded tests match the property being tested.
1008         (LDBL_MAX_EXP): Change to MAX_EXP.
1009         (LDBL_MIN_EXP): Change to MIN_EXP.
1010         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1011         nexttoward tests.
1012
1013 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1014
1015         * math/libm-test.inc:
1016         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1017         (TYPE_MIN): Likewise.
1018         (TYPE_TRUE_MIN): Likewise.
1019         (TYPE_MAX): Likewise.
1020         (MIN_EXP): Likewise.
1021         (MAX_EXP): Likewise.
1022         (MANT_DIG): Likewise.
1023
1024         (FSTR_MAX): New macro.
1025         (__CONCATX): Likewise.
1026         (QTYPE_STR): Likewise.
1027         (TEST_COND_binary32): Likewise.
1028         (TEST_COND_binary64): Likewise.
1029         (TEST_COND_binary128): Likewise.
1030         (TEST_COND_ibm128): Likewise.
1031         (TEST_COND_intel96): Likewise.
1032         (TEST_COND_m68k96): Likewise.
1033
1034         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1035         (TEST_COND_dbl_64): Likewise.
1036         (TEST_COND_ldbl_96_intel): Likewise.
1037         (TEST_COND_ldbl_96_m68k): Likewise.
1038         (TEST_COND_ldbl_128): Likewise.
1039         (TEST_COND_ldbl_128ibm): Likewise.
1040
1041         (plus_zero): Redefine using LIT macro.
1042         (minus_zero): Likewise.
1043         (plus_infty): Redefine as (INF).
1044         (minux_infty): Redefine as (-INF).
1045         (max_value): Redefine as TYPE_MAX.
1046         (min_value): Redefine as TYPE_MIN.
1047         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1048
1049         (print_float): Refactor to use snprintf to convert FLOAT values
1050         to string. This brings it closer to dropin replacement of strtof
1051         for the TS 18661 defined types.
1052         (update_stats): Likewise.
1053         (print_complex_function_ulps): Likewise.
1054         (print_max_error): Likewise.
1055         (print_complex_max_error): Likewise.
1056         (check_float_internal): Likewise.
1057
1058         * math/test-float.h (PREFIX): New macro.
1059         (LIT): Likewise.
1060         (TYPE_STR): Likewise.
1061         (FTOSTR): Likewise.
1062
1063         * math/test-double.h (PREFIX): New macro.
1064         (LIT): Likewise.
1065         (TYPE_STR): Likewise.
1066         (FTOSTR): Likewise.
1067
1068         * math/test-ldouble.h (PREFIX): New macro.
1069         (LIT): Likewise.
1070         (TYPE_STR): Likewise.
1071         (FTOSTR): Likewise.
1072
1073 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1074
1075         [BZ #20156]
1076         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1077         to itself when zero or not finite.
1078         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1079         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1080         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1081         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1082
1083 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1084
1085         [BZ #20153]
1086         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1087         x * x + x for infinities and NaNs.
1088
1089         [BZ #20151]
1090         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1091         argument to itself before returning result.
1092         (__ieee754_y0l): Likewise.
1093         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1094         (__ieee754_y1l).
1095
1096         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1097         (atan_test_data): Likewise.
1098         (ceil_test_data): Likewise.
1099         (cos_test_data): Likewise.
1100         (cosh_test_data): Likewise.
1101         (erf_test_data): Likewise.
1102         (exp2_test_data): Likewise.
1103         (fabs_test_data): Likewise.
1104         (floor_test_data): Likewise.
1105         (ilogb_test_data): Likewise.
1106         (j0_test_data): Likewise.
1107         (j1_test_data): Likewise.
1108         (jn_test_data): Likewise.
1109         (lgamma_test_data): Likewise.
1110         (lrint_test_data): Likewise.
1111         (llrint_test_data): Likewise.
1112         (logb_test_data): Likewise.
1113         (lround_test_data): Likewise.
1114         (llround_test_data): Likewise.
1115         (nearbyint_test_data): Likewise.
1116         (rint_test_data): Likewise.
1117         (round_test_data): Likewise.
1118         (sin_test_data): Likewise.
1119         (sincos_test_data): Likewise.
1120         (sinh_test_data): Likewise.
1121         (sqrt_test_data): Likewise.
1122         (tan_test_data): Likewise.
1123         (tanh_test_data): Likewise.
1124         (tgamma_test_data): Likewise.
1125         (trunc_test_data): Likewise.
1126         (y0_test_data): Likewise.
1127         (y1_test_data): Likewise.
1128         (yn_test_data): Likewise.
1129
1130         * math/libm-test.inc: Update comment about NaN testing.
1131         (TEST_SNAN): New macro.
1132         (snan_value): Likewise.
1133         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1134         (fpclassify_test_data): Add sNaN tests.
1135         (isfinite_test_data): Likewise.
1136         (isinf_test_data): Likewise.
1137         (isnan_test_data): Likewise.
1138         (isnormal_test_data): Likewise.
1139         (issignaling_test_data): Likewise.
1140         (signbit_test_data): Likewise.
1141         * math/gen-libm-test.pl (%beautify): Add snan_value.
1142         (show_exceptions): Add argument $test_snan.
1143         (parse_args): Handle snan_value as non-finite.  Update call to
1144         show_exceptions.
1145         * math/Makefile (libm-test-no-inline-cflags): Add
1146         -fsignaling-nans.
1147
1148 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1149
1150         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1151         (CFLAGS-oldsendmsg.c): Add rule.
1152         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1153         Correct recvmsg symbol name.
1154         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1155         Likewise.
1156
1157 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1158
1159         * sysdeps/unix/sysv/linux/Makefile
1160         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1161         oldsendmmsg.
1162         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1163         sendmmsg.
1164         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1165         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1166         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1167         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1169         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1170         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1171         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1172         Likewise.
1173         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1174         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1175         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1176         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1177         iovlen and controllen fields to adjust to POSIX specification.
1178         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1179
1180         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1181         and change to correct expected type.
1182         (msghdr.msg_controllen): Likewise.
1183         (cmsghdr.cmsg_len): Likewise.
1184         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1185         expected POSIX assumption about the size.
1186         (msghdr.msg_controllen): Likewise.
1187         (msghdr.__glibc_reserved1): Likewise.
1188         (msghdr.__glibc_reserved2): Likewise.
1189         (cmsghdr.cmsg_len): Likewise.
1190         (cmsghdr.__glibc_reserved1): Likewise.
1191         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1192         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1193         (CFLAGS-sendmsg.c): Remove rule.
1194         (CFLAGS-recvmsg.c): Likewise.
1195         (CFLAGS-oldsendmsg.c): Add rule.
1196         (CFLAGS-oldrecvmsg.c): Likewise.
1197         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1198         recvmsg and sendmsg.
1199         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1200         Likewise.
1201         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1202         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1203         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1204         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1205         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1206         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1207         Likewise.
1208         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1209         Likewise.
1210         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1211         Likewise.
1212         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1213         Likewise.
1214         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1215         Likewise.
1216         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1217         Likewise.
1218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1219         (GLIBC_2.24): Likewise.
1220         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1221         Likewise.
1222         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1223         Likewise.
1224         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1225         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1226         Likewise.
1227         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1228         Likewise.
1229         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1230         Likewise.
1231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1232         (GLIBC_2.24): Likewise.
1233         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1234         Likewise.
1235         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1236         Likewise.
1237         * sysdeps/unix/sysv/linux/Makefile
1238         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1239         (CFLAGS-sendmsg.c): Add rule.
1240         (CFLAGS-recvmsg.c): Likewise.
1241         (CFLAGS-oldsendmsg.c): Likewise.
1242         (CFLAGS-oldrecvmsg.c): Likewise.
1243         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1244         initialization.
1245         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1246         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1247         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1248         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1249         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1250         iovlen and controllen fields to adjust to POSIX specification.
1251         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1252         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1253         added recvmsg and sendmsg.
1254         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1255         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1256         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1257         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1258         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1259         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1260         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1261         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1262         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1263         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1264         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1265         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1267         Likewise.
1268         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1270         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1271         Likewise.
1272         Likewise.
1273         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1274         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1275         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1276         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1277         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1278         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1279         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1280         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1281         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1282         Likewise.
1283         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1284         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1285
1286         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1287         from auto-generation.
1288         (sendmsg): Likewise.
1289         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1290         (sendmsg): Likewise.
1291         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1292         (sendmsg): Likewise.
1293         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1294         (sendmsg): Likewise.
1295         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1296         (sendmsg): Likewise.
1297         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1298         (sendmsg): Likewise.
1299         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1300         Likewise.
1301         (sendmsg): Likewise.
1302         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1303         (sendmsg): Likewise.
1304         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1305         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1306         Remove.
1307         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1308         Likewise.
1309         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1310         Undefine.
1311         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1312         Likewise.
1313         * sysdeps/unix/sysv/linux/kernel-features.h
1314         (__ASSUME_SENDMSG_SYSCALL): Define.
1315         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1316         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1317         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1318         Remove.
1319         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1320         Likewise.
1321         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1322         Undefine.
1323         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1324         Likewise.
1325         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1326         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1327         Remove.
1328         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1329         Likewise.
1330         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1331         Undefine.
1332         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1333         Likewise.
1334         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1335         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1336         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1337         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1338         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1339         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1340         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1341         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1342         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1343
1344 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1345
1346         * stdlib/gen-tst-strtod-round.c: Add backslash to
1347         compile command in comment.
1348         (printfp): Remove the literal suffix, and define an infinite
1349         value as INF to avoid expansion clash with INFINITY.
1350         (round_str): Remove the literal suffix.
1351         (round_for_all): Likewise, remove the now duplicate ldbl-64
1352         entry, and remove some magic constants.
1353
1354         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1355         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1356         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1357         (_CONCAT): New macro.
1358         (CONCAT): Likewise.
1359         (CHOOSE_ld): Likewise.
1360         (CHOOSE_f): Likewise.
1361         (CHOOSE_d): Likewise.
1362         (FTYPE_MEMBER): Likewise.
1363         (BOOL_MEMBER): Likewise.
1364         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1365         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1366         (_XNTRY): Likewise.
1367         (XNTRY): Likewise.
1368         (_ENTRY): Likewise.
1369         (ENTRY): Likewise.
1370         (test_exactness): Generate members via macro.
1371         (test_results): Likewise.
1372         (test): Update members.
1373         (TEST): Redefine using new macros.
1374         (INF): New macro.
1375         (fetestmodes): New structure.
1376         (do_test): Refactor to be type generic.
1377         (test_in_one_mode): Refactor duplicate code into
1378         (GEN_ONE_TEST): New macro.
1379
1380         * stdlib/tst-strtod-round-data.h: Regenerate.
1381
1382         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1383         Extend to pass additional arbitrary parameters to
1384         generators.
1385
1386 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1387
1388         [BZ #15479]
1389         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1390         floating-point state after first floating-point operation on
1391         input.  Restore full floating-point state instead of just rounding
1392         mode.
1393         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1394         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1395         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1396         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1397         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1398
1399         [BZ #15479]
1400         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1401         floating-point state after first floating-point operation on
1402         input.  Restore full floating-point state instead of just rounding
1403         mode.
1404         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1405         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1406         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1407         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1408         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1409
1410 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1411
1412         [BZ #19727]
1413         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1414         valid high surrogate.
1415         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1416         of an utf16 surrogate.
1417         * iconv/gconv_simple.c (BODY): Likewise.
1418         * iconvdata/bug-iconv12.c: New file.
1419         * iconvdata/Makefile (tests): Add bug-iconv12.
1420
1421 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1422
1423         [BZ #19726]
1424         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1425         outptrp in case of an illegal input.
1426         * iconv/tst-iconv6.c: New file.
1427         * iconv/Makefile (tests): Add tst-iconv6.
1428
1429 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1430
1431         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1432         an error in case of a value in range of an utf16 low surrogate.
1433
1434 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1435
1436         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1437         an error in case of a value in range of an utf16 low surrogate.
1438
1439 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1440
1441         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1442         Move to ...
1443         * sysdeps/s390/Makefile: ... here.
1444         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1445         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1446         (BRANCH_ON_COUNT): New define.
1447         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1448         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1449         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1450         run on s390-32, too.
1451         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1452         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1453         run on s390-32, too.
1454         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1455         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1456         run on s390-32, too.
1457
1458 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1459
1460         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1461         etf3eh or new vector loop-variant.
1462
1463 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1464
1465         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1466         etf3eh or new vector loop-variant.
1467
1468 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1469
1470         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1471         or new vector loop-variant.
1472
1473 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1474
1475         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1476         Rename to TR_LOOP and usage of tr instead of troo instruction.
1477
1478 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1479
1480         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1481         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1482
1483 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1484
1485         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1486         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1487         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1488         New override define.
1489         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1490
1491 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1492
1493         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1494         * sysdeps/s390/configure.ac: Add test for S390 vector register
1495         support in gcc.
1496         * sysdeps/s390/configure: Regenerated.
1497
1498 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1499
1500         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1501         Install file from $(objpfx)gconv-modules.
1502         ($(objpfx)gconv-modules): Concatenate architecture specific file
1503         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1504         * sysdeps/s390/gconv-modules: New file.
1505         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1506         Deleted.
1507         ($(objpfx)gconv-modules-s390): Deleted.
1508         (sysdeps-gconv-modules): New variable.
1509
1510 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1511
1512         [BZ #15479]
1513         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1514         of immediate operand to rounding instruction.
1515         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1516         Likewise.
1517         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1518         Likewise.
1519         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1520         Likewise.
1521
1522 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1523
1524         * math/libm-test.inc (MIN_EXP): Directly define as
1525         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1526
1527 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1528
1529         * math/libm-test.inc (MANT_DIG): Directly define as
1530         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1531
1532 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1533
1534         * stdlib/gen-tst-strtod-round.c (main):
1535           Change usage to more closely match the generated
1536           output.  Add usage and compilation instructions.
1537           (string_to_fp): Add and use FILE* parameter as
1538           output target.
1539           (print_fp): Likewise.
1540           (round_str): Likewise.
1541           (round_for_all): Likewise.
1542         * stdlib/tst-strtod-round.c (tests): Move into
1543         * stdlib/tst-strtod-round-data.h: New file.
1544
1545 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #15479]
1548         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1549         (__round): Do not force "inexact" exception.
1550         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1551         variable.
1552         (__round): Do not force "inexact" exception.
1553         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1554         (__roundf): Do not force "inexact" exception.
1555         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1556         (__roundl): Do not force "inexact" exception.
1557         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1558         (__roundl): Do not force "inexact" exception.
1559         * math/libm-test.inc (round_test_data): Do not allow spurious
1560         "inexact" exceptions.
1561
1562         [BZ #15479]
1563         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1564         exception in comment.
1565         (huge): Remove variable.
1566         (__floor): Do not force "inexact" exception.
1567         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1568         "inexact" exception in comment.
1569         (huge): Remove variable.
1570         (__floor): Do not force "inexact" exception.
1571         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1572         exception in comment.
1573         (huge): Remove variable.
1574         (__floorf): Do not force "inexact" exception.
1575         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1576         exception in comment.
1577         (huge): Remove variable.
1578         (__floorl): Do not force "inexact" exception.
1579
1580         [BZ #15479]
1581         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1582         exception in comment.
1583         (huge): Remove variable.
1584         (__ceil): Do not force "inexact" exception.
1585         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1586         "inexact" exception in comment.
1587         (huge): Remove variable.
1588         (__ceil): Do not force "inexact" exception.
1589         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1590         (__ceilf): Do not force "inexact" exception.
1591         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1592         exception in comment.
1593         (huge): Remove variable.
1594         (__ceill): Do not force "inexact" exception.
1595
1596 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1597
1598         * config.h.in (BIND_NOW): New.
1599         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1600         * configure: Regenerated.
1601         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1602         indirect branch via the GOT slot.
1603
1604 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1605
1606         [BZ #19765]
1607         * sysdeps/s390/mempcpy.S: New File.
1608         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1609         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1610         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1611         Add mempcpy variants.
1612         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1613         (memcpy): Adjust to be usable from mempcpy entry point.
1614         (__memcpy_mvcle): Likewise.
1615         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1616         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1617         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1618         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1619         (__memcpy_z10): Likewise.
1620         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1621
1622 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1623
1624         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1625         Remove __GI_ symbol.
1626         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1627         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1628         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1629         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1630         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1631         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1632
1633 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1634
1635         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1636         Use cghi instead of chi to compare 64bit value.
1637
1638 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1639
1640         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1641         Jump to 1MB check before executing mvc-loop.
1642
1643 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1644
1645         [BZ #6527]
1646         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1647         unconditionally.
1648         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1649
1650 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1651
1652         * stdlib/tst-strtod6.c (do_test): Use new type generic
1653         invocation of the test function.
1654         (test): Refactor into ...
1655         (TEST_STRTOD): New macro base function.
1656
1657 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1658
1659         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1660         (TEST_STRTOD): New macro.
1661         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1662
1663 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1664
1665         * stdlib/tst-strtod6.c (do_test): Use new type generic
1666         invocation of the test function.
1667         (test): Refactor into ...
1668         (TEST_STRTOD): New macro base function.
1669
1670 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1671
1672         CVE-2016-4429
1673         [BZ #20112]
1674         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1675         payload.
1676
1677 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1678
1679         [BZ #20111]
1680         * bits/sockaddr.h (_SS_SIZE): Define.
1681         * bits/socket.h (_SS_SIZE): Remove.
1682         (_SS_PADSIZE): Adjust to account for all padding.
1683         (struct sockaddr_storage): Update comment.  Avoid implicit
1684         padding.
1685         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1686         (_SS_PADSIZE): Adjust to account for all padding.
1687         (struct sockaddr_storage): Update comment.  Avoid implicit
1688         padding.
1689         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1690         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1691         (_SS_PADSIZE): Adjust to account for all padding.
1692         (struct sockaddr_storage): Update comment.  Avoid implicit
1693         padding.
1694         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1695         __SS_SIZE is 126 in this version.
1696         * inet/tst-sockaddr.c: New file.
1697         * inet/Makefile (tests): Add tst-sockaddr.c
1698         (tst-sockaddr.c): Compile with non-strict aliasing.
1699
1700 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1701
1702         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1703         [XPG3 || XPG4].
1704         (NL_ARGMAX): Also expect for [XPG3].
1705         (NL_LANGMAX): Likewise.
1706         (NL_MSGMAX): Likewise.
1707         (NL_NMAX): Likewise.
1708         (NL_SETMAX): Likewise.
1709         (NL_TEXTMAX): Likewise.
1710         (NZERO): Likewise.
1711         (TMP_MAX): Likewise.
1712         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1713         variable.
1714
1715         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1716         (PF_MAX): Update value.
1717         (AF_KCM): New macro.
1718         (SOL_NETBEUI): Likewise.
1719         (SOL_LLC): Likewise.
1720         (SOL_DCCP): Likewise.
1721         (SOL_NETLINK): Likewise.
1722         (SOL_TIPC): Likewise.
1723         (SOL_RXRPC): Likewise.
1724         (SOL_PPPOL2TP): Likewise.
1725         (SOL_BLUETOOTH): Likewise.
1726         (SOL_PNPIPE): Likewise.
1727         (SOL_RDS): Likewise.
1728         (SOL_IUCV): Likewise.
1729         (SOL_CAIF): Likewise.
1730         (SOL_ALG): Likewise.
1731         (SOL_NFC): Likewise.
1732         (SOL_KCM): Likewise.
1733         (MSG_BATCH): New enum value and macro.
1734
1735 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1736
1737         [BZ #18185]
1738         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1739         sharing L2 cache to 2 for Knights Landing.
1740
1741 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1742
1743         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1744         (FTW_DP): Do not expect for [XPG3 || XPG4].
1745         (FTW_SL): Do not expect for [XPG3].
1746         (FTW_SLN): Likewise.
1747         (FTW_PHYS): Likewise.
1748         (FTW_MOUNT): Likewise.
1749         (FTW_DEPTH): Likewise.
1750         (FTW_CHDIR): Likewise.
1751         (nftw): Likewise.
1752         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1753         variable.
1754
1755 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1756
1757         * manual/errno.texi: Fix various typos & grammar errors.
1758
1759 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1760
1761         * manual/intro.texi: Fix duplicated typo.
1762
1763 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1764
1765         [BZ #13304]
1766         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1767         <float.h>, <math_private.h> and <stdlib.h>.
1768         (add_split): New function.
1769         (mul_split): Likewise.
1770         (ext_val): New typedef.
1771         (store_ext_val): New function.
1772         (mul_ext_val): New function.
1773         (compare): New function.
1774         (add_split_ext): New function.
1775         (__fmal): After checking for Inf, NaN and zero, compute result as
1776         an exact sum of scaled double values in round-to-nearest before
1777         adding those up and adjusting for other rounding modes.
1778         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1779         tests of fma.
1780         * math/auto-libm-test-out: Regenerated.
1781
1782 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1783
1784         [BZ #20119]
1785         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1786         processor level type mask for CPUID with EAX == 11.
1787
1788 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1789
1790         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1791         logical threads if the HTT bit is 0.
1792         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1793         (index_cpu_HTT): Likewise.
1794         (reg_HTT): Likewise.
1795
1796 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         [BZ #20115]
1799         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1800         Remove alignments on jump targets.
1801
1802 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1803
1804         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1805         (getpwent): Likewise.
1806         (setpwent): Likewise.
1807         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1808         variable.
1809
1810         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1811         (remque): Likewise.
1812         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1813         variable.
1814
1815 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1816
1817         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1818         not being tested.
1819
1820 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1821
1822         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1823         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1824         call.
1825         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1826         (__condvar_cleanup1): Likewise.
1827
1828 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1829
1830         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1831         New
1832         (__pthread_unwind): Renamed to ...
1833         (PTHREAD_UNWIND): This.
1834         (__pthread_enable_asynccancel): Replace
1835         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1836
1837 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1838
1839         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1840         (CLONE_NEWCGROUP): New macro.
1841
1842         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
1843         (Q_GETNEXTQUOTA): New macro.
1844
1845 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1846
1847         [BZ #19907]
1848         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
1849         buffer updated by the previous run.
1850         * string/test-memcpy.c (do_one_test): Likewise.
1851         * benchtests/bench-memmove.c (do_one_test): Add a comment.
1852         * string/test-memmove.c (do_one_test): Likewise.
1853
1854 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
1855
1856         [BZ #20094]
1857         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
1858         not [__USE_XOPEN].
1859         (unlockpt): Likewise.
1860         (ptsname): Likewise.
1861         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
1862         variable.
1863
1864         [BZ #20076]
1865         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
1866         instead of [__USE_UNIX98].
1867         (S_ISSOCK): Likewise.
1868         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
1869         variable.
1870
1871         [BZ #20074]
1872         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
1873         [__USE_POSIX].
1874         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
1875         variable.
1876
1877         [BZ #20051]
1878         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
1879         (ttyslot): Do not declare.
1880         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
1881         (ttyslot): New prototype.
1882         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
1883         variable.
1884         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
1885
1886 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
1887
1888         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
1889
1890 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1891
1892         Fix race condition in tst-mallocfork2, use fewer resources.
1893         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
1894         to current process group.
1895         (signal_sender): Yield in the non-sleeping case.
1896
1897 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1898
1899         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
1900         (ecvt): Likewise.
1901         (fcvt): Likewise.
1902         (gcvt): Likewise.
1903         (getsubopt): Likewise.
1904         (grantpt): Likewise.
1905         (initstate): Likewise.
1906         (l64a): Likewise.
1907         (mktemp): Likewise.
1908         (mkstemp): Likewise.
1909         (ptsname): Likewise.
1910         (random): Likewise.
1911         (realpath): Likewise.
1912         (setstate): Likewise.
1913         (srandom): Likewise.
1914         (ttyslot): Likewise.
1915         (unlockpt): Likewise.
1916         (valloc): Likewise.
1917
1918         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
1919         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
1920         variable.
1921
1922 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1923
1924         [BZ #20072]
1925         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
1926         init_cpu_features only if SHARED is defined.
1927         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
1928
1929 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1930
1931         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
1932         non-inclusive caches on Intel processors.
1933
1934 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1935
1936         * malloc/malloc.c (dumped_main_arena_start)
1937         (dumped_main_arena_end): New variables.
1938         (DUMPED_MAIN_ARENA_CHUNK): New macro.
1939         (do_check_chunk): Skip dumped fake mmapped chunks.
1940         (munmap_chunk): Likewise.
1941         (__libc_free): Do not adjust statistics for fake mmapped chunks.
1942         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
1943         mmapped chunks.
1944         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
1945         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
1946         and dumped_main_arena_end to cover the dumped heap.
1947
1948 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
1949
1950         * conform/data/time.h-data (getdate_err): Do not expect for
1951         [XPG3].
1952         (getdate): Likewise.
1953         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
1954         variable.
1955
1956         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
1957         (F_ULOCK): Likewise.
1958         (F_TEST): Likewise.
1959         (F_TLOCK): Likewise.
1960         (useconds_t): Likewise.
1961         (intptr_t): Do not expect for [XPG3] or [XPG4].
1962         (brk): Do not expect for [XPG3]
1963         (fchown): Likewise.
1964         (fchdir): Likewise.
1965         (ftruncate): Likewise.
1966         (getdtablesize): Likewise.
1967         (gethostid): Likewise.
1968         (getpagesize): Likewise.
1969         (getpgid): Likewise.
1970         (getsid): Likewise.
1971         (getwd): Likewise.
1972         (lchown): Likewise.
1973         (lockf): Likewise.
1974         (readlink): Likewise.
1975         (sbrk): Likewise.
1976         (setpgrp): Likewise.
1977         (setregid): Likewise.
1978         (setreuid): Likewise.
1979         (symlink): Likewise.
1980         (sync): Likewise.
1981         (truncate): Likewise.
1982         (ualarm): Likewise.
1983         (usleep): Likewise.
1984         (vfork): Likewise.
1985         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
1986         variable.
1987
1988         [BZ #20054]
1989         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
1990         not [__USE_UNIX98].
1991         * conform/data/unistd.h-data (gethostname): Do not expect for
1992         [XPG3].
1993
1994         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
1995         [!POSIX] (S_IFBLK): Likewise.
1996         [!POSIX] (S_IFCHR): Likewise.
1997         [!POSIX] (S_IFIFO): Likewise.
1998         [!POSIX] (S_IFREG): Likewise.
1999         [!POSIX] (S_IFDIR): Likewise.
2000         [!POSIX] (S_IFLNK): Likewise.
2001         [!POSIX] (S_IFSOCK): Likewise.
2002         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2003         variable.
2004         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2005
2006 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2007
2008         * sysdeps/aarch64/memset.S (__memset):
2009         Rewrite of optimized memset.
2010
2011 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2012
2013         [BZ #19703]
2014         Partially async-signal-safe fork for single-threaded processes.
2015         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2016         variable.  Do not acquire and reset/release malloc and libio locks
2017         in single-threaded processes.
2018         * malloc/tst-mallocfork2.c: New file.
2019         * malloc/Makefile (tests): Add it.
2020
2021 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2022
2023         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2024         argument.  Use scratch buffer instead of extend_alloca.
2025         (gethosts): Use scratch buffer instead of extend_alloca.
2026         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2027         extend_alloca.
2028         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2029
2030 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2031
2032         [BZ #20055]
2033         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2034         instead of [__USE_UNIX98].
2035         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2036         [__USE_UNIX98].
2037         * conform/data/termios.h-data (tcgetsid): Do not expect for
2038         [XPG3].
2039         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2040         variable.
2041         (test-xfail-XPG4/termios.h/conform): Likewise.
2042
2043 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2044
2045         Do not use mcheck in localedef.
2046         * locale/programs/localedef.c (turn_on_mcheck)
2047         (__malloc_initialize_hook): Remove.
2048
2049 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2050
2051         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2052         * sysdeps/s390/s390-64/Makefile: Likewise.
2053
2054 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2057         Remove ifunc-defines.sym.
2058         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2059         Likewise.
2060         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2061         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2062         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2063         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2064         rtld-global-offsets.sym.
2065         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2066         * sysdeps/x86/cpu-features-offsets.sym: This.
2067         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2068         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2069
2070 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2071
2072         [BZ #20073]
2073         * io/sys/stat.h (fchmod): Declare for
2074         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2075         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2076         variable.
2077
2078         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2079         [XPG3] (S_IFSOCK): Likewise.
2080         [XPG3] (S_ISVTX): Likewise.
2081         [XPG3] (S_ISLNK): Likewise.
2082         [XPG3] (S_ISSOCK): Likewise.
2083         [XPG3] (fchmod): Likewise.
2084         [XPG3] (lstat): Likewise.
2085         [XPG3] (mknod): Likewise.
2086
2087         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2088         [XPG3].  Expect type long and XFAIL for [XPG4].
2089         (st_blocks): Likewise.
2090
2091         [BZ #20044]
2092         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2093         (pthread_atfork): New prototype.
2094         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2095         variable.
2096
2097         [BZ #20043]
2098         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2099         prototype.
2100
2101 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2102
2103         [BZ #20017]
2104         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2105         gmtime.
2106
2107 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2108
2109         [BZ #19994]
2110         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2111         flag in _res.options.
2112
2113 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2114
2115         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2116         [XPG3 || XPG4].
2117         (blksize_t): Likewise.
2118         (clockid_t): Likewise.
2119         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2120         variable.
2121         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2122
2123 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2124
2125         * sysdeps/unix/sysv/linux/s390/init-first.c:
2126         Add VDSO_SYMBOL(getcpu).
2127         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2128         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2129         Add VDSO_SYMBOL(getcpu).
2130         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2131         New define HAVE_GETCPU_VSYSCALL.
2132         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2133
2134 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2135
2136         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2137         instead of <sysdeps/x86_64/cacheinfo.c>.
2138         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2139         * sysdeps/x86/cacheinfo.c: Here.
2140
2141 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2142
2143         * malloc/malloc-internal.h: Adjust header file guard.
2144
2145 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2146
2147         [BZ #19787]
2148         * inet/getnameinfo.c (check_sprintf_result): New function.
2149         (CHECKED_SNPRINTF): New macro.
2150         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2151         to the host buffer.
2152         (gni_host_local): Use checked_copy to copy the host name.
2153         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2154         (gni_serv_local): Use checked_copy to copy the service name.
2155         (getnameinfo): Remove unnecessary truncation of result buffers.
2156
2157 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2158
2159         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2160         in case of inet_ntop failure.
2161
2162 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2163
2164         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2165         avoid long lines.
2166         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2167         variables.
2168         (gni_host_inet, gni_host_local): Add comment.
2169         (gni_host): Add comment.  Use temporary to avoid long lines.
2170
2171 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2172
2173         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2174         registers specifiers where general purpose registers specifiers should
2175         have been used.
2176
2177 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2178
2179         [BZ #19779]
2180         CVE-2016-1234
2181         Avoid copying names of directory entries.
2182         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2183         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2184         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2185         (struct readdir_result): New type.
2186         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2187         (GL_READDIR): New macros.
2188         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2189         (convert_dirent, convert_dirent64): New functions.
2190         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2191         convert_dirent64.  Adjust references to the readdir result.
2192         * sysdeps/unix/sysv/linux/i386/glob64.c:
2193         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2194         * posix/bug-glob2.c (LONG_NAME): Define.
2195         (filesystem): Add LONG_NAME.
2196         (my_DIR): Increase the size of room_for_dirent.
2197
2198 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2199
2200         [BZ #20041]
2201         * misc/sys/select.h (__need_timespec): Only define if
2202         [__USE_XOPEN2K].
2203         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2204         variable.
2205         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2206         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2207         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2208
2209 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2210             Segher Boessenkool  <segher@gcc.gnu.org>
2211
2212         [BZ #20004]
2213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2214         (__novec_swapcontext): Add missing load.
2215
2216 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2217
2218         [BZ #20023]
2219         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2220         <time.h>.
2221         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2222         variable.
2223         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2224
2225 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2226
2227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2228         flags CLONE_VM compare.
2229
2230 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2231
2232         [BZ #20031]
2233         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2234         completely empty.
2235
2236 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2237
2238         [BZ #19573]
2239         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2240         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2241         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2242         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2243         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2244         (hesiod_free_list): Mark as hidden.
2245         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2246         res_set, res_get.
2247         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2248         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2249         (hesiod_init): Remove obsolete res_ninit call.
2250         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2251         (hesiod_bind): Do not call init.
2252         (get_txt_records): Use res_mkquery, res_send instead of
2253         res_nmkquery, res_nsend.
2254         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2255         instead of _nss_hesiod_init.
2256         (_nss_hesiod_initgroups_dyn): Likewise.
2257         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2258         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2259         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2260
2261 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2262
2263         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2264         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2265
2266 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2267
2268         * hesiod/hesiod.h: Remove RCS keyword.
2269         * hesiod/hesiod_p.h: Likewise.
2270
2271         * hesiod/hesiod.c: Likewise.
2272
2273 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2274
2275         [BZ #12450]
2276         * locale/iso-639.def: Add Samogitian/sgs.
2277
2278 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2279
2280         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2281
2282         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2283
2284 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2285             Carlos O'Donell  <carlos@redhat.com>
2286
2287         [BZ #19072]
2288         * grp/Makefile (headers): Add grp-merge.h
2289         (routines): Add grp-merge.
2290         * grp/getgrgid_r.c: Include grp-merge.h.
2291         (DEEPCOPY_FN): Define.
2292         (MERGE_FN): Define.
2293         * grp/getgrname_r.c: Include grp-merge.h.
2294         (DEEPCOPY_FN): Define.
2295         (MERGE_FN): Define.
2296         * grp/grp-merge.c: New file.
2297         * grp/grp-merge.h: New file.
2298         * include/grp-merge.h: New file.
2299         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2300         __copy_grp@GLIBC_PRIVATE.
2301         * manual/nss.texi (Actions in the NSS configuration): Describe
2302         return, continue, and merge.
2303         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2304         (DEEPCOPY_FN): Define.
2305         (MERGE_FN): Define.
2306         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2307         (DEEPCOPY_FN): Define.
2308         (MERGE_FN): Define.
2309         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2310         [!MERGE_FN]: Define __merge_einval.
2311         (CHECK_MERGE): Define.
2312         (REENTRANT_NAME): Process merge if do_merge is true.
2313         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2314         (__nss_getent_r): Likewise.
2315         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2316         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2317
2318 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2319
2320         [BZ #20012]
2321         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2322         length to calculate the buffer to read.
2323         (fmemopen_write): Set the buffer position based on bytes written.
2324         (fmemopen_seek): Return EINVAL for invalid whence modes.
2325
2326         [BZ #19957]
2327         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2328         tst-getpid2.
2329         (test): Add tst-clone2.
2330         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2331         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2332         pid/tid fields for CLONE_VM.
2333         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2334         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2335         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2336         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2337         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2338         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2339         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2340         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2342         Likewise.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2344         Likewise.
2345         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2346         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2347         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2348         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2349         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2350         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2351         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2352         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2353
2354 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2355
2356         [BZ #19642]
2357         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2358         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2359         (gni_serv_local, gni_serv): New functions extracted from
2360         getnameinfo.
2361         (getnameinfo): Call gni_host and gni_serv to perform the
2362         processing.  Always free scratch buffer.
2363
2364 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2365
2366         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2367         remaining bytes in the dest string, with zeros.
2368
2369 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2370
2371         [BZ #20010]
2372         CVE-2016-3706
2373         * sysdeps/posix/getaddrinfo.c
2374         (convert_hostent_to_gaih_addrtuple): New function.
2375         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2376         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2377         AF_INET data.
2378
2379 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2380
2381         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2382         callback function gl_readdir.
2383         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2384         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2385         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2386         memcpy to copy the name.
2387         * manual/pattern.texi (Calling Glob): Document requirements for
2388         implementations of the gl_readdir callback function.
2389         * manual/examples/mkdirent.c: New example.
2390         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2391         per the manual guidance.
2392         * posix/tst-gnuglob.c (my_readdir): Likewise.
2393
2394 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2395
2396         [BZ #20014]
2397         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2398         not [__USE_POSIX].
2399         (getchar_unlocked): Likewise.
2400         (putc_unlocked): Likewise.
2401         (putchar_unlocked): Likewise.
2402         (flockfile): Likewise.
2403         (ftrylockfile): Likewise.
2404         (funlockfile): Likewise.
2405         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2406         variable.
2407         (test-xfail-XPG4/stdio.h/conform): Likewise.
2408
2409         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2410         Expect constant.
2411         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2412         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2413         variable.
2414         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2415         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2416
2417         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2418         [__USE_LARGEFILE64] (off64_t): Likewise.
2419         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2420         variable.
2421
2422 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2423
2424         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2425
2426 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2427
2428         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2429         * resolv/res_init.c: Likewise.
2430         * resolv/res_mkquery.c: Likewise.
2431
2432 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2433
2434         * resolv/res_init.c (isascii): Do not define.  Use definition in
2435         <ctype.h>.
2436         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2437         (LOG_AUTH): Remove.
2438         (SPRINTF): Remove, adjust caller.
2439         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2440
2441 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2442
2443         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2444         SUNSECURITY conditional.
2445         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2446
2447 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2448
2449         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2450         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2451         Remove BSD-related preprocessor conditionals.
2452         * conf/portability.h: Remove.
2453
2454 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2455
2456         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2457         * resolv/res_data.c: Likewise.
2458
2459 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2460
2461         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2462         * resolv/res_data.c: Remove code conditional on ultrix.
2463
2464 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2465
2466         * resolv/res_init.c (RFC1535): Do not define.  Remove
2467         RFC1535 preprocessor conditionals.
2468         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2469         because there configuration options which make the resolver
2470         behavior different.
2471
2472 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2473
2474         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2475         RESOLVSORT preprocessor conditionals.
2476         * resolv/nss_dns/dns-host.c: Likewise.
2477         * resolv/res_init.c: Likewise.
2478
2479 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2480
2481         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2482         is never defined.
2483
2484 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2485
2486         * inet/inet_lnaof.c: Remove SCSS keyword.
2487         * inet/inet_mkadr.c: Likewise.
2488         * inet/inet_net.c: Likewise.
2489         * inet/inet_netof.c: Likewise.
2490         * inet/rcmd.c: Likewise.
2491         * inet/rexec.c: Likewise.
2492         * inet/ruserpass.c: Likewise.
2493
2494 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2495
2496         * resolv/inet_addr.c: Remove _LIBC conditionals.
2497         * resolv/res_data.c: Likewise.
2498         * resolv/res_init.c: Likewise.
2499         * resolv/res_mkquery.c: Likewise.
2500         * resolv/res_libc.c: Update comment.
2501         * resolv/README: Update.
2502
2503 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2504
2505         * resolv/gethnamaddr.c: Remove SCSS keyword.
2506         * resolv/herror.c: Likewise.
2507         * resolv/inet_addr.c: Likewise.
2508         * resolv/inet_net_ntop.c: Likewise.
2509         * resolv/inet_net_pton.c: Likewise.
2510         * resolv/inet_neta.c: Likewise.
2511         * resolv/inet_ntop.c: Likewise.
2512         * resolv/inet_pton.c: Likewise.
2513         * resolv/ns_date.c: Remove RCS keyword.
2514         * resolv/ns_name.c: Likewise.
2515         * resolv/ns_netint.c: Likewise.
2516         * resolv/ns_parse.c: Likewise.
2517         * resolv/ns_print.c: Likewise.
2518         * resolv/ns_samedomain.c: Likewise.
2519         * resolv/ns_ttl.c: Likewise.
2520         * resolv/nsap_addr.c: Likewise.
2521         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2522         * resolv/res_data.c: Remove RCS keyword.
2523         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2524         * resolv/res_init.c: Likewise.
2525         * resolv/res_mkquery.c: Likewise.
2526         * resolv/res_query.c: Likewise.
2527         * resolv/res_send.c: Likewise.
2528
2529 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2530
2531         * conform/data/stdio.h-data (fdopen): Expect also for
2532         [XPG3 || XPG4].
2533
2534         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2535         (fseeko): Likewise.
2536         (ftello): Likewise.
2537         (ftrylockfile): Likewise.
2538         (funlockfile): Likewise.
2539         (getc_unlocked): Likewise.
2540         (getchar_unlocked): Likewise.
2541         (putc_unlocked): Likewise.
2542         (putchar_unlocked): Likewise.
2543
2544 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2545
2546         [BZ #19868]
2547         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2548         DNS packet syntax checks (which were not needed before).  Skip
2549         over non-PTR records.
2550
2551 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2552
2553         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2554         definition.  Include <stddef.h> instead.
2555
2556 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2557
2558         [BZ #19831]
2559         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2560         function.
2561         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2562         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2563
2564 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2565
2566         [BZ #19862]
2567         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2568         (getanswer_r): Do not call syslog.
2569         (gaih_getanswer_slice): Likewise.
2570         * resolv/gethnamaddr.c (AskedForGot): Remove.
2571         (getanswer): Do not call syslog.
2572         (gethostbyaddr): Likewise.
2573
2574 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2575
2576         * conform/data/signal.h-data (union sigval): Expect also if
2577         [XOPEN2K].
2578         (struct sigevent): Likewise.
2579         (SIGEV_NONE): Likewise.
2580         (SIGEV_SIGNAL): Likewise.
2581         (SIGEV_THREAD): Likewise.
2582         (SIGRTMIN): Likewise.
2583         (SIGRTMAX): Likewise.
2584         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2585         variable.
2586         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2587
2588 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2589
2590         [BZ #19830]
2591         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2592         (gaih_getanswer_slice): Likewise.
2593         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2594         Also check for availability of RR metadata.
2595
2596 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2597
2598         [BZ #19825]
2599         * resolv/res_send.c (send_vc): Remove early *resplen2
2600         initialization.  Set *resplen2 on socket error.  Call
2601         close_and_return_error for other errors.
2602
2603 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2604
2605         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2606         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2607         (SCM_IUCV_TRGCLS): New define.
2608
2609 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2610
2611         [BZ #20005]
2612         * libio/fmemopen.c (fmemopen_write): Update internal position after
2613         write.
2614         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2615         * stdio-common/tst-fmemopen4.c: New file..
2616
2617 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2618
2619         [BZ #19996]
2620         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2621         not [__USE_XOPEN2K].
2622         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2623         variable.
2624
2625         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2626         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2627         variable.
2628
2629         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2630         [__USE_XOPEN2K8].
2631         [__USE_LARGEFILE64] (off64_t): Likewise.
2632         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2633         variable.
2634
2635 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2636
2637         [BZ #19989]
2638         * libio/stdio.h (cuserid): Do not declare if
2639         [__USE_XOPEN2K && !__USE_GNU].
2640         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2641         variable.
2642
2643 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2644
2645         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2646         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2647         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2648         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2649         ifunc'ed strcspn.
2650         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2651         [EALIGN]: Removed.
2652         [END]: Likewise
2653         [STRSPN]: Define instead of the above to control symbol name.
2654         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2655         New file.
2656         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2657         Likewise.
2658         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2659         Likewise.
2660         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2661         Likewise.
2662         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2663         [INITIAL_MASK]: New macro.
2664         [STRCSPN]: Likewise.
2665         [UPDATE_MASK]: Likewise.
2666         [USE_AS_STRCSPN]: Lisewise.
2667
2668 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2669
2670         [BZ #19931]
2671         * stdio-common/tst-vfprintf-width-prec.c: New file.
2672         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2673         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2674         (generated): Add mtrace-related files.
2675         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2676         (tst-%-mem.out): New pattern rule, replaces
2677         tst-printf-bz18872-mem.out.
2678         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2679         specifier, deallocate any previously allocated work buffer.
2680
2681 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2682
2683         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2684         Add nop before __startcontext, add explaining comments.
2685
2686 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2687
2688         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2689         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2690         completely different API.
2691
2692         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2693         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2694         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2695         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2696         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2697         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2698         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2699         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2700         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2701         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2702
2703 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2704
2705         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2706
2707 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2708
2709         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2710         when it is the default of 0.
2711
2712 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2713
2714         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2715         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2716         (sysdep_routines): Add new strcasestr targets.
2717         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2718         (__libc_ifunc_impl_list): Likewise.
2719         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2720         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2721         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2722         * sysdeps/powerpc/powerpc64/power8/Makefile:
2723         New file to add strcasestr-ppc64 to sysdep_routines.
2724         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2725         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2726
2727 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2728
2729         * benchtests/Makefile (wcsmbs-benchset): Include only for
2730         native builds and runs.
2731         (LOCALES): Likewise.
2732         (bench-build): Build timing-type here instead of the bench
2733         target.  Generate locale only for native builds.
2734         * benchtests/README: Add note for cross-building.
2735
2736         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2737
2738         * benchtests/README: Update README to include instructions on
2739         using bench-build.
2740
2741         * Makefile.in (bench-build): New target.
2742         * Rules (PHONY): Add bench-build target.
2743         * benchtests/Makefile (bench): Depend on bench-build.
2744         (bench-build): New target.
2745
2746 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2747
2748         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2749         profil_reply_port.
2750         (profile_waiter): Do not initialize profil_reply_port.
2751         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2752         frequency instead of tick length in us.
2753
2754 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2755
2756         [BZ #18712]
2757         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2758         (__old_mempcpy_small): Likewise.
2759         (__old_strcpy_small): Likewise.
2760         (__old_stpcpy_small): Likewise.
2761         (__old_strpbrk_c2): Fix compat symbol name.
2762         (__old_strpbrk_c3): Likewise.
2763         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2764         (__mempcpy_small): Remove.
2765         (__strcpy_small): Remove.
2766         (__stpcpy_small): Remove.
2767
2768 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2769
2770         [BZ #19400]
2771         * locale/iso-639.def: Add the Talossan/tzl language.
2772
2773 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2774
2775         [BZ #16983]
2776         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2777         comment.  Add "ln" to strchr check on postal_fmt.
2778
2779 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2780
2781         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2782         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2783         tel_dom_fmt.
2784
2785 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2786
2787         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2788         (sysdep_routines): Added __strlen_power8.
2789         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2790         __strlen_power8 entry.
2791         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2792         Implementation for POWER8.
2793         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2794         for __strlen_power8.
2795         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2796         Implementation for POWER8.
2797
2798 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2799
2800         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2801
2802 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2803
2804         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2805         Goldmont and Airmont processors.
2806
2807 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2808
2809         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2810         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2811         (__STRING2_SMALL_GET32): Remove.
2812         (memset): Remove.
2813         (__memset_1): Remove.
2814         (__memset_gc): Remove.
2815         (__mempcpy): Remove.
2816         (mempcpy): Remove.
2817         (__mempcpy_args): Remove.
2818         (strchr): Remove.
2819         (strcpy): Remove.
2820         (strcpy_args): Remove.
2821         (__stpcpy_args): Remove.
2822         (__strcmp_cc): Remove.
2823         (__strcmp_gc): Remove.
2824         (strstr): Remove.
2825
2826 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2827
2828         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2829         * nis/nis_call.c (nis_server_cache_add): Likewise.
2830
2831 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2832
2833         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2834
2835 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2836
2837         * malloc/arena.c (__malloc_fork_lock_parent)
2838         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2839         internal_function attribute.
2840
2841 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
2842
2843         * stdio-common/printf_fp.c (__printf_fp_l):
2844         Rename ___printf_fp_l to __printf_fp_l and
2845         remove strong alias. Use libc_hidden_def instead
2846         of ldbl_hidden_def macro.
2847
2848 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2849
2850         Remove malloc hooks from fork handler.  They are no longer needed
2851         because malloc runs right before fork, and no malloc calls from
2852         other fork handlers are not possible anymore.
2853         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
2854         declarations.
2855         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
2856         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
2857         (atfork_recursive_cntr): Remove.
2858         (__malloc_fork_lock_parent): Do not override malloc hooks and
2859         thread_arena.
2860         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
2861         thread_arena.
2862         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
2863         thread_arena instead of save_arena.
2864
2865 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2866
2867         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
2868         (thread_atfork, thread_atfork_static): Remove.
2869         * sysdeps/mach/hurd/malloc-machine.h:
2870         (thread_atfork, thread_atfork_static): Remove.
2871
2872 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2873
2874         [BZ #19431]
2875         Run the malloc fork handler as late as possible to avoid deadlocks.
2876         * malloc/malloc-internal.h: New file.
2877         * malloc/malloc.c: Include it.
2878         * malloc/arena.c (ATFORK_MEM): Remove.
2879         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
2880         Update comment.
2881         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
2882         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
2883         Remove outdated comment.
2884         (ptmalloc_init): Do not call thread_atfork.  Remove
2885         thread_atfork_static.
2886         * malloc/tst-malloc-fork-deadlock.c: New file.
2887         * Makefile (tests): Add tst-malloc-fork-deadlock.
2888         (tst-malloc-fork-deadlock): Link against libpthread.
2889         * manual/memory.texi (Aligned Memory Blocks): Update safety
2890         annotation comments.
2891         * sysdeps/nptl/fork.c (__libc_fork): Call
2892         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
2893         __malloc_fork_unlock_child.
2894         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2895
2896 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2897
2898         [BZ #19613]
2899         Remove union wait.
2900         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
2901         (w_stopsig, w_stopval): Remove.
2902         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
2903         stat_loc argument.
2904         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
2905         (__WAIT_STATUS_DEFN): Remove.
2906         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2907         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
2908         (wait, wait3, wait4): Use int * for the stat_loc argument.
2909         * posix/wait.c (__wait): Likewise.
2910         * posix/wait3.c (__wait3): Likewise.
2911         * posix/wait4.c (__wait4): Likewise.
2912         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
2913         (__WAIT_STATUS_DEFN): Remove.
2914         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2915         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
2916         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
2917         argument.
2918         * sysdeps/posix/wait.c (__libc_wait): Likewise.
2919         * sysdeps/posix/wait3.c (__wait3): Likewise.
2920         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
2921         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
2922         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
2923         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
2924         stat_loc argument.
2925         * manual/process.texi (BSD Wait Functions): Remove union wait.
2926
2927 2016-04-13  Andreas Schwab  <schwab@suse.de>
2928
2929         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
2930         (test-extras): Add tst-tlsalign-vars.
2931         * math/Makefile: Wrap long lines.
2932         (libm-vec-test-wrappers): Define.
2933         (test-extras): Add $(libm-vec-test-wrappers).
2934         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
2935         * nss/Makefile (extra-test-objs): Add nss_test1.os.
2936         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
2937         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
2938         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
2939         (extra-test-objs): Add corresponding objects.
2940
2941 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
2942
2943         [BZ #19928]
2944         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
2945         New.
2946         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
2947         times of shared cache size.
2948         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
2949         (VMOVNT): New.
2950         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
2951         (VMOVNT): Likewise.
2952         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
2953         (VMOVNT): Likewise.
2954         (VMOVU): Changed to movups for smaller code sizes.
2955         (VMOVA): Changed to movaps for smaller code sizes.
2956         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
2957         comments.
2958         (PREFETCH): New.
2959         (PREFETCH_SIZE): Likewise.
2960         (PREFETCHED_LOAD_SIZE): Likewise.
2961         (PREFETCH_ONE_SET): Likewise.
2962         Rewrite to use forward and backward loops, which move 4 vector
2963         registers at a time, to support overlapping addresses and use
2964         non temporal store if size is above the threshold and there is
2965         no overlap between destination and source.
2966
2967 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
2968
2969         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
2970         Include dl-vdso.
2971         * sysdeps/unix/sysv/linux/mips/Versions: Add
2972         __vdso_clock_gettime.
2973         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
2974         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
2975         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
2976         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
2977         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
2978         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2979         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2980         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
2981         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
2982
2983 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2984
2985         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
2986         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
2987         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
2988         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
2989         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2990         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
2992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
2993         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
2994         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
2995         syscalls generation.
2996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2997         [__NR_pwrite64] (__NR_write): Remove define.
2998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2999         [__NR_pwrite64] (__NR_write): Remove define.
3000         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3001         Remove define.
3002         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3003         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3004         Remove define.
3005         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3006         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3007         Linux implementation as base.
3008         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3009
3010         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3011         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3012         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3013         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3016         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3017         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3018         syscall generation.
3019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3020         [__NR_pread64] (__NR_pread): Remove define.
3021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3022         [__NR_pread64] (__NR_pread): Likewise.
3023         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3024         define.
3025         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3026         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3027         Remove define.
3028         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3029         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3030         Linux implementation as base.
3031         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3032         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3033         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3034
3035         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3036         definition.
3037         (__ALIGNMENT_COUNT): Likewise.
3038         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3039         (__ALIGNMENT_COUNT): Likewise.
3040         (SYSCALL_LL): New define.
3041         (SYSCALL_LL64): Likewise.
3042         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3043         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3044         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3045         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3046
3047         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3048         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3049         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3050         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3051         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3052         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3053
3054 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3055
3056         [BZ #19865]
3057         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3058         original buffer before retry.
3059
3060 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3061
3062         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3063         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3064         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3065         GLRO(dl_auxv) list.
3066         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3067         including <ldsodefs.h>.
3068         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3069
3070 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3071
3072         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3073         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3074         $(CPPFLAGS).
3075
3076 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3077
3078         [BZ #17950]
3079         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3080         Add -mfpmath=387.
3081
3082 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3083
3084         * sysdeps/i386/configure.ac: Change == to = when calling test.
3085         * sysdeps/x86_64/configure.ac: Likewise.
3086         * sysdeps/i386/configure: Regenerated.
3087         * sysdeps/x86_64/configure: Likewise.
3088
3089 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3090
3091         [BZ #16137]
3092         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3093         * benchtests/bench-strcoll.c (input_files): Likewise.
3094         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3095         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3096         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3097
3098 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3099
3100         [BZ #19929]
3101         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3102         [__USE_XOPEN2K8 && !__USE_GNU].
3103         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3104         variable.
3105
3106         [BZ #19925]
3107         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3108         define if [!__USE_MISC && __USE_XOPEN2K].
3109         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3110         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3111         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3112         Likewise.
3113         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3114         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3115         variable.
3116         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3117
3118 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3119
3120         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3121         (sysdep_routines): Add new strspn targets.
3122         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3123         (__libc_ifunc_impl_list): Add strspn.
3124         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3125         New file.
3126         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3127         Likewise.
3128         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3129         Likewise.
3130         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3131         Likewise.
3132
3133 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3134
3135         * misc/hsearch_r.c: Include <limits.h>.
3136
3137 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3138
3139         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3140
3141 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3144         (MEMCPY_SYMBOL): New.
3145         (MEMPCPY_SYMBOL): Likewise.
3146         (MEMMOVE_CHK_SYMBOL): Likewise.
3147         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3148         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3149         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3150         Provide alias for memcpy in libc.a and ld.so.
3151
3152 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3153
3154         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3155         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3156         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3157         Disabled fro now.
3158         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3159         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3160
3161 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3162
3163         * benchtests/Makefile (string-benchset): Add memcpy-large,
3164         memmove-large and memset-large.
3165         * benchtests/bench-memcpy-large.c: New file.
3166         * benchtests/bench-memmove-large.c: Likewise.
3167         * benchtests/bench-memmove-large.c: Likewise.
3168         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3169
3170 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3171
3172         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3173         32-bit displacement to avoid long nop between instructions.
3174
3175 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3176
3177         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3178         a comment on VMOVU and VMOVA.
3179
3180 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3181
3182         [BZ #19633]
3183         Use specified locale for number formatting in strfmon_l.
3184         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3185         (__nl_lookup_word): New inline functions.
3186         * include/printf.h (__print_fp_l): Declare.
3187         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3188         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3189         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3190         (___printf_fp): New function.
3191         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3192         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3193         * stdlib/tst-strfmon_l.c (do_test): New test.
3194         * stdlib/Makefile (tests): Add kt.
3195         (LOCALES): Build additional locales.
3196         (tst-strfmon_l.out): Require locales.
3197
3198 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3199
3200         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3201         if not in libc.
3202         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3203         Likewise.
3204         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3205         Likewise.
3206         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3207         Likewise.
3208
3209 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3210
3211         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3212         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3213         with unaligned_erms.
3214         (__memmove_erms): Skip if source == destination.
3215         (__memmove_unaligned_erms): Don't check source == destination
3216         first.
3217
3218 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3219
3220         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3221         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3222
3223 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3224
3225         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3226         * string/strspn.c (strspn): Likewise.
3227
3228 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3229
3230         * benchtests/bench-memset.c (do_test): Support 64-byte
3231         alignment.
3232         (test_main): Test 64-byte alignment.
3233
3234 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3235
3236         * benchtests/bench-memmove.c (test_main): Test 64-byte
3237         alignment.
3238
3239 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3240
3241         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3242
3243 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3244
3245         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3246         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3247         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3248
3249         * string/strpbrk.c (strpbrk): Rewrite function.
3250         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3251         (__strpbrk_c2): Likewise.
3252         (__strpbrk_c3): Likewise.
3253         * string/string-inlines.c
3254         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3255         Likewise.
3256         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3257         Likewise.
3258
3259         * string/strspn.c (strcspn): Rewrite function.
3260         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3261         (__strspn_c1): Remove inline function.
3262         (__strspn_c2): Likewise.
3263         (__strspn_c3): Likewise.
3264         * string/string-inlines.c
3265         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3266         compatibility symbol.
3267         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3268         Likewise.
3269         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3270         Likewise.
3271         * string/string-inlines.c: Include generic version.
3272
3273 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3274             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3275
3276         * string/Version (libc): Add GLIBC_2.24.
3277         * string/strcspn.c (strcspn): Rewrite function.
3278         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3279         (__strcspn_c1): Remove inline function.
3280         (__strcspn_c2): Likewise.
3281         (__strcspn_c3): Likewise.
3282         * string/string-inline.c
3283         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3284         compatibility symbol.
3285         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3286         Likewise.
3287         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3288         Likewise.
3289         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3290
3291 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3292
3293         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3294         Use ahi instead of aghi to adjust stack pointer.
3295
3296 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3297
3298         [BZ #19853]
3299         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3300         TEST to take significant digits as second parameter.
3301         [TEST]: Redefine in terms of TEST_N taking 30
3302         significant digits.
3303         (do_test): Add test case to demonstrate precision
3304         failure in the ldbl-128ibm printf.
3305         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3306         (__mpn_extract_long_double): Carry 7 extra intermediate
3307         bits of precision to aide computing difference when
3308         signs differ.
3309
3310 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3311
3312         [BZ #19881]
3313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3314         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3315         memset-avx512-unaligned-erms.
3316         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3317         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3318         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3319         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3320         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3321         __memset_sse2_unaligned_erms, __memset_erms,
3322         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3323         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3324         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3325         file.
3326         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3327         Likewise.
3328         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3329         Likewise.
3330         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3331         Likewise.
3332
3333 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3334
3335         [BZ #19776]
3336         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3337         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3338         memmove-avx512-unaligned-erms.
3339         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3340         (__libc_ifunc_impl_list): Test
3341         __memmove_chk_avx512_unaligned_2,
3342         __memmove_chk_avx512_unaligned_erms,
3343         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3344         __memmove_chk_sse2_unaligned_2,
3345         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3346         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3347         __memmove_avx512_unaligned_erms, __memmove_erms,
3348         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3349         __memcpy_chk_avx512_unaligned_2,
3350         __memcpy_chk_avx512_unaligned_erms,
3351         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3352         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3353         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3354         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3355         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3356         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3357         __mempcpy_chk_avx512_unaligned_erms,
3358         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3359         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3360         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3361         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3362         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3363         __mempcpy_erms.
3364         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3365         file.
3366         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3367         Likwise.
3368         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3369         Likwise.
3370         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3371         Likwise.
3372
3373 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3374
3375         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3376         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3377         (La_s390_64_regs): Likewise.
3378         (La_s390_32_retval): Append vector register lrv_v24.
3379         (La_s390_64_retval): Likeweise.
3380         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3381         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3382         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3383         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3384
3385 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3386
3387         [BZ #19916]
3388         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3389         to create a non-vector/vector version for _dl_runtime_resolve and
3390         _dl_runtime_profile. Move implementation to ...
3391         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3392         (_dl_runtime_resolve) Save and restore fpr/vrs.
3393         (_dl_runtime_profile) Save and restore vrs and fix some issues
3394         if _dl_call_pltexit is called.
3395         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3396         Choose the correct resolver function if running on a machine with vx.
3397         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3398         to create a non-vector/vector version for _dl_runtime_resolve and
3399         _dl_runtime_profile. Move implementation to ...
3400         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3401         (_dl_runtime_resolve) Save and restore fpr/vrs.
3402         (_dl_runtime_profile) Save and restore vrs and fix some issues
3403         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3404         Choose the correct resolver function if running on a machine with vx.
3405
3406 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3407
3408         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3409
3410 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3411
3412         [BZ #19509]
3413         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3414         skip_map != NULL.
3415         * elf/tst-dlsym-error.c: New file.
3416         * elf/Makefile (tests): Add tst-dlsym-error.
3417         (tst-dlsym-error): Link against libdl.
3418
3419 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3422         (__ASSUME_FUTIMESAT): Remove macro.
3423         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3424
3425 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3426
3427         [BZ #19879]
3428         CVE-2016-3075
3429         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3430         copy name.
3431
3432 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3433
3434         [BZ #19837]
3435         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3436         error if parse_line fails.
3437
3438 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3439
3440         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3441         (index_cpu_ERMS): Likewise.
3442         (reg_ERMS): Likewise.
3443
3444 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3445
3446         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3447         PER_LINUX_FDPIC): Add.
3448
3449 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3450
3451         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3452         memcpy-avx512-no-vzeroupper.
3453         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3454         to ...
3455         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3456         (MEMCPY): Don't define.
3457         (MEMCPY_CHK): Likewise.
3458         (MEMPCPY): Likewise.
3459         (MEMPCPY_CHK): Likewise.
3460         (MEMPCPY_CHK): Renamed to ...
3461         (__mempcpy_chk_avx512_no_vzeroupper): This.
3462         (MEMPCPY_CHK): Renamed to ...
3463         (__mempcpy_chk_avx512_no_vzeroupper): This.
3464         (MEMCPY_CHK): Renamed to ...
3465         (__memmove_chk_avx512_no_vzeroupper): This.
3466         (MEMCPY): Renamed to ...
3467         (__memmove_avx512_no_vzeroupper): This.
3468         (__memcpy_avx512_no_vzeroupper): New alias.
3469         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3470
3471 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3472
3473         [BZ #18858]
3474         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3475         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3476         and mempcpy-avx512-no-vzeroupper.
3477         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3478         New.
3479         (MEMPCPY): Likewise.
3480         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3481         (MEMPCPY_CHK): New.
3482         (MEMPCPY): Likewise.
3483         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3484         (MEMPCPY): Likewise.
3485         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3486         (MEMPCPY): Likewise.
3487         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3488         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3489         Likewise.
3490         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3491         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3492
3493 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3494              Amit Pawar  <Amit.Pawar@amd.com>
3495
3496         [BZ #19583]
3497         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3498         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3499         processors.  Set Fast_Copy_Backward for AMD Excavator
3500         processors.
3501         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3502         New.
3503         (index_arch_Fast_Unaligned_Copy): Likewise.
3504         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3505         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3506
3507 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3508
3509         [BZ #19791]
3510         * resolv/res_send.c (close_and_return_error): New function.
3511         (send_dg): Initialize *resplen2 after reopen failure.  Call
3512         close_and_return_error for error returns.  On error paths without
3513         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3514         successful return.
3515
3516 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3517
3518         [BZ# 19860]
3519         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3520         zero if the compiler does not provide the AVX512F bit.
3521
3522 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3523
3524         [BZ #19848]
3525         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3526         from 8 to 4.
3527         (__ieee754_powl): Compare integer exponent against 4 not 8.
3528         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3529         from 8 to 4.
3530         (__ieee754_powl): Compare integer exponent against 4 not 8.
3531         * math/auto-libm-test-in: Add more tests of pow.
3532         * math/auto-libm-test-out: Regenerated.
3533         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3535
3536 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3537
3538         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3539         Make code unconditional.
3540         [!__NR_utimensat]: Remove conditional code.
3541         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3542         Make code unconditional.
3543         [!__NR_utimensat]: Remove conditional code.
3544         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3545         Make code unconditional.
3546         [!__NR_utimensat]: Remove conditional code.
3547
3548 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3549
3550         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3551         Make code unconditional.
3552
3553 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3554
3555         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3556         call-clobbered %eax on retry path.
3557         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3558
3559 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3560
3561         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3562         Don't set %rcx twice before "rep movsb".
3563
3564 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3565
3566         [BZ #19583]
3567         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3568         inline.  Check family before setting family, model and
3569         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3570         bits here.
3571         (init_cpu_features): Replace HAS_CPU_FEATURE and
3572         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3573         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3574         for Intel processors with usable AVX2.  Call get_common_indeces
3575         for other processors with family == NULL.
3576         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3577         (CPU_FEATURES_ARCH_P): Likewise.
3578         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3579         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3580
3581 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3582
3583         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3584         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3585         $(shared-thread-library) instead of hardcoding the path to libpthread.
3586
3587 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3588
3589         * sysdeps/unix/sysv/linux/kernel-features.h
3590         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3591         * sysdeps/unix/sysv/linux/getdents.c
3592         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3593         [!have_no_getdents64_defined]: Likewise.
3594         (__GETDENTS): Remove __have_no_getdents64 conditional.
3595
3596 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3597
3598         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3599         Remove macro.
3600         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3601         <kernel-features.h>.
3602         (signalfd) [__NR_signalfd4]: Make code unconditional.
3603         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3604
3605 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3606
3607         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3608         style.
3609
3610 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3611
3612         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3613         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3614         __pthread_unwind.
3615         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3616         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3617         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3618         (__condvar_cleanup1): Likewise.
3619
3620 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3621
3622         [BZ #19822]
3623         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3624         move it to the final $@ location.
3625
3626 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3627
3628         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3629         access where posix_spawn success and pid argument is null.
3630         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3631         success case.
3632
3633 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3634
3635         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3636
3637         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3638
3639         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3640         and __fcntl.
3641         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3642         __fcntl only.
3643         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3644         adding attribute_hidden to __open and __fcntl.
3645
3646         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3647         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3648         depend on libc-modules.h,
3649         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3650
3651 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3652
3653         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3654         Remove macro.
3655         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3656         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3657         entry.
3658
3659         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3660         Remove macro.
3661         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3662         include <kernel-features.h>.
3663         [!__ASSUME_FALLOCATE]: Remove conditional code.
3664         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3665
3666 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3667
3668         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3669         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3670         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3671         (_ZGVdN4v_cos_avx2): Likewise.
3672         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3673         (_ZGVdN4v_cos): Likewise.
3674         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3675         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3676         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3677         (_ZGVdN4v_exp_avx2): Likewise.
3678         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3679         (_ZGVdN4v_exp): Likewise.
3680         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3681         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3682         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3683         (_ZGVdN4v_log_avx2): Likewise.
3684         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3685         (_ZGVdN4v_log): Likewise.
3686         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3687         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3688         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3689         (_ZGVdN4vv_pow_avx2): Likewise.
3690         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3691         (_ZGVdN4vv_pow): Likewise.
3692         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3693         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3694         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3695         (_ZGVdN4v_sin_avx2): Likewise.
3696         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3697         (_ZGVdN4v_sin): Likewise.
3698         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3699         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3700         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3701         (_ZGVdN4vvv_sincos_avx2): Likewise.
3702         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3703         (_ZGVdN4vvv_sincos): Likewise.
3704         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3705         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3706         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3707         (_ZGVbN4v_cosf_sse4): Likewise.
3708         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3709         (_ZGVdN8v_cosf_avx2): Likewise.
3710         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3711         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3712         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3713         (_ZGVbN4v_expf_sse4): Likewise.
3714         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3715         (_ZGVdN8v_expf_avx2): Likewise.
3716         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3717         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3718         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3719         (_ZGVbN4v_logf_sse4): Likewise.
3720         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3721         (_ZGVdN8v_logf_avx2): Likewise.
3722         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3723         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3724         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3725         (_ZGVbN4vv_powf_sse4): Likewise.
3726         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3727         (_ZGVdN8vv_powf_avx2): Likewise.
3728         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3729         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3730         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3731         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3732         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3733         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3734         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3735         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3736         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3737         (_ZGVbN4v_sinf_sse4): Likewise.
3738         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3739         (_ZGVdN8v_sinf_avx2): Likewise.
3740         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3741         Use JUMPTARGET to call callee.
3742         (WRAPPER_IMPL_SSE2_ff): Likewise.
3743         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3744         (WRAPPER_IMPL_AVX): Likewise.
3745         (WRAPPER_IMPL_AVX_ff): Likewise.
3746         (WRAPPER_IMPL_AVX_fFF): Likewise.
3747         (WRAPPER_IMPL_AVX512): Likewise.
3748         (WRAPPER_IMPL_AVX512_ff): Likewise.
3749         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3750         Likewise.
3751         (WRAPPER_IMPL_SSE2_ff): Likewise.
3752         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3753         (WRAPPER_IMPL_AVX): Likewise.
3754         (WRAPPER_IMPL_AVX_ff): Likewise.
3755         (WRAPPER_IMPL_AVX_fFF): Likewise.
3756         (WRAPPER_IMPL_AVX512): Likewise.
3757         (WRAPPER_IMPL_AVX512_ff): Likewise.
3758         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3759
3760 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3761
3762         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3763         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3764         qualifier.
3765         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3766         internal_function qualifiers.
3767
3768 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3769
3770         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3771         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3772         * math/atest-exp.c (exp_mpn): Mark chk unused.
3773         * math/atest-exp2.c (exp_mpn): Likwise.
3774         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3775         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3776
3777 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3780         Remove macro.
3781         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3782         <kernel-features.h>.
3783         [__NR_ppoll]: Make code unconditional.
3784         [!__ASSUME_PPOLL]: Remove conditional code.
3785
3786         * sysdeps/unix/sysv/linux/kernel-features.h
3787         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3788         (__ASSUME_ACCEPT4): Likewise.
3789         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3790         Define.
3791         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3792         Likewise.
3793         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3794         Likewise.
3795         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3796         Likewise.
3797         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3798         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3799         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3800         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3801         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3802         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3803         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3804         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3805         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3806         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3807         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3808         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3809         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3810         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3811         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3812         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3813         Likewise.
3814         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3815         Likewise.
3816         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3817         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3818         0x040300].
3819         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3820         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3821         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3822         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3823         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3824         0x030300].
3825         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3826         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3827         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3828         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3829         0x040300].
3830         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3831         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3832         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3833         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3834         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3835         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3836         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3837         0x030300].
3838         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3839         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3840         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3841         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3842         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3843         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3844         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3845         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3846         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3847         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3848         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3849         0x040300].
3850         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3851         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3852         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3853         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3854         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3855         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3856         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3857         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3858         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3859         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3860         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3861         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3862         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3863         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3864         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
3865         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3866         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3867         Likewise.
3868         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3869         Likewise.
3870
3871 2016-03-15  Andreas Schwab  <schwab@suse.de>
3872
3873         [BZ #19257]
3874         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
3875         statp->_u._ext.nscount as loop count.
3876
3877 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
3878
3879         * math/test-signgam-finite-c99.c: Also #undef
3880         __LIBC_INTERNAL_MATH_INLINES.
3881         * math/test-signgam-main.c: Likewise.
3882
3883 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
3884
3885         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
3886         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3887         (MADV_FREE): Likewise.
3888         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
3889         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
3890         EPOLLEXCLUSIVE.
3891
3892 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
3893
3894         * timezone/README: Remove mention of checktab.awk. Mention wiki
3895         SharedSourceFiles.
3896
3897 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
3898
3899         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
3900         WUNTRACED.
3901
3902 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3903
3904         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
3905         order to match the type of p when calling atomic_exchange_acq().
3906
3907 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3908
3909         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
3910         cfi_offset calls.
3911         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3912         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
3913         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
3914         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
3915         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
3916
3917 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
3918
3919         * timezone/checktab.awk: Removed.
3920
3921 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
3922
3923         * manual/math.texi (Errors in Math Functions): Document relaxed
3924         accuracy goals for IBM long double.
3925         * math/libm-test.inc (test_exceptions): Always allow spurious
3926         "underflow" and "inexact" exceptions for IBM long double.
3927
3928 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3929
3930         [BZ #19762]
3931         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
3932         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
3933         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3934         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
3935         (bit_arch_*): This for feature array.
3936         (bit_*): Renamed to ...
3937         (bit_cpu_*): This for cpu array.
3938         (index_*): Renamed to ...
3939         (index_arch_*): This for feature array.
3940         (index_*): Renamed to ...
3941         (index_cpu_*): This for cpu array.
3942         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
3943         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
3944         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
3945         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
3946         bit_##name with index_cpu_##name and bit_cpu_##name.
3947         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
3948         bit_##name with index_arch_##name and bit_arch_##name.
3949
3950 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
3951
3952         [BZ #19792]
3953         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
3954         Terminate FDE before return label.
3955
3956 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
3957
3958         [BZ #19790]
3959         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
3960         (rintl): Define as macro.
3961         [USE_AS_NEARBYINTL] (__rintl): Likewise.
3962         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
3963         of fesetround.  Ensure results are evaluated before end of scope.
3964         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
3965         USE_AS_NEARBYINTL and include s_rintl.c.
3966         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
3967         Disable exception traps in new environment.
3968         (libc_feholdsetround_ppc_ctx): Likewise.
3969
3970 2016-03-08  Roland McGrath  <roland@hack.frob.com>
3971
3972         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
3973         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
3974         (tst_audit10_aux) [__AVX512F__]: ... here.
3975
3976 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
3977
3978         * include/sys/auxv.h: New file.
3979
3980 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3981
3982         [BZ #19759]
3983         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
3984
3985 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3986
3987         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
3988         operand modifier.
3989         (feclearexcept): Likewise.
3990
3991 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3992
3993         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
3994         to reflect the entire 32-bit HWCAP.
3995         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
3996         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
3997
3998 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
3999
4000         [BZ #19783]
4001         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4002         $(test-via-rtld-prefix).
4003         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4004
4005 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4006
4007         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4008         union wait.  Report any non-zero exit status as error.
4009
4010 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4011
4012         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4013         configured with --enable-hardcoded-path-in-tests.
4014
4015 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4016
4017         [BZ #19677]
4018         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4019         (__ieee754_remainderl): Put zero low parts in canonical form.
4020         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4021         file.  Based on
4022         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4023         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4024         with wrapper round test-fmodrem-ldbl-128ibm.c.
4025         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4026         file.
4027         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4028         Likewise.
4029         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4030         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4031
4032 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4033
4034         [BZ #19610]
4035         * elf/ldconfig.c (opt_link): Update comment.
4036         (options): Update help string for option -X.
4037         (search_dir): Unlink stale symbolic link only if updating symbolic
4038         links.
4039         * elf/tst-ldconfig-X.sh: New file.
4040         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4041         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4042
4043 2016-03-07  Andreas Schwab  <schwab@suse.de>
4044
4045         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4046         needed arguments.
4047
4048 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4049
4050         [BZ #15333]
4051         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4052         to lstat64.
4053
4054 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4055
4056         * libio/filedoalloc.c (isatty): Remove.
4057         (local_isatty): Add comment.  Call __isatty directly.
4058         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4059         * libio/wfiledoalloc.c (isatty): Remove.
4060         (_IO_wfile_doallocate): Update comment.
4061
4062 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4063
4064         [BZ #19269]
4065         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4066         tst-audit4-aux.o.
4067         (tst-audit10): Depend on tst-audit10-aux.o.
4068         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4069         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4070         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4071         instead of inline AVX code.
4072         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4073         instead of inline AVX512 code.
4074         * sysdeps/x86_64/tst-audit4-aux.c: New file
4075         * sysdeps/x86_64/tst-audit10-aux.c: New file
4076
4077         [BZ #19648]
4078         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4079
4080 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4081
4082         [BZ #14750]
4083         [BZ #10354]
4084         [BZ #18433]
4085         * include/sched.h (__clone): Add hidden prototype.
4086         (__clone2): Likewise.
4087         * include/unistd.h (__dup): Likewise.
4088         * posix/Makefile (tests): Add tst-spawn2.
4089         * posix/tst-spawn2.c: New file.
4090         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4091         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4092         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4093         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4094         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4095         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4096         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4097         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4098         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4099         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4100         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4102         Likewise.
4103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4104         Likewise.
4105         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4106         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4107         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4108         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4109         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4110         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4111         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4112         * sysdeps/unix/sysv/linux/nptl-signals.h
4113         (____nptl_is_internal_signal): New function.
4114         * sysdeps/unix/sysv/linux/spawni.c: New file.
4115
4116         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4117         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4118         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4119         * posix/tst-execvp2.c (do_test): Likewise.
4120         * posix/tst-execvp3.c (do_test): Likewise.
4121         * posix/tst-execvp4.c (do_test): Likewise.
4122         * posix/tst-execvpe1.c: New file.
4123         * posix/tst-execvpe2.c: Likewise.
4124         * posix/tst-execvpe3.c: Likewise.
4125         * posix/tst-execvpe4.c: Likewise.
4126         * posix/tst-execvpe5.c: Likewise.
4127         * posix/tst-execvpe6.c: Likewise.
4128
4129         [BZ #19534]
4130         * posix/execl.c (execl): Remove dynamic memory allocation.
4131         * posix/execle.c (execle): Likewise.
4132         * posix/execlp.c (execlp): Likewise.
4133
4134 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4135
4136         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4137         Replace .text with .text.avx512.
4138         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4139         Likewise.
4140
4141 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4142
4143         * sysdeps/generic/libnsl.abilist: New file.
4144         * sysdeps/generic/libutil.abilist: New file.
4145
4146 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4147
4148         [BZ #19762]
4149         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4150         HAS_ARCH_FEATURE with Fast_Rep_String.
4151         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4152         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4153         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4154         Likewise.
4155         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4156         Likewise.
4157         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4158         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4159         Likewise.
4160         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4161         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4162         Likewise.
4163
4164 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4165
4166         [BZ #19745]
4167         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4168         with *%rax in call.
4169
4170 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4171
4172         [BZ #19745]
4173         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4174         with *__libc_start_main@GOTPCREL(%rip) in call.
4175
4176 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4177
4178         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4179         inside conditional for nonempty $(CXX).
4180
4181         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4182         nonempty.
4183
4184         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4185         to test for empty $(CXX) rather than $(CXX) of "no".
4186
4187 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4188
4189         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4190
4191 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4192             H.J. Lu  <hongjiu.lu@intel.com>
4193
4194         [BZ #18880]
4195         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4196         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4197         enable __memcpy_ssse3_back.
4198
4199 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4200
4201         [BZ #19758]
4202         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4203         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4204
4205 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4206
4207         [BZ #19490]
4208         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4209         (__fentry__): Likewise.
4210
4211 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4212
4213         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4214         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4215
4216 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4217
4218         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4219         __mcount_internal directly.
4220         (C_LABEL(__fentry__)): Likewise.
4221         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4222         directly.
4223
4224 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4225
4226         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4227         (__start_context): Call __setcontext directly.
4228
4229 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4230
4231         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4232         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4233         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4234         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4235         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4236         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4237         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4238         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4239         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4240         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4241         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4242         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4243         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4244         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4245         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4246         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4247         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4248         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4249         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4250         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4251         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4252         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4253         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4254         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4255         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4256         Remove conditional code.
4257         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4258         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4259         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4260         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4261         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4262         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4263         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4264         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4265         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4266         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4267         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4268         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4269
4270 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4271
4272         * NEWS (2.23): Fix typo in bug 19048 text.
4273
4274 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4275
4276         [BZ #14259]
4277         * Makeconfig: Rename msgcatdir to localedir.
4278         Rename inst_msgcatdir to inst_localedir.
4279         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4280         * config.make.in: Add localedir.
4281         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4282         (ldd-rewrite): Likewise.
4283         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4284         (install-others): Use inst_localedir.
4285         (CPPFLAGS): Use localedir.
4286         * locale/Makefile (locale-CPPFLAGS): Likewise.
4287         * po/Makefile (mo-installed): Use inst_localedir.
4288
4289         [BZ #19575]
4290         * localedata/charmaps/GB18030: Update comments regarding PAU to
4291         non-PUA mappings.
4292
4293 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4294
4295         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4296         test for header.
4297         * sysdeps/unix/sysv/linux/configure: Regenerated.
4298         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4299         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4300         Remove conditional code.
4301         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4302
4303         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4304         Define to 3.2.0.
4305         (arch_minimum_kernel): Likewise.
4306         * sysdeps/unix/sysv/linux/configure: Regenerated.
4307         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4308         Define to 2.6.32.
4309         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4310         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4311         (arch_minimum_kernel): Define to 2.6.32.
4312         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4313         * README: Document Linux 3.2 requirement.
4314         * manual/install.texi (Linux): Document Linux 3.2 headers
4315         requirement.
4316         * INSTALL: Regenerated.
4317
4318 2016-02-24  Andreas Schwab  <schwab@suse.de>
4319
4320         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4321         if !NO_LONG_DOUBLE.
4322
4323 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4324
4325         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4326         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4327
4328 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4329
4330         [BZ #19512]
4331         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4332
4333 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4334
4335         * posix/tst-dir.c: Include libc-internal.h.
4336
4337 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4338
4339         [BZ #19056]
4340         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4341         * manual/filesys.texi (Reading/Closing Directory): Mention
4342         deprecaion.
4343         * posix/tst-dir.c (main): Disable deprecation warning in test.
4344
4345 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4346
4347         [BZ #19679]
4348         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4349         Renamed to ...
4350         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4351         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4352         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4353         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4354         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4355         * sysdeps/x86_64/dl-trampoline.h
4356         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4357         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4358
4359 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4360
4361         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4362
4363 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4364
4365         * elf/elf.h (R_386_GOT32X): New.
4366         (R_386_NUM): Update.
4367         (R_X86_64_GOTPCRELX: New.
4368         (R_X86_64_REX_GOTPCRELX): New.
4369         (R_X86_64_NUM): Update.
4370
4371 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4372
4373         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4374
4375 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4376
4377         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4378         assign attr->stackaddr to it, and adjust it down when
4379         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4380         [_STACK_GROWS_UP]: Delete assert.
4381         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4382         Implement stack grows up logic.
4383         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4384         stack grows up logic.
4385
4386 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4387
4388         * NEWS: Update with 2.24 template.
4389
4390 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4391
4392         [BZ #19678]
4393         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4394         Ensure +0.0 is returned when taking the next value below the least
4395         positive value.
4396
4397 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4398
4399         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4400         available.  Do not define NO_THREADS.
4401         * malloc/malloc.c: Do not check NO_THREADS.
4402         * malloc/arena.c: Likewise.
4403
4404 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4405
4406         * malloc/malloc.c (__libc_mallinfo): Update comment.
4407         (struct malloc_par): Remove max_total_mem member, it was always 0.
4408         (int_mallinfo): Store 0 into usmblks (no functional change).
4409         * malloc/hooks.c (struct malloc_state): Document that
4410         max_total_mem is always 0.
4411         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4412         always 0.
4413         * manual/memory.texi (Statistics of Malloc): Likewise.
4414
4415 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4416
4417         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4418         * malloc/arena.c (arena_max): Remove.
4419         (heap_trim, _int_new_arena): Do not update arena_max.
4420
4421 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4422
4423         * resolv/res_init.c (res_ninit): Update comment.
4424
4425 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4426
4427         [BZ #19505]
4428         * posix/spawn_int.h: Add headers and include guard.
4429         (__spawn_valid_fd): New function.
4430         * posix/spawn_faction_addopen.c
4431         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4432         * posix/spawn_faction_addclose.c
4433         (posix_spawn_file_actions_addclose): Likewise.
4434         * posix/spawn_faction_adddup2.c
4435         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4436         second file descriptor.
4437         * posix/spawn_valid_fd.c: New file.
4438         * posix/tst-posix_spawn-fd.c: New file.
4439         * posix/Makefile (routines): Add spawn_valid_fd.
4440         (tests): Add tst-posix_spawn-fd.
4441
4442 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4443
4444         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4445         (do_test): Limit the number of arenas, so that we can use fewer
4446         outer threads.  Limit timeout to 3 seconds, in preparation for a
4447         larger TIMEOUT value.
4448
4449 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4450
4451         [BZ #19674]
4452         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4453         sign in overflowing and underflowing results when overflow or
4454         underflow is detected early.  Include sign in result before rather
4455         than after scaling.
4456
4457         [BZ #19603]
4458         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4459         (__ieee754_remainderl): Adjust sign of integer version of low part
4460         when taking absolute value of high part.
4461         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4462         * math/libm-test.inc (remainder_test_data): Add another test.
4463         (remquo_test_data): Likewise.
4464
4465 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4466
4467         [BZ #19602]
4468         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4469         equal high parts and both low parts zero specially.
4470         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4471         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4472         Add test-fmodl-ldbl-128ibm.
4473
4474         [BZ #19595]
4475         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4476         common logic for all cases of shifting subnormal results.  Do not
4477         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4478         exponent to ldbl_insert_mantissa in subnormal case.
4479
4480         [BZ #19594]
4481         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4482         on high and low parts then adjust result and use
4483         ldbl_canonicalize_int if needed.
4484
4485         [BZ #19593]
4486         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4487         on high part and __floor or __ceil on low part then use
4488         ldbl_canonicalize_int if needed.
4489
4490         [BZ #19592]
4491         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4492         high and low parts then use ldbl_canonicalize_int if needed.
4493
4494         [BZ #17899]
4495         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4496         New function.
4497         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4498         on high and low parts then use ldbl_canonicalize_int if needed.
4499
4500 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4501
4502         * configure: Regenerated.
4503
4504         * po/libc.pot: Regenerated.
4505
4506         * po/be.po: Updated translation.
4507         * po/bg.po: Likewise.
4508         * po/ca.po: Likewise.
4509         * po/cs.po: Likewise.
4510         * po/da.po: Likewise.
4511         * po/el.po: Likewise.
4512         * po/eo.po: Likewise.
4513         * po/es.po: Likewise.
4514         * po/fi.po: Likewise.
4515         * po/fr.po: Likewise.
4516         * po/gl.po: Likewise.
4517         * po/hr.po: Likewise.
4518         * po/hu.po: Likewise.
4519         * po/ia.po: Likewise.
4520         * po/id.po: Likewise.
4521         * po/it.po: Likewise.
4522         * po/ja.po: Likewise.
4523         * po/lt.po: Likewise.
4524         * po/nb.po: Likewise.
4525         * po/nl.po: Likewise.
4526         * po/pt_BR.po: Likewise.
4527         * po/rw.po: Likewise.
4528         * po/sk.po: Likewise.
4529         * po/sl.po: Likewise.
4530         * po/sv.po: Likewise.
4531         * po/tr.po: Likewise.
4532         * po/zh_CN.po: Likewise.
4533         * po/zh_TW.po: Likewise.
4534
4535         * version.h (RELEAES): Set to "development".
4536         (VERSION): Set to 2.23.90.
4537
4538         * version.h (RELEASE): Set to "stable".
4539         (VERSION): Set to 2.23.
4540         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4541
4542         * NEWS: Updated fixed bugs.
4543
4544 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4545             Wilco Dijkstra  <wdijkstr@arm.com>
4546
4547         [BZ #19462]
4548         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4549         (_STRING_INLINE_unaligned): This.
4550         * include/string.h: Include <string_private.h>.
4551         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4552         _STRING_INLINE_unaligned.
4553         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4554         (_STRING_INLINE_unaligned): New.
4555         * sysdeps/aarch64/string_private.h: New file.
4556         * sysdeps/generic/string_private.h: Likewise.
4557         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4558         * sysdeps/s390/string_private.h: Likewise.
4559         * sysdeps/x86/string_private.h: Likewise.
4560         * sysdeps/m68k/m680x0/m68020/bits/string.h
4561         (_STRING_ARCH_unaligned): Renamed to ...
4562         (_STRING_INLINE_unaligned): This.
4563         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4564         to ...
4565         (_STRING_INLINE_unaligned): This.
4566         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4567         to ...
4568         (_STRING_INLINE_unaligned): This.
4569         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4570         to ...
4571         (_STRING_INLINE_unaligned): This.
4572
4573 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4574             H.J. Lu  <hongjiu.lu@intel.com>
4575
4576         [BZ #19590]
4577         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4578         relocation.
4579
4580 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4581
4582         [BZ #18665]
4583         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4584         *herrno_p.
4585         (gaih_getanswer): Document functional behviour. Return tryagain
4586         if any result is tryagain.
4587         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4588         when freed.
4589         * resolv/res_send.c: Add copyright text.
4590         (__libc_res_nsend): Document that MAXPACKET is expected.
4591         (send_vc): Document. Remove buffer reuse.
4592         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4593         size of the buffer. Add Dprint for truncated UDP buffer.
4594
4595 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4596
4597         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4598         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4599         * INSTALL: Regenerate.
4600
4601 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4602             Jonathan Wakely  <jwakely@redhat.com>
4603             Carlos O'Donell  <carlos@redhat.com>
4604
4605         [BZ 19439]
4606         * math/Makefile (tests): Add test-math-isinff.
4607         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4608         * math/bits/mathcalls.h [__USE_MISC]: Use
4609         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4610         functions not in C++11 and which don't conflict e.g. isinff,
4611         isinfl etc.
4612         * math/test-math-isinff.cc: New file.
4613
4614 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4615
4616         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4617
4618 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4619
4620         [BZ #19529]
4621         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4622
4623 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4624
4625         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4626
4627 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4628
4629         [BZ #19550]
4630         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4631         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4632         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4633         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4634         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4635         New syscall entry.
4636         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4637         New syscall entry.
4638         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4639         syscall entry.
4640
4641 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         [BZ #18240]
4644         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4645         unsigned int wraparound.
4646
4647 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4648
4649         [BZ #18240]
4650         * misc/bug18240.c: New test.
4651         * misc/Makefile (tests): Add it.
4652
4653 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4654             Joseph Myers  <joseph@codesourcery.com>
4655
4656         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4657         load in branch delay slot when less than a word of input left.
4658
4659 2016-01-27  Andreas Schwab  <schwab@suse.de>
4660
4661         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4662         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4663         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4664         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4665
4666 2016-01-26  David S. Miller  <davem@davemloft.net>
4667
4668         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4669
4670 2016-01-25  David S. Miller  <davem@davemloft.net>
4671
4672         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4673         __sqrtl_finite.
4674         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4675         instead using versioned_symbol.
4676         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4677         of entries.
4678
4679         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4680         __sqrtl_finite to GLIBC_2.23
4681
4682 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4683
4684         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4685
4686 2016-01-25  Andreas Schwab  <schwab@suse.de>
4687
4688         [BZ #17514]
4689         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4690         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4691         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4692         * nptl/tst-mutex-errorcheck.c: New file.
4693
4694 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4695
4696         [BZ #18560]
4697         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4698         (IPCOP_semop): Likewise.
4699         (IPCOP_semget): Likewise.
4700         (IPCOP_semctl): Likewise.
4701         (IPCOP_msgsnd): Likewise.
4702         (IPCOP_msgrcv): Likewise.
4703         (IPCOP_msgget): Likewise.
4704         (IPCOP_msgctl): Likewise.
4705         (IPCOP_shmat): Likewise.
4706         (IPCOP_shmdt): Likewise.
4707         (IPCOP_shmget): Likewise.
4708         (IPCOP_shmctl): Likewise.
4709
4710 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4711
4712         * string/tst-endian.c: Include <libc-internal.h>.
4713         (do_test): Ignore tautological-compare warnings around
4714         "htobeXX (beXXtoh (i)) != i" and
4715         "htoleXX (leXXtoh (i)) != i" if-statements.
4716
4717 2016-01-24  David S. Miller  <davem@davemloft.net>
4718
4719         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4720         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4721         alias.
4722         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4723         __sqrtl_finite.
4724
4725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4726
4727 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4728
4729         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4730         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4731         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4732
4733 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4734
4735         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4736         (thread_func): Use new function to simplify barrier check.
4737         (do_test): Use new function to simplify checking barrier exit
4738         code, and actually join the child thread.
4739
4740 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4741
4742         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4743         semicolon.
4744         (__libc_tend): Likewise.
4745         (__libc_tabort): Likewise.
4746
4747 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4748
4749         * sysdeps/nios2/libm-test-ulps: Update.
4750         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4751         (__gtsf2): Likewise.
4752         (__unorddf2): Likewise.
4753         (__unordsf2): Likewise.
4754         (__ledf2): Likewise.
4755
4756 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4757
4758         * nis/nis_table.c (__follow_path): Disable diagnostic for
4759         uninitialized variable that is a false positive for gcc 4.7.
4760         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4761
4762 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4763
4764         * sysdeps/nacl/lowlevellock-futex.h
4765         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4766         Always evaluate PRIVATE argument.
4767
4768 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4769
4770         [BZ #19490]
4771         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4772         (pthread_cond_broadcast): Use ENTRY/END
4773         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4774         (pthread_cond_signal): Likewise.
4775         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4776         Likewise.
4777         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4778         Likewise.
4779         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4780         Likewise.
4781
4782 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4783
4784         * sysdeps/ieee754/dbl-64/s_finite.c
4785         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4786         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4787         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4788         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4789         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4790
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4792         (__gtsf2): Add as optional for libc.so.
4793         (__unordsf2): Likewise.
4794         (__signbit): Remove for libc.so.
4795         (__signbitl): Likewise.
4796
4797 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4798
4799         * iconvdata/bug-iconv11.c (test_ibm93x):
4800         Use %zu printf format specifier for size_t argument.
4801
4802 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4803
4804         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4805         already-recorded ulps.
4806         * sysdeps/arm/libm-test-ulps: Regenerated.
4807         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4808         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4809         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4810
4811 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4812             Paul Pluzhnikov  <ppluzhnikov@google.com>
4813
4814         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4815         assembler not supporting AVX-512.
4816
4817 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4818
4819         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4820
4821 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4822
4823         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4824         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4825
4826         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4827
4828         * sysdeps/arm/libm-test-ulps: Regenerated.
4829
4830 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4831
4832         [BZ #19451]
4833         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4834
4835 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4836
4837         [BZ #19486]
4838         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4839         * sysdeps/generic/fix-fp-int-convert-overflow.h
4840         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
4841         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
4842         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
4843         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
4844         Likewise.
4845         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
4846         Avoid conversions to long int where inexact exceptions
4847         could be raised.
4848         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
4849         Likewise.
4850         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
4851         Avoid conversions to long long int where inexact exceptions
4852         could be raised.
4853         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
4854         Likewise.
4855
4856 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
4857
4858         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
4859         * configure: Regenerated.
4860
4861 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4862
4863         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
4864
4865 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
4866
4867         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
4868         outside of comment.
4869
4870 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4871
4872         * nptl/tst-barrier1.c: Add description on first line.
4873         * nptl/tst-barrier2.c: Likewise.
4874         * nptl/tst-barrier3.c: Likewise.
4875         * nptl/tst-barrier4.c: Likewise.
4876         * nptl/tst-barrier5.c: Likewise.
4877
4878 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4879
4880         [BZ #18868]
4881         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
4882
4883 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4884
4885         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
4886         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
4887         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
4888         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
4889         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
4890         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
4891         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4892         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4893         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4894         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4895         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4896
4897 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4898
4899         [BZ #13065]
4900         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
4901         new implementation.
4902         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
4903         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
4904         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
4905         (BARRIER_IN_THRESHOLD): New macro.
4906         * nptl/pthread_barrierattr_setpshared.c
4907         (pthread_barrierattr_setpshared): Clean up.
4908         * nptl/tst-barrier4.c: Correct comment.
4909         * nptl/tst-barrier5.c: New file.
4910         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
4911         (gen-as-const-headers): Remove lowlevelbarrier.sym.
4912         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
4913         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
4914         * nptl/lowlevelbarrier.sym: Remove.
4915         * nptl/DESIGN-barrier.txt: Remove.
4916         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
4917         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
4918         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
4919         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
4920         error.
4921         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
4922         implementation.
4923
4924 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4925
4926         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
4927         (do_child): Mask SIGRTMIN while thr is running.
4928
4929 2016-01-15  Martin Sebor  <msebor@redhat.com>
4930
4931         [BZ #19432]
4932         * iconvdata/Makefile: Add bug-iconv11.
4933         * iconvdata/bug-iconv11.c: New test.
4934         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
4935         * iconvdata/ibm933.c: Same.
4936         * iconvdata/ibm935.c: Same.
4937         * iconvdata/ibm937.c: Same.
4938         * iconvdata/ibm939.c: Same.
4939
4940 2016-01-15  Martin Sebor  <msebor@redhat.com>
4941
4942         [BZ #19443]
4943         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
4944         [DEBUG] (_ufc_set_bits): Declare used.
4945         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
4946         [DEBUG] (print_all): Declare used.
4947         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
4948         operands of the ternary ?: expression to target type.
4949         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
4950         calling the undeclared abort.
4951         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
4952
4953 2016-01-15  Martin Sebor  <msebor@redhat.com>
4954
4955         [BZ #18755]
4956         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
4957         warnings.
4958         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
4959         (__gai_create_helper_thread): Same.
4960         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
4961         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
4962         to suppress -Wmaybe-uninitialized warnings.
4963
4964 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
4965
4966         [BZ #19465]
4967         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
4968         inside if.
4969         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4970         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4971         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4972
4973 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
4974
4975         [BZ #19466]
4976         * time/tst-mktime2.c (time_t_max): Removed.
4977         (time_t_min): Likewise.
4978         (TYPE_SIGNED): New.
4979         (TYPE_MINIMUM): Likewise.
4980         (TYPE_MAXIMUM): Likewise.
4981         (TIME_T_MIN): Likewise.
4982         (TIME_T_MAX): Likewise.
4983         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
4984         and TIME_T_MIN.
4985         (do_test): Likewise.
4986
4987 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
4988
4989         [BZ #19467]
4990         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4991         index_Fast_Unaligned_Load flag for Excavator family CPUs.
4992
4993 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
4994
4995         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
4996
4997 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
4998
4999         * benchtests/Makefile (PYTHON): Define.
5000         (bench-func): Use $(PYTHON) to run python scripts.
5001         ($(objpfx)bench-%.c): Likewise.
5002
5003 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5004
5005         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5006         leading slash when `file_name' is "/".
5007
5008 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5009
5010         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5011         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5012         Likewise.
5013         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5014         Likewise.
5015         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5016         Likewise.
5017         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5018         enum constant and macro.
5019         (PTRACE_SETSIGMASK): Likewise.
5020         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5021         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5022         (PTRACE_GETSIGMASK): Likewise.
5023         (PTRACE_SETSIGMASK): Likewise.
5024         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5025         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5026         Likewise.
5027         (PTRACE_SETSIGMASK): Likewise.
5028         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5029         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5030         (PTRACE_GETSIGMASK): Likewise.
5031         (PTRACE_SETSIGMASK): Likewise.
5032         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5033         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5034         Likewise.
5035         (PTRACE_SETSIGMASK): Likewise.
5036         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5037         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5038         Likewise.
5039         (PTRACE_SETSIGMASK): Likewise.
5040         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5041         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5042         Likewise.
5043         (PTRACE_SETSIGMASK): Likewise.
5044         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5045
5046 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5047             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5048
5049         [BZ #19439]
5050         * math/bits/mathcalls.h
5051         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5052         prototype.
5053         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5054
5055 2016-01-11  Andreas Schwab  <schwab@suse.de>
5056
5057         [BZ #19253]
5058         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5059         cache when TZDEFRULES was used.
5060         * time/tst-tzname.c: New file.
5061         * time/Makefile (test): Add tst-tzname.
5062         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5063         * timezone/Makefile (test-zones): Add $(posixrules-file).
5064         ($(testdata)/$(posixrules-file)): New rule.
5065
5066 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5067
5068         Fix doc quoting problems with Texinfo 5
5069         Without this change, in the info file output, Texinfo 5 quotes code
5070         in text with undirected single quotes 'like this' and generates
5071         code examples that with many PDF readers cannot be cut out of PDFs
5072         and pasted into code.
5073         * manual/libc.texinfo: Configure the libc manual like the GNU
5074         Emacs manual, by using @documentencoding and setting
5075         txicodequoteundirected and txicodequotebacktick.  This way,
5076         Texinfo 5 quotes code in text with directed single quotes ‘like
5077         this’ and produces examples that can be cut out of PDFs.  This
5078         change causes Texinfo 5 to generate info files that contain UTF-8
5079         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5080         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5081
5082 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5083
5084         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5085         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5086         barriers to their respective compiler built-ins.
5087         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5088         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5089         * sysdeps/powerpc/sysdep.h: Likewise.
5090         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5091         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5092         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5093
5094 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5095
5096         * scripts/config.guess: Revert previous shebang change.
5097         * scripts/config.sub: Likewise.
5098         * scripts/mkinstalldirs: Likewise.
5099
5100 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5101
5102         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5103         PPC_FEATURE2_HAS_IEEE128.
5104         * sysdeps/powerpc/dl-procinfo.c:
5105         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5106
5107 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5108
5109         [BZ #19415]
5110         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5111         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5112         (_dl_lookup_address): Rewrite using function resolver trampoline.
5113         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5114         two bits in address.
5115
5116 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5117
5118         * longlong.h: Change !__SHMEDIA__ to
5119         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5120         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5121
5122 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5123             Joseph Myers  <joseph@codesourcery.com>
5124             Mark Shinwell  <shinwell@codesourcery.com>
5125             Andrew Stubbs  <ams@codesourcery.com>
5126             Rich Felker <dalias@libc.org>
5127
5128         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5129
5130 2016-01-07  Richard Henderson  <rth@redhat.com>
5131
5132         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5133
5134 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5135
5136         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5137         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5138         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5139         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5140         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5141
5142 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5143             Joseph Myers  <joseph@codesourcery.com>
5144
5145         * timezone/private.h: Update from tzcode 2015g.
5146         * timezone/tzfile.h: Likewise.
5147         * timezone/tzselect.ksh: Likewise.
5148         * timezone/zdump.c: Likewise.
5149         * timezone/zic.c: Likewise.
5150         * timezone/ialloc.c: Remove file.
5151         * timezone/scheck.c: Likewise.
5152         * timezone/Makefile (extra-objs): Remove variable.
5153         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5154         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5155         -Wno-maybe-uninitialized.
5156         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5157         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5158         (CFLAGS-ialloc.c): Remove variable.
5159         (CFLAGS-scheck.c): Likewise.
5160         * timezone/README: Update list of files from tzcode.
5161
5162 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5163
5164         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5165         instead of __fxprintf when _LIBC is undefined.
5166
5167 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5168
5169         * catgets/test-gencat.sh: Remove space after shebang.
5170         * conform/GlibcConform.pm: Likewise.
5171         * conform/check-header-lists.sh: Likewise.
5172         * conform/conformtest.pl: Likewise.
5173         * conform/linknamespace.pl: Likewise.
5174         * conform/list-header-symbols.pl: Likewise.
5175         * debug/catchsegv.sh: Likewise.
5176         * elf/genrtldtbl.awk: Likewise.
5177         * elf/tst-pathopt.sh: Likewise.
5178         * elf/tst-rtld-load-self.sh: Likewise.
5179         * grp/tst_fgetgrent.sh: Likewise.
5180         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5181         * iconvdata/gen-8bit-gap.sh: Likewise.
5182         * iconvdata/gen-8bit.sh: Likewise.
5183         * iconvdata/run-iconv-test.sh: Likewise.
5184         * intl/tst-gettext.sh: Likewise.
5185         * intl/tst-gettext2.sh: Likewise.
5186         * intl/tst-gettext4.sh: Likewise.
5187         * intl/tst-gettext6.sh: Likewise.
5188         * intl/tst-translit.sh: Likewise.
5189         * io/ftwtest-sh: Likewise.
5190         * libio/test-freopen.sh: Likewise.
5191         * locale/gen-translit.pl: Likewise.
5192         * malloc/tst-mtrace.sh: Likewise.
5193         * manual/check-safety.sh: Likewise.
5194         * manual/libc-texinfo.sh: Likewise.
5195         * manual/tsort.awk: Likewise.
5196         * manual/xtract-typefun.awk: Likewise.
5197         * nptl/tst-cancel-wrappers.sh: Likewise.
5198         * nptl/tst-tls6.sh: Likewise.
5199         * posix/globtest.sh: Likewise.
5200         * posix/tst-getconf.sh: Likewise.
5201         * posix/wordexp-tst.sh: Likewise.
5202         * scripts/check-c++-types.sh: Likewise.
5203         * scripts/check-local-headers.sh: Likewise.
5204         * scripts/config.guess: Likewise.
5205         * scripts/config.sub: Likewise.
5206         * scripts/cpp: Likewise.
5207         * scripts/cross-test-ssh.sh: Likewise.
5208         * scripts/documented.sh: Likewise.
5209         * scripts/evaluate-test.sh: Likewise.
5210         * scripts/gen-libc-abis: Likewise.
5211         * scripts/gen-sorted.awk: Likewise.
5212         * scripts/list-fixed-bugs.py: Likewise.
5213         * scripts/merge-test-results.sh: Likewise.
5214         * scripts/mkinstalldirs: Likewise.
5215         * scripts/rellns-sh: Likewise.
5216         * scripts/test-installation.pl: Likewise.
5217         * scripts/update-copyrights: Likewise.
5218         * stdio-common/tst-printf.sh: Likewise.
5219         * stdio-common/tst-unbputc.sh: Likewise.
5220         * stdlib/tst-fmtmsg.sh: Likewise.
5221         * stdlib/tst-setcontext3.sh: Likewise.
5222         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5223         * sysdeps/unix/make-syscalls.sh: Likewise.
5224
5225 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5226
5227         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5228         asm stw with atomic_exchange_rel.  Add explanatory comment.
5229         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5230         Likewise.
5231
5232 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5233
5234         [BZ #19122]
5235         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5236         * sysdeps/generic/dl-unistd.h: New file.
5237         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5238
5239 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241          [BZ #19122]
5242          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5243          * sysdeps/generic/dl-mman.h: New file.
5244          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5245
5246 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5247
5248         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5249         trailing whitespace removed.
5250         * scripts/config.guess: Update to version 2016-01-01.
5251         * scripts/config.sub: Update to version 2016-01-01.
5252         * scripts/move-if-change: Update from gnulib.
5253
5254 2016-01-04  Anton Blanchard  <anton@samba.org>
5255
5256         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5257         for array indices.
5258         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5259
5260 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5261
5262         * NEWS: Update copyright dates.
5263         * catgets/gencat.c (print_version): Likewise.
5264         * csu/version.c (banner): Likewise.
5265         * debug/catchsegv.sh: Likewise.
5266         * debug/pcprofiledump.c (print_version): Likewise.
5267         * debug/xtrace.sh (do_version): Likewise.
5268         * elf/ldconfig.c (print_version): Likewise.
5269         * elf/ldd.bash.in: Likewise.
5270         * elf/pldd.c (print_version): Likewise.
5271         * elf/sotruss.sh: Likewise.
5272         * elf/sprof.c (print_version): Likewise.
5273         * iconv/iconv_prog.c (print_version): Likewise.
5274         * iconv/iconvconfig.c (print_version): Likewise.
5275         * locale/programs/locale.c (print_version): Likewise.
5276         * locale/programs/localedef.c (print_version): Likewise.
5277         * login/programs/pt_chown.c (print_version): Likewise.
5278         * malloc/memusage.sh (do_version): Likewise.
5279         * malloc/memusagestat.c (print_version): Likewise.
5280         * malloc/mtrace.pl: Likewise.
5281         * manual/libc.texinfo: Likewise.
5282         * nptl/version.c (banner): Likewise.
5283         * nscd/nscd.c (print_version): Likewise.
5284         * nss/getent.c (print_version): Likewise.
5285         * nss/makedb.c (print_version): Likewise.
5286         * posix/getconf.c (main): Likewise.
5287         * scripts/test-installation.pl: Likewise.
5288         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5289
5290         * All files with FSF copyright notices: Update copyright dates
5291         using scripts/update-copyrights.
5292         * intl/plural.c: Regenerated.
5293         * locale/programs/charmap-kw.h: Likewise.
5294         * locale/programs/locfile-kw.h: Likewise.
5295
5296 2016-01-02  Helge Deller  <deller@gmx.de>
5297
5298         [BZ #19285]
5299         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5300         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5301         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5302         (MADV_xxK_PAGES): Remove.
5303
5304 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5305
5306         [BZ #15421]
5307         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5308         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5309         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5310         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5311
5312 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5313
5314         [BZ #19408]
5315         * sysdeps/unix/sysv/linux/personality.c: New file.
5316         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5317         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5318         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5319         (sysdep_routines): Add personality.
5320         (tests): Add tst-personality.
5321         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5322         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5323         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5324         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5325         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5326         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5327         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5328         Likewise.
5329         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5330         Likewise.
5331         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5332         Likewise.
5333         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5334         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5335         Likewise.
5336
5337 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5338
5339         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5340         (PATH_ARM_SYSTYPE): Remove.
5341         (PATH_CPUINFO): Likewise.
5342         (IO_BASE_FOOTBRIDGE): Likewise.
5343         (IO_SHIFT_FOOTBRIDGE): Likewise.
5344         (struct platform): Likewise.
5345         (init_iosys): Remove compatibility code for 2.4 kernels.
5346         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5347
5348 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5349
5350         * malloc/tst-malloc-thread-fail.c: New file.
5351         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5352         (tst-malloc-thread-fail): Link against libpthread.
5353
5354 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5355
5356         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5357         (get_parser): New function.
5358         (main): New function.
5359
5360 2015-12-29  Rob Wu  <rob@robwu.nl>
5361
5362         [BZ #19369]
5363         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5364
5365 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5366
5367         [BZ #19270]
5368         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5369
5370 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5371
5372         [BZ #15421]
5373         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5374
5375 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5376
5377         [BZ #13690]
5378         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5379         after releasing it.
5380         (__lll_robust_unlock): Likewise.
5381         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5382         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5383         (lll_robust_unlock): Likewise.
5384         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5385         Prevent warnings in callers.
5386
5387 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5388
5389         * malloc/arena.c (list_lock): Update comment.
5390
5391 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5392
5393         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5394         __parse_hwcap_and_convert_at_platform to libc.a.
5395
5396 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5397
5398         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5399         platform and feature support for POWER9.
5400         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5401         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5402         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5403         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5404         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5405         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5406         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5407         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5408
5409 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5410
5411         Harmonize generic stdio-lock support with nptl
5412
5413         This fixes build when _IO_funlockfile is a macro, fixes build where
5414         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5415         stack unwind.
5416
5417         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5418         _IO_release_lock ): Use cleanup attribute on new
5419         _IO_acquire_lock_file variable instead of assuming that
5420         _IO_release_lock will be called.
5421         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5422         _IO_acquire_lock_needs_exceptions_enabled.
5423         (_IO_acquire_lock_clear_flags2): New macro.
5424
5425 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5426
5427         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5428
5429 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5430
5431         [BZ #19182]
5432         * malloc/arena.c (list_lock): Document lock ordering requirements.
5433         (free_list_lock): New lock.
5434         (ptmalloc_lock_all): Comment on free_list_lock.
5435         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5436         (detach_arena): Update comment.  free_list_lock is now needed.
5437         (_int_new_arena): Use free_list_lock around detach_arena call.
5438         Acquire arena lock after list_lock.  Add comment, including FIXME
5439         about incorrect synchronization.
5440         (get_free_list): Switch to free_list_lock.
5441         (reused_arena): Acquire free_list_lock around detach_arena call
5442         and attached threads counter update.  Add two FIXMEs about
5443         incorrect synchronization.
5444         (arena_thread_freeres): Switch to free_list_lock.
5445         * malloc/malloc.c (struct malloc_state): Update comments to
5446         mention free_list_lock.
5447
5448 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5449
5450         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5451         Remove functions.
5452         (sloww, sloww1): Accept argument to offset quadrant.
5453         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5454         quadrant.
5455         (__sin, __cos): Consolidate common code into new functions.
5456         (reduce_sincos_1, do_sincos_1): New functions.
5457         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5458
5459         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5460         code to new functions.
5461         (reduce_sincos_2, do_sincos_2): New functions.
5462         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5463
5464         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5465         common code for sincos.
5466         (__cos) [!IN_SINCOS]: Likewise.
5467         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5468         New function.
5469         (__sincos): Use it.
5470
5471 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5472
5473         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5474         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5475         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5476
5477 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5478
5479         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5480         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5481         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5482         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5483         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5484         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5485         index_Prefer_No_VZEROUPPER): New feature.
5486         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5487         Prefer_No_VZEROUPPER for Knights Landing.
5488
5489 015-12-18  Torvald Riegel  <triegel@redhat.com>
5490
5491         * math/atest-exp2.c (mp_exp_m1): Remove.
5492
5493 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5494
5495         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5496         syscalls.
5497         (__SYSCALL0): New macro.
5498         (__SYSCALL1): Likewise.
5499         (__SYSCALL2): Likewise.
5500         (__SYSCALL3): Likewise.
5501         (__SYSCALL4): Likewise.
5502         (__SYSCALL5): Likewise.
5503         (__SYSCALL6): Likewise.
5504         (__SYSCALL_CONCAT_X): Likewise.
5505         (__SYSCALL_CONCAT): Likewise.
5506         (__SYSCALL_DIST): Likewise.
5507         (__SYSCALL_CALL): Likewise.
5508
5509 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         [BZ #19363]
5512         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5513
5514 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5515
5516         [BZ #19375]
5517         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5518         negative subnormals.
5519
5520 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5521
5522         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5523         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5524         (INTERNAL_SYSCALL_NCS): Use it.
5525         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5526
5527 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5528
5529         [BZ #19243]
5530         * malloc/arena.c (get_free_list): Remove assert and adjust
5531         reference count handling.  Add comment about reused_arena
5532         interaction.
5533         (reused_arena): Add comments abount get_free_list interaction.
5534         * malloc/tst-malloc-thread-exit.c: New file.
5535         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5536         (tst-malloc-thread-exit): Link against libpthread.
5537
5538 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5539
5540         [BZ #19367]
5541         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5542         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5543         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5544         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5545         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5546
5547 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5548
5549         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5550         Silvermont optimizations for Knights Landing.
5551
5552 2015-12-15  Andreas Schwab  <schwab@suse.de>
5553
5554         [BZ #17197]
5555         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5556         immediately after emitting SI.
5557         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5558         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5559         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5560         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5561         * iconvdata/bug-iconv10.c: New file.
5562         * iconvdata/Makefile (tests): Add bug-iconv10.
5563         ($(objpfx)bug-iconv10.out): New rule.
5564
5565 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5566
5567         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5568         aliasing violation.
5569
5570 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5571
5572         [BZ #18472]
5573         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5574         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5575         conditionals for them.
5576         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5577         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5579         sys/kdaemon.h.
5580         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5581         compat-only syscall, obsoleted in glibc 2.23.
5582         (create_module): Likewise.
5583         (get_kernel_syms): Likewise.
5584         (query_module): Likewise.
5585         (uselib): Likewise.
5586         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5587
5588 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5589
5590         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5591         <linux/version.h>.
5592         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5593         conditional code.
5594         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5595         and ioshift_name initialization.
5596
5597 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5598
5599         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5600         Fix indentation.
5601
5602 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5603
5604         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5605
5606 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5607
5608         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5609
5610 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5611             Jakub Wilk  <jwilk@debian.org>
5612
5613         [BZ #19347]
5614         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5615         to change the group of the device to the tty group.
5616
5617 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5618
5619         Split large string section; add truncation advice
5620         * manual/examples/strncat.c: Remove.
5621         This example was misleading, as the code would have undefined
5622         behavior if "hello" was longer than SIZE.  Anyway, the manual
5623         shouldn't encourage strncpy+strncat for this sort of thing.
5624         * manual/string.texi (Copying Strings and Arrays): Split into
5625         three sections Copying Strings and Arrays, Concatenating Strings,
5626         and Truncating Strings, as this section was way too long.  All
5627         cross-referenced changed.  Add advice about string-truncation
5628         functions.  Remove misleading strncat example.
5629
5630 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5631
5632         * manual/nss.texi (NSS Modules Interface): Document
5633         NSS_STATUS_NOTFOUND and SUCCESS.
5634
5635 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5636
5637         [BZ 18568]
5638         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5639         201505L, for Unicode 8.
5640
5641 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5642
5643         * locale/C-translit.h: Regenerate.
5644
5645 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5646
5647         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5648         and U+0153.
5649
5650 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5651
5652         [BZ #19351]
5653         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5654         expanding log(1+z), compare z rather than its square with epsilon
5655         to determine when to avoid evaluating the expansion.
5656
5657         [BZ #19350]
5658         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5659         Increase overflow threshold.
5660
5661         [BZ #19349]
5662         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5663         when small.
5664
5665         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5666         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5667         New macro.
5668         [__LINUX_KERNEL_VERSION >= 0x040300]
5669         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5670         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5671         Likewise.
5672         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5673         Likewise.
5674         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5675         Likewise.
5676         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5677         Likewise.
5678         [__LINUX_KERNEL_VERSION >= 0x040300]
5679         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5680         [__LINUX_KERNEL_VERSION >= 0x040300]
5681         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5682         [__LINUX_KERNEL_VERSION >= 0x040300]
5683         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5684         [__LINUX_KERNEL_VERSION >= 0x040300]
5685         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5686         [__LINUX_KERNEL_VERSION >= 0x040300]
5687         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5688         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5689         Likewise.
5690         [__LINUX_KERNEL_VERSION >= 0x040300]
5691         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5692         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5693         Likewise.
5694         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5695         Likewise.
5696         [__LINUX_KERNEL_VERSION >= 0x040300]
5697         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5698         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5699         Likewise.
5700         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5701         Likewise.
5702         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5703         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5704         Likewise.
5705         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5706         Likewise.
5707         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5708         Likewise.
5709         [__LINUX_KERNEL_VERSION >= 0x040300]
5710         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5711         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5712         Likewise.
5713         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5714         Likewise.
5715         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5716         Likewise.
5717         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5718         Likewise.
5719         [__LINUX_KERNEL_VERSION >= 0x040300]
5720         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5721         [__LINUX_KERNEL_VERSION >= 0x040300]
5722         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5723         [__LINUX_KERNEL_VERSION >= 0x040300]
5724         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5725         [__LINUX_KERNEL_VERSION >= 0x040300]
5726         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5727         [__LINUX_KERNEL_VERSION >= 0x040300]
5728         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5729         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5730         Likewise.
5731         [__LINUX_KERNEL_VERSION >= 0x040300]
5732         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5733         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5734         Likewise.
5735         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5736         Likewise.
5737         [__LINUX_KERNEL_VERSION >= 0x040300]
5738         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5739         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5740         Likewise.
5741         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5742         Likewise.
5743         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5744         (__ASSUME_SOCKET_SYSCALL): Likewise.
5745         (__ASSUME_BIND_SYSCALL): Likewise.
5746         (__ASSUME_CONNECT_SYSCALL): Likewise.
5747         (__ASSUME_LISTEN_SYSCALL): Likewise.
5748         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5749         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5750         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5751         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5752         (__ASSUME_SEND_SYSCALL): Likewise.
5753         (__ASSUME_SENDTO_SYSCALL): Likewise.
5754         (__ASSUME_RECV_SYSCALL): Likewise.
5755         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5756         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5757         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5758         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5759         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5760         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5761         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5762         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5763         Likewise.
5764         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5765         Likewise.
5766         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5767         Likewise.
5768         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5769         Likewise.
5770         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5771         Likewise.
5772         [__LINUX_KERNEL_VERSION >= 0x020625]
5773         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5774         [__LINUX_KERNEL_VERSION >= 0x020625]
5775         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5776         [__LINUX_KERNEL_VERSION >= 0x020625]
5777         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5778         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5779         Likewise.
5780         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5781         Likewise.
5782         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5783         Likewise.
5784         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5785         Likewise.
5786         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5787         Likewise.
5788         [__LINUX_KERNEL_VERSION >= 0x020625]
5789         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5790         [__LINUX_KERNEL_VERSION >= 0x020625]
5791         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5792         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5793         Likewise.
5794         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5795         Likewise.
5796
5797 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5798
5799         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5800         record the current if the current ABI and CPU support the FP64
5801         extension.
5802         (has-modd-spreg): Define to record the current if the current ABI and
5803         CPU support 32-bit floating point values in odd FPU registers.
5804         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5805         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5806         $(has-modd-spreg) equals yes.
5807         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5808         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5809         $(has-modd-spreg) equal yes.
5810
5811 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5812
5813         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5814         basename.
5815
5816 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5817
5818         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5819         (bench-string): ... here.
5820         (bench): Add bench-string.
5821         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5822         to *-benchset to reflect what they are.
5823         (benchset): Adjust.
5824
5825         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5826         cos-inputs.
5827
5828 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5829
5830         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5831         __attribute__ ((__simd__)) for vector math function declarations.
5832
5833 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5834
5835         Fix typo in strncat, wcsncat manual entries
5836         * manual/string.texi (Copying and Concatenation): Fix typos in
5837         sample implementations of strncat and wcsncat, by having them use
5838         the old value of the destination length, not the new one.
5839
5840 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
5841
5842         [BZ #16961]
5843         [BZ #16962]
5844         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
5845         string on the stack for strtod.
5846         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
5847         a string on the stack for strtof.
5848         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
5849         constructing a string on the stack for strtold.
5850         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
5851         __strtold_nan to GLIBC_PRIVATE.
5852         * math/test-nan-overflow.c: New file.
5853         * math/test-nan-payload.c: Likewise.
5854         * math/Makefile (tests): Add test-nan-overflow and
5855         test-nan-payload.
5856
5857 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         Consistency about byte vs character in string.texi
5860         * manual/string.texi (String and Array Utilities):
5861         Distinguish more carefully among bytes, multibyte characters,
5862         and wide characters.  Use "byte" when talking about C 'char',
5863         to distinguish it more clearly from multibyte characters.
5864         Say "wide character" or "multibyte character" instead of
5865         "character", when a wide or multibyte character is intended.
5866         Similarly for "multibyte string" versus "string".
5867         Define these terms more carefully.
5868
5869 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
5870
5871         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
5872         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
5873         Likewise.
5874         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5875         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5876         * sysdeps/sh/math_private.h: New file.
5877         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
5878         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
5879         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
5880         long double function name.
5881         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5882         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5883         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5884         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5885         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5887         Remove __finitel, __isinfl, and __isnanl.
5888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5889         Likewise.
5890         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5891         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5892         Remove __finitel.
5893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5894         Likewise.
5895         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5896
5897 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
5898
5899         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
5900         installed libmvec_nonshared.a.
5901
5902 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5903
5904         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
5905         (sysdep_routines): Likewise.
5906         (sysdep-rtld-routines): Likewise.
5907         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
5908         [$(subdir) = nptl](tests-static): test-get_hwcap-static
5909         * sysdeps/powerpc/Versions: Added new
5910         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
5911         * sysdeps/powerpc/hwcapinfo.c: New file.
5912         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
5913         and parse hwcap, hwcap2 and platform number information.
5914         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
5915         to store HWCAP+HWCAP2 and platform number.
5916         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
5917         for HWCAP+HWCAP2 and platform number in the TCB.
5918         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
5919         the HWCAP, HWCAP2 and platform number in the TCB.
5920         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
5921         (TLS_INIT_TP): Included calls to add the hwcap and
5922         at_platform values in the TCB in TP initialization.
5923         (TLS_DEFINE_INIT_TP): Likewise.
5924         (THREAD_GET_HWCAP): New macro.
5925         (THREAD_SET_HWCAP): Likewise.
5926         (THREAD_GET_AT_PLATFORM): Likewise.
5927         (THREAD_SET_AT_PLATFORM): Likewise.
5928         * sysdeps/powerpc/powerpc32/dl-machine.h:
5929         (dl_platform_init): New function that calls
5930         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
5931         powerpc32.
5932         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
5933         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
5934         this functionality, static linking case.
5935         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
5936         linking case.
5937         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
5938         __parse_hwcap_and_convert_at_platform for the static linking case.
5939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
5940         Included the new __parse_hwcap_and_convert_at_platform symbol in the
5941         ABI list for GLIBC 2.23.
5942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
5943         Likewise.
5944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
5945         Likewise.
5946
5947 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
5948
5949         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
5950         * configure: Regenerate.
5951         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
5952         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
5953
5954 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
5955
5956         * iconvdata/ibm930.c: Add comment explaining encoding uses.
5957         * iconvdata/ibm933.c: Likewise.
5958         * iconvdata/ibm935.c: Likewise.
5959         * iconvdata/ibm937.c: Likewise.
5960         * iconvdata/ibm939.c: Likewise.
5961
5962 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5963
5964         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
5965         pthread_join.
5966         * nptl/tst-cancel21.c (tf): Likewise.
5967
5968 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
5969
5970         [BZ #19313]
5971         * bits/typesizes.h (__CPU_MASK_TYPE): New.
5972         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5973         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
5974         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
5975         Likewise.
5976         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
5977         Likewise.
5978         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
5979         Likewise.
5980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
5981         Likewise.
5982         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
5983         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
5984         unsigned long int with __CPU_MASK_TYPE.
5985
5986 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5987
5988         * sysdeps/aarch64/libm-test-ulps: Regenerated.
5989
5990 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
5991
5992         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
5993         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
5994         t512.x.
5995         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
5996
5997 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
5998
5999         [BZ #19214]
6000         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6001         argument to return extended model.  Update family and model
6002         with extended family and model when family == 0x0f.
6003         (init_cpu_features): Updated.
6004
6005 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6006
6007         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6008         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6009
6010         * sysdeps/mach/hurd/mmap64.c: New file.
6011
6012 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6013
6014         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6015         rights for its main user thread in NEWTASK.
6016
6017 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6018
6019         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6020         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6021
6022 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6023
6024         [BZ #14259]
6025         * Makeconfig: Rename localedir to complocaledir.
6026         Rename inst_localedir to inst_complocaledir.
6027         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6028         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6029         * configure.ac: Use libc_cv_complocaledir.
6030         * configure: Regenerate.
6031         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6032         -DCOMPLOCALEDIR.
6033         * locale/findlocale.c: Use COMPLOCALEDIR.
6034         * locale/loadarchive.c: Likewise.
6035         * locale/programs/locale.c: Likewise.
6036         * locale/programs/localedef.c: Likewise.
6037         * locale/programs/locarchive.c: Likewise.
6038         * localedata/Makefile: Use inst_complocaledir.
6039         * sysdeps/gnu/configure: Regenerate.
6040         * sysdeps/hppa/configure: Regenerate.
6041         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6042         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6044         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6045         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6046         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6047         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6048
6049 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6050
6051         [BZ #19058]
6052         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6053         AS_NEEDED.
6054         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6055         workaround.
6056         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6057         libmvec-static-only-routines): Added new file.
6058         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6059
6060 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6061
6062         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6063         of interrupted RPC instead of restoring it.
6064
6065         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6066         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6067         libc_hidden_def.
6068         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6069         into initialized data instead of common. Define rtld_hidden_data_def.
6070         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6071         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6072         libc_hidden_def.
6073         (if_freenameindex): Add libc_hidden_weak.
6074         (if_nameindex): Add libc_hidden_weak.
6075         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6076         __open64.
6077         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6078         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6079         * sysdeps/mach/nanosleep.c: Include <time.h>
6080         (__nanosleep): Rename to __libc_nanosleep.
6081         (__nanosleep): Add weak_alias.
6082         (nanosleep): Update alias.
6083
6084 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6085
6086         * stdlib/strtod_nan.c: New file.
6087         * stdlib/strtod_nan_double.h: Likewise.
6088         * stdlib/strtod_nan_float.h: Likewise.
6089         * stdlib/strtod_nan_main.c: Likewise.
6090         * stdlib/strtod_nan_narrow.h: Likewise.
6091         * stdlib/strtod_nan_wide.h: Likewise.
6092         * stdlib/strtof_nan.c: Likewise.
6093         * stdlib/strtold_nan.c: Likewise.
6094         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6095         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6096         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6097         * wcsmbs/wcstod_nan.c: Likewise.
6098         * wcsmbs/wcstof_nan.c: Likewise.
6099         * wcsmbs/wcstold_nan.c: Likewise.
6100         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6101         strtold_nan.
6102         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6103         wcstof_nan.
6104         * include/stdlib.h (__strtof_nan): Declare and use
6105         libc_hidden_proto.
6106         (__strtod_nan): Likewise.
6107         (__strtold_nan): Likewise.
6108         (__wcstof_nan): Likewise.
6109         (__wcstod_nan): Likewise.
6110         (__wcstold_nan): Likewise.
6111         * include/wchar.h (____wcstoull_l_internal): Declare.
6112         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6113         (____strtoull_l_internal): Remove declaration.
6114         (STRTOF_NAN): Define macro.
6115         (SET_MANTISSA): Remove macro.
6116         (STRTOULL): Likewise.
6117         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6118         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6119         (STRTOF_NAN): Define macro.
6120         (SET_MANTISSA): Remove macro.
6121         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6122         (SET_MANTISSA): Remove macro.
6123         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6124         macro.
6125         (SET_MANTISSA): Remove macro.
6126         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6127         macro.
6128         (SET_MANTISSA): Remove macro.
6129         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6130         (SET_MANTISSA): Remove macro.
6131         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6132         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6133         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6134
6135         [BZ #19266]
6136         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6137         upper case and lower case letters inside NAN(), not using TOLOWER.
6138         * stdlib/tst-strtod-nan-locale-main.c: New file.
6139         * stdlib/tst-strtod-nan-locale.c: Likewise.
6140         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6141         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6142         Depend on $(gen-locales).
6143         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6144         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6145         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6146         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6147         Depend on $(gen-locales).
6148         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6149
6150 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6151
6152         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6153
6154         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6155         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6156         __finitel, __isinfl, and __isnanl.
6157         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6158         Likewise.
6159         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6160         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6161         __finitel.
6162         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6163         Likewise.
6164         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6165
6166 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6167
6168         * malloc/memusage.c (me): Remove redundant getenv call.
6169
6170 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6171
6172         [BZ #19143]
6173         [BZ #19164]
6174         * nptl/check-cpuset.h: Remove.
6175         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6176         Remove CPU set size check.
6177         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6178         Likewise.
6179         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6180         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6181         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6182         (__pthread_setaffinity_new): Remove CPU set size check.
6183         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6184         (__kernel_cpumask_size): Remove.
6185         (__sched_setaffinity_new): Remove CPU set size check.
6186         * manual/threads.texi (Default Thread Attributes): Remove stale
6187         reference to check_cpuset_attr, determine_cpumask_size in comment.
6188         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6189         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6190         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6191         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6192         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6193         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6194         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6195         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6196         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6197         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6198         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6199         skeleton test file.
6200         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6201         tst-affinity-pid.
6202
6203 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6204
6205         * scripts/update-abilist.sh: New file.
6206         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6207         * Makerules (update-all-abi-%, update-all-abi)
6208         (subdir_update-all-abi): New targets.
6209         * elf/Makefile (update-all-abi): New target.
6210
6211 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6212
6213         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6214         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6215         (__libc_lock_define_initialized): Use it.
6216         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6217         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6218         * malloc/malloc.c (main_arena): Likewise.
6219         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6220         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6221
6222 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6223
6224         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6225         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6226         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6227         (PTRACE_O_MASK): Update value.
6228         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6229         New value in enum __ptrace_setoptions.
6230         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6231         (PTRACE_O_MASK): Update value.
6232         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6233         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6234         (PTRACE_O_MASK): Update value.
6235         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6236         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6237         (PTRACE_O_MASK): Update value.
6238         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6239         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6240         (PTRACE_O_MASK): Update value.
6241         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6242         New value in enum __ptrace_setoptions.
6243         (PTRACE_O_MASK): Update value.
6244         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6245         New value in enum __ptrace_setoptions.
6246         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6247         (PTRACE_O_MASK): Update value.
6248
6249         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6250         New macro.
6251         (PACKET_AUXDATA): Likewise.
6252         (PACKET_ORIGDEV): Likewise.
6253         (PACKET_VERSION): Likewise.
6254         (PACKET_HDRLEN): Likewise.
6255         (PACKET_RESERVE): Likewise.
6256         (PACKET_TX_RING): Likewise.
6257         (PACKET_LOSS): Likewise.
6258         (PACKET_VNET_HDR): Likewise.
6259         (PACKET_TX_TIMESTAMP): Likewise.
6260         (PACKET_TIMESTAMP): Likewise.
6261         (PACKET_FANOUT): Likewise.
6262         (PACKET_TX_HAS_OFF): Likewise.
6263         (PACKET_QDISC_BYPASS): Likewise.
6264         (PACKET_ROLLOVER_STATS): Likewise.
6265         (PACKET_FANOUT_DATA): Likewise.
6266         (PACKET_MR_UNICAST): Likewise.
6267
6268         [BZ #19242]
6269         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6270         (TOUPPER): Likewise.
6271         * stdlib/tst-strtol-locale-main.c: New file.
6272         * stdlib/tst-strtol-locale.c: Likewise.
6273         * stdlib/Makefile (tests): Add tst-strtol-locale.
6274         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6275         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6276         Depend on $(gen-locales).
6277         * wcsmbs/tst-wcstol-locale.c: New file.
6278         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6279         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6280         tr_TR.ISO-8859-9.
6281         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6282         Depend on $(gen-locales).
6283
6284 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6285
6286         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6287         __glibc_likely instead of __builtin_expect.  After falling back to
6288         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6289         system interface to register the code pages as occupied.
6290
6291 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6292
6293         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6294         [!ARM_MATH_PRIVATE_H].
6295         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6296         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6297         [!HPPA_MATH_PRIVATE_H].
6298         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6299         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6300         to [!I386_MATH_PRIVATE_H].
6301         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6302         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6303         Change guard to [!M68K_MATH_PRIVATE_H].
6304         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6305         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6306         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6307         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6308         macro.
6309         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6310         [!MIPS_MATH_PRIVATE_H].
6311         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6312         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6313         [!NIO2_MATH_PRIVATE_H].
6314         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6315         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6316         [!TILE_MATH_PRIVATE_H].
6317         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6318
6319         [BZ #15421]
6320         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6321         initialize with 0 and define as weak alias of __signgam.
6322         * include/math.h [!_ISOMAC] (__signgam): Declare.
6323         * math/Makefile (libm-calls): Add w_lgamma_compat.
6324         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6325         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6326         test-signgam-ullong-init.
6327         (tests-static): Add test-signgam-uchar-static,
6328         test-signgam-uchar-init-static, test-signgam-uint-static,
6329         test-signgam-uint-init-static, test-signgam-ullong-static and
6330         test-signgam-ullong-init-static.
6331         (CFLAGS-test-signgam-uchar.c): New variable.
6332         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6333         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6334         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6335         (CFLAGS-test-signgam-uint.c): Likewise.
6336         (CFLAGS-test-signgam-uint-init.c): Likewise.
6337         (CFLAGS-test-signgam-uint-static.c): Likewise.
6338         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6339         (CFLAGS-test-signgam-ullong.c): Likewise.
6340         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6341         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6342         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6343         * math/Versions (libm): Add GLIBC_2.23.
6344         * math/lgamma-compat.h: New file.
6345         * math/test-signgam-main.c: Likewise.
6346         * math/test-signgam-uchar-init-static.c: Likewise.
6347         * math/test-signgam-uchar-init.c: Likewise.
6348         * math/test-signgam-uchar-static.c: Likewise.
6349         * math/test-signgam-uchar.c: Likewise.
6350         * math/test-signgam-uint-init-static.c: Likewise.
6351         * math/test-signgam-uint-init.c: Likewise.
6352         * math/test-signgam-uint-static.c: Likewise.
6353         * math/test-signgam-uint.c: Likewise.
6354         * math/test-signgam-ullong-init-static.c: Likewise.
6355         * math/test-signgam-ullong-init.c: Likewise.
6356         * math/test-signgam-ullong-static.c: Likewise.
6357         * math/test-signgam-ullong.c: Likewise.
6358         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6359         wrapper of w_lgamma_main.c.
6360         * math/w_lgamma_compat.c: New file.
6361         * math/w_lgamma_compatf.c: Likewise.
6362         * math/w_lgamma_compatl.c: Likewise.
6363         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6364         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6365         defining compatibility symbols.
6366         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6367         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6368         wrapper of w_lgammaf_main.c.
6369         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6370         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6371         defining compatibility symbols.
6372         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6373         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6374         wrapper of w_lgammal_main.c.
6375         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6376         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6377         defining compatibility symbols.
6378         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6379         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6380         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6381         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6382         <lgamma-compat.h>.
6383         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6384         (__ieee754_gamma): Define as alias.
6385         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6386         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6387         <lgamma-compat.h>.
6388         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6389         (__ieee754_gammaf): Define as alias.
6390         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6391         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6392         <lgamma-compat.h>.
6393         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6394         (__ieee754_gammal): Define as alias.
6395         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6396         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6397         <math/w_lgamma_compat.c>.
6398         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6399         Define as alias of __lgamma_compat and use in defining lgammal.
6400         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6401         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6402         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6403         (USE_AS_COMPAT): New macro.
6404         (LGAMMA_OLD_VER): Undefine and redefine.
6405         (lgammal): Do not define here.
6406         (gammal): Only define here if [GAMMA_ALIAS].
6407         * conform/linknamespace.pl (@whitelist): Remove signgam.
6408         * sysdeps/nacl/libm.abilist: Update.
6409         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6410         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6411         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6412         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6413         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6414         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6415         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6416         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6417         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6418         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6419         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6420         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6422         Likewise.
6423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6424         Likewise.
6425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6426         Likewise.
6427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6428         Likewise.
6429         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6430         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6431         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6432         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6433         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6434         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6435         Likewise.
6436         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6437         Likewise.
6438         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6439         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6440         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6441
6442 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6443
6444         [BZ #16364]
6445         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6446         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6447
6448 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6449
6450         * sysdeps/s390/fpu/bits/mathinline.h:
6451         Use __asm__ [__volatile__] instead of asm [volatile].
6452         * sysdeps/s390/abort-instr.h: Likewise.
6453         * sysdeps/s390/atomic-machine.h: Likewise.
6454         * sysdeps/s390/bits/string.h: Likewise.
6455         * sysdeps/s390/dl-tls.h: Likewise.
6456         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6457         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6458         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6459         * sysdeps/s390/fpu/fesetround.c: Likewise.
6460         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6461         * sysdeps/s390/fpu/s_fma.c: Likewise.
6462         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6463         * sysdeps/s390/memusage.h: Likewise.
6464         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6465         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6466         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6467         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6468         * sysdeps/s390/nptl/tls.h: Likewise.
6469         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6470         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6471         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6472         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6473         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6474         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6475         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6476         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6477         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6478         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6479         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6480         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6481         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6482         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6483         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6484         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6485         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6486         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6487         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6488         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6489         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6490         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6491         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6492
6493 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6494             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6495
6496         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6497         Add lwarx hint, and use macro for acquire instruction.
6498         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6499         Likewise.
6500         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6501         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6502         update to use new atomic macros.
6503
6504 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6505
6506         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6507         (__lll_trylock_elision): Fix setting of adapt_count.
6508         * sysdeps/unix/sysv/linux/powerpc/htm.h
6509         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6510         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6511         (_ABORT_SYSCALL): Renumber, and clarify definition.
6512         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6513
6514 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6515
6516         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6517         after system headers to prevent MIN/MAX redefinition.  Define
6518         HAVE_ALLOCA to preserve builtin alloca usage.
6519
6520 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6521
6522         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6523         static and don't set or restore rounding.
6524         (__cos)[IN_SINCOS]: Likewise.
6525         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6526         (__sincos): Set and restore rounding mode.  Remove check for infinite
6527         or NaN input.
6528
6529         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6530
6531         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6532         as used.
6533
6534 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6535
6536         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6537
6538 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6539
6540         * config.make.in (have-glob-dat-reloc): New.
6541         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6542         target supports GLOB_DAT relocaton. AC_SUBST.
6543         * configure: Regenerated.
6544         * elf/Makefile (tests): Add tst-prelink.
6545         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6546         (tst-prelink-ENV): New.
6547         ($(objpfx)tst-prelink-conflict.out): Likewise.
6548         ($(objpfx)tst-prelink-cmp.out): Likewise.
6549         * sysdeps/x86/tst-prelink.c: Moved to ...
6550         * elf/tst-prelink.c: Here.
6551         * sysdeps/x86/tst-prelink.exp: Moved to ...
6552         * elf/tst-prelink.exp: Here.
6553         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6554         (tst-prelink-ENV): Removed.
6555         ($(objpfx)tst-prelink-conflict.out): Likewise.
6556         ($(objpfx)tst-prelink-cmp.out): Likewise.
6557         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6558
6559 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6560
6561         [BZ #14551]
6562         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6563         (__mpn_construct_long_double): If high part overflows to infinity,
6564         set errno and recompute overflowed result of the correct sign.
6565         * sysdeps/ieee754/ldbl-128ibm/Makefile
6566         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6567         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6568         $(libm).
6569         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6570
6571 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6572
6573         [BZ #15479]
6574         [BZ #19238]
6575         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6576         floating-point state after first operation on input.  Restore full
6577         state rather than just rounding mode.
6578         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6579         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6580         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6581
6582         [BZ #19235]
6583         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6584         add 0.5 to integer arguments.
6585         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6586         Likewise.
6587         (.LC2): New object.
6588
6589 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6590
6591         * scripts/pylintrc (reports): Set to no.
6592
6593 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6594
6595         * elf/dl-load.c (open_verify): Take new argument FD.
6596         Skip __open call if passed FD is not -1.
6597         (_dl_map_object, open_path): Update callers.
6598         * elf/dl-sysdep-open.h: New file.
6599         * elf/dl-load.c: Include it.
6600         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6601         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6602         * sysdeps/nacl/dl-sysdep-open.h: New file.
6603         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6604         from libc to rtld.
6605
6606 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6607
6608         [BZ #19228]
6609         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6610         and restore full floating-point state.
6611         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6612         Likewise.
6613         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6614         Likewise.
6615         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6616         Likewise.
6617         * math/test-nearbyint-except-2.c: New file.
6618         * math/Makefile (tests): Add test-nearbyint-except-2.
6619
6620 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6621
6622         [BZ #19178]
6623         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6624         (tst-prelink-ENV): New.
6625         ($(objpfx)tst-prelink-conflict.out): Likewise.
6626         ($(objpfx)tst-prelink-cmp.out): Likewise.
6627         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6628         * sysdeps/x86/tst-prelink.c: New file.
6629         * sysdeps/x86/tst-prelink.exp: Likewise.
6630
6631 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6632
6633         * math/auto-libm-test-in: Add another test of pow.
6634         * math/auto-libm-test-out: Regenerated.
6635         * math/libm-test.inc (pow_test_data): Add another test.
6636
6637 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6638
6639         [BZ #19219]
6640         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6641         weak_alias to nearbyintl.
6642
6643 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6644
6645         * sysdeps/aarch64/bits/string.h: New file.
6646         (_STRING_ARCH_unaligned): Define.
6647
6648 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6649
6650         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6651         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6652         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6653         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6655
6656 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6657
6658         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6659         for original name of the DSO.  Add it to the name list of the DSO
6660         if it is actually given.
6661         (_dl_map_object): Keep track of whether an audit module rewrote
6662         the file name.  If yes, pass the original name to
6663         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6664         debugging is enabled, log the change of the file name.
6665         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6666         _dl_map_object_from_fd.
6667         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6668         * elf/tst-audit11.c: New file
6669         * elf/tst-auditmod11.c: New file.
6670         * elf/tst-audit11mod1.c: New file.
6671         * elf/tst-audit11mod2.c: New file.
6672         * elf/tst-audit11mod2.map: New file.
6673         * elf/tst-audit12.c: New file
6674         * elf/tst-auditmod12.c: New file.
6675         * elf/tst-audit12mod1.c: New file.
6676         * elf/tst-audit12mod2.c: New file.
6677         * elf/tst-audit12mod2.map: New file.
6678         * elf/tst-audit12mod3.c: New file.
6679
6680 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6681
6682         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6683         Don't create weak aliases,
6684         because versioned symbols are created later.
6685         * sysdeps/s390/s390-32/setjmp.S
6686         (setjmp, _setjmp): Remove weak and rename to an unique name
6687         in SHARED case due to existing versioned symbols.
6688         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6689         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6690         (getcontext): Create weak alias only in non SHARED case.
6691         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6692
6693 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6694
6695         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6696         (__ASSUME_*_SYSCALL) Define new macros.
6697         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6698         Remove socketcall syscalls.
6699         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6700         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6701         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6702         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6703         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6704         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6705
6706 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6707
6708         [BZ #12926]
6709         Terminate process on invalid netlink response.
6710         * sysdeps/unix/sysv/linux/netlinkaccess.h
6711         (__netlink_assert_response): Declare.
6712         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6713         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6714         (sysdep_routines): Add netlink_assert_response.
6715         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6716         __netlink_assert_response.
6717         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6718         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6719         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6720         __netlink_assert_response.
6721
6722 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6723
6724         [BZ #19178]
6725         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6726         (RTYPE_CLASS_PLT): Likewise.
6727         (RTYPE_CLASS_COPY): Likewise.
6728         (RTYPE_CLASS_TLS): Likewise.
6729         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6730         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6731         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6732         DL_DEBUG_PRELINK.
6733
6734 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6735
6736         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6737         calls with argument -0.5.
6738         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6739
6740         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6741         (libc_cv_z_nodlopen): Likewise.
6742         (libc_cv_z_initfirst): Likewise.
6743         * configure: Regenerated.
6744
6745 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6746
6747         Simplify abilist format to be line-based.
6748         * scripts/abilist.awk: Collect descriptors in the descs variable.
6749         (emit): Write descs variable and sort it
6750         externally, with sort.
6751         * sysdeps/**/*.abilist: Convert to new format.
6752
6753 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6754
6755         [BZ #11460]
6756         * io/Makefile (routines): Add fts64.
6757         (tests): Add tst-fts and tst-fts-lfs.
6758         (CFLAGS-fts64.c): New.
6759         * io/Versions (GLIBC_2.23): New.
6760         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6761         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6762         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6763         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6764         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6765         (FTSENT64): Likewise.
6766         (fts64_children): Likewise.
6767         (fts64_close): Likewise.
6768         (fts64_open): Likewise.
6769         (fts64_read): Likewise.
6770         (fts64_set): Likewise.
6771         * io/fts64.c: New file.
6772         * io/tst-fts.c: New test.
6773         * io/tst-fts-lfs.c: Likewise.
6774         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6775         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6776         fts64_set.
6777         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6778         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6779         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6780         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6781         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6782         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6783         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6784         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6785         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6786         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6787         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6788         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6789         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6791         Likewise.
6792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6793         Likewise.
6794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6796         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6797         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6798         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6799         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6800         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6801         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6802         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6803         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6804         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6805         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6806         * sysdeps/wordsize-64/fts.c: New file.
6807         * sysdeps/wordsize-64/fts64.c: Likewise.
6808         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6809         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6810         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6811         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6812
6813 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6814
6815         * math/libm-test.inc (NON_FINITE): New macro.
6816         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6817         * math/gen-libm-test.pl (show_exceptions): Add argument
6818         $non_finite.
6819         (parse_args): Update call to show_exceptions.
6820         * math/test-math-finite.h: New file.
6821         * math/test-math-no-finite.h: Likewise.
6822         * math/test-double-finite.c: Likewise.
6823         * math/test-float-finite.c: Likewise.
6824         * math/test-ldouble-finite.c: Likewise.
6825         * math/test-double.c: Include "test-math-no-finite.h".
6826         * math/test-float.c: Include "test-math-no-finite.h".
6827         * math/test-ldouble.c: Include "test-math-no-finite.h".
6828         * math/test-math-inline.h (TEST_FINITE): New macro.
6829         * math/test-math-vector.h (TEST_FINITE): Likewise.
6830         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6831         (libm-tests): Add test-float-finite and test-double-finite.
6832         ($(objpfx)test-float-finite.o): New dependency on
6833         $(objpfx)libm-test.stmp.
6834         ($(objpfx)test-double-finite.o): Likewise.
6835         ($(objpfx)test-ldouble-finite.o): Likewise.
6836         (libm-test-no-inline-cflags): New variable.
6837         (libm-test-finite-cflags): Likewise.
6838         (CFLAGS-test-float-finite.c): Likewise.
6839         (CFLAGS-test-double-finite.c): Likewise.
6840         (CFLAGS-test-ldouble-finite.c): Likewise.
6841         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
6842         (CFLAGS-test-double.c): Likewise.
6843         (CFLAGS-test-ldouble.c): Likewise.
6844
6845 2015-11-05  Roland McGrath  <roland@hack.frob.com>
6846
6847         * io/fcntl.c (__fcntl): Add ... to prototype.
6848         * misc/ioctl.c (__ioctl): Likewise.
6849         * misc/syscall.c (syscall): Likewise.
6850
6851 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6852
6853         * scripts/list-fixed-bugs.py: New file.
6854
6855         [BZ #19213]
6856         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
6857         returned for argument 1.
6858         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
6859         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
6860         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
6861         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
6862         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
6863         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
6864
6865         [BZ #19211]
6866         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
6867         __USE_XOPEN], not if [!__USE_ISOC99].
6868         (lgammaf): Likewise.
6869         (lgammal): Likewise.
6870         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
6871         (gammaf): Likewise.
6872         (gammal): Likewise.
6873         * math/test-signgam-finite-c11.c: New file.
6874         * math/test-signgam-finite-c99.c: Likewise.
6875         * math/test-signgam-finite.c: Likewise.
6876         * math/Makefile (tests): Add test-signgam-finite,
6877         test-signgam-finite-c99 and test-signgam-finite-c11.
6878         (CFLAGS-test-signgam-finite.c): New variable.
6879         (CFLAGS-test-signgam-finite-c99.c): Likewise.
6880         (CFLAGS-test-signgam-finite-c11.c): Likewise.
6881
6882         [BZ #19212]
6883         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
6884         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
6885         500].
6886         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
6887         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
6888         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
6889         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
6890         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
6891         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
6892         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
6893         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
6894         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
6895         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
6896
6897         [BZ #19209]
6898         * math/bits/math-finite.h (ldexp): Remove declaration.
6899         (ldexpf): Likewise.
6900         (ldexpl): Likewise.
6901
6902         [BZ #19205]
6903         * math/bits/math-finite.h (acosf): Condition declaration on
6904         [__USE_ISOC99].
6905         (acosl): Likewise.
6906         (acoshf): Likewise.
6907         (acoshl): Likewise.
6908         (asinf): Likewise.
6909         (asinl): Likewise.
6910         (atan2f): Likewise.
6911         (atan2l): Likewise.
6912         (atanhf): Likewise.
6913         (atanhl): Likewise.
6914         (coshf): Likewise.
6915         (coshl): Likewise.
6916         (expf): Likewise.
6917         (expl): Likewise.
6918         (fmodf): Likewise.
6919         (fmodl): Likewise.
6920         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
6921         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
6922         (j0l): Likewise.
6923         (y0f): Likewise.
6924         (y0l): Likewise.
6925         (j1f): Likewise.
6926         (j1l): Likewise.
6927         (y1f): Likewise.
6928         (y1l): Likewise.
6929         (jnf): Likewise.
6930         (jnl): Likewise.
6931         (ynf): Likewise.
6932         (ynl): Likewise.
6933         (lgammaf_r): Condition declaration on [__USE_ISOC99].
6934         (lgammal_r): Likewise.
6935         (__lgamma_r_finite): New declaration.
6936         (__lgammaf_r_finite): Likewise.
6937         (__lgammal_r_finite): Likewise.
6938         (lgamma): Use __lgamma_r_finite.
6939         (lgammaf): Condition definition on [__USE_ISOC99].  Use
6940         __lgammaf_r_finite.
6941         (lgammal): Condition definition on [__USE_ISOC99].  Use
6942         __lgammal_r_finite.
6943         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
6944         __lgamma_r_finite.
6945         (gammaf): Condition definition on [__USE_ISOC99].  Use
6946         __lgammaf_r_finite.
6947         (gammal): Condition definition on [__USE_ISOC99].  Use
6948         __lgammal_r_finite.
6949         (logf): Condition declaration on [__USE_ISOC99].
6950         (logl): Likewise.
6951         (log10f): Likewise.
6952         (log10l): Likewise.
6953         (ldexpf): Likewise.
6954         (ldexpl): Likewise.
6955         (powf): Likewise.
6956         (powl): Likewise.
6957         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
6958         __USE_ISOC99].
6959         (remainderf): Condition declaration on [__USE_ISOC99].
6960         (remainderl): Likewise.
6961         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
6962         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
6963         (scalbl): Likewise.
6964         (sinhf): Condition declaration on [__USE_ISOC99].
6965         (sinhl): Likewise.
6966         (sqrtf): Likewise.
6967         (sqrtl): Likewise.
6968
6969 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
6970
6971         * sysdeps/arm/atomic-machine.h
6972         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6973         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6974         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
6975         Remove conditional code.
6976         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
6977         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
6978         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
6979         Change conditional to [__ASSEMBLER__].
6980         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
6981         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
6982         [!__ASSEMBLER__].
6983         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
6984         code.
6985         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
6986         conditional macro definitions.
6987         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
6988         (__arch_compare_and_exchange_val_16_acq): Likewise.
6989         (__arch_compare_and_exchange_val_32_acq): Likewise.
6990         (atomic_exchange_and_add): Likewise.
6991         (atomic_add): Likewise.
6992         (atomic_add_negative): Likewise.
6993         (atomic_add_zero): Likewise.
6994         (atomic_bit_set): Likewise.
6995         (atomic_bit_test_set): Likewise.
6996         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
6997         code unconditional.
6998         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
6999
7000         * math/test-math-errno.h: New file.
7001         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7002         empty.
7003         (TEST_ERRNO): New macro.
7004         (TEST_EXCEPTIONS): Likewise.
7005         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7006         (TEST_EXCEPTIONS): Likewise.
7007         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7008         * math/test-double.c: Include "test-math-errno.h".
7009         * math/test-float.c: Likewise.
7010         * math/test-ldouble.c: Likewise.
7011         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7012         code unconditional.
7013         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7014         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7015         unconditional.
7016         (test_errno): Only run code if TEST_ERRNO.
7017         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7018
7019 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7020
7021         * nptl/tst-once5.cc: Remove attribution.
7022
7023 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7024
7025         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7026         sqrt, tan, tanh, y0, y1 and yn.
7027         * math/auto-libm-test-out: Regenerated.
7028         * math/libm-test.inc (scalb_test_data): Add more tests.
7029         (scalbn_test_data): Likewise.
7030         (scalbln_test_data): Likewise.
7031         (signbit_test_data): Likewise.
7032         (sin_test_data): Likewise.
7033         (sincos_test_data): Likewise.
7034         (sinh_test_data): Likewise.
7035         (sqrt_test_data): Likewise.
7036         (tan_test_data): Likewise.
7037         (tanh_test_data): Likewise.
7038         (tgamma_test_data): Likewise.
7039         (y0_test_data): Likewise.
7040         (y1_test_data): Likewise.
7041         (yn_test_data): Likewise.
7042         (significand_test_data): Likewise.
7043         * sysdeps/i386/fpu/libm-test-ulps: Update.
7044
7045 2015-11-03  David Kastrup  <dak@gnu.org>
7046
7047         [BZ #18604]
7048         * assert/assert.h (assert): Don't macro-expand failed assertion
7049         expression in error message.
7050         * malloc/malloc.c (assert): Likewise.
7051
7052 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7053
7054         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7055         test.
7056         * configure: Regenerated.
7057
7058 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7059
7060         * math/libm-test.inc (modf_test_data): Add more tests.
7061         (nearbyint_test_data): Likewise.
7062         (nextafter_test_data): Likewise.
7063         (nexttoward_test_data): Likewise.
7064         (pow_test_data): Likewise.
7065         (remainder_test_data): Likewise.
7066         (remquo_test_data): Likewise.
7067         (rint_test_data): Likewise.
7068
7069         [BZ #19201]
7070         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7071         Check for zero remainder in case of large exponents and ensure
7072         correct sign of result in that case.
7073         * math/libm-test.inc (remainder_test_data): Add more tests.
7074
7075         [BZ #6799]
7076         * math/s_nextafter.c: Include <errno.h>.
7077         (__nextafter): Set errno on overflow and underflow.
7078         * math/s_nexttowardf.c: Include <errno.h>.
7079         (__nexttowardf): Set errno on overflow and underflow.
7080         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7081         (__nextafterl): Set errno on overflow and underflow.
7082         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7083         (__nexttoward): Set errno on overflow and underflow.
7084         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7085         (__nexttowardf): Set errno on overflow and underflow.
7086         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7087         (__nextafterf): Set errno on overflow and underflow.
7088         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7089         (__nextafterl): Set errno on overflow and underflow.
7090         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7091         (__nexttoward): Set errno on overflow and underflow.
7092         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7093         (__nexttowardf): Set errno on overflow and underflow.
7094         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7095         (__nextafterl): Set errno on overflow and underflow.
7096         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7097         (__nexttoward): Set errno on overflow and underflow.
7098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7099         (__nexttowardf): Set errno on overflow and underflow.
7100         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7101         (__nexttoward): Set errno on overflow and underflow.
7102         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7103         (__nexttowardf): Set errno on overflow and underflow.
7104         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7105         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7106         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7107         (__nextafterl): Set errno on overflow and underflow.
7108         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7109         setting to be missing on overflow.  Add more tests.
7110         (nexttoward_test_data): Likewise.
7111
7112         * configure.ac (libc_cv_initfini_array): Remove configure test.
7113         * configure: Regenerated.
7114
7115 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7116
7117         [BZ #19189]
7118         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7119         non-finite argument handle arguments with negative sign.
7120
7121         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7122         result from infinite argument.
7123         (j1_test_data): Likewise.
7124         (jn_test_data): Likewise.
7125         (y0_test_data): Likewise.
7126         (y1_test_data): Likewise.
7127         (yn_test_data): Likewise.
7128
7129         [BZ #16171]
7130         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7131         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7132         * math/w_remainderf.c (dremf): Define as weak alias of
7133         __remainderf.
7134         * math/w_remainderl.c (dreml): Define as weak alias of
7135         __remainderl.
7136         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7137         __remainder.
7138         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7139         __remainderf.
7140         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7141         __remainderl.
7142         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7143         weak alias of remainderl.
7144         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7145         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7146         alias of __remainder.
7147         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7148         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7149         strong alias of __remainderl.
7150         (dreml): Use long_double_symbol.
7151         * math/Makefile (libm-calls): Remove w_drem.
7152         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7153         (CFLAGS-nldbl-drem.c): Remove variable.
7154         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7155         * math/w_drem.c: Remove file.
7156         * math/w_dremf.c: Likewise.
7157         * math/w_dreml.c: Likewise.
7158         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7159         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7160         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7161
7162         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7163         * sysdeps/i386/configure: Regenerated.
7164         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7165         * sysdeps/x86_64/configure: Regenerated.
7166
7167         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7168         test.
7169         (libc_cv_visibility_attribute): Likewise.
7170         (libc_cv_protected_data): Test unconditionally.
7171         (libc_cv_broken_visibility_attribute): Remove configure test.
7172         (libc_cv_have_sdata_section): Test unconditionally.
7173         * configure: Regenerated.
7174
7175         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7176         * include/scratch_buffer.h: Include <stddef.h> instead of
7177         <libc-internal.h>.
7178         (struct scratch_buffer): Use max_align_t instead of
7179         libc_max_align_t.
7180
7181 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7182
7183         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7184         instead of extend_alloca.  Change control flow to avoid a goto.
7185         Remove assert which is trivially always true.
7186
7187 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7188
7189         [BZ #16068]
7190         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7191         (FE_ALL_EXCEPT_X86): New macro.
7192         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7193         FE_ALL_EXCEPT.  Ensure precision control is included in
7194         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7195         handle "denormal operand exception" and clear FZ and DAZ bits.
7196         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7197         (FE_ALL_EXCEPT_X86): New macro.
7198         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7199         FE_ALL_EXCEPT.  Ensure precision control is included in
7200         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7201         handle "denormal operand exception" and clear FZ and DAZ bits.
7202         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7203         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7204         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7205         test-fenv-x87 and test-fenv-sse-2.
7206         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7207
7208         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7209         * math/test-double.h (BUILD_COMPLEX): New macro.
7210         * math/test-float.h (BUILD_COMPLEX): Likewise.
7211         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7212
7213         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7214         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7215         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7216         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7217         instead of DBL_DENORM_MIN in comment.
7218         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7219         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7220         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7221         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7222         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7223         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7224
7225 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7226
7227         [BZ# 19048]
7228         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7229         attached_threads member.
7230         (main_arena): Initialize attached_threads.
7231         * malloc/arena.c (list_lock): Update comment.
7232         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7233         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7234         (deattach_arena): New function.
7235         (_int_new_arena): Initialize arena reference count and deattach
7236         replaced arena.
7237         (get_free_list, reused_arena): Update reference count and deattach
7238         replaced arena.
7239         (arena_thread_freeres): Update arena reference count and only put
7240         unreferenced arenas on the free list.
7241
7242 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7243
7244         [BZ #19181]
7245         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7246         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7247         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7248         * math/test-fenv-clear-main.c: New file.
7249         * math/test-fenv-clear.c: Likewise.
7250         * math/Makefile (tests): Add test-fenv-clear.
7251         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7252         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7253         test-fenv-clear-sse.
7254         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7255
7256         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7257         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7258         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7259
7260 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7261
7262         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7263         static libc.
7264
7265 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7266
7267         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7268         test.
7269         * sysdeps/i386/configure: Regenerated.
7270         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7271         test.
7272         * sysdeps/x86_64/configure: Regenerated.
7273         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7274         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7275         memset-avx2 unconditionally instead of conditionally on
7276         [$(config-cflags-avx2) = yes].
7277         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7278         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7279         unconditional.
7280         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7281         * sysdeps/x86_64/multiarch/memset_chk.S
7282         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7283         to [IS_IN (libc) && SHARED].
7284
7285 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7286
7287         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7288         configure test.
7289         * sysdeps/arm/configure: Regenerated.
7290         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7291         Define variable if not already defined.
7292
7293         [BZ #17404]
7294         * sysdeps/mips/atomic-machine.h
7295         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7296         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7297         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7298
7299         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7300         unconditional.
7301         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7302         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7303         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7304         unconditional.
7305         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7306         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7307         unconditional.
7308         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7309         * stdlib/setenv.c
7310         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7311         code unconditional.
7312         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7313         Remove conditional code.
7314         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7315         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7316         unconditional.
7317         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7318         code.
7319         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7320         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7321         unconditional.
7322         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7323         code.
7324         * sysdeps/ieee754/ldbl-128/k_tanl.c
7325         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7326         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7327         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7328         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7329         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7330         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7331         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7332         unconditional.
7333         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7334         code.
7335         * sysdeps/ieee754/ldbl-96/k_tanl.c
7336         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7337         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7338
7339         * nptl/tst-initializers1-c11.c: New file.
7340         * nptl/tst-initializers1-gnu11.c: Likewise.
7341         * nptl/Makefile (tests): Add these new tests.
7342         (CFLAGS-tst-initializers1-c11.c): New variable.
7343         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7344
7345         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7346         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7347         instead of -std=gnu99.
7348         * configure.ac (systemtap): Test with -std=gnu11 instead of
7349         -std=gnu99.
7350         * configure: Regenerated.
7351         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7352         in compilation command in comment.
7353
7354         * sysdeps/nptl/configure.ac: Remove file.
7355         * sysdeps/nptl/configure: Remove generated file.
7356         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7357         * configure: Regenerated.
7358         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7359         * config.make.in (have-forced-unwind): Remove variable.
7360         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7361         unconditional.
7362         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7363         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7364         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7365         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7366         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7367         unconditional.
7368
7369 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7370
7371         [BZ #19174]
7372         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7373         .skip_lock_out_of_tbegin_retries.
7374         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7375         (__lll_lock_elision): Likewise, and respect a value of
7376         try_tbegin <= 0.
7377
7378 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7379
7380         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7381         statement.
7382
7383 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7384
7385         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7386         variable.
7387         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7388         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7389
7390         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7391         of -std=c1x -D_ISOC11_SOURCE.
7392
7393         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7394         * configure: Regenerated.
7395         * manual/install.texi (Tools for Compilation): Document
7396         requirement for GCC 4.7 or later.
7397         * INSTALL: Regenerated.
7398
7399 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7400
7401         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7402         on CNT to a conditional jump to 'puntdata'.
7403
7404 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7405
7406         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7407         (libc_cv_gcc_tls_model_attr): Likewise.
7408         * configure: Regenerated.
7409
7410         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7411         * configure: Regenerated.
7412         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7413
7414 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7415
7416         * configure.ac (old_glibc_headers): Remove configure test.
7417         * configure: Regenerated.
7418         * config.make.in (old-glibc-headers): Remove variable.
7419         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7420         (install): Remove dependency on remove-old-headers.
7421         (headers2_0): Remove variable.
7422         (remove-old-headers): Remove rule.
7423
7424         * configure.ac (libc_cv_dot_text): Remove configure test.
7425         (libc_cv_asm_set_directive): Use .text instead of
7426         ${libc_cv_dot_text} in configure test.
7427         * configure: Regenerated.
7428
7429 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7430
7431         [BZ #19168]
7432         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7433
7434 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7435
7436         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7437         not support static linking.
7438         * configure: Regenerate.
7439
7440 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7441
7442         * math/libm-test.inc (check_float_internal): Do not special-case
7443         errors up to 0.5 ulp.
7444
7445         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7446         log2.
7447         * math/auto-libm-test-out: Regenerated.
7448         * math/libm-test.inc (MAX_EXP): New macro.
7449         (ilogb_test_data): Add more tests.
7450         (isfinite_test_data): Likewise.
7451         (isgreater_test_data): Likewise.
7452         (isgreaterequal_test_data): Likewise.
7453         (isinf_test_data): Likewise.
7454         (isless_test_data): Likewise.
7455         (islessequal_test_data): Likewise.
7456         (islessgreater_test_data): Likewise.
7457         (isnan_test_data): Likewise.
7458         (isnormal_test_data): Likewise.
7459         (issignaling_test_data): Likewise.
7460         (isunordered_test_data): Likewise.
7461         (j0_test_data): Likewise.
7462         (j1_test_data): Likewise.
7463         (jn_test_data): Likewise.
7464         (lgamma_test_data): Likewise.
7465         (log_test_data): Likewise.
7466         (log10_test_data): Likewise.
7467         (log1p_test_data): Likewise.
7468         (log2_test_data): Likewise.
7469         (logb_test_data): Likewise.
7470         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7471
7472         [BZ #18611]
7473         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7474         avoid excess range and precision on underflow.
7475         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7476         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7477         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7478         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7479         underflow.
7480         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7481         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7482         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7483         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7484         * math/auto-libm-test-in: Do not allow missing errno setting for
7485         tests of j1 and jn.
7486         * math/auto-libm-test-out: Regenerated.
7487
7488 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7489
7490         [BZ #15491]
7491         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7492         floating-point environment instead of clearing all exceptions.
7493         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7494         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7495         merging in "invalid" exceptions from frndint.
7496         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7497         * math/test-nearbyint-except.c: New file.
7498         * math/Makefile (tests): Add test-nearbyint-except.
7499
7500 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7501
7502         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7503
7504         * sysdeps/tile/libm-test-ulps: Regenerated.
7505
7506 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7507
7508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7509         (__NR_sync_file_range2): Assume it is always defined.
7510         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7511         (__NR_sync_file_range): Assume it is always defined.
7512
7513 2015-10-22  Andreas Schwab  <schwab@suse.de>
7514
7515         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7516         INTERNAL_SYSCALL_ERRNO.
7517         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7518         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7519         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7520         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7521         Likewise.
7522         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7523
7524 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7525
7526         * io/tst-fcntl.c (fd): New static variable.
7527         (do_prepare): Open temporary file here....
7528         (do_test): ...not here.
7529
7530         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7531
7532 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7533
7534         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7535         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7536         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7537         Moved before "#ifdef __ASSEMBLER__".
7538
7539 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7540
7541         [BZ #19156]
7542         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7543         arguments very close to 0.
7544
7545 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7546
7547         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7548         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7549
7550 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7551
7552         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7553         New.  Defined for GCC 5 and above when not compiling for
7554         profiling.
7555         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7556
7557         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7558         Renamed to ...
7559         (CFLAGS-epoll_pwait.o): This.
7560         (CFLAGS-mmap.c): Renamed to ...
7561         (CFLAGS-mmap.o): This.
7562         (CFLAGS-mmap64.c): Renamed to ...
7563         (CFLAGS-mmap64.o): This.
7564         (CFLAGS-epoll_pwait.os): New.
7565         (CFLAGS-mmap.os): Likewise.
7566         (CFLAGS-mmap64.os): Likewise.
7567         (CFLAGS-semtimedop.os): Likewise.
7568         (CFLAGS-semtimedop.c): Renamed to ...
7569         (CFLAGS-semtimedop.o): This.
7570
7571 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7572
7573         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7574         warning message.
7575
7576 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7577
7578         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7579         * Makefile ($(objpfx)c++-types-check.out): Filter out
7580         $(+gccwarn-c) instead of -Wstrict-prototypes.
7581
7582         * io/fts.c (fts_open): Convert to prototype-style function
7583         definition.
7584         * malloc/mcheck.c (mcheck): Likewise.
7585         (mcheck_pedantic): Likewise.
7586         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7587         internal_function.
7588         (re_search_internal): Likewise.
7589         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7590         prototype-style function definition.
7591         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7592         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7593         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7594         (xdr_utmpptr): Likewise.
7595         (xdr_utmparr): Likewise.
7596         (xdr_utmpidle): Likewise.
7597         (xdr_utmpidleptr): Likewise.
7598         (xdr_utmpidlearr): Likewise.
7599
7600         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7601         log, log10 and log2.
7602         * math/auto-libm-test-out: Regenerated.
7603         * math/libm-test.inc (fmod_test_data): Add more tests.
7604         (fpclassify_test_data): Likewise.
7605         (frexp_test_data): Likewise.
7606         (hypot_test_data): Likewise.
7607         (ilogb_test_data): Likewise.
7608
7609 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7610
7611         * debug/fortify_fail.c (__fortify_fail): Convert to
7612         prototype-style function definition.  Use internal_function.
7613         * libio/genops.c (save_for_backup): Convert to prototype-style
7614         function definition.
7615         * libio/wgenops.c (save_for_wbackup): Likewise.
7616         * login/grantpt.c (grantpt): Likewise.
7617         * login/ptsname.c (ptsname): Likewise.
7618         (__ptsname_r): Likewise.
7619         * login/unlockpt.c (unlockpt): Likewise.
7620         * mach/msgserver.c (__mach_msg_server): Likewise.
7621         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7622         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7623         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7624         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7625         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7626         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7627         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7628         Likewise.
7629         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7630         internal_function.
7631         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7632         prototype-style function definition.
7633         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7634         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7635         (__pthread_create_2_0): Likewise.
7636         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7637         * nptl/register-atfork.c (__register_atfork): Likewise.
7638         * posix/glob.c (glob): Likewise.
7639         * posix/regcomp.c (re_comp): Likewise.
7640         * posix/regexec.c (re_exec): Likewise.
7641         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7642         [!__STDC__]: Remove conditional code.
7643         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7644         [!__STDC__]: Remove conditional code.
7645         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7646         [!__STDC__]: Remove conditional code.
7647         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7648         [!__STDC__]: Remove conditional code.
7649         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7650         [!__STDC__]: Remove conditional code.
7651         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7652         [!__STDC__]: Remove conditional code.
7653         * stdlib/mul.c [__STDC__]: Make code unconditional.
7654         [!__STDC__]: Remove conditional code.
7655         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7656         [!__STDC__]: Remove conditional code.
7657         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7658         [!__STDC__]: Remove conditional code.
7659         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7660         function definition.
7661         (STRTOF): Likewise.
7662         * stdlib/strtod_l.c (__STRTOF): Likewise.
7663         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7664         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7665         (__strtol_l): Likewise.
7666         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7667         [!__STDC__]: Remove conditional code.
7668         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7669         definition.
7670         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7671         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7672         type.
7673         (__strcasecmp): Convert to prototype-style function definition.
7674         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7675         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7676         type.
7677         (__strncasecmp): Convert to prototype-style function definition.
7678         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7679         * sunrpc/xdr.c (xdr_union): Likewise.
7680         * sunrpc/xdr_array.c (xdr_array): Likewise.
7681         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7682         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7683         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7684         Likewise.
7685         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7686         Likewise.
7687         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7688         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7689         Likewise.
7690         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7691         (LOCALE_PARAM_PROTO): Likewise.
7692         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7693         argument type.
7694         (ut_argument_spec): Remove macro.
7695         (ut_argument_spec_iso): Rename to ut_argument_spec.
7696         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7697         prototype-style function definition.
7698         (memcpy_uppcase): Likewise.
7699         (__strftime_internal): Likewise.
7700         (my_strftime): Likewise.
7701         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7702         (LOCALE_PARAM_DECL): Likewise.
7703         [_LIBC] (LOCALE_PARAM): Include argument type.
7704         (__strptime_internal): Convert to prototype-style function
7705         definition.
7706         (strptime): Likewise.
7707         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7708         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7709         type.
7710         (__wcscasecmp): Convert to prototype-style function definition.
7711         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7712         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7713         type.
7714         (__wcsncasecmp): Convert to prototype-style function definition.
7715
7716         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7717         function definition.
7718         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7719         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7720         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7721         * elf/dl-minimal.c (_itoa): Likewise.
7722         * hurd/hurdmalloc.c (malloc): Likewise.
7723         (free): Likewise.
7724         (realloc): Likewise.
7725         * inet/inet6_option.c (inet6_option_space): Likewise.
7726         (inet6_option_init): Likewise.
7727         (inet6_option_append): Likewise.
7728         (inet6_option_alloc): Likewise.
7729         (inet6_option_next): Likewise.
7730         (inet6_option_find): Likewise.
7731         * io/ftw.c (FTW_NAME): Likewise.
7732         (NFTW_NAME): Likewise.
7733         (NFTW_NEW_NAME): Likewise.
7734         (NFTW_OLD_NAME): Likewise.
7735         * libio/iofwide.c (_IO_fwide): Likewise.
7736         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7737         (_IO_str_init_static): Likewise.
7738         (_IO_str_init_readonly): Likewise.
7739         (_IO_str_overflow): Likewise.
7740         (_IO_str_underflow): Likewise.
7741         (_IO_str_count): Likewise.
7742         (_IO_str_seekoff): Likewise.
7743         (_IO_str_pbackfail): Likewise.
7744         (_IO_str_finish): Likewise.
7745         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7746         (_IO_wstr_overflow): Likewise.
7747         (_IO_wstr_underflow): Likewise.
7748         (_IO_wstr_count): Likewise.
7749         (_IO_wstr_seekoff): Likewise.
7750         (_IO_wstr_pbackfail): Likewise.
7751         (_IO_wstr_finish): Likewise.
7752         * locale/programs/localedef.c (normalize_codeset): Likewise.
7753         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7754         (add_locales_to_archive): Likewise.
7755         (delete_locales_from_archive): Likewise.
7756         * malloc/malloc.c (__libc_mallinfo): Likewise.
7757         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7758         * misc/tsearch.c (__tfind): Likewise.
7759         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7760         * nptl/pthread_attr_getdetachstate.c
7761         (__pthread_attr_getdetachstate): Likewise.
7762         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7763         Likewise.
7764         * nptl/pthread_attr_getinheritsched.c
7765         (__pthread_attr_getinheritsched): Likewise.
7766         * nptl/pthread_attr_getschedparam.c
7767         (__pthread_attr_getschedparam): Likewise.
7768         * nptl/pthread_attr_getschedpolicy.c
7769         (__pthread_attr_getschedpolicy): Likewise.
7770         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7771         Likewise.
7772         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7773         Likewise.
7774         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7775         Likewise.
7776         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7777         Likewise.
7778         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7779         (__pthread_attr_init_2_0): Likewise.
7780         * nptl/pthread_attr_setdetachstate.c
7781         (__pthread_attr_setdetachstate): Likewise.
7782         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7783         Likewise.
7784         * nptl/pthread_attr_setinheritsched.c
7785         (__pthread_attr_setinheritsched): Likewise.
7786         * nptl/pthread_attr_setschedparam.c
7787         (__pthread_attr_setschedparam): Likewise.
7788         * nptl/pthread_attr_setschedpolicy.c
7789         (__pthread_attr_setschedpolicy): Likewise.
7790         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7791         Likewise.
7792         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7793         Likewise.
7794         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7795         Likewise.
7796         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7797         Likewise.
7798         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7799         Likewise.
7800         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7801         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7802         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7803         use internal_function.
7804         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7805         prototype-style function definition.
7806         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7807         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7808         internal_function.
7809         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7810         Convert to prototype-style function definition.
7811         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7812         Likewise.
7813         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7814         Likewise.
7815         (__pthread_mutex_unlock): Likewise.
7816         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7817         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7818         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7819         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7820         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7821         * nss/makedb.c (process_input): Likewise.
7822         * posix/fnmatch.c (__strchrnul): Likewise.
7823         (__wcschrnul): Likewise.
7824         (fnmatch): Likewise.
7825         * posix/fnmatch_loop.c (FCT): Likewise.
7826         * posix/glob.c (globfree): Likewise.
7827         (__glob_pattern_type): Likewise.
7828         (__glob_pattern_p): Likewise.
7829         * posix/regcomp.c (re_compile_pattern): Likewise.
7830         (re_set_syntax): Likewise.
7831         (re_compile_fastmap): Likewise.
7832         (regcomp): Likewise.
7833         (regerror): Likewise.
7834         (regfree): Likewise.
7835         * posix/regexec.c (regexec): Likewise.
7836         (re_match): Likewise.
7837         (re_search): Likewise.
7838         (re_match_2): Likewise.
7839         (re_search_2): Likewise.
7840         (re_search_stub): Likewise.  Use internal_function
7841         (re_copy_regs): Likewise.
7842         (re_set_registers): Convert to prototype-style function
7843         definition.
7844         (prune_impossible_nodes): Likewise.  Use internal_function.
7845         * resolv/inet_net_pton.c (inet_net_pton): Convert to
7846         prototype-style function definition.
7847         (inet_net_pton_ipv4): Likewise.
7848         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7849         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
7850         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7851         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
7852         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
7853         Make variadic.
7854         * time/strptime_l.c (localtime_r): Convert to prototype-style
7855         function definition.
7856         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
7857         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
7858         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
7859         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
7860
7861         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
7862         definition.
7863         (_ufc_doit_r): Likewise.
7864         * crypt/crypt_util.c (_ufc_copymem): Likewise.
7865         (_ufc_output_conversion_r): Likewise.
7866         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
7867         * inet/rcmd.c (rcmd_af): Likewise.
7868         (rcmd): Likewise.
7869         (ruserok_af): Likewise.
7870         (ruserok): Likewise.
7871         (ruserok2_sa): Likewise.
7872         (ruserok_sa): Likewise.
7873         (iruserok_af): Likewise.
7874         (iruserok): Likewise.
7875         (__ivaliduser): Likewise.
7876         (__validuser2_sa): Likewise.
7877         * inet/rexec.c (rexec_af): Likewise.
7878         (rexec): Likewise.
7879         * inet/ruserpass.c (ruserpass): Likewise.
7880         * locale/programs/xmalloc.c (xcalloc): Likewise.
7881         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
7882         * math/w_drem.c (__drem): Likewise.
7883         * math/w_dremf.c (__dremf): Likewise.
7884         * math/w_dreml.c (__dreml): Likewise.
7885         * misc/daemon.c (daemon): Likewise.
7886         * resolv/res_debug.c (p_fqnname): Likewise.
7887         * stdlib/div.c (div): Likewise.
7888         * string/memcmp.c (memcmp_bytes): Likewise.
7889         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
7890         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7891
7892         * crypt/cert.c (main): Convert to prototype-style function
7893         definition.
7894         * io/pipe.c (__pipe): Likewise.
7895         * io/pipe2.c (__pipe2): Likewise.
7896         * misc/futimesat.c (futimesat): Likewise.
7897         * misc/utimes.c (__utimes): Likewise.
7898         * posix/execve.c (__execve): Likewise.
7899         * posix/execvp.c (execvp): Likewise.
7900         * posix/execvpe.c (__execvpe): Likewise.
7901         * posix/fexecve.c (fexecve): Likewise.
7902         * socket/socketpair.c (socketpair): Likewise.
7903         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7904         * stdlib/erand48.c (erand48): Likewise.
7905         * stdlib/erand48_r.c (__erand48_r): Likewise.
7906         * stdlib/jrand48.c (jrand48): Likewise.
7907         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
7908         * stdlib/lcong48.c (lcong48): Likewise.
7909         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
7910         * stdlib/nrand48.c (nrand48): Likewise.
7911         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
7912         * stdlib/seed48.c (seed48): Likewise.
7913         * stdlib/seed48_r.c (__seed48_r): Likewise.
7914         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
7915         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
7916         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
7917
7918 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
7919
7920         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
7921         * configure: Regenerated.
7922         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
7923         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
7924         unconditional.
7925         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7926         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7927         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7928         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
7929         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
7930         unconditional.
7931         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7932
7933         * posix/Makefile (CFLAGS-regex.c): Remove variable.
7934         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
7935
7936         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
7937         function definition.
7938         * crypt/crypt_util.c (__encrypt_r): Likewise.
7939         * libio/genops.c (_IO_no_init): Likewise.
7940         * libio/iofopncook.c (_IO_fopencookie): Likewise.
7941         (_IO_old_fopencookie): Likewise.
7942         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
7943         * libio/iogetline.c (_IO_getline): Likewise.
7944         (_IO_getline_info): Likewise.
7945         * libio/iogetwline.c (_IO_getwline): Likewise.
7946         (_IO_getwline_info): Likewise.
7947         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
7948         * libio/vswprintf.c (_IO_vswprintf): Likewise.
7949         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
7950         (find_entry): Likewise.
7951         (iterate_table): Likewise.
7952         (lookup): Likewise.
7953         * login/forkpty.c (forkpty): Likewise.
7954         * misc/hsearch_r.c (__hsearch_r): Likewise.
7955         * misc/select.c (__select): Likewise.
7956         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
7957         Likewise.
7958         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
7959         Likewise.
7960         * nptl/old_pthread_cond_timedwait.c
7961         (__pthread_cond_timedwait_2_0): Likewise.
7962         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
7963         * nptl/pthread_barrierattr_getpshared.c
7964         (pthread_barrierattr_getpshared): Likewise.
7965         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
7966         Likewise.
7967         * nptl/pthread_mutex_setprioceiling.c
7968         (pthread_mutex_setprioceiling): Likewise.
7969         * nptl/pthread_mutexattr_getprioceiling.c
7970         (pthread_mutexattr_getprioceiling): Likewise.
7971         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
7972         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
7973         Likewise.
7974         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
7975         Likewise.
7976         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
7977         Likewise.
7978         * socket/recvfrom.c (__recvfrom): Likewise.
7979         * socket/sendto.c (__sendto): Likewise.
7980         * socket/setsockopt.c (__setsockopt): Likewise.
7981         * stdio-common/_itoa.c (_itoa): Likewise.
7982         * stdio-common/_itowa.c (_itowa): Likewise.
7983         * stdio-common/reg-printf.c (__register_printf_specifier):
7984         Likewise.
7985         (__register_printf_function): Likewise.
7986         * stdio-common/tempname.c (__path_search): Likewise.
7987         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
7988         * stdlib/mul_1.c (mpn_mul_1): Likewise.
7989         * stdlib/random_r.c (__initstate_r): Likewise.
7990         * stdlib/setenv.c (__add_to_environ): Likewise.
7991         * stdlib/submul_1.c (mpn_submul_1): Likewise.
7992         * streams/getpmsg.c (getpmsg): Likewise.
7993         * streams/putmsg.c (putmsg): Likewise.
7994         * streams/putpmsg.c (putpmsg): Likewise.
7995         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
7996         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
7997         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
7998         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
7999         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8000         * sunrpc/svc_udp.c (cache_get): Likewise.
8001         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8002         * sysdeps/mach/hurd/getcwd.c
8003         (__canonicalize_directory_name_internal): Likewise.
8004         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8005         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8006         * sysdeps/mach/hurd/select.c (__select): Likewise.
8007         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8008         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8009         * sysdeps/sparc/nptl/pthread_barrier_init.c
8010         (__pthread_barrier_init): Likewise.
8011         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8012         (__pthread_cond_timedwait): Likewise.
8013         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8014         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8015         Likewise.
8016         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8017         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8018         Likewise.
8019         * sysvipc/semtimedop.c (semtimedop): Likewise.
8020         * time/setitimer.c (__setitimer): Likewise.
8021         * time/strftime_l.c (emacs_strftime): Likewise.
8022
8023 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8024
8025         * config.make.in (have-ssp): Delete.
8026         (stack-protector): New variable.
8027         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8028         cache test for -fstack-protector-strong.  Export stack_protector to
8029         the best ssp flag.
8030         * configure: Regenerated.
8031         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8032         * nscd/Makefile (CFLAGS-nscd): Likewise.
8033         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8034
8035 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8036
8037         [BZ #19122]
8038         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8039         attribute_hidden.
8040
8041 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8042
8043         [BZ #18743]
8044         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8045         code to...
8046         (ELIDE_LOCK): ...here.
8047         (__get_new_count): New function with part of the code from
8048         __elide_lock that updates the value of adapt_count after a
8049         transaction abort.
8050         (__elided_trylock): Moved this code to...
8051         (ELIDE_TRYLOCK): ...here.
8052
8053 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8054
8055         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8056         * configure: Regenerate.
8057         * INSTALL: Regenerate.
8058         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8059         and tweak grammar.
8060
8061 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8062
8063         * login/programs/pt_chown.c: Include signal.h
8064         (main): Clear any signal mask from the parent process.
8065
8066 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8067
8068         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8069         * configure: Regenerated.
8070         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8071         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8072         $(gnu89-inline-CFLAGS).
8073
8074         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8075         test.
8076         (libc_cv_asm_weakext_directive): Likewise.
8077         * configure: Regenerated.
8078         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8079         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8080         * include/libc-symbols.h
8081         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8082         #error.
8083         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8084         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8085
8086         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8087         prototype-style function definition.
8088         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8089         * sysdeps/i386/ffs.c (__ffs): Likewise.
8090         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8091         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8092         Likewise.
8093         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8094         Likewise.
8095         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8096         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8097         Likewise.
8098         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8099         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8100         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8101         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8102         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8103         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8104         * sysdeps/mach/hurd/access.c (__access): Likewise.
8105         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8106         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8107         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8108         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8109         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8110         (cthread_getspecific): Likewise.
8111         (cthread_setspecific): Likewise.
8112         (__libc_getspecific): Likewise.
8113         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8114         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8115         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8116         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8117         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8118         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8119         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8120         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8121         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8122         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8123         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8124         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8125         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8126         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8127         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8128         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8129         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8130         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8131         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8132         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8133         * sysdeps/mach/hurd/link.c (__link): Likewise.
8134         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8135         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8136         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8137         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8138         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8139         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8140         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8141         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8142         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8143         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8144         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8145         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8146         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8147         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8148         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8149         * sysdeps/mach/hurd/send.c (__send): Likewise.
8150         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8151         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8152         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8153         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8154         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8155         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8156         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8157         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8158         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8159         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8160         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8161         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8162         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8163         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8164         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8165         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8166         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8167         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8168         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8169         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8170         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8171         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8172         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8173         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8174         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8175         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8176         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8177         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8178         * sysdeps/posix/alarm.c (alarm): Likewise.
8179         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8180         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8181         * sysdeps/posix/dup.c (__dup): Likewise.
8182         * sysdeps/posix/dup2.c (__dup2): Likewise.
8183         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8184         (main): Likewise.
8185         * sysdeps/posix/flock.c (__flock): Likewise.
8186         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8187         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8188         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8189         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8190         * sysdeps/posix/isatty.c (__isatty): Likewise.
8191         * sysdeps/posix/killpg.c (killpg): Likewise.
8192         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8193         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8194         * sysdeps/posix/raise.c (raise): Likewise.
8195         * sysdeps/posix/remove.c (remove): Likewise.
8196         * sysdeps/posix/rename.c (rename): Likewise.
8197         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8198         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8199         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8200         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8201         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8202         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8203         * sysdeps/posix/sigset.c (sigset): Likewise.
8204         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8205         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8206         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8207         * sysdeps/posix/time.c (time): Likewise.
8208         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8209         (ttyname): Likewise.
8210         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8211         * sysdeps/posix/utime.c (utime): Likewise.
8212         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8213         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8214         Likewise.
8215         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8216         (pthread_spin_trylock): Likewise.
8217         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8218         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8219         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8220         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8221         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8222         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8223         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8224         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8225         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8226         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8227         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8228         * sysdeps/s390/ffs.c (__ffs): Likewise.
8229         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8230         Likewise.
8231         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8232         Likewise.
8233         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8234         Likewise.
8235         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8236         (pthread_barrier_destroy): Likewise.
8237         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8238         (__pthread_barrier_wait): Likewise.
8239         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8240         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8241         (__pthread_barrier_wait): Likewise.
8242         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8243         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8244         (memcmp_not_common_alignment): Likewise.
8245         (MEMCMP): Likewise.
8246         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8247         (_wordcopy_fwd_dest_aligned): Likewise.
8248         (_wordcopy_bwd_aligned): Likewise.
8249         (_wordcopy_bwd_dest_aligned): Likewise.
8250         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8251         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8252         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8253         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8254         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8255         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8256         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8257         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8258         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8259         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8260         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8261         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8262         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8263         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8264         * sysdeps/unix/stime.c (stime): Likewise.
8265         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8266         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8267         Likewise.  Use internal_function.
8268         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8269         Convert to prototype-style function definition.
8270         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8271         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8272         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8273         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8274         Likewise.  Use internal_function.
8275         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8276         prototype-style function definition
8277         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8278         Likewise.
8279         (__getlogin_r): Likewise.
8280         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8281         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8282         (__pthread_cond_broadcast): Likewise.
8283         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8284         (__pthread_cond_destroy): Likewise.
8285         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8286         (__pthread_cond_init): Likewise.
8287         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8288         (__pthread_cond_signal): Likewise.
8289         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8290         (__pthread_cond_wait): Likewise.
8291         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8292         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8293         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8294         Likewise.
8295         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8296         Likewise.
8297         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8298         Likewise.
8299         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8300         Likewise.
8301         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8303         (__ftruncate64): Likewise.
8304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8305         (truncate64): Likewise.
8306         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8307         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8308         (pthread_getcpuclockid): Likewise.
8309         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8310         Likewise.
8311         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8312         Likewise.
8313         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8314         Likewise.
8315         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8316         Likewise.
8317         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8318         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8319         (__libc_sigaction): Likewise.
8320         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8321         Likewise.
8322         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8323         (__sigprocmask): Likewise.
8324         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8325         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8326         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8327         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8328         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8329         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8330         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8331         Likewise.
8332         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8333         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8334         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8335         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8336         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8337         Likewise.
8338         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8339         (__sigprocmask): Likewise.
8340         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8341         (cfgetispeed): Likewise.
8342         (cfsetospeed): Likewise.
8343         (cfsetispeed): Likewise.
8344         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8345         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8346         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8347         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8348         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8349         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8350         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8351         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8352         Likewise.
8353         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8354         Likewise.
8355         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8356         Likewise.
8357         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8358         Likewise.
8359         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8360
8361 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8362
8363         sunrpc: Rewrite with explicit TLS access using __thread.
8364         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8365         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8366         directly.
8367         (__rpc_thread_variables): Access thread_rpc_vars directly.
8368         Eliminate redundant assignment of the tvp variable.
8369
8370 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8371
8372         malloc: Rewrite with explicit TLS access using __thread.
8373         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8374         (tsd_setspecific, tsd_getspecific): Remove.
8375         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8376         (tsd_setspecific, tsd_getspecific): Likewise.
8377         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8378         (tsd_setspecific, tsd_getspecific): Likewise.
8379         * malloc/arena.c (thread_arena): New TLS variable.
8380         (arena_key): Remove variable.
8381         (arena_get): Use thread_arena.
8382         (arena_lookup): Remove macro.
8383         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8384         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8385         (_int_new_arena, get_free_list, reused_arena)
8386         (arena_thread_freeres): Use thread_arena.
8387         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8388         tsd_getspecific, tsd_setspecific from safety annotations.
8389         (Allocating Cleared Space): Remove arena_lookup from safety
8390         annotations.
8391
8392 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8393
8394         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8395         struct scratch_buffer instead of extend_alloca.
8396
8397 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8398
8399         * sysdeps/unix/sysv/linux/kernel-features.h
8400         (__ASSUME_SOCK_CLOEXEC): Remove.
8401         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8402         (__have_paccept): Remove unused macro.
8403         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8404         * misc/syslog.c (openlog_internal): Remove fallback code for
8405         !__ASSUME_SOCK_CLOEXEC.
8406         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8407         missing SOCK_CLOEXEC.
8408         * nscd/connections.c (have_sock_cloexec): Remove definition.
8409         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8410         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8411         !__ASSUME_SOCK_CLOEXEC.
8412         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8413         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8414         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8415         definition.
8416         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8417         code for !__ASSUME_SOCK_CLOEXEC.
8418
8419 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8420
8421         [BZ #18982]
8422         * manual/stdio.texi (Variable Arguments Output): Add portability
8423         note, explaining that vfprintf clobbers the va_list pointer.
8424
8425 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8426
8427         * math/libm-test.inc (fabs_test_data): Add more tests.
8428         (fdim_test_data): Likewise.
8429         (fma_test_data): Likewise.
8430         (fmax_test_data): Likewise.
8431         (fmin_test_data): Likewise.
8432         (fmod_test_data): Likewise.
8433
8434 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8435
8436         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8437         data.
8438
8439 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8440
8441         * math/libm-test.inc (ceil_test_data): Add more tests and more
8442         expectations for "inexact".
8443         (floor_test_data): Add more tests.
8444         (round_test_data): Likewise.
8445         (trunc_test_data): Likewise.
8446
8447         * crypt/cert.c (good_bye): Convert to prototype-style function
8448         definition.
8449         (get8): Likewise.
8450         (put8): Likewise.
8451         * crypt/crypt-entry.c (crypt): Likewise.
8452         (__fcrypt): Likewise.
8453         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8454         (_ufc_set_bits): Likewise.
8455         (_ufc_clearmem): Likewise.
8456         (__init_des_r): Likewise.
8457         (shuffle_sb): Likewise.
8458         (shuffle_sb): Likewise.
8459         (_ufc_setup_salt_r): Likewise.
8460         (_ufc_mk_keytab_r): Likewise.
8461         (_ufc_dofinalperm_r): Likewise.
8462         (encrypt): Likewise.
8463         (__setkey_r): Likewise.
8464         (setkey): Likewise.
8465         * crypt/md5.c (md5_init_ctx): Likewise.
8466         (md5_read_ctx): Likewise.
8467         (md5_finish_ctx): Likewise.
8468         (md5_stream): Likewise.
8469         (md5_buffer): Likewise.
8470         (md5_process_bytes): Likewise.
8471         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8472         (__sha256_finish_ctx): Likewise.
8473         (__sha256_process_bytes): Likewise.
8474         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8475         (__sha512_finish_ctx): Likewise.
8476         (__sha512_process_bytes): Likewise.
8477         * ctype/isctype.c (__isctype): Likewise.
8478         * debug/backtrace.c (__backtrace): Likewise.
8479         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8480         * debug/fgets_chk.c (__fgets_chk): Likewise.
8481         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8482         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8483         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8484         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8485         * debug/memset_chk.c (__memset_chk): Likewise.
8486         * debug/strcat_chk.c (__strcat_chk): Likewise.
8487         * debug/strncat_chk.c (__strncat_chk): Likewise.
8488         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8489         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8490         * dirent/dirfd.c (dirfd): Likewise.
8491         * dirent/getdents.c (__getdirentries): Likewise.
8492         * dirent/getdents64.c (getdirentries64): Likewise.
8493         * dirent/rewinddir.c (__rewinddir): Likewise.
8494         * dirent/seekdir.c (seekdir): Likewise.
8495         * dirent/telldir.c (telldir): Likewise.
8496         * elf/sln.c (makesymlinks): Likewise.
8497         (makesymlink): Likewise.
8498         * gmon/gmon.c (__moncontrol): Likewise.
8499         (__monstartup): Likewise.
8500         (write_hist): Likewise.
8501         (write_call_graph): Likewise.
8502         (write_bb_counts): Likewise.
8503         * grp/setgroups.c (setgroups): Likewise.
8504         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8505         * inet/inet_net.c (inet_network): Likewise.
8506         * inet/inet_netof.c (inet_netof): Likewise.
8507         * inet/rcmd.c (rresvport_af): Likewise.
8508         (rresvport): Likewise.
8509         * io/access.c (__access): Likewise.
8510         * io/chdir.c (__chdir): Likewise.
8511         * io/chmod.c (__chmod): Likewise.
8512         * io/chown.c (__chown): Likewise.
8513         * io/close.c (__close): Likewise.
8514         * io/creat.c (creat): Likewise.
8515         * io/creat64.c (creat64): Likewise.
8516         * io/dup.c (__dup): Likewise.
8517         * io/dup2.c (__dup2): Likewise.
8518         * io/dup3.c (__dup3): Likewise.
8519         * io/euidaccess.c (__euidaccess): Likewise.
8520         * io/faccessat.c (faccessat): Likewise.
8521         * io/fchmod.c (__fchmod): Likewise.
8522         * io/fchmodat.c (fchmodat): Likewise.
8523         * io/fchown.c (__fchown): Likewise.
8524         * io/fchownat.c (fchownat): Likewise.
8525         * io/fcntl.c (__fcntl): Likewise.
8526         * io/flock.c (__flock): Likewise.
8527         * io/fts.c (fts_load): Likewise.
8528         (fts_close): Likewise.
8529         (fts_read): Likewise.
8530         (fts_set): Likewise.
8531         (fts_children): Likewise.
8532         (fts_build): Likewise.
8533         (fts_stat): Likewise.
8534         (fts_sort): Likewise.
8535         (fts_alloc): Likewise.
8536         (fts_lfree): Likewise.
8537         (fts_palloc): Likewise.
8538         (fts_padjust): Likewise.
8539         (fts_maxarglen): Likewise.
8540         (fts_safe_changedir): Likewise.
8541         * io/getwd.c (getwd): Likewise.
8542         * io/isatty.c (__isatty): Likewise.
8543         * io/lchown.c (__lchown): Likewise.
8544         * io/link.c (__link): Likewise.
8545         * io/linkat.c (linkat): Likewise.
8546         * io/lseek.c (__libc_lseek): Likewise.
8547         * io/mkdir.c (__mkdir): Likewise.
8548         * io/mkdirat.c (mkdirat): Likewise.
8549         * io/mkfifo.c (mkfifo): Likewise.
8550         * io/mkfifoat.c (mkfifoat): Likewise.
8551         * io/open.c (__libc_open): Likewise.
8552         * io/open64.c (__libc_open64): Likewise.
8553         * io/readlink.c (__readlink): Likewise.
8554         * io/readlinkat.c (readlinkat): Likewise.
8555         * io/rmdir.c (__rmdir): Likewise.
8556         * io/symlink.c (__symlink): Likewise.
8557         * io/symlinkat.c (symlinkat): Likewise.
8558         * io/ttyname.c (ttyname): Likewise.
8559         * io/ttyname_r.c (__ttyname_r): Likewise.
8560         * io/umask.c (__umask): Likewise.
8561         * io/unlink.c (__unlink): Likewise.
8562         * io/unlinkat.c (unlinkat): Likewise.
8563         * io/utime.c (utime): Likewise.
8564         * libio/clearerr.c (clearerr): Likewise.
8565         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8566         * libio/feof.c (_IO_feof): Likewise.
8567         * libio/feof_u.c (feof_unlocked): Likewise.
8568         * libio/ferror.c (_IO_ferror): Likewise.
8569         * libio/ferror_u.c (ferror_unlocked): Likewise.
8570         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8571         * libio/fileno.c (__fileno): Likewise.
8572         * libio/fputc.c (fputc): Likewise.
8573         * libio/fputc_u.c (fputc_unlocked): Likewise.
8574         * libio/fputwc.c (fputwc): Likewise.
8575         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8576         * libio/freopen.c (freopen): Likewise.
8577         * libio/freopen64.c (freopen64): Likewise.
8578         * libio/fseek.c (fseek): Likewise.
8579         * libio/fseeko.c (fseeko): Likewise.
8580         * libio/fseeko64.c (fseeko64): Likewise.
8581         * libio/ftello.c (__ftello): Likewise.
8582         * libio/ftello64.c (ftello64): Likewise.
8583         * libio/fwide.c (fwide): Likewise.
8584         * libio/genops.c (_IO_un_link): Likewise.
8585         (_IO_link_in): Likewise.
8586         (_IO_least_marker): Likewise.
8587         (_IO_switch_to_main_get_area): Likewise.
8588         (_IO_switch_to_backup_area): Likewise.
8589         (_IO_switch_to_get_mode): Likewise.
8590         (_IO_free_backup_area): Likewise.
8591         (_IO_switch_to_put_mode): Likewise.
8592         (__overflow): Likewise.
8593         (__underflow): Likewise.
8594         (__uflow): Likewise.
8595         (_IO_setb): Likewise.
8596         (_IO_doallocbuf): Likewise.
8597         (_IO_default_underflow): Likewise.
8598         (_IO_default_uflow): Likewise.
8599         (_IO_default_xsputn): Likewise.
8600         (_IO_sgetn): Likewise.
8601         (_IO_default_xsgetn): Likewise.
8602         (_IO_sync): Likewise.
8603         (_IO_default_setbuf): Likewise.
8604         (_IO_default_seekpos): Likewise.
8605         (_IO_default_doallocate): Likewise.
8606         (_IO_init): Likewise.
8607         (_IO_old_init): Likewise.
8608         (_IO_default_sync): Likewise.
8609         (_IO_default_finish): Likewise.
8610         (_IO_default_seekoff): Likewise.
8611         (_IO_sputbackc): Likewise.
8612         (_IO_sungetc): Likewise.
8613         (_IO_set_column): Likewise.
8614         (_IO_set_column): Likewise.
8615         (_IO_adjust_column): Likewise.
8616         (_IO_get_column): Likewise.
8617         (_IO_init_marker): Likewise.
8618         (_IO_remove_marker): Likewise.
8619         (_IO_marker_difference): Likewise.
8620         (_IO_marker_delta): Likewise.
8621         (_IO_seekmark): Likewise.
8622         (_IO_unsave_markers): Likewise.
8623         (_IO_nobackup_pbackfail): Likewise.
8624         (_IO_default_pbackfail): Likewise.
8625         (_IO_default_seek): Likewise.
8626         (_IO_default_stat): Likewise.
8627         (_IO_default_read): Likewise.
8628         (_IO_default_write): Likewise.
8629         (_IO_default_showmanyc): Likewise.
8630         (_IO_default_imbue): Likewise.
8631         (_IO_iter_next): Likewise.
8632         (_IO_iter_file): Likewise.
8633         * libio/getc.c (_IO_getc): Likewise.
8634         * libio/getwc.c (_IO_getwc): Likewise.
8635         * libio/iofclose.c (_IO_new_fclose): Likewise.
8636         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8637         * libio/iofflush.c (_IO_fflush): Likewise.
8638         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8639         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8640         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8641         * libio/iofgets.c (_IO_fgets): Likewise.
8642         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8643         * libio/iofgetws.c (fgetws): Likewise.
8644         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8645         * libio/iofopen64.c (_IO_fopen64): Likewise.
8646         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8647         (_IO_cookie_write): Likewise.
8648         (_IO_cookie_seek): Likewise.
8649         (_IO_cookie_close): Likewise.
8650         (_IO_cookie_seekoff): Likewise.
8651         (_IO_old_cookie_seek): Likewise.
8652         * libio/iofputs.c (_IO_fputs): Likewise.
8653         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8654         * libio/iofputws.c (fputws): Likewise.
8655         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8656         * libio/iofread.c (_IO_fread): Likewise.
8657         * libio/iofread_u.c (__fread_unlocked): Likewise.
8658         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8659         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8660         * libio/ioftell.c (_IO_ftell): Likewise.
8661         * libio/iofwrite.c (_IO_fwrite): Likewise.
8662         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8663         * libio/iogets.c (_IO_gets): Likewise.
8664         * libio/iopadn.c (_IO_padn): Likewise.
8665         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8666         (_IO_new_popen): Likewise.
8667         (_IO_new_proc_close): Likewise.
8668         * libio/ioputs.c (_IO_puts): Likewise.
8669         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8670         (_IO_seekoff): Likewise.
8671         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8672         (_IO_seekpos): Likewise.
8673         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8674         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8675         * libio/ioungetc.c (_IO_ungetc): Likewise.
8676         * libio/ioungetwc.c (ungetwc): Likewise.
8677         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8678         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8679         * libio/iowpadn.c (_IO_wpadn): Likewise.
8680         * libio/libc_fatal.c (__libc_fatal): Likewise.
8681         * libio/memstream.c (__open_memstream): Likewise.
8682         (_IO_mem_sync): Likewise.
8683         (_IO_mem_finish): Likewise.
8684         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8685         (_IO_old_file_close_it): Likewise.
8686         (_IO_old_file_finish): Likewise.
8687         (_IO_old_file_fopen): Likewise.
8688         (_IO_old_file_attach): Likewise.
8689         (_IO_old_file_setbuf): Likewise.
8690         (_IO_old_do_write): Likewise.
8691         (old_do_write): Likewise.
8692         (_IO_old_file_underflow): Likewise.
8693         (_IO_old_file_overflow): Likewise.
8694         (_IO_old_file_sync): Likewise.
8695         (_IO_old_file_seekoff): Likewise.
8696         (_IO_old_file_write): Likewise.
8697         (_IO_old_file_xsputn): Likewise.
8698         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8699         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8700         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8701         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8702         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8703         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8704         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8705         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8706         (_IO_old_popen): Likewise.
8707         (_IO_old_proc_close): Likewise.
8708         * libio/oldpclose.c (__old_pclose): Likewise.
8709         * libio/pclose.c (__new_pclose): Likewise.
8710         * libio/peekc.c (_IO_peekc_locked): Likewise.
8711         * libio/putc.c (_IO_putc): Likewise.
8712         * libio/putc_u.c (putc_unlocked): Likewise.
8713         * libio/putchar.c (putchar): Likewise.
8714         * libio/putchar_u.c (putchar_unlocked): Likewise.
8715         * libio/putwc.c (putwc): Likewise.
8716         * libio/putwc_u.c (putwc_unlocked): Likewise.
8717         * libio/putwchar.c (putwchar): Likewise.
8718         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8719         * libio/rewind.c (rewind): Likewise.
8720         * libio/setbuf.c (setbuf): Likewise.
8721         * libio/setlinebuf.c (setlinebuf): Likewise.
8722         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8723         * libio/vscanf.c (_IO_vscanf): Likewise.
8724         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8725         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8726         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8727         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8728         (_IO_switch_to_main_wget_area): Likewise.
8729         (_IO_switch_to_wbackup_area): Likewise.
8730         (_IO_wsetb): Likewise.
8731         (_IO_wdefault_pbackfail): Likewise.
8732         (_IO_wdefault_finish): Likewise.
8733         (_IO_wdefault_uflow): Likewise.
8734         (__woverflow): Likewise.
8735         (__wuflow): Likewise.
8736         (__wunderflow): Likewise.
8737         (_IO_wdefault_xsputn): Likewise.
8738         (_IO_wdefault_xsgetn): Likewise.
8739         (_IO_wdoallocbuf): Likewise.
8740         (_IO_wdefault_doallocate): Likewise.
8741         (_IO_switch_to_wget_mode): Likewise.
8742         (_IO_free_wbackup_area): Likewise.
8743         (_IO_switch_to_wput_mode): Likewise.
8744         (_IO_sputbackwc): Likewise.
8745         (_IO_sungetwc): Likewise.
8746         (_IO_adjust_wcolumn): Likewise.
8747         (_IO_init_wmarker): Likewise.
8748         (_IO_wmarker_delta): Likewise.
8749         (_IO_seekwmark): Likewise.
8750         (_IO_unsave_wmarkers): Likewise.
8751         * libio/wmemstream.c (open_wmemstream): Likewise.
8752         (_IO_wmem_sync): Likewise.
8753         (_IO_wmem_finish): Likewise.
8754         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8755         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8756         * locale/programs/simple-hash.c (init_hash): Likewise.
8757         (delete_hash): Likewise.
8758         (insert_entry): Likewise.
8759         (set_entry): Likewise.
8760         (next_prime): Likewise.
8761         (is_prime): Likewise.
8762         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8763         (xmalloc): Likewise.
8764         (xrealloc): Likewise.
8765         * locale/programs/xstrdup.c (xstrdup): Likewise.
8766         * localedata/collate-test.c (xstrcoll): Likewise.
8767         * localedata/xfrm-test.c (xstrcmp): Likewise.
8768         * login/getlogin_r.c (__getlogin_r): Likewise.
8769         * login/getpt.c (__posix_openpt): Likewise.
8770         * login/login_tty.c (login_tty): Likewise.
8771         * login/setlogin.c (setlogin): Likewise.
8772         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8773         (mach_msg_destroy_port): Likewise.
8774         (mach_msg_destroy_memory): Likewise.
8775         * malloc/mcheck.c (flood): Likewise.
8776         * misc/acct.c (acct): Likewise.
8777         * misc/brk.c (__brk): Likewise.
8778         * misc/chflags.c (chflags): Likewise.
8779         * misc/chroot.c (chroot): Likewise.
8780         * misc/fchflags.c (fchflags): Likewise.
8781         * misc/fstab.c (getfsspec): Likewise.
8782         (getfsfile): Likewise.
8783         * misc/fsync.c (fsync): Likewise.
8784         * misc/ftruncate.c (__ftruncate): Likewise.
8785         * misc/ftruncate64.c (__ftruncate64): Likewise.
8786         * misc/getdomain.c (getdomainname): Likewise.
8787         (getdomainname): Likewise.
8788         * misc/gethostname.c (__gethostname): Likewise.
8789         * misc/getpass.c (getpass): Likewise.
8790         * misc/getttyent.c (skip): Likewise.
8791         (value): Likewise.
8792         * misc/gtty.c (gtty): Likewise.
8793         * misc/hsearch.c (hsearch): Likewise.
8794         (hcreate): Likewise.
8795         * misc/hsearch_r.c (__hcreate_r): Likewise.
8796         (__hdestroy_r): Likewise.
8797         * misc/ioctl.c (__ioctl): Likewise.
8798         * misc/mkdtemp.c (mkdtemp): Likewise.
8799         * misc/mkostemp.c (mkostemp): Likewise.
8800         * misc/mkostemp64.c (mkostemp64): Likewise.
8801         * misc/mkostemps.c (mkostemps): Likewise.
8802         * misc/mkostemps64.c (mkostemps64): Likewise.
8803         * misc/mkstemp.c (mkstemp): Likewise.
8804         * misc/mkstemp64.c (mkstemp64): Likewise.
8805         * misc/mkstemps.c (mkstemps): Likewise.
8806         * misc/mkstemps64.c (mkstemps64): Likewise.
8807         * misc/mktemp.c (__mktemp): Likewise.
8808         * misc/preadv.c (preadv): Likewise.
8809         * misc/preadv64.c (preadv64): Likewise.
8810         * misc/pwritev.c (pwritev): Likewise.
8811         * misc/pwritev64.c (pwritev64): Likewise.
8812         * misc/readv.c (__readv): Likewise.
8813         * misc/revoke.c (revoke): Likewise.
8814         * misc/setdomain.c (setdomainname): Likewise.
8815         * misc/setegid.c (setegid): Likewise.
8816         * misc/seteuid.c (seteuid): Likewise.
8817         * misc/sethostid.c (sethostid): Likewise.
8818         * misc/sethostname.c (sethostname): Likewise.
8819         * misc/setregid.c (__setregid): Likewise.
8820         * misc/setreuid.c (__setreuid): Likewise.
8821         * misc/sstk.c (sstk): Likewise.
8822         * misc/stty.c (stty): Likewise.
8823         * misc/syscall.c (syscall): Likewise.
8824         * misc/syslog.c (setlogmask): Likewise.
8825         * misc/truncate.c (__truncate): Likewise.
8826         * misc/truncate64.c (truncate64): Likewise.
8827         * misc/ualarm.c (ualarm): Likewise.
8828         * misc/usleep.c (usleep): Likewise.
8829         * misc/ustat.c (ustat): Likewise.
8830         * misc/writev.c (__writev): Likewise.
8831         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8832         * nptl/old_pthread_cond_broadcast.c
8833         (__pthread_cond_broadcast_2_0): Likewise.
8834         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8835         Likewise.
8836         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8837         Likewise.
8838         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8839         Likewise.
8840         * nptl/pt-raise.c (raise): Likewise.
8841         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
8842         Likewise.
8843         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
8844         * nptl/pthread_barrierattr_destroy.c
8845         (pthread_barrierattr_destroy): Likewise.
8846         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8847         Likewise.
8848         * nptl/pthread_barrierattr_setpshared.c
8849         (pthread_barrierattr_setpshared): Likewise.
8850         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
8851         Likewise.
8852         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
8853         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
8854         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
8855         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
8856         Likewise.
8857         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
8858         Likewise.
8859         * nptl/pthread_condattr_getpshared.c
8860         (pthread_condattr_getpshared): Likewise.
8861         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
8862         Likewise.
8863         * nptl/pthread_condattr_setpshared.c
8864         (pthread_condattr_setpshared): Likewise.
8865         * nptl/pthread_detach.c (pthread_detach): Likewise.
8866         * nptl/pthread_equal.c (__pthread_equal): Likewise.
8867         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
8868         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
8869         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
8870         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
8871         Likewise.
8872         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8873         Likewise.
8874         * nptl/pthread_mutex_getprioceiling.c
8875         (pthread_mutex_getprioceiling): Likewise.
8876         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
8877         Likewise.
8878         * nptl/pthread_mutexattr_getprotocol.c
8879         (pthread_mutexattr_getprotocol): Likewise.
8880         * nptl/pthread_mutexattr_getpshared.c
8881         (pthread_mutexattr_getpshared): Likewise.
8882         * nptl/pthread_mutexattr_getrobust.c
8883         (pthread_mutexattr_getrobust): Likewise.
8884         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
8885         Likewise.
8886         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
8887         Likewise.
8888         * nptl/pthread_mutexattr_setprioceiling.c
8889         (pthread_mutexattr_setprioceiling): Likewise.
8890         * nptl/pthread_mutexattr_setprotocol.c
8891         (pthread_mutexattr_setprotocol): Likewise.
8892         * nptl/pthread_mutexattr_setpshared.c
8893         (pthread_mutexattr_setpshared): Likewise.
8894         * nptl/pthread_mutexattr_setrobust.c
8895         (pthread_mutexattr_setrobust): Likewise.
8896         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
8897         Likewise.
8898         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
8899         Likewise.
8900         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
8901         Likewise.
8902         * nptl/pthread_rwlockattr_getkind_np.c
8903         (pthread_rwlockattr_getkind_np): Likewise.
8904         * nptl/pthread_rwlockattr_getpshared.c
8905         (pthread_rwlockattr_getpshared): Likewise.
8906         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
8907         Likewise.
8908         * nptl/pthread_rwlockattr_setkind_np.c
8909         (pthread_rwlockattr_setkind_np): Likewise.
8910         * nptl/pthread_rwlockattr_setpshared.c
8911         (pthread_rwlockattr_setpshared): Likewise.
8912         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
8913         Likewise.
8914         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
8915         Likewise.
8916         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
8917         Likewise.
8918         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
8919         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
8920         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
8921         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
8922         * nptl/sem_close.c (sem_close): Likewise.
8923         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
8924         * nptl/sem_init.c (__old_sem_init): Likewise.
8925         * nptl/sigaction.c (__sigaction): Likewise.
8926         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
8927         * posix/_exit.c (_exit): Likewise.
8928         * posix/alarm.c (alarm): Likewise.
8929         * posix/confstr.c (confstr): Likewise.
8930         * posix/fpathconf.c (__fpathconf): Likewise.
8931         * posix/getgroups.c (__getgroups): Likewise.
8932         * posix/getpgid.c (__getpgid): Likewise.
8933         * posix/group_member.c (__group_member): Likewise.
8934         * posix/pathconf.c (__pathconf): Likewise.
8935         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
8936         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
8937         * posix/setgid.c (__setgid): Likewise.
8938         * posix/setpgid.c (__setpgid): Likewise.
8939         * posix/setuid.c (__setuid): Likewise.
8940         * posix/sleep.c (__sleep): Likewise.
8941         * posix/sysconf.c (__sysconf): Likewise.
8942         * posix/times.c (__times): Likewise.
8943         * posix/uname.c (__uname): Likewise.
8944         * posix/waitid.c (__waitid): Likewise.
8945         * pwd/getpw.c (__getpw): Likewise.
8946         * resolv/base64.c (b64_pton): Likewise.
8947         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
8948         * resolv/gethnamaddr.c (Dprintf): Likewise.
8949         (gethostbyname): Likewise.
8950         (gethostbyname2): Likewise.
8951         (gethostbyaddr): Likewise.
8952         (_sethtent): Likewise.
8953         (_gethtbyname): Likewise.
8954         (_gethtbyname2): Likewise.
8955         (_gethtbyaddr): Likewise.
8956         (map_v4v6_address): Likewise.
8957         (map_v4v6_hostent): Likewise.
8958         (addrsort): Likewise.
8959         (ht_sethostent): Likewise.
8960         (ht_gethostbyname): Likewise.
8961         (ht_gethostbyaddr): Likewise.
8962         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
8963         (inet_net_ntop_ipv4): Likewise.
8964         * resolv/inet_neta.c (inet_neta): Likewise.
8965         * resolv/inet_ntop.c (inet_ntop): Likewise.
8966         (inet_ntop4): Likewise.
8967         (inet_ntop6): Likewise.
8968         * resolv/inet_pton.c (__inet_pton): Likewise.
8969         (inet_pton4): Likewise.
8970         (inet_pton6): Likewise.
8971         * resolv/res_debug.c (loc_aton): Likewise.
8972         (loc_ntoa): Likewise.
8973         * resource/getpriority.c (__getpriority): Likewise.
8974         * resource/getrusage.c (__getrusage): Likewise.
8975         * resource/nice.c (nice): Likewise.
8976         * resource/setpriority.c (__setpriority): Likewise.
8977         * resource/setrlimit64.c (setrlimit64): Likewise.
8978         * resource/vlimit.c (vlimit): Likewise.
8979         * resource/vtimes.c (vtimes): Likewise.
8980         * rt/aio_error.c (aio_error): Likewise.
8981         * rt/aio_return.c (aio_return): Likewise.
8982         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
8983         * signal/kill.c (__kill): Likewise.
8984         * signal/killpg.c (killpg): Likewise.
8985         * signal/raise.c (raise): Likewise.
8986         * signal/sigaction.c (__sigaction): Likewise.
8987         * signal/sigaddset.c (sigaddset): Likewise.
8988         * signal/sigaltstack.c (sigaltstack): Likewise.
8989         * signal/sigandset.c (sigandset): Likewise.
8990         * signal/sigblock.c (__sigblock): Likewise.
8991         * signal/sigdelset.c (sigdelset): Likewise.
8992         * signal/sigempty.c (sigemptyset): Likewise.
8993         * signal/sigfillset.c (sigfillset): Likewise.
8994         * signal/sighold.c (sighold): Likewise.
8995         * signal/sigignore.c (sigignore): Likewise.
8996         * signal/sigintr.c (siginterrupt): Likewise.
8997         * signal/sigisempty.c (sigisemptyset): Likewise.
8998         * signal/sigismem.c (sigismember): Likewise.
8999         * signal/signal.c (signal): Likewise.
9000         * signal/sigorset.c (sigorset): Likewise.
9001         * signal/sigpause.c (__sigpause): Likewise.
9002         * signal/sigpending.c (sigpending): Likewise.
9003         * signal/sigprocmask.c (__sigprocmask): Likewise.
9004         * signal/sigrelse.c (sigrelse): Likewise.
9005         * signal/sigreturn.c (__sigreturn): Likewise.
9006         * signal/sigset.c (sigset): Likewise.
9007         * signal/sigsetmask.c (__sigsetmask): Likewise.
9008         * signal/sigstack.c (sigstack): Likewise.
9009         * signal/sigsuspend.c (__sigsuspend): Likewise.
9010         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9011         * signal/sysv_signal.c (__sysv_signal): Likewise.
9012         * socket/accept.c (accept): Likewise.
9013         * socket/accept4.c (__libc_accept4): Likewise.
9014         * socket/bind.c (__bind): Likewise.
9015         * socket/connect.c (__connect): Likewise.
9016         * socket/getpeername.c (getpeername): Likewise.
9017         * socket/getsockname.c (__getsockname): Likewise.
9018         * socket/getsockopt.c (getsockopt): Likewise.
9019         * socket/listen.c (__listen): Likewise.
9020         * socket/recv.c (__recv): Likewise.
9021         * socket/recvmsg.c (__recvmsg): Likewise.
9022         * socket/send.c (__send): Likewise.
9023         * socket/sendmsg.c (__sendmsg): Likewise.
9024         * socket/shutdown.c (shutdown): Likewise.
9025         * socket/sockatmark.c (sockatmark): Likewise.
9026         * socket/socket.c (__socket): Likewise.
9027         * stdio-common/ctermid.c (ctermid): Likewise.
9028         * stdio-common/cuserid.c (cuserid): Likewise.
9029         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9030         * stdio-common/remove.c (remove): Likewise.
9031         * stdio-common/rename.c (rename): Likewise.
9032         * stdio-common/renameat.c (renameat): Likewise.
9033         * stdio-common/tempname.c (__gen_tempname): Likewise.
9034         * stdio-common/xbug.c (InitBuffer): Likewise.
9035         (AppendToBuffer): Likewise.
9036         (ReadFile): Likewise.
9037         * stdlib/a64l.c (a64l): Likewise.
9038         * stdlib/drand48_r.c (drand48_r): Likewise.
9039         * stdlib/getcontext.c (getcontext): Likewise.
9040         * stdlib/getenv.c (getenv): Likewise.
9041         * stdlib/l64a.c (l64a): Likewise.
9042         * stdlib/llabs.c (llabs): Likewise.
9043         * stdlib/lldiv.c (lldiv): Likewise.
9044         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9045         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9046         * stdlib/putenv.c (putenv): Likewise.
9047         * stdlib/random.c (__srandom): Likewise.
9048         (__initstate): Likewise.
9049         (__setstate): Likewise.
9050         * stdlib/random_r.c (__srandom_r): Likewise.
9051         (__setstate_r): Likewise.
9052         (__random_r): Likewise.
9053         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9054         * stdlib/setcontext.c (setcontext): Likewise.
9055         * stdlib/setenv.c (setenv): Likewise.
9056         (unsetenv): Likewise.
9057         * stdlib/srand48.c (srand48): Likewise.
9058         * stdlib/srand48_r.c (__srand48_r): Likewise.
9059         * stdlib/swapcontext.c (swapcontext): Likewise.
9060         * stdlib/system.c (__libc_system): Likewise.
9061         * stdlib/tst-strtod.c (expand): Likewise.
9062         * stdlib/tst-strtol.c (expand): Likewise.
9063         * stdlib/tst-strtoll.c (expand): Likewise.
9064         * streams/fattach.c (fattach): Likewise.
9065         * streams/fdetach.c (fdetach): Likewise.
9066         * streams/getmsg.c (getmsg): Likewise.
9067         * streams/isastream.c (isastream): Likewise.
9068         * string/ffs.c (__ffs): Likewise.
9069         * string/ffsll.c (ffsll): Likewise.
9070         * string/memcmp.c (memcmp_common_alignment): Likewise.
9071         (memcmp_not_common_alignment): Likewise.
9072         (MEMCMP): Likewise.
9073         * string/memcpy.c (memcpy): Likewise.
9074         * string/memmove.c (MEMMOVE): Likewise.
9075         * string/memset.c (memset): Likewise.
9076         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9077         * string/strchrnul.c (STRCHRNUL): Likewise.
9078         * string/strerror.c (strerror): Likewise.
9079         * string/strndup.c (__strndup): Likewise.
9080         * string/strverscmp.c (__strverscmp): Likewise.
9081         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9082         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9083         (clnttcp_freeres): Likewise.
9084         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9085         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9086         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9087         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9088         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9089         (xdr_callhdr): Likewise.
9090         * sunrpc/rpcinfo.c (udpping): Likewise.
9091         (tcpping): Likewise.
9092         (pstatus): Likewise.
9093         (pmapdump): Likewise.
9094         (brdcst): Likewise.
9095         (deletereg): Likewise.
9096         (getprognum): Likewise.
9097         (getvers): Likewise.
9098         (get_inet_address): Likewise.
9099         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9100         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9101         (svcudp_stat): Likewise.
9102         (svcudp_recv): Likewise.
9103         (svcudp_reply): Likewise.
9104         (svcudp_getargs): Likewise.
9105         (svcudp_freeargs): Likewise.
9106         (svcudp_destroy): Likewise.
9107         * sunrpc/xdr.c (xdr_bytes): Likewise.
9108         (xdr_netobj): Likewise.
9109         (xdr_string): Likewise.
9110         (xdr_wrapstring): Likewise.
9111         * sunrpc/xdr_float.c (xdr_float): Likewise.
9112         (xdr_double): Likewise.
9113         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9114         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9115         * sysvipc/ftok.c (ftok): Likewise.
9116         * sysvipc/msgctl.c (msgctl): Likewise.
9117         * sysvipc/msgget.c (msgget): Likewise.
9118         * sysvipc/msgrcv.c (msgrcv): Likewise.
9119         * sysvipc/msgsnd.c (msgsnd): Likewise.
9120         * sysvipc/semget.c (semget): Likewise.
9121         * sysvipc/semop.c (semop): Likewise.
9122         * sysvipc/shmat.c (shmat): Likewise.
9123         * sysvipc/shmctl.c (shmctl): Likewise.
9124         * sysvipc/shmdt.c (shmdt): Likewise.
9125         * sysvipc/shmget.c (shmget): Likewise.
9126         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9127         * termios/speed.c (cfgetospeed): Likewise.
9128         (cfgetispeed): Likewise.
9129         (cfsetospeed): Likewise.
9130         (cfsetispeed): Likewise.
9131         * termios/tcflow.c (tcflow): Likewise.
9132         * termios/tcflush.c (tcflush): Likewise.
9133         * termios/tcgetattr.c (__tcgetattr): Likewise.
9134         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9135         * termios/tcgetsid.c (tcgetsid): Likewise.
9136         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9137         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9138         * time/adjtime.c (__adjtime): Likewise.
9139         * time/dysize.c (dysize): Likewise.
9140         * time/ftime.c (ftime): Likewise.
9141         * time/getitimer.c (__getitimer): Likewise.
9142         * time/gettimeofday.c (__gettimeofday): Likewise.
9143         * time/gmtime.c (__gmtime_r): Likewise.
9144         (gmtime): Likewise.
9145         * time/localtime.c (__localtime_r): Likewise.
9146         (localtime): Likewise.
9147         * time/offtime.c (__offtime): Likewise.
9148         * time/settimeofday.c (__settimeofday): Likewise.
9149         * time/stime.c (stime): Likewise.
9150         * time/strftime_l.c (tm_diff): Likewise.
9151         (iso_week_days): Likewise.
9152         * time/strptime.c (strptime): Likewise.
9153         * time/time.c (time): Likewise.
9154         * time/timespec_get.c (timespec_get): Likewise.
9155         * time/tzset.c (tzset_internal): Likewise.
9156         (compute_change): Likewise.
9157         (__tz_compute): Likewise.
9158         * wcsmbs/btowc.c (__btowc): Likewise.
9159         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9160         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9161         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9162         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9163         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9164         * wcsmbs/wcscat.c (__wcscat): Likewise.
9165         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9166         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9167         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9168         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9169         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9170         * wcsmbs/wcslen.c (__wcslen): Likewise.
9171         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9172         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9173         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9174         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9175         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9176         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9177         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9178         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9179         * wcsmbs/wcstok.c (wcstok): Likewise.
9180         * wcsmbs/wctob.c (wctob): Likewise.
9181         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9182         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9183         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9184         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9185         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9186         * wcsmbs/wmemset.c (__wmemset): Likewise.
9187         * wctype/wcfuncs.c (__towlower): Likewise.
9188         (__towupper): Likewise.
9189
9190         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9191         (lll_unlock_elision): Add adapt_count parameter.
9192
9193 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9194
9195         * sysdeps/nptl/configure.ac: Do not give errors based on the
9196         results of top-level configure tests.
9197         * sysdeps/nptl/configure: Regenerated.
9198
9199         * configure.ac (libc_cv_Bgroup): Remove configure test.
9200         * configure: Regenerated.
9201         * config.make.in (have-Bgroup): Remove variable.
9202
9203         * configure.ac (sizeof_long_double): Remove configure test.
9204         * configure: Regenerated.
9205         * config.make.in (sizeof-long-double): Remove variable.
9206
9207         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9208         * configure: Regenerated.
9209         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9210         variable.
9211         (exceptions): Likewise.
9212         * sysdeps/arm/configure: Regenerated.
9213         * config.make.in (exceptions): Remove variable.
9214         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9215         $(exceptions).
9216         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9217         (CFLAGS-vdprintf_chk.c): Likewise.
9218         (CFLAGS-printf_chk.c): Likewise.
9219         (CFLAGS-fprintf_chk.c): Likewise.
9220         (CFLAGS-vprintf_chk.c): Likewise.
9221         (CFLAGS-vfprintf_chk.c): Likewise.
9222         (CFLAGS-gets_chk.c): Likewise.
9223         (CFLAGS-fgets_chk.c): Likewise.
9224         (CFLAGS-fgets_u_chk.c): Likewise.
9225         (CFLAGS-fread_chk.c): Likewise.
9226         (CFLAGS-fread_u_chk.c): Likewise.
9227         (CFLAGS-wprintf_chk.c): Likewise.
9228         (CFLAGS-fwprintf_chk.c): Likewise.
9229         (CFLAGS-vwprintf_chk.c): Likewise.
9230         (CFLAGS-vfwprintf_chk.c): Likewise.
9231         (CFLAGS-fgetws_chk.c): Likewise.
9232         (CFLAGS-fgetws_u_chk.c): Likewise.
9233         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9234         (CFLAGS-fputc.c): Likewise.
9235         (CFLAGS-fputwc.c): Likewise.
9236         (CFLAGS-freopen64.c): Likewise.
9237         (CFLAGS-freopen.c): Likewise.
9238         (CFLAGS-fseek.c): Likewise.
9239         (CFLAGS-fseeko64.c): Likewise.
9240         (CFLAGS-fseeko.c): Likewise.
9241         (CFLAGS-ftello64.c): Likewise.
9242         (CFLAGS-ftello.c): Likewise.
9243         (CFLAGS-fwide.c): Likewise.
9244         (CFLAGS-genops.c): Likewise.
9245         (CFLAGS-getc.c): Likewise.
9246         (CFLAGS-getchar.c): Likewise.
9247         (CFLAGS-getwc.c): Likewise.
9248         (CFLAGS-getwchar.c): Likewise.
9249         (CFLAGS-iofclose.c): Likewise.
9250         (CFLAGS-iofflush.c): Likewise.
9251         (CFLAGS-iofgetpos64.c): Likewise.
9252         (CFLAGS-iofgetpos.c): Likewise.
9253         (CFLAGS-iofgets.c): Likewise.
9254         (CFLAGS-iofgetws.c): Likewise.
9255         (CFLAGS-iofputs.c): Likewise.
9256         (CFLAGS-iofputws.c): Likewise.
9257         (CFLAGS-iofread.c): Likewise.
9258         (CFLAGS-iofsetpos64.c): Likewise.
9259         (CFLAGS-iofsetpos.c): Likewise.
9260         (CFLAGS-ioftell.c): Likewise.
9261         (CFLAGS-iofwrite.c): Likewise.
9262         (CFLAGS-iogetdelim.c): Likewise.
9263         (CFLAGS-iogetline.c): Likewise.
9264         (CFLAGS-iogets.c): Likewise.
9265         (CFLAGS-iogetwline.c): Likewise.
9266         (CFLAGS-ioputs.c): Likewise.
9267         (CFLAGS-ioseekoff.c): Likewise.
9268         (CFLAGS-ioseekpos.c): Likewise.
9269         (CFLAGS-iosetbuffer.c): Likewise.
9270         (CFLAGS-iosetvbuf.c): Likewise.
9271         (CFLAGS-ioungetc.c): Likewise.
9272         (CFLAGS-ioungetwc.c): Likewise.
9273         (CFLAGS-oldfileops.c): Likewise.
9274         (CFLAGS-oldiofclose.c): Likewise.
9275         (CFLAGS-oldiofgetpos64.c): Likewise.
9276         (CFLAGS-oldiofgetpos.c): Likewise.
9277         (CFLAGS-oldiofsetpos64.c): Likewise.
9278         (CFLAGS-oldiofsetpos.c): Likewise.
9279         (CFLAGS-peekc.c): Likewise.
9280         (CFLAGS-putc.c): Likewise.
9281         (CFLAGS-putchar.c): Likewise.
9282         (CFLAGS-putwc.c): Likewise.
9283         (CFLAGS-putwchar.c): Likewise.
9284         (CFLAGS-rewind.c): Likewise.
9285         (CFLAGS-wfileops.c): Likewise.
9286         (CFLAGS-wgenops.c): Likewise.
9287         (CFLAGS-oldiofopen.c): Likewise.
9288         (CFLAGS-iofopen.c): Likewise.
9289         (CFLAGS-iofopen64.c): Likewise.
9290         (CFLAGS-oldtmpfile.c): Likewise.
9291         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9292         (CFLAGS-fprintf.c): Likewise.
9293         (CFLAGS-printf.c): Likewise.
9294         (CFLAGS-vfwprintf.c): Likewise.
9295         (CFLAGS-vfscanf.c): Likewise.
9296         (CFLAGS-vfwscanf.c): Likewise.
9297         (CFLAGS-fscanf.c): Likewise.
9298         (CFLAGS-scanf.c): Likewise.
9299         (CFLAGS-isoc99_vfscanf.c): Likewise.
9300         (CFLAGS-isoc99_vscanf.c): Likewise.
9301         (CFLAGS-isoc99_fscanf.c): Likewise.
9302         (CFLAGS-isoc99_scanf.c): Likewise.
9303         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9304         (CFLAGS-isoc99_fwscanf.c): Likewise.
9305         (CFLAGS-isoc99_vwscanf.c): Likewise.
9306         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9307
9308         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9309         after mkstemp64.
9310         * login/tst-utmp.c (do_prepare): Likewise.
9311         * rt/tst-aio.c (do_prepare): Likewise.
9312         * rt/tst-aio64.c (do_prepare): Likewise.
9313
9314 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9315
9316         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9317         (__lll_lock_elision): Remove adapt_count decrement...
9318         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9319         (__lll_trylock_elision): Likewise.
9320         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9321         (__lll_unlock_elision): ... to here. And utilize
9322         new adapt_count parameter.
9323         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9324         (__lll_unlock_elision): Update to include adapt_count
9325         parameter.
9326         (lll_unlock_elision): Pass pointer to adapt_count
9327         variable.
9328
9329 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9330
9331         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9332         Add elision adapt_count parameter to list of arguments.
9333         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9334         (lll_unlock_elision): Update with new parameter list
9335         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9336         (lll_unlock_elision): Likewise.
9337         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9338         (lll_unlock_elision): Likewise.
9339
9340 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9341
9342         [BZ #19122]
9343         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9344         attribute_hidden.
9345
9346         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9347         attribute_hidden.
9348         [IS_IN (rtld)] (__strdup): Likewise.
9349         [IS_IN (rtld)] (__strerror_r): Likewise.
9350         [IS_IN (rtld)] (__strsep_g): Likewise.
9351         [IS_IN (rtld)] (memchr): Likewise.
9352         [IS_IN (rtld)] (memcmp): Likewise.
9353         [IS_IN (rtld)] (memcpy): Likewise.
9354         [IS_IN (rtld)] (memmove): Likewise.
9355         [IS_IN (rtld)] (memset): Likewise.
9356         [IS_IN (rtld)] (rawmemchr): Likewise.
9357         [IS_IN (rtld)] (stpcpy): Likewise.
9358         [IS_IN (rtld)] (strchr): Likewise.
9359         [IS_IN (rtld)] (strcmp): Likewise.
9360         [IS_IN (rtld)] (strlen): Likewise.
9361         [IS_IN (rtld)] (strnlen): Likewise.
9362         [IS_IN (rtld)] (strsep): Likewise.
9363
9364         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9365         attribute_hidden.
9366         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9367
9368         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9369         attribute_hidden.
9370         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9371
9372         * include/setjmp.h (__longjmp): Add attribute_hidden.
9373         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9374
9375         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9376         Add attribute_hidden.
9377
9378         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9379         [IS_IN (rtld)] (__open): Likewise.
9380         [IS_IN (rtld)] (__fcntl): Likewise.
9381
9382         * include/dirent.h (__opendirat): Add attribute_hidden.
9383         (__getdents): Likewise.
9384         (__getdents64): Likewise.
9385         (__alloc_dir): Likewise.
9386         [IS_IN (rtld)] (__closedir): Likewise.
9387         [IS_IN (rtld)] (__fdopendir): Likewise.
9388         [IS_IN (rtld)] (__readdir): Likewise.
9389         [IS_IN (rtld)] (__readdir64): Likewise.
9390         [IS_IN (rtld)] (__rewinddir): Likewise.
9391
9392         * include/dlfcn.h (_dl_catch_error): Moved to ...
9393         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9394         attribute_hidden.
9395
9396         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9397         (_itoa_word): Likewise.
9398
9399         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9400         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9401         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9402         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9403         (_dl_higher_prime_number): Likewise.
9404         (_dl_debug_printf_c): Likewise.
9405         (_dl_signal_cerror): Likewise.
9406         (_dl_receive_error): Likewise.
9407         (_dl_reloc_bad_type): Likewise.
9408         (_dl_resolve_conflicts): Likewise.
9409         (_dl_check_all_versions): Likewise.
9410         (_dl_check_map_versions): Likewise.
9411         (_dl_sort_fini): Likewise.
9412         (_dl_debug_initialize): Likewise.
9413         (_dl_init_paths): Likewise.
9414         (_dl_show_auxv): Likewise.
9415         (_dl_next_ld_env_entry): Likewise.
9416         (_dl_important_hwcaps): Likewise.
9417         (_dl_load_cache_lookup): Likewise.
9418         (_dl_update_slotinfo): Likewise.
9419         (_dl_show_scope): Likewise.
9420
9421         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9422         attribute_hidden.
9423         (_wordcopy_fwd_dest_aligned): Likewise.
9424         (_wordcopy_bwd_aligned): Likewise.
9425         (_wordcopy_bwd_dest_aligned): Likewise.
9426
9427         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9428         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9429         Likewise.
9430         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9431         Likewise.
9432         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9433
9434 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9435
9436         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9437         GCC 5 requirement.
9438
9439 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9440
9441         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9442         test.
9443         * sysdeps/i386/configure: Regenerated.
9444         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9445         code unconditional.
9446
9447         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9448         test.
9449         (libc_cv_asm_popsection_directive): Likewise.
9450         * configure: Regenerated.
9451         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9452         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9453         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9454         (__make_section_unallocated): Make definition unconditional.
9455         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9456         Remove conditional definition.
9457         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9458         (__make_section_unallocated): Likewise.
9459
9460         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9461         * configure: Regenerated.
9462         * config.make.in (static-libgcc): Remove variable.
9463         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9464         $(static-libgcc).
9465         (build-module-helper): Likewise.
9466
9467         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9468         * configure: Regenerated.
9469
9470 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9471
9472         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9473         (struct char_buffer): New type.
9474         (char_buffer_start, char_buffer_size, char_buffer_error)
9475         (char_buffer_rewind, char_buffer_add): New functions.
9476         (ADDW): Remove macro, replaced by the char_buffer_add function.
9477         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9478         of extend_alloca.  Make control flow more explicit.
9479
9480 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9481
9482         [BZ #19137]
9483         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9484         Add -fomit-frame-pointer.
9485         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9486
9487 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9490         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9491         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9492         only if !__GNUC_PREREQ (5,0).
9493         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9494         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9495         (INTERNAL_SYSCALL_NCS): Likewise.
9496         (LOADREGS_0): New macro for GCC 5.
9497         (ASMARGS_0): Likewise.
9498         (LOADREGS_1): Likewise.
9499         (ASMARGS_1): Likewise.
9500         (LOADREGS_2): Likewise.
9501         (ASMARGS_2): Likewise.
9502         (LOADREGS_3): Likewise.
9503         (ASMARGS_3): Likewise.
9504         (LOADREGS_4): Likewise.
9505         (ASMARGS_4): Likewise.
9506         (LOADREGS_5): Likewise.
9507         (ASMARGS_5): Likewise.
9508         (LOADREGS_6): Likewise.
9509         (ASMARGS_6): Likewise.
9510
9511 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9512
9513         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9514         -fomit-frame-pointer.
9515         (CFLAGS-mmap64.c): Likewise.
9516         (CFLAGS-semtimedop.c): Likewise.
9517         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9518         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9519         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9520         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9521
9522 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9523
9524         [BZ #18928]
9525         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9526         _dl_pointer_guard member.
9527         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9528         initializer.
9529         (security_init): Always set up pointer guard.
9530         (process_envvars): Do not process LD_POINTER_GUARD.
9531
9532 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9533
9534         [BZ #19134]
9535         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9536         (.LC2): Likewise.
9537         (.LC3): Likewise.
9538         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9539
9540 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9541
9542         [BZ #19129]
9543         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9544         r0 and r1.
9545
9546 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9547
9548         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9549
9550 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9551
9552         * include/stap-probe.h: Fix macro definition formatting.
9553
9554 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9555
9556         [BZ #19074]
9557         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9558         load and store num_ifs.
9559
9560 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9561
9562         [BZ #18822]
9563         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9564         (__sched_getaffinity_new): Add libc_hidden_proto and
9565         libc_hidden_def.
9566
9567 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9568
9569         [BZ #19007]
9570         * scripts/localplt.awk: Also allow GOT references.
9571         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9572         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9573         with "+ REL R_386_GLOB_DAT".
9574         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9575         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9576
9577 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9578
9579         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9580         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9581         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9582         Likewise.
9583         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9584         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9585         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9586         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9587         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9588         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9589         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9590         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9591         Likewise.
9592         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9593
9594 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9595
9596         [BZ #19125]
9597         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9598         <math_private.h> and <stdint.h>.
9599         (__llround): Avoid conversions to and from long long int, and
9600         subtractions, where those might raise spurious exceptions.
9601         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9602         <math_private.h> and <stdint.h>.
9603         (__llroundf): Avoid conversions to and from long long int, and
9604         subtractions, where those might raise spurious exceptions.
9605
9606 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9607
9608         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9609         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9610         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9611         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9612         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9613         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9614         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9615         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9616         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9617         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9618         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9619         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9620         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9621         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9622         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9623         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9624         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9625         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9626         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9627         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9628         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9629         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9630         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9631         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9632         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9633         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9634         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9635         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9636         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9637         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9638         (__xstat64_conv): Likewise.
9639         (__xstat32_conv): Likewise.
9640
9641 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9642
9643         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9644         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9645         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9646         <sysdeps/unix/sysv/linux/sysdep.h>.
9647         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9648         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9649         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9650         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9651         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9652         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9653         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9654         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9655         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9658         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9659         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9660         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9661         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9662         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9663         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9664         (sysdep-dl-routines): Add sysdep.
9665         [$(subdir) == nptl] (libpthread-routines): Likewise.
9666         [$(subdir) == rt] (librt-routines): Likewise.
9667         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9668         PIC when branching to SYSCALL_ERROR_LABEL.
9669         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9670         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9671         <sysdeps/unix/sysv/linux/sysdep.h>.
9672         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9673         (SYSCALL_ERROR_ERRNO): Removed.
9674         (SYSCALL_ERROR_HANDLER): Changed to empty.
9675         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9676         (__syscall_error): New prototype.
9677         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9678         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9679
9680 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9681
9682         [BZ #19124]
9683         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9684         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9685         _dl_runtime_resolve_avx.
9686         (_dl_runtime_profile_avx512): Make it a hidden alias of
9687         _dl_runtime_profile_avx.
9688
9689 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9690
9691         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9692         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9693         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9694         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9695
9696         [BZ #16422]
9697         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9698         New configure test.
9699         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9700         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9701         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9702         <math_private.h> and <stdint.h>.
9703         (__llrint): Avoid conversions to long long int where those might
9704         raise spurious exceptions.
9705         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9706         <math_private.h> and <stdint.h>.
9707         (__llrintf): Avoid conversions to long long int where those might
9708         raise spurious exceptions.
9709
9710 2015-10-12  Andreas Schwab  <schwab@suse.de>
9711
9712         [BZ #18969]
9713         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9714         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9715         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9716         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9717         $(gen-locales).
9718         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9719         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9720         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9721         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9722         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9723         $(gen-locales).
9724         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9725         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9726         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9727         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9728         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9729         ($(objpfx)tst-ftell-active-handler.out)
9730         ($(objpfx)tst-ftell-append.out)
9731         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9732         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9733         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9734         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9735         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9736         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9737         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9738         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9739         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9740         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9741         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9742         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9743         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9744         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9745         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9746         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9747         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9748         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9749         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9750         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9751         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9752         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9753         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9754         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9755         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9756         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9757         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9758         $(gen-locales).
9759         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9760         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9761         $(gen-locales).
9762         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9763         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9764         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9765         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9766         $(gen-locales).
9767         * libio/tst_wprintf2.c (main): Use explicit locale.
9768         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9769
9770 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9771
9772         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9773         __msg_sig_post.
9774         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9775
9776 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9777
9778         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9779         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9780
9781         * sysdeps/arm/libm-test-ulps: Regenerated.
9782
9783         [BZ #15470]
9784         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9785
9786         [BZ #16399]
9787         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9788         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9789         and <fix-fp-int-convert-overflow.h>.
9790         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9791         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9792         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9793         and <fix-fp-int-convert-overflow.h>.
9794         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9795         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9796         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9797         <fix-fp-int-convert-overflow.h>.
9798         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9799         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9800         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9801         <fix-fp-int-convert-overflow.h>.
9802         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9803         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9804         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9805         and <fix-fp-int-convert-overflow.h>.
9806         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9807         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9808         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9809         <limits.h> and <fix-fp-int-convert-overflow.h>.
9810         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9811         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9812         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9813         and <fix-fp-int-convert-overflow.h>.
9814         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9815         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9816         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9817         and <fix-fp-int-convert-overflow.h>.
9818         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9819         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9820         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9821
9822 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9823
9824         [BZ #18589]
9825         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9826         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9827         $(gen-locales).
9828
9829 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9830             Phil Blundell <pb@pbcl.net>
9831
9832         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9833         * nptl/tst-cancel26.c: New file.
9834         * nptl/tst-cancel27.c: Likewise.
9835
9836 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9837
9838         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9839         __ILP32__ isn't defined.
9840         (lrint): Likewise.
9841         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
9842         (lrintf): Likewise.
9843         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
9844         (lrintl): Likewise.
9845         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
9846         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
9847         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
9848
9849 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9850
9851         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9852         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9853
9854         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
9855         file.
9856         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
9857         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
9858
9859 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9860
9861         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
9862         configure test.
9863         * sysdeps/i386/configure: Regenerated.
9864         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
9865         configure test.
9866         * sysdeps/x86_64/configure: Regenerated.
9867         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
9868         Make code unconditional.
9869
9870         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
9871         test.
9872         * sysdeps/i386/configure: Regenerated.
9873         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
9874         test.
9875         * sysdeps/x86_64/configure: Regenerated.
9876         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
9877         Make code unconditional.
9878         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
9879         Likewise.
9880         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
9881         Likewise.
9882         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9883         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
9884         code unconditional.
9885         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9886         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
9887         code unconditional.
9888         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9889         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
9890         code unconditional.
9891         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
9892         code unconditional.
9893         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9894         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
9895         code unconditional.
9896         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9897         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
9898         code unconditional.
9899         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9900         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
9901         code unconditional.
9902         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9903         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
9904         code unconditional.
9905         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9906         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
9907
9908         [BZ #19095]
9909         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
9910         mantissa to long int before shifting left.
9911
9912 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9913
9914         [BZ #19094]
9915         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
9916         <limits.h>.
9917         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9918         when result overflows but exception would not result from cast.
9919         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
9920         <limits.h>.
9921         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9922         when result overflows but exception would not result from cast.
9923         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
9924         <limits.h>.
9925         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9926         when result overflows but exception would not result from cast.
9927         * sysdeps/ieee754/ldbl-96/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-96/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         * math/libm-test.inc (lrint_test_data): Add more tests.
9936         (llrint_test_data): Likewise.
9937
9938 2015-10-08  Roland McGrath  <roland@hack.frob.com>
9939
9940         [BZ #18872]
9941         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
9942         Move out from under [$(run-built-tests) = yes] conditional.
9943         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
9944         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
9945
9946 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
9947
9948         [BZ #18589]
9949         * string/Makefile (tests): Add bug-strcoll2.
9950         (LOCALES): Add cs_CZ.UTF-8.
9951         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
9952
9953         [BZ #18589]
9954         * string/bug-strcoll2.c: New file.
9955         * locale/categories.def: Revert commit
9956         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
9957         * locale/langinfo.h: Likewise.
9958         * locale/localeinfo.h: Likewise.
9959         * locale/C-collate.c: Likewise.
9960         * locale/programs/ld-collate.c (collate_output): Likewise.
9961         * string/strcoll_l.c (STRDIFF): Likewise.
9962         (STRCOLL): Likewise.
9963         * wcsmbs/wcscoll_l.c: Likewise.
9964
9965 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9966
9967         * math/libm-test.inc (lround_test_data): Do not expect the absence
9968         of "inexact" for some tests with non-integer arguments.
9969         (llround_test_data): Likewise.
9970
9971         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
9972         test.
9973         (libc_cv_cc_sse2avx): Likewise.
9974         * sysdeps/i386/configure: Regenerated.
9975         * sysdeps/i386/i686/multiarch/Makefile
9976         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
9977         [$(subdir) = math].
9978         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
9979         code unconditional.
9980         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
9981         Likewise.
9982         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
9983         Likewise.
9984         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
9985         Likewise.
9986         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
9987         test.
9988         (libc_cv_cc_sse2avx): Likewise.
9989         * sysdeps/x86_64/configure: Regenerated.
9990         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
9991         unconditional.
9992         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
9993         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
9994         unconditional.
9995         (_dl_runtime_profile)
9996         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
9997         conditional code.
9998         * sysdeps/x86_64/fpu/multiarch/Makefile
9999         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10000         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10001         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10002         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10003         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10004         * sysdeps/x86_64/fpu/multiarch/e_log.c
10005         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10006         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10007         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10008         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10009         Likewise.
10010         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10011         Likewise.
10012         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10013         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10014         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10015         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10016         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10017         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10018         (HAVE_SSE2AVX_SUPPORT): Likewise.
10019
10020 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10021
10022         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10023         instead of #pragma optimize.
10024
10025 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10026
10027         [BZ #17195]
10028         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10029         as is similarly done in systrim and _int_free already.
10030
10031 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10032
10033         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10034
10035 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10036
10037         [BZ #19088]
10038         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10039         <limits.h>.
10040         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10041         overflows but exception would not result from cast.
10042         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10043         and <limits.h>.
10044         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10045         overflows but exception would not result from cast.
10046         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10047         <limits.h>.
10048         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10049         overflows but exception would not result from cast.
10050         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10051         <limits.h>.
10052         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10053         overflows but exception would not result from cast.
10054         * sysdeps/ieee754/ldbl-96/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-96/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         * math/libm-test.inc (lround_test_data): Add more tests.
10063         (llround_test_data): Likewise.
10064
10065 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10066
10067         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10068         (CFLAGS-ialloc.c): Ditto.
10069         (CFLAGS-scheck.c): Ditto.
10070
10071 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10072
10073         [BZ #19086]
10074         * manual/filesys.texi (Storage Allocation): Fix argument order for
10075         posix_fallocate64.
10076
10077 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10078
10079         [BZ #19085]
10080         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10081         exponent below 48 inside case for non-overflowing exponent.
10082         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10083
10084 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10085
10086         * iconvdata/cp737.h (from_idx): Add const.
10087         * iconvdata/cp775.h (from_idx): Likewise.
10088
10089 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10090
10091         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10092         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10093         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10094
10095         [BZ #19079]
10096         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10097         file, conditioned on [!_LP64].
10098         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10099         [!_LP64] (__lround): Do not define as function or alias.
10100         [!_LP64] (lround): Likewise.
10101         [!_LP64] (__lroundl): Likewise.
10102         [!_LP64] (lroundl): Likewise.
10103         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10104         macro.
10105         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10106         Likewise.
10107
10108 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10109
10110         * math/libm-test.inc (lrint_test_data): Add more tests.
10111         (llrint_test_data): Likewise.
10112         (lround_test_data): Likewise.
10113         (llround_test_data): Likewise.
10114
10115         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10116         (llrint_test_data): Add tests used for lrint.
10117
10118         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10119         test.
10120         * sysdeps/i386/configure: Regenerated.
10121         * sysdeps/i386/i686/multiarch/Makefile
10122         [$(config-cflags-sse4) = yes]: Make code unconditional.
10123         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10124         Likewise.
10125         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10126         Likewise.
10127         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10128         test.
10129         * sysdeps/x86_64/configure: Regenerated.
10130         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10131         Make code unconditional.
10132         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10133         Likewise.
10134         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10135         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10136
10137         * scripts/rpm2dynsym.sh: Remove file.
10138
10139 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10140
10141         * configure.ac (libc_cv_cxx_thread_local): Define.
10142         * configure: Regenerate.
10143         * config.make.in (have-cxx-thread_local): Define.
10144         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10145         (LDLIBS-tst-thread_local1): Define.
10146         (tests): Add tst-thread_local1.
10147         [have-cxx-thread_local != yes] (tests-unsupported): Add
10148         tst-thread_local1.
10149         * nptl/tst-thread_local1.cc: New file.
10150
10151 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10152
10153         [BZ #19078]
10154         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10155         (u_thres): Likewise.
10156         (__expl): Determine whether to call __kernel_standard_l based on
10157         value of result, not argument.
10158
10159         * math/libm-test.inc (scalb_test_data): Add more expectations for
10160         the "inexact" exception.
10161
10162         [BZ #19077]
10163         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10164         0.0L for argument 1.0L.
10165
10166         [BZ #19076]
10167         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10168         constant 0.0L when computing infinite result.
10169
10170 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10171
10172         [BZ #10432]
10173         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10174         malloc_usable_size.
10175
10176 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10177
10178         [BZ #19018]
10179         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10180         Mangle function pointer before storing it.
10181         (__call_tls_dtors): Demangle function pointer before calling it.
10182
10183 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10184
10185         [BZ #19012]
10186         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10187         Clean up on failure.
10188
10189 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10190
10191         [BZ #19071]
10192         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10193         long int variable to store possibly incremented high part of
10194         mantissa.
10195         * math/libm-test.inc (lround_test_data): Add tests used for
10196         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10197         for tests requiring 64-bit long.  Do not condition tests on
10198         [TEST_FLOAT] unnecessarily.
10199         (llround_test_data): Add tests used for lround.  Add another
10200         expectation for the "inexact" exception.  Do not condition tests
10201         on [TEST_FLOAT] unnecessarily.
10202
10203         [BZ #887]
10204         [BZ #19049]
10205         [BZ #19050]
10206         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10207         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10208         <fix-int-fp-convert-zero.h>.
10209         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10210         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10211         <fix-int-fp-convert-zero.h>.
10212         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10213         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10214         <fix-int-fp-convert-zero.h>.
10215         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10216         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10217         <fix-int-fp-convert-zero.h>.
10218         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10219         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10220         <fix-int-fp-convert-zero.h>.
10221         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10222         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10223         <fix-int-fp-convert-zero.h>.
10224         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10225         * sysdeps/ieee754/flt-32/s_erff.c: Include
10226         <fix-int-fp-convert-zero.h>.
10227         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10228         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10229         <fix-int-fp-convert-zero.h>.
10230         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10231         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10232         <fix-int-fp-convert-zero.h>.
10233         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10234         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10235         <fix-int-fp-convert-zero.h>.
10236         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10237         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10238         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10239         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10240         file.
10241         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10242
10243 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10244
10245         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10246
10247 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10248
10249         [BZ #19059]
10250         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10251         overflowing computation.
10252         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10253         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10254         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10255         Likewise.
10256         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10257         Likewise.
10258         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10259         Likewise.
10260         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10261         Likewise.
10262         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10263         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10264         Likewise.
10265         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10266         Likewise.
10267         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10268
10269         * nss/rewrite_field.c (__nss_rewrite_field): Use
10270         internal_function.
10271         * nss/valid_field.c (__nss_valid_field): Likewise.
10272         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10273
10274 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10275
10276         [BZ #18724]
10277         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10278         (__nss_invalid_field_characters, __nss_valid_field)
10279         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10280         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10281         tst-field.c: New file.
10282         * nss/Makefile (routines): Add valid_field, rewrite_field.
10283         (tests-static): Define unconditionally.
10284         (tests): Include tests-static.
10285         [build-static-nss] (tests-static): Use append.
10286         [build-static-nss] (tests): Remove modification.
10287         * nss/getent.c (print_group): Call putgrent.  Report error.
10288         (print_gshadow): Call putsgent.  Report error.
10289         (print_passwd): Call putpwent.  Report error.
10290         (print_shadow): Call putspent.  Report error.
10291         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10292         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10293         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10294         name, password, directory, shell fields for valid syntax.  Rewrite
10295         GECOS field to match syntax.
10296         * pwd/Makefile (tests): Add tst-putpwent.
10297         * pwd/tst-putpwent.c: New file.
10298         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10299         Check grName, grpasswd, gr_mem fields for valid syntax.
10300         Change loop variable i to size_t.
10301         * grp/Makefile (tests): Add tst-putgrent.
10302         * grp/tst-putgrent.c: New file.
10303         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10304         valid syntax.
10305         * shadow/Makefile (tests): Add tst-putspent.
10306         * shadow/tst-putspent.c: New file.
10307         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10308         sg_mem fields for valid syntax.
10309         * gshadow/Makefile (tests): Add tst-putsgent.
10310         * gshadow/tst-putsgent.c: New file.
10311
10312 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10313
10314         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10315         assembly instructions.
10316
10317 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10318
10319         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10320         prefix from operands.
10321
10322 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10323
10324         [BZ #16347]
10325         [BZ #19046]
10326         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10327         <libc-internal.h>.
10328         (MAXLGM): Do not use diagnostic control macros.
10329         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10330         threshold for ldbl-128ibm.
10331         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10332         instead of multiplying by log then subtracting.
10333         * math/auto-libm-test-in: Add more tests of lgamma.
10334         * math/auto-libm-test-out: Regenerated.
10335
10336         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10337         (TYPE_HEX_DIG): Likewise.
10338         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10339         precisions when printing floating-point numbers.
10340         (check_float_internal): Likewise.
10341
10342 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10343
10344         [BZ #16620]
10345         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10346         of log (10) rounded downward to 48 bits.
10347         (log10_low): Use corresponding low part of log (10).
10348
10349         [BZ #19032]
10350         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10351         compute result as (x - x) / (x - x) not as 0 / 0.
10352         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10353         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10354
10355         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10356         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10357         and expm1.
10358         * math/auto-libm-test-out: Regenerated.
10359         * math/libm-test.inc (acos_test_data): Add more tests.
10360         (asin_test_data): Likewise.
10361         (asinh_test_data): Likewise.
10362         (atan_test_data): Likewise.
10363         (atanh_test_data): Likewise.
10364         (atan2_test_data): Likewise.
10365         (cbrt_test_data): Likewise.
10366         (ceil_test_data): Likewise.
10367         (copysign_test_data): Likewise.
10368         (cos_test_data): Likewise.
10369         (cosh_test_data): Likewise.
10370         (erf_test_data): Likewise.
10371         (erfc_test_data): Likewise.
10372         (exp_test_data): Likewise.
10373         (exp10_test_data): Likewise.
10374         (exp2_test_data): Likewise.
10375         (expm1_test_data): Likewise.
10376         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10377
10378 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10379
10380         [BZ #19006]
10381         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10382         to ...
10383         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10384         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10385         to ...
10386         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10387         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10388         to ...
10389         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10390         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10391         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10392         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10393         to ...
10394         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10395         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10396         Moved to ...
10397         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10398         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10399         Moved to ...
10400         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10401         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10402         to ...
10403         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10404         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10405         Moved to ...
10406         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10407         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10408         to ...
10409         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10410         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10411         Removed.
10412         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10413         Likewise.
10414         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10415         Likewise.
10416         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10417         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10418         Likewise.
10419         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10420         Likewise.
10421         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10422         Likewise.
10423         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10424         Likewise.
10425         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10426         Likewise.
10427         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10428         Likewise.
10429         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10430         Likewise.
10431         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10432         Likewise.
10433         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10434         Likewise.
10435         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10436         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10437         Likewise.
10438         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10439         Likewise.
10440         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10441         Likewise.
10442         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10443         Likewise.
10444         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10445         Likewise.
10446         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10447         Replace ../i486/pthread_cond_timedwait.S with
10448         ../pthread_cond_timedwait.S.
10449
10450 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10451
10452         * math/libm-test.inc (acos_test_data): Refine expectations for
10453         errno and "inexact" exceptions.
10454         (acosh_test_data): Likewise.
10455         (asin_test_data): Likewise.
10456         (asinh_test_data): Likewise.
10457         (atan_test_data): Likewise.
10458         (atanh_test_data): Likewise.
10459         (atan2_test_data): Likewise.
10460         (cbrt_test_data): Likewise.
10461         (ceil_test_data): Likewise.
10462         (copysign_test_data): Likewise.
10463         (cosh_test_data): Likewise.
10464         (erf_test_data): Likewise.
10465         (erfc_test_data): Likewise.
10466         (exp_test_data): Likewise.
10467         (exp10_test_data): Likewise.
10468         (exp2_test_data): Likewise.
10469         (expm1_test_data): Likewise.
10470         (fabs_test_data): Likewise.
10471         (floor_test_data): Likewise.
10472         (fma_test_data): Likewise.
10473         (fmax_test_data): Likewise.
10474         (fmin_test_data): Likewise.
10475         (fmod_test_data): Likewise.
10476         (fpclassify_test_data): Likewise.
10477         (frexp_test_data): Likewise.
10478         (hypot_test_data): Likewise.
10479         (ilogb_test_data): Likewise.
10480         (isgreater_test_data): Likewise.
10481         (isgreaterequal_test_data): Likewise.
10482         (isinf_test_data): Likewise.
10483         (isless_test_data): Likewise.
10484         (islessequal_test_data): Likewise.
10485         (islessgreater_test_data): Likewise.
10486         (isnan_test_data): Likewise.
10487         (isnormal_test_data): Likewise.
10488         (issignaling_test_data): Likewise.
10489         (isunordered_test_data): Likewise.
10490         (j0_test_data): Likewise.
10491         (j1_test_data): Likewise.
10492         (jn_test_data): Likewise.
10493         (lgamma_test_data): Likewise.
10494         (lrint_test_data): Likewise.
10495         (llrint_test_data): Likewise.
10496         (log_test_data): Likewise.
10497         (log10_test_data): Likewise.
10498         (log1p_test_data): Likewise.
10499         (log2_test_data): Likewise.
10500         (logb_test_data): Likewise.
10501         (lround_test_data): Likewise.
10502         (llround_test_data): Likewise.
10503         (modf_test_data): Likewise.
10504         (nearbyint_test_data): Likewise.
10505         (nextafter_test_data): Likewise.
10506         (nexttoward_test_data): Likewise.
10507         (pow_test_data): Likewise.
10508         (remainder_test_data): Likewise.
10509         (remquo_test_data): Likewise.
10510         (rint_test_data): Likewise.
10511         (round_test_data): Likewise.
10512         (signbit_test_data): Likewise.
10513         (sinh_test_data): Likewise.
10514         (sqrt_test_data): Likewise.
10515         (tanh_test_data): Likewise.
10516         (tgamma_test_data): Likewise.
10517         (trunc_test_data): Likewise.
10518         (y0_test_data): Likewise.
10519         (y1_test_data): Likewise.
10520         (yn_test_data): Likewise.
10521         (significand_test_data): Likewise.
10522
10523 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10524
10525         * manual/filesys.texi (Storage Allocation): Document that
10526         posix_fallocate emulation fails when fd is open with O_WRONLY.
10527
10528 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10529
10530         [BZ #19016]
10531         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10532         allow more cases with X^2 + Y^2 >= 0.5.
10533         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10534         normal element in sum instead of special-casing based on values of
10535         arguments.
10536         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10537         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10538         -1 as normal element in sum instead of special-casing based on
10539         values of arguments.
10540         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10541         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10542         (__x2y2m1): Update comment.
10543         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10544         as normal element in sum instead of special-casing based on values
10545         of arguments.
10546         * math/s_clog.c (__clog): Handle more cases using log1p without
10547         hypot.
10548         * math/s_clog10.c (__clog10): Likewise.
10549         * math/s_clog10f.c (__clog10f): Likewise.
10550         * math/s_clog10l.c (__clog10l): Likewise.
10551         * math/s_clogf.c (__clogf): Likewise.
10552         * math/s_clogl.c (__clogl): Likewise.
10553         * math/auto-libm-test-in: Add more tests of clog and clog10.
10554         * math/auto-libm-test-out: Regenerated.
10555         * sysdeps/i386/fpu/libm-test-ulps: Update.
10556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10557
10558 2015-09-28  Martin Sebor  <msebor@redhat.com>
10559
10560         [BZ #18969]
10561         * string/Makefile (LOCALES): Define.
10562         (gen-locales.mk): Include.
10563         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10564         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10565         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10566         on setlocale failure.
10567
10568 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10569
10570         [BZ #18985]
10571         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10572         (__strftime_internal): Likewise.
10573         * time/tst-strftime.c (do_bz18985): New test.
10574         (do_test): Call it.
10575
10576 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10577
10578         [BZ #18956]
10579         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10580         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10581         extracting high part.
10582         * math/auto-libm-test-in: Add another test of pow.
10583         * math/auto-libm-test-out: Regenerated.
10584         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10585
10586 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10587
10588         [BZ #18825]
10589         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10590         New macro.
10591         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10592         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10593         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10594         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10595         DBL_NARROW_EVAL, reloading the PIC register as needed.
10596         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10597         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10598         FLT_NARROW_EVAL.  Use separate return path for case when first
10599         argument is NaN.
10600         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10601         DEFINE_LDBL_MIN.
10602         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10603         PIC register.
10604         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10605         math_check_force_underflow_nonneg.
10606         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10607         underflow for subnormal result.
10608         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10609         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10610         math_check_force_underflow_nonneg.
10611         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10612         math_check_force_underflow.
10613         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10614         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10615         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10616         DEFINE_LDBL_MIN.
10617         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10618         * math/auto-libm-test-in: Add more tests of pow.
10619         * math/auto-libm-test-out: Regenerated.
10620
10621 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10622
10623         * nss/bug17079.c (init_test_items): Add diagnostic for
10624         inconsistent entries.
10625         (test_buffer_size): Skip inconsistent entries.
10626
10627 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10628
10629         [BZ #13304]
10630         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10631         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10632         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10633
10634         [BZ #13304]
10635         * sysdeps/microblaze/s_fma.c: New file.
10636         * sysdeps/microblaze/s_fmaf.c: Likewise.
10637         * sysdeps/microblaze/sfp-machine.h: Likewise.
10638
10639 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10640
10641         [BZ #17250]
10642         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10643         member.
10644
10645 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10646
10647         [BZ #18803]
10648         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10649         (MO): New macro.
10650         (__ieee754_hypot) [PIC]: Load PIC register.
10651         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10652         DBL_NARROW_EVAL.
10653         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10654         math_check_force_underflow_nonneg in case where result might be
10655         tiny.
10656         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10657         Likewise.
10658         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10659         Likewise.
10660         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10661         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10662         * math/auto-libm-test-in: Add more tests of hypot.
10663         * math/auto-libm-test-out: Regenerated.
10664
10665 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10666
10667         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10668
10669 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10670
10671         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10672         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10673         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10674         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10675         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10676         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10677         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10678
10679         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10680         LOAD_PIC_REG.
10681
10682         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10683         (FLT_CHECK_FORCE_UFLOW): Likewise.
10684         (DBL_CHECK_FORCE_UFLOW): Likewise.
10685         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10686         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10687         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10688         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10689         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10690         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10691         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10692         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10693         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10694         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10695         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10696         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10697         (flt_min): Replace with use of DEFINE_FLT_MIN.
10698         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10699         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10700         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10701         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10702         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10703         (flt_min): Replace with use of DEFINE_FLT_MIN.
10704         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10705         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10706         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10707         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10708         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10709         (flt_min): Replace with use of DEFINE_FLT_MIN.
10710         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10711         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10712         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10713         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10714         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10715         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10716         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10717         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10718         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10719         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10720         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10721         (flt_min): Replace with use of DEFINE_FLT_MIN.
10722         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10723         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10724         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10725         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10726         main computation.
10727         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10728         (flt_min): Replace with use of DEFINE_FLT_MIN.
10729         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10730         main computation.
10731         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10732         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10733         (MO): New macro.
10734         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10735         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10736         (flt_min): Replace with use of DEFINE_FLT_MIN.
10737         (MO): New macro.
10738         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10739         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10740         (__log1pl): Use MO.
10741
10742         [BZ #19003]
10743         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10744         $(config-cflags-nofma).
10745
10746 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10747
10748         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10749
10750 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10751
10752         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10753         (TWO127): Likewise.
10754
10755         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10756         (min_of_type): Likewise.
10757         (math_check_force_underflow): Likewise.
10758         (math_check_force_underflow_nonneg): Likewise.
10759         (math_check_force_underflow_complex): Likewise.
10760         * math/e_exp2l.c (__ieee754_exp2l): Use
10761         math_check_force_underflow_nonneg.
10762         * math/k_casinh.c (__kernel_casinh): Likewise.
10763         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10764         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10765         * math/s_catan.c (__catan): Use
10766         math_check_force_underflow_complex.
10767         * math/s_catanf.c (__catanf): Likewise.
10768         * math/s_catanh.c (__catanh): Likewise.
10769         * math/s_catanhf.c (__catanhf): Likewise.
10770         * math/s_catanhl.c (__catanhl): Likewise.
10771         * math/s_catanl.c (__catanl): Likewise.
10772         * math/s_ccosh.c (__ccosh): Likewise.
10773         * math/s_ccoshf.c (__ccoshf): Likewise.
10774         * math/s_ccoshl.c (__ccoshl): Likewise.
10775         * math/s_cexp.c (__cexp): Likewise.
10776         * math/s_cexpf.c (__cexpf): Likewise.
10777         * math/s_cexpl.c (__cexpl): Likewise.
10778         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10779         * math/s_clog10.c (__clog10): Likewise.
10780         * math/s_clog10f.c (__clog10f): Likewise.
10781         * math/s_clog10l.c (__clog10l): Likewise.
10782         * math/s_clogf.c (__clogf): Likewise.
10783         * math/s_clogl.c (__clogl): Likewise.
10784         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10785         * math/s_csinf.c (__csinf): Likewise.
10786         * math/s_csinh.c (__csinh): Likewise.
10787         * math/s_csinhf.c (__csinhf): Likewise.
10788         * math/s_csinhl.c (__csinhl): Likewise.
10789         * math/s_csinl.c (__csinl): Likewise.
10790         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10791         * math/s_csqrtf.c (__csqrtf): Likewise.
10792         * math/s_csqrtl.c (__csqrtl): Likewise.
10793         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10794         * math/s_ctanf.c (__ctanf): Likewise.
10795         * math/s_ctanh.c (__ctanh): Likewise.
10796         * math/s_ctanhf.c (__ctanhf): Likewise.
10797         * math/s_ctanhl.c (__ctanhl): Likewise.
10798         * math/s_ctanl.c (__ctanl): Likewise.
10799         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10800         instead of volatile.
10801         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10802         math_check_force_underflow.
10803         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10804         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10805         volatile when forcing underflow.
10806         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10807         math_check_force_underflow_nonneg.
10808         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10809         Likewise.
10810         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10811         math_check_force_underflow.
10812         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10813         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10814         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10815         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10816         math_check_force_underflow_nonneg.
10817         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10818         math_check_force_underflow.
10819         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10820         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10821         instead of volatile.
10822         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10823         math_check_force_underflow.
10824         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10825         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10826         math_check_force_underflow_nonneg.
10827         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10828         math_check_force_underflow.
10829         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10830         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10831         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10832         math_check_force_underflow_nonneg.
10833         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10834         Likewise.
10835         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10836         math_check_force_underflow.
10837         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10838         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10839         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10840         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
10841         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10842         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
10843         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10844         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10845         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10846         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
10847         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10848         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10849         Likewise.
10850         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
10851         math_check_force_underflow_nonneg.
10852         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10853         Likewise.
10854         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
10855         math_check_force_underflow.
10856         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10857         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10858         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10859         Likewise.
10860         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10861         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
10862         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
10863         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
10864         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
10865         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10866         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
10867         instead of volatile.
10868         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
10869         math_check_force_underflow.
10870         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10871         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
10872         math_check_force_underflow.
10873         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
10874         Likewise.
10875         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10876         Use math_check_force_underflow_nonneg.
10877         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
10878         math_check_force_underflow.
10879         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
10880         Likewise.
10881         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10882         Likewise.
10883         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10884         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
10885         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
10886         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
10887         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
10888         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
10889         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10890         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10891         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
10892         math_check_force_underflow_nonneg.
10893         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
10894         math_check_force_underflow.
10895         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10896         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10897         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
10898         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
10899         math_check_force_underflow_nonneg.
10900         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
10901         math_check_force_underflow.
10902         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10903         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
10904         instead of volatile.
10905         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
10906         math_check_force_underflow.
10907
10908         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
10909         * stdlib/strtod_l.c: Include <math_private.h>.
10910         (overflow_value): Use math_narrow_eval.
10911         (underflow_value): Likewise.
10912         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10913         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10914         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10915         (__ieee754_gamma_r): Likewise.
10916         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
10917         Likewise.
10918         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10919         Likewise.
10920         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10921         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
10922         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10923         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10924         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10925         (__ieee754_gammaf_r): Likewise.
10926         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10927         Likewise.
10928         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
10929         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
10930         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10931         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10932         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
10933         volatile.
10934         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10935         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
10936         math_narrow_eval.
10937         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10938         Likewise.
10939         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10940         Likewise.
10941         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
10942         Likewise.
10943         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
10944         volatile.
10945         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10946         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
10947         math_narrow_eval.
10948         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10949         Likewise.
10950         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10951         Likewise.
10952
10953 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
10954
10955         * nptl/Versions: Remove ignored symbols.
10956
10957 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10958
10959         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
10960         * nss/Makefile (tests): Update.
10961
10962 2015-09-22  Florian Weimer  <fweimer@redhat.com>
10963
10964         * nss/bug18287.c: New file.
10965         * nss/Makefile (tests): Add bug18287.
10966
10967 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10968
10969         * mach/Versions (__mach_host_self_): Add symbol.
10970
10971 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10972
10973         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
10974         vm_page_size.
10975
10976 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10977
10978         Really fix sysdeps/i386/fpu/s_scalbn.S build
10979
10980         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
10981         (libc: GLIBC_2_22): Remove unused version set.
10982
10983 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
10984
10985         * config.make.in (enable-timezone-tools): New variable.
10986         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
10987         (enable_timezone_tools): Export to generated files.
10988         * configure: Regenerate.
10989         * INSTALL: Regenerate.
10990         * manual/install.texi (--disable-timezone-tools): Document new flag.
10991         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
10992         ifeq ($(enable-timezone-tools),yes) check.
10993
10994 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
10995
10996         * timezone/Makefile: Revert previous change.
10997
10998         [BZ #18980]
10999         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11000         (DEFINE_DBL_MIN): Likewise.
11001         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11002         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11003         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11004         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11005         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11006         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11007         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11008         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11009         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11010         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11011         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11012         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11013         (flt_min): Replace with use of DEFINE_FLT_MIN.
11014         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11015         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11016         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11017         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11018         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11019         (flt_min): Replace with use of DEFINE_FLT_MIN.
11020         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11021         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11022         (flt_min): Replace with use of DEFINE_FLT_MIN.
11023         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11024         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11025         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11026         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11027         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11028         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11029         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11030         (__ieee754_pow): Use DBL_NARROW_EVAL.
11031         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11032         (__ieee754_powf): Use FLT_NARROW_EVAL.
11033         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11034         (__ieee754_expf_sse2): Convert double-precision result to single
11035         precision.
11036         * sysdeps/i386/fpu/libm-test-ulps: Update.
11037
11038 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11039
11040         * timezone/Makefile: Ignore unused variable errors due to private.h
11041         (time_t_min) and (time_t_max).
11042         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11043         Likewise.
11044
11045 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11046
11047         [BZ #18981]
11048         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11049         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11050         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11051         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11052         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11053         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11054         (__scalbn): Use DBL_NARROW_EVAL.
11055         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11056         (__scalbnf): Use FLT_NARROW_EVAL.
11057
11058 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11059
11060         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11061         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11062         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11063         * stdio-common/printf_fp.c (___printf_fp):
11064         Use signbit to get the sign. Use isinf macro to allow inlining.
11065         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11066         * stdio-common/printf_size.c (__printf_size): Likewise.
11067
11068 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11069
11070         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11071
11072 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11073
11074         [BZ #18980]
11075         * sysdeps/generic/math_private.h: Include <float.h>.
11076         (math_narrow_eval): New macro.
11077         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11078         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11079         math_narrow_eval on overflowing return value.
11080         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11081         Likewise.
11082         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11083         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11084         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11085         Likewise.
11086         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11087
11088 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11089
11090         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11091         * math/Makefile: Remove isinf_ns.c.
11092         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11093         * math/multc3.c (__multc3): Likewise.
11094         * math/s_casin.c (__casin): Likewise.
11095         * math/s_casinf.c (__casinf): Likewise.
11096         * math/s_casinl.c (__casinl): Likewise.
11097         * math/s_cproj.c (__cproj): Likewise.
11098         * math/s_cprojf.c (__cprojf): Likewise.
11099         * math/s_cprojl.c (__cprofl): Likewise.
11100         * math/s_ctan.c (__ctan): Likewise.
11101         * math/s_ctanf.c (__ctanf): Likewise.
11102         * math/s_ctanh.c (__ctanh): Likewise.
11103         * math/s_ctanhf.c (__ctanhf): Likewise.
11104         * math/s_ctanhl.c (__ctanhl): Likewise.
11105         * math/s_ctanl.c (__ctanl): Likewise.
11106         * math/w_fmod.c (__fmod): Likewise.
11107         * math/w_fmodf.c (__fmodf): Likewise.
11108         * math/w_fmodl.c (_fmodl): Likewise.
11109         * math/w_remainder.c (__remainder): Likewise.
11110         * math/w_remainderf.c (__remainderf): Likewise.
11111         * math/w_remainderl.c (__remainderl): Likewise.
11112         * math/w_scalb.c (__scalb): Likewise.
11113         * math/w_scalbf.c (__scalbf): Likewise.
11114         * math/w_scalbl.c (__scalbl): Likewise.
11115         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11116         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11117         with isinf.
11118         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11119         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11120         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11121         __isinf_nsf with isinf.
11122         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11123         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11124         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11125         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11126         with isinf.
11127         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11128         __isinf_nsl with isinf.
11129         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11130         with isinf.
11131         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11132         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11133         __isinf_nsl with isinf.
11134         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11135         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11136         with isinf.
11137
11138 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11139
11140         * resolv/base64.c (rcsid): Remove unused static.
11141         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11142         static.  (tqpi1): Likewise.
11143         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11144         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11145         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11146         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11147         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11148         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11149         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11150         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11151         Likewise.
11152
11153 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11154
11155         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11156         <nptl/pthreadP.h>.
11157         (_longjmp_unwind): Use __libc_ptf_call.
11158         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11159
11160 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11161
11162         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11163         * sysdeps/arm/__longjmp.S: Likewise.
11164
11165 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11166
11167         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11168         Use __builtin_signbit.
11169         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11170         Use __builtin_signbitf.
11171         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11172         Use __builtin_signbitl.
11173         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11174         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11175
11176 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11177
11178         [BZ #15367]
11179         [BZ #17441]
11180
11181         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11182         * math/math.h (fpclassify): Use __builtin_fpclassify when
11183         available.  (signbit): Use __builtin_signbit(f/l).
11184         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11185         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11186         (isinf): Use __builtin_isinf_sign.
11187
11188 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11189
11190         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11191         * benchtests/bench-math-inlines.c: New benchmark.
11192         * benchtests/bench-util.h: New file.
11193         * benchtests/bench-util.c: New file.
11194         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11195
11196 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11197
11198         * elf/tst-dlmopen1.c: Define TEST_SO.
11199         (do_test): Use TEST_SO.
11200
11201         * elf/dl-load.c: Include libc-internal.h.
11202         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11203
11204 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11205
11206         [BZ #17887]
11207         * time/strptime_l.c (__strptime_internal): Make %z accept
11208         [+-]HH:MM time zones.
11209
11210 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11211
11212         [BZ #17886]
11213         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11214         valid time zone.
11215
11216 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11217
11218         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11219         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11220         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11221         (__ASSUME_FDATASYNC): Delete.
11222
11223 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11224
11225         * conform/linknamespace.pl: Require weak undefined symbols to be
11226         in the standard namespace.
11227         (%strong_syms): Rename to %seen_syms.
11228         (%strong_seen): Rename to %seen_where.
11229
11230 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11231
11232         [BZ #18970]
11233         * misc/error.c (error): Replace pthread_setcancelstate with
11234         __pthread_setcancelstate.
11235         (error_at_line): Likewise.
11236         * posix/wordexp.c (parse_comm): Likewise.
11237         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11238         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11239         (__pthread_setcancelstate): This.
11240         (pthread_setcancelstate): Add an alias.
11241         * nptl/nptl-init.c (pthread_functions): Replace
11242         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11243         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11244         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11245         hidden_proto.
11246         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11247         it with hidden_def.
11248         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11249         (pthread_setcancelstate): Renamed to ...
11250         (__pthread_setcancelstate): This.
11251         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11252         __libc_ptf_call with __pthread_setcancelstate.
11253
11254 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11255             Andreas Schwab  <schwab@suse.de>
11256
11257         [BZ #17118]
11258         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11259         result when imaginary part of argument is infinite using sine and
11260         cosine.
11261         * math/s_ctanf.c (__ctanf): Likewise.
11262         * math/s_ctanl.c (__ctanl): Likewise.
11263         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11264         of result when real part of argument is infinite using sine and
11265         cosine.
11266         * math/s_ctanhf.c (__ctanhf): Likewise.
11267         * math/s_ctanhl.c (__ctanhl): Likewise.
11268         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11269         (ctanh_test_data): Add more tests of ctanh.
11270
11271 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11272
11273         [BZ #15384]
11274         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11275         bit-mask as in subtraction.
11276         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11277         Likewise.
11278         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11279         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11280         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11281
11282         [BZ #18951]
11283         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11284         underflow exception for small results.
11285         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11286         Likewise.
11287         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11288         Likewise.
11289         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11290         Likewise.
11291         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11292         Likewise.
11293         * math/auto-libm-test-in: Add more tests of tgamma.
11294         * math/auto-libm-test-out: Regenerated.
11295
11296 2015-09-17  Andreas Schwab  <schwab@suse.de>
11297
11298         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11299
11300 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11301
11302         [BZ #18977]
11303         * math/bits/mathcalls.h
11304         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11305         not declare.
11306         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11307         Likewise.
11308         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11309         Likewise.
11310         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11311         Likewise.
11312         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11313         Likewise.
11314         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11315         Likewise.
11316         * conform/data/math.h-data
11317         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11318         function.
11319         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11320         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11321         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11322         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11323         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11324         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11325         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11326         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11327         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11328         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11329         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11330
11331         [BZ #6803]
11332         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11333         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11334         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11335         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11336         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11337         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11338         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11339         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11340         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11341         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11342         Likewise.
11343         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11344         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11345         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11346         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11347         long_double_symbol calls.
11348         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11349         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11350         strong alias of __ldexpl.
11351         (scalbnl): Define using long_double_symbol.
11352         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11353         Remove alias.
11354         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11355         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11356         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11357         (scalbln_test_data): Add more errno expectations.
11358
11359 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11360
11361         Cache the host port like we cache the task port.  This way we do not
11362         need to call the kernel just to get the port.  Furthermore, we no
11363         longer increase the reference count on every invocation of
11364         `mach_host_self'.
11365
11366         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11367         Protect declarations against the macro expansion.
11368         * mach/mach_init.c (__mach_host_self_): New variable.
11369         (mach_init): Initialize `__mach_host_self_'.
11370         * mach/mach_init.h (__mach_host_self_): New declaration.
11371         (__mach_host_self, mach_host_self): New macros.
11372         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11373         Release reference.
11374
11375 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11376
11377         [BZ #4404]
11378         * po/de.po: Update from Translation Project.
11379
11380         [BZ #16415]
11381         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11382         (__expm1l): Remove code to handle positive infinity and overflow.
11383         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11384         variable.
11385         (__expm1l): Remove code to handle positive infinity and overflow.
11386
11387 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11388             Paul Pluzhnikov  <ppluzhnikov@google.com>
11389
11390         [BZ #18872]
11391         * stdio-common/Makefile (tst-printf-bz18872): New test.
11392         (tst-printf-bz18872-mem.out): Likewise.
11393         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11394         * stdio-common/vfprintf.c: Fix memory leaks.
11395
11396 2015-09-16  Andreas Schwab  <schwab@suse.de>
11397
11398         [BZ #17244]
11399         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11400         Remove extra va_start/va_end calls.
11401
11402         [BZ #17243]
11403         * posix/execl.c (execl): Add missing va_end.
11404         * posix/execle.c (execle): Likewise.
11405         * posix/execlp.c (execlp): Likewise.
11406
11407 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11408
11409         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11410         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11411
11412 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11413
11414         [BZ #18967]
11415         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11416         undefine around includes of <bits/mathcalls.h>.
11417         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11418         not declare function.
11419         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11420         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11421         (scalb): Likewise.
11422         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11423         not define macro.
11424         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11425         variable.
11426         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11427         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11428         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11429
11430         [BZ #18857]
11431         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11432         return non-finite argument without doing ordered comparisons on
11433         it.
11434
11435         [BZ #16296]
11436         * math/fenv.h (fegetround): Use __attribute_pure__.
11437         * include/fenv.h (__fegetround): Likewise.
11438
11439         [BZ #18595]
11440         * math/s_ctan.c (__ctan): Force underflow exception for results
11441         whose real or imaginary part has small absolute value.
11442         * math/s_ctanf.c (__ctanf): Likewise.
11443         * math/s_ctanh.c (__ctanh): Likewise.
11444         * math/s_ctanhf.c (__ctanhf): Likewise.
11445         * math/s_ctanhl.c (__ctanhl): Likewise.
11446         * math/s_ctanl.c (__ctanl): Likewise.
11447         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11448         and ctanh.  Add more tests of ctan and ctanh.
11449
11450         [BZ #15918]
11451         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11452         handling of cases where one argument is an infinity.
11453
11454         [BZ #18875]
11455         [BZ #18966]
11456         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11457         (MO): New macro.
11458         (__ieee754_exp10): For small results, force underflow exception
11459         and remove excess range and precision from return value.
11460         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11461         (MO): New macro.
11462         (__ieee754_exp10f): For small results, force underflow exception
11463         and remove excess range and precision from return value.
11464         * math/auto-libm-test-in: Add more tests of exp10.
11465         * math/auto-libm-test-out: Regenerated.
11466
11467 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11468
11469         [BZ #18875]
11470         [BZ #18961]
11471         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11472         (MO): New macro.
11473         (__ieee754_exp): For small results, force underflow exception and
11474         remove excess range and precision from return value.
11475         (__exp_finite): Likewise.
11476         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11477         (MO): New macro.
11478         (__ieee754_expf): For small results, force underflow exception and
11479         remove excess range and precision from return value.
11480         (__expf_finite): Likewise.
11481         * math/auto-libm-test-in: Add more tests of exp.
11482         * math/auto-libm-test-out: Regenerated.
11483
11484         [BZ #16521]
11485         [BZ #18875]
11486         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11487         small results.
11488         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11489         (MO): New macro.
11490         (__ieee754_exp2): For small results, force underflow exception and
11491         remove excess range and precision from return value.
11492         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11493         (MO): New macro.
11494         (__ieee754_exp2f): For small results, force underflow exception
11495         and remove excess range and precision from return value.
11496         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11497         (MO): New macro.
11498         (__ieee754_exp2l): Force underflow exception for small results.
11499         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11500         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11501         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11502         (MO): New macro.
11503         (__ieee754_exp2l): Force underflow exception for small results.
11504         * math/auto-libm-test-in: Add more tests or exp2.
11505         * math/auto-libm-test-out: Regenerated.
11506
11507 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11508
11509         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11510
11511         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11512         /dev/null.
11513
11514 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11515
11516         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11517         io fs process)): Drop spurious backslash.
11518
11519 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11520
11521         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11522         Use sysinfo system call instead of parsing /proc/meminfo.
11523         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11524         Likewise.
11525
11526 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11527
11528         [BZ #16985]
11529         * programs/localedef.c (main): Display argv[remaining] when
11530         output_path is NULL.
11531
11532 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11533
11534         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11535         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11536         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11537         tanh.
11538         * math/auto-libm-test-out: Regenerated.
11539         * sysdeps/i386/fpu/libm-test-ulps: Update.
11540         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11541         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11543
11544 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11545
11546         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11547         Use 'override' keyword to freeze the value here, preventing
11548         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11549
11550 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11551
11552         [BZ #14912]
11553         * sysdeps/aarch64/bits/atomic.h: Move to ...
11554         * sysdeps/aarch64/atomic-machine.h: ...here.
11555         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11556         _AARCH64_ATOMIC_MACHINE_H.
11557         * sysdeps/alpha/bits/atomic.h: Move to ...
11558         * sysdeps/alpha/atomic-machine.h: ...here.
11559         * sysdeps/arm/bits/atomic.h: Move to ...
11560         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11561         * bits/atomic.h: Move to ...
11562         * sysdeps/generic/atomic-machine.h: ...here.
11563         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11564         * sysdeps/i386/bits/atomic.h: Move to ...
11565         * sysdeps/i386/atomic-machine.h: ...here.
11566         * sysdeps/ia64/bits/atomic.h: Move to ...
11567         * sysdeps/ia64/atomic-machine.h: ...here.
11568         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11569         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11570         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11571         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11572         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11573         * sysdeps/microblaze/bits/atomic.h: Move to ...
11574         * sysdeps/microblaze/atomic-machine.h: ...here.
11575         * sysdeps/mips/bits/atomic.h: Move to ...
11576         * sysdeps/mips/atomic-machine.h: ...here.
11577         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11578         * sysdeps/powerpc/bits/atomic.h: Move to ...
11579         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11580         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11581         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11582         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11583         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11584         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11585         <atomic-machine.h> instead of <bits/atomic.h>.
11586         * sysdeps/s390/bits/atomic.h: Move to ...
11587         * sysdeps/s390/atomic-machine.h: ...here.
11588         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11589         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11590         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11591         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11592         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11593         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11594         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11595         * sysdeps/tile/bits/atomic.h: Move to ...
11596         * sysdeps/tile/atomic-machine.h: ...here.
11597         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11598         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11599         <sysdeps/tile/atomic-machine.h> instead of
11600         <sysdeps/tile/bits/atomic.h>.
11601         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11602         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11603         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11604         <sysdeps/tile/atomic-machine.h> instead of
11605         <sysdeps/tile/bits/atomic.h>.
11606         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11607         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11608         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11609         <sysdeps/arm/atomic-machine.h> instead of
11610         <sysdeps/arm/bits/atomic.h>.
11611         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11612         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11613         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11614         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11615         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11616         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11617         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11618         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11619         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11620         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11621         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11622         * sysdeps/x86_64/bits/atomic.h: Move to ...
11623         * sysdeps/x86_64/atomic-machine.h: ...here.
11624         * include/atomic.h: Include <atomic-machine.h> instead of
11625         <bits/atomic.h>.
11626
11627         * sysdeps/mips/mips32/libm-test-ulps: Update.
11628         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11629
11630         [BZ #18952]
11631         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11632         not convert non-integer negative arguments to int to determine the
11633         value of signgam.
11634         * math/auto-libm-test-in: Add more tests of lgamma.
11635         * math/auto-libm-test-out: Regenerated.
11636
11637         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11638         cosh, csqrt, erfc, expm1 and lgamma.
11639         * math/auto-libm-test-out: Regenerated.
11640         * sysdeps/i386/fpu/libm-test-ulps: Update.
11641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11642
11643 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11644
11645         [BZ #2542]
11646         [BZ #2543]
11647         [BZ #2558]
11648         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11649         __lgamma_neg for arguments from -28.0 to -2.0.
11650         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11651         __lgamma_negf for arguments from -15.0 to -2.0.
11652         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11653         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11654         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11655         Call __lgamma_negl for arguments from -33.0 to -2.0.
11656         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11657         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11658         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11659         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11660         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11667         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11668         (__lgamma_neg): Likewise.
11669         (__lgamma_negl): Likewise.
11670         (__lgamma_product): Likewise.
11671         (__lgamma_productl): Likewise.
11672         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11673         * math/auto-libm-test-in: Add more tests of lgamma.
11674         * math/auto-libm-test-out: Regenerated.
11675         * sysdeps/i386/fpu/libm-test-ulps: Update.
11676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11677
11678 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11679
11680         [BZ #18675]
11681         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11682
11683 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11684
11685         [BZ #14912]
11686         * bits/libc-lock.h: Move to ...
11687         * sysdeps/generic/libc-lock.h: ...here.
11688         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11689         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11690         * sysdeps/mach/hurd/libc-lock.h: ...here.
11691         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11692         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11693         * sysdeps/mach/bits/libc-lock.h: Move to ...
11694         * sysdeps/mach/libc-lock.h: ...here.
11695         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11696         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11697         * sysdeps/nptl/libc-lock.h: ...here.
11698         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11699         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11700         * sysdeps/nptl/libc-lockP.h: ...here.
11701         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11702         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11703         <bits/libc-lock.h>.
11704         * dirent/scandir-tail.c: Likewise.
11705         * dlfcn/dlerror.c: Likewise.
11706         * elf/dl-close.c: Likewise.
11707         * elf/dl-iteratephdr.c: Likewise.
11708         * elf/dl-lookup.c: Likewise.
11709         * elf/dl-open.c: Likewise.
11710         * elf/dl-support.c: Likewise.
11711         * elf/dl-writev.h: Likewise.
11712         * elf/rtld.c: Likewise.
11713         * grp/fgetgrent.c: Likewise.
11714         * gshadow/fgetsgent.c: Likewise.
11715         * gshadow/sgetsgent.c: Likewise.
11716         * iconv/gconv_conf.c: Likewise.
11717         * iconv/gconv_db.c: Likewise.
11718         * iconv/gconv_dl.c: Likewise.
11719         * iconv/gconv_int.h: Likewise.
11720         * iconv/gconv_trans.c: Likewise.
11721         * include/link.h: Likewise.
11722         * inet/getnameinfo.c: Likewise.
11723         * inet/getnetgrent.c: Likewise.
11724         * inet/getnetgrent_r.c: Likewise.
11725         * intl/bindtextdom.c: Likewise.
11726         * intl/dcigettext.c: Likewise.
11727         * intl/finddomain.c: Likewise.
11728         * intl/gettextP.h: Likewise.
11729         * intl/loadmsgcat.c: Likewise.
11730         * intl/localealias.c: Likewise.
11731         * intl/textdomain.c: Likewise.
11732         * libidn/idn-stub.c: Likewise.
11733         * libio/libioP.h: Likewise.
11734         * locale/duplocale.c: Likewise.
11735         * locale/freelocale.c: Likewise.
11736         * locale/newlocale.c: Likewise.
11737         * locale/setlocale.c: Likewise.
11738         * login/getutent_r.c: Likewise.
11739         * login/getutid_r.c: Likewise.
11740         * login/getutline_r.c: Likewise.
11741         * login/utmp-private.h: Likewise.
11742         * login/utmpname.c: Likewise.
11743         * malloc/mtrace.c: Likewise.
11744         * misc/efgcvt.c: Likewise.
11745         * misc/error.c: Likewise.
11746         * misc/fstab.c: Likewise.
11747         * misc/getpass.c: Likewise.
11748         * misc/mntent.c: Likewise.
11749         * misc/syslog.c: Likewise.
11750         * nis/nis_call.c: Likewise.
11751         * nis/nis_callback.c: Likewise.
11752         * nis/nss-default.c: Likewise.
11753         * nis/nss_compat/compat-grp.c: Likewise.
11754         * nis/nss_compat/compat-initgroups.c: Likewise.
11755         * nis/nss_compat/compat-pwd.c: Likewise.
11756         * nis/nss_compat/compat-spwd.c: Likewise.
11757         * nis/nss_nis/nis-alias.c: Likewise.
11758         * nis/nss_nis/nis-ethers.c: Likewise.
11759         * nis/nss_nis/nis-grp.c: Likewise.
11760         * nis/nss_nis/nis-hosts.c: Likewise.
11761         * nis/nss_nis/nis-network.c: Likewise.
11762         * nis/nss_nis/nis-proto.c: Likewise.
11763         * nis/nss_nis/nis-pwd.c: Likewise.
11764         * nis/nss_nis/nis-rpc.c: Likewise.
11765         * nis/nss_nis/nis-service.c: Likewise.
11766         * nis/nss_nis/nis-spwd.c: Likewise.
11767         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11768         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11769         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11770         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11771         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11772         * nis/nss_nisplus/nisplus-network.c: Likewise.
11773         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11774         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11775         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11776         * nis/nss_nisplus/nisplus-service.c: Likewise.
11777         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11778         * nis/ypclnt.c: Likewise.
11779         * nptl/libc_pthread_init.c: Likewise.
11780         * nss/getXXbyYY.c: Likewise.
11781         * nss/getXXent.c: Likewise.
11782         * nss/getXXent_r.c: Likewise.
11783         * nss/nss_db/db-XXX.c: Likewise.
11784         * nss/nss_db/db-netgrp.c: Likewise.
11785         * nss/nss_db/nss_db.h: Likewise.
11786         * nss/nss_files/files-XXX.c: Likewise.
11787         * nss/nss_files/files-alias.c: Likewise.
11788         * nss/nsswitch.c: Likewise.
11789         * posix/regex_internal.h: Likewise.
11790         * posix/wordexp.c: Likewise.
11791         * pwd/fgetpwent.c: Likewise.
11792         * resolv/res_hconf.c: Likewise.
11793         * resolv/res_libc.c: Likewise.
11794         * shadow/fgetspent.c: Likewise.
11795         * shadow/lckpwdf.c: Likewise.
11796         * shadow/sgetspent.c: Likewise.
11797         * socket/opensock.c: Likewise.
11798         * stdio-common/reg-modifier.c: Likewise.
11799         * stdio-common/reg-printf.c: Likewise.
11800         * stdio-common/reg-type.c: Likewise.
11801         * stdio-common/vfprintf.c: Likewise.
11802         * stdio-common/vfscanf.c: Likewise.
11803         * stdlib/abort.c: Likewise.
11804         * stdlib/cxa_atexit.c: Likewise.
11805         * stdlib/fmtmsg.c: Likewise.
11806         * stdlib/random.c: Likewise.
11807         * stdlib/setenv.c: Likewise.
11808         * string/strsignal.c: Likewise.
11809         * sunrpc/auth_none.c: Likewise.
11810         * sunrpc/bindrsvprt.c: Likewise.
11811         * sunrpc/create_xid.c: Likewise.
11812         * sunrpc/key_call.c: Likewise.
11813         * sunrpc/rpc_thread.c: Likewise.
11814         * sysdeps/arm/backtrace.c: Likewise.
11815         * sysdeps/generic/ldsodefs.h: Likewise.
11816         * sysdeps/generic/stdio-lock.h: Likewise.
11817         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11818         * sysdeps/i386/backtrace.c: Likewise.
11819         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11820         * sysdeps/m68k/backtrace.c: Likewise.
11821         * sysdeps/mach/hurd/cthreads.c: Likewise.
11822         * sysdeps/mach/hurd/dirstream.h: Likewise.
11823         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11824         * sysdeps/nptl/malloc-machine.h: Likewise.
11825         * sysdeps/nptl/stdio-lock.h: Likewise.
11826         * sysdeps/posix/dirstream.h: Likewise.
11827         * sysdeps/posix/getaddrinfo.c: Likewise.
11828         * sysdeps/posix/system.c: Likewise.
11829         * sysdeps/pthread/aio_suspend.c: Likewise.
11830         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11831         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11832         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11833         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11834         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11835         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11836         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11837         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11838         * sysdeps/unix/sysv/linux/system.c: Likewise.
11839         * sysdeps/x86_64/backtrace.c: Likewise.
11840         * time/alt_digit.c: Likewise.
11841         * time/era.c: Likewise.
11842         * time/tzset.c: Likewise.
11843         * wcsmbs/wcsmbsload.c: Likewise.
11844         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
11845         instead of <bits/libc-lock.h> in comment.
11846
11847 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
11848
11849         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
11850         Only use .set mips2 if the current ISA is below mips2.
11851         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
11852         Likewise.
11853         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
11854         mips32r2 if the current ISA is below mips32r2.
11855         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
11856         (TLS_IE): Updated to use the TLD_RDHWR macro.
11857         (TLS_LE): Likewise.
11858         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
11859         __ASSEMBLER__ condition.
11860
11861 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11862
11863         Fix parallel build of before-compile targets.
11864
11865         * sysdeps/mach/Makefile ($(patsubst
11866         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
11867         mach-before-compile target.
11868         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11869         io fs process)): Move rule to dedicated hurd-before-compile target.
11870
11871 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11872
11873         Fix rules generating headers in hurd/ and mach/ when initial make call
11874         has subdir= explicitly set.
11875
11876         * sysdeps/mach/Makefile ($(patsubst
11877         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
11878         calling $(MAKE).
11879         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11880         io fs process)): Force subdir to hurd when calling $(MAKE).
11881         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
11882         subdir to mach when calling $(MAKE).
11883
11884 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
11885
11886         Check sysheaders when looking for Mach and Hurd headers
11887
11888         * sysdeps/mach/configure.ac: Add sysheaders check.
11889         * sysdeps/mach/configure: Regenerate.
11890         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
11891         * sysdeps/mach/hurd/configure: Regenerate.
11892
11893 2015-09-04  Roland McGrath  <roland@hack.frob.com>
11894
11895         [BZ #18921]
11896         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
11897         Fix inverted sense of test of 'o_directory_works' value.
11898         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
11899         Bernhard Voelker <mail@bernhard-voelker.de>.
11900
11901 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11902
11903         [BZ #14912]
11904         * bits/linkmap.h: Move to ...
11905         * sysdeps/generic/linkmap.h: ...here.
11906         * sysdeps/aarch64/bits/linkmap.h: Move to ...
11907         * sysdeps/aarch64/linkmap.h: ...here.
11908         * sysdeps/arm/bits/linkmap.h: Move to ...
11909         * sysdeps/arm/linkmap.h: ...here.
11910         * sysdeps/hppa/bits/linkmap.h: Move to ...
11911         * sysdeps/hppa/linkmap.h: ...here.
11912         * sysdeps/ia64/bits/linkmap.h: Move to ...
11913         * sysdeps/ia64/linkmap.h: ...here.
11914         * sysdeps/mips/bits/linkmap.h: Move to ...
11915         * sysdeps/mips/linkmap.h: ...here.
11916         * sysdeps/s390/bits/linkmap.h: Move to ...
11917         * sysdeps/s390/linkmap.h: ...here.
11918         * sysdeps/sh/bits/linkmap.h: Move to ...
11919         * sysdeps/sh/linkmap.h: ...here.
11920         * sysdeps/x86/bits/linkmap.h: Move to ...
11921         * sysdeps/x86/linkmap.h: ...here.
11922         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
11923
11924 2015-09-04  Andreas Schwab  <schwab@suse.de>
11925
11926         [BZ #18635]
11927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11928         (__makecontext): Terminate FDE before return label.
11929         (__novec_makecontext): Likewise.
11930
11931 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
11932
11933         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
11934         first member of struct sv in syscall macro.
11935
11936 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11937
11938         [BZ #14912]
11939         * bits/stdio-lock.h: Move to ...
11940         * sysdeps/generic/stdio-lock.h: ...here.
11941         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11942         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
11943         * sysdeps/nptl/stdio-lock.h: ...here.
11944         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
11945         * include/libio.h: Include <stdio-lock.h> instead of
11946         <bits/stdio-lock.h>.
11947         * sysdeps/nptl/fork.c: Likewise.
11948         * sysdeps/pthread/flockfile.c: Likewise.
11949         * sysdeps/pthread/ftrylockfile.c: Likewise.
11950         * sysdeps/pthread/funlockfile.c: Likewise.
11951
11952         [BZ #14912]
11953         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
11954         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
11955         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
11956         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
11957         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
11958         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
11959         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
11960
11961 2015-09-03  Roland McGrath  <roland@hack.frob.com>
11962
11963         * elf/Makefile (test-xfail-tst-protected1a): New variable.
11964         (test-xfail-tst-protected1b): New variable.
11965
11966 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
11967
11968         [BZ #14912]
11969         * bits/libc-tsd.h: Move to ...
11970         * sysdeps/generic/libc-tsd.h: ...here.
11971         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
11972         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
11973         * sysdeps/mach/hurd/libc-tsd.h: ...here.
11974         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
11975         * include/ctype.h: Include <libc-tsd.h> instead of
11976         <bits/libc-tsd.h>.
11977         * include/rpc/rpc.h: Likewise.
11978         * locale/localeinfo.h: Likewise.
11979         * sunrpc/rpc_thread.c: Likewise.
11980         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11981         * sysdeps/nptl/malloc-machine.h: Likewise.
11982
11983         * Makefile (headers): Remove bits/libc-lock.h.
11984         * libio/Makefile (headers): Remove bits/stdio-lock.h.
11985
11986         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
11987         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
11988         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
11989         <bits/stdio-lock.h>.
11990         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
11991         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
11992
11993 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
11994
11995         [BZ #18757]
11996         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
11997         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
11998         BZ #18757.
11999
12000 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12001
12002         * malloc/mtrace.pl: Filter out NULL entries.
12003
12004 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12005
12006         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12007         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12008         macro.
12009
12010         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12011         (TCP_CC_INFO): Likewise.
12012         (TCP_SAVE_SYN): Likewise.
12013         (TCP_SAVED_SYN): Likewise.
12014
12015 2015-08-31  Brett Neumeier <brett@neumeier.us>
12016
12017         [BZ #18870]
12018         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12019
12020 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12021
12022         [BZ #18873]
12023         Fix broken overflow check in posix_fallocate
12024         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12025         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12026         Fix parenthesization typo.
12027
12028 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12029
12030         [BZ #18887]
12031         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12032         tst-mntent-blank-passno.
12033         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12034         * misc/tst-mntent-blank-corrupt.c: New test.
12035         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12036         * misc/tst-mntent.c (do_test): ... here.
12037
12038 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12039
12040         [BZ #4404]
12041         * po/de.po: Fix SIGALRM typo.
12042
12043 2015-08-28  James Perkins  <james@loowit.net>
12044
12045         * time/tst-strptime2.c (tests): Replace short list of test
12046         strings for strptime %z specifier with code which exhaustively
12047         tests every combination of sign and 0 to 5 digits. Tests for
12048         rejection of invalid strings.
12049
12050 2015-08-28  James Perkins  <james@loowit.net>
12051
12052         [BZ #16141]
12053         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12054         calculation, removing incorrect decimal time rounding, so that
12055         all minute values result in a valid seconds value.
12056         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12057         offset range limits to UTC-99:59 through UTC+99:59 to parse
12058         current and historical use cases.
12059         * time/tst-strptime2.c (tests): Modify and add tests for the
12060         strptime %z input field descriptor, specifically conversion of
12061         minutes to seconds and validating an offset range of -9959 to
12062         +9959.
12063
12064 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12065             Dmitry V. Levin  <ldv@altlinux.org>
12066
12067         [BZ #18877]
12068         * posix/Makefile (tests): Add tst-mmap-offset.
12069         * posix/tst-mmap.c: New file.
12070         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12071         offset calculation for negative values.
12072
12073 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12074
12075         * sysdeps/i386/init-arch.h: New file.
12076         * sysdeps/i386/i586/init-arch.h: Likewise.
12077         * sysdeps/i386/i686/init-arch.h: Likewise.
12078         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12079         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12080         * sysdeps/x86/cpu-features.h (bit_I586): New.
12081         (bit_I686): Likewise.
12082         (bit_CX8): Likewise.
12083         (bit_CMOV): Likewise.
12084         (index_CX8): Likewise.
12085         (index_CMOV): Likewise.
12086         (index_I586): Likewise.
12087         (index_I686): Likewise.
12088         (reg_CX8): Likewise.
12089         (reg_CMOV): Likewise.
12090         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12091         available at compile-time.
12092         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12093         available at compile-time.
12094         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12095         (USE_I686): Likewise.
12096
12097 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12098
12099         * sysdeps/i386/bcopy.S: New file.
12100         * sysdeps/i386/bzero.S: Likewise.
12101         * sysdeps/i386/memcpy.S: Likewise.
12102         * sysdeps/i386/memmove.S: Likewise.
12103         * sysdeps/i386/mempcpy.S: Likewise.
12104         * sysdeps/i386/memset.S: Likewise.
12105         * sysdeps/i386/bzero.c: Removed.
12106         * sysdeps/i386/memset.c: Likewise.
12107         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12108         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12109         * sysdeps/i386/i586/memset_chk.S: Likewise.
12110         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12111         * sysdeps/i386/memcpy_chk.S: Here.
12112         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12113         * sysdeps/i386/memmove_chk.S: Here.
12114         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12115         * sysdeps/i386/mempcpy_chk.S: Likewise.
12116         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12117         * sysdeps/i386/memset_chk.S: Likewise.
12118
12119 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12120
12121         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12122         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12123         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12124         * soft-fp/fmadf4.c: Ditto.
12125         * soft-fp/fmatf4.c: Ditto.
12126
12127 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12128
12129         * sysdeps/i386/i586/Implies: Removed.
12130         * sysdeps/i386/i686/Implies: Likewise.
12131
12132 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12133
12134         * sysdeps/i386/i486/strlen.S: Moved to ...
12135         * sysdeps/i386/strlen.S: Here.
12136
12137 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12138
12139         * sysdeps/i386/i486/strcat.S: Moved to ...
12140         * sysdeps/i386/strcat.S: Here.
12141
12142 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12143
12144         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12145         * sysdeps/i386/pthread_spin_trylock.S: Here.
12146         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12147         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12148
12149 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12150
12151         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12152         * sysdeps/i386/string-inlines.c: Here.
12153
12154 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12155
12156         * sysdeps/i386/i486/htonl.S: Moved ...
12157         * sysdeps/i386/htonl.S: here.
12158
12159 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12160
12161         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12162         * sysdeps/i386/bits/atomic.h: Here.
12163
12164 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12165
12166         * sysdeps/i386/i486/Versions: Removed.
12167
12168 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12169
12170         [BZ #2898]
12171         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12172         Based on patch by Aurelien Jarno.
12173
12174 2015-08-26  Stan Shebs  <stanshebs@google.com>
12175
12176         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12177         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12178
12179 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12180
12181         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12182         * sysdeps/powerpc/dl-procinfo.c:
12183         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12184         feature so it shows when LD_SHOW_AUXV=1.
12185
12186 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12187
12188         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12189         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12190         definition.  ISA 2.07B no longer requires full sync.
12191
12192 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12193
12194         [BZ #18863]
12195         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12196         (si_call_addr): Define.
12197         (si_syscall): Define.
12198         (si_arch): Define.
12199
12200 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12201
12202         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12203         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12204         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12205         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12206         (__memset_zero_constant_len_parameter): New.
12207         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12208         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12209         (__memset_zero_constant_len_parameter): Don't define if
12210         __memset_chk or USE_AS_BZERO are defined.
12211
12212         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12213         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12214         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12215
12216         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12217         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12218         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12219         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12220         comments.
12221         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12222         -mno-mmx for $(all-rtld-routines).
12223         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12224         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12225         i386.
12226
12227 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12228
12229         * sysdeps/generic/unwind.h
12230         (_Unwind_Word): Use __mode__(__unwind_word__)
12231         instead of __mode__(__word__).
12232         (_Unwind_Sword): Likewise.
12233
12234         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12235         (MAX_NEEDED_INPUT): New define.
12236         (MAX_NEEDED_OUTPUT): New define.
12237
12238         * NEWS: New item for IBM z13 string optimizations.
12239
12240         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12241         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12242         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12243         * sysdeps/s390/multiarch/Makefile
12244         (sysdep_routines): Add memrchr functions.
12245         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12246         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12247
12248         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12249         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12250         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12251         * sysdeps/s390/multiarch/Makefile
12252         (sysdep_routines): Add wmemcmp functions.
12253         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12254         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12255         * benchtests/bench-wmemcmp.c: New File.
12256         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12257
12258         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12259         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12260         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12261         * sysdeps/s390/multiarch/Makefile
12262         (sysdep_routines): Add wmemset functions.
12263         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12264         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12265         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12266         * string/test-memset.c: Add wmemset support.
12267         * wcsmbs/test-wmemset.c: New File.
12268         * wcsmbs/Makefile (strop-tests): Add wmemset.
12269         * benchtests/bench-memset.c: Add wmemset support.
12270         * benchtests/bench-wmemset.c: New File.
12271         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12272
12273         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12274         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12275         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12276         * sysdeps/s390/multiarch/Makefile
12277         (sysdep_routines): Add memccpy functions.
12278         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12279         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12280         * string/memccpy.c: Use MEMCCPY if defined.
12281
12282         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12283         * sysdeps/s390/multiarch/memchr.c: Likewise.
12284         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12285         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12286         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12287         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12288         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12289         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12290         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12291         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12292         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12293         and rawmemchr functions.
12294         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12295         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12296         and wmemchr.
12297         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12298         * string/test-memchr.c: Add wmemchr support.
12299         * wcsmbs/test-wmemchr.c: New File.
12300         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12301         * benchtests/bench-memchr.c: Add wmemchr support.
12302         * benchtests/bench-wmemchr.c: New File.
12303         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12304
12305         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12306         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12307         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12308         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12309         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12310         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12311         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12312         wcscspn functions.
12313         * sysdeps/s390/multiarch/ifunc-impl-list.c
12314         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12315         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12316         * string/test-strcspn.c: Add wcscspn support.
12317         * wcsmbs/test-wcscspn.c: New File.
12318         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12319         * benchtests/bench-strcspn.c: Add wcscspn support.
12320         * benchtests/bench-wcscspn.c: New File.
12321         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12322
12323         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12324         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12325         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12326         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12327         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12328         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12329         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12330         wcspbrk functions.
12331         * sysdeps/s390/multiarch/ifunc-impl-list.c
12332         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12333         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12334         * string/test-strpbrk.c: Add wcspbrk support.
12335         * wcsmbs/test-wcspbrk.c: New File.
12336         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12337         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12338         * benchtests/bench-wcspbrk.c: New File.
12339         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12340
12341         * sysdeps/s390/multiarch/strspn-c.c: New File.
12342         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12343         * sysdeps/s390/multiarch/strspn.c: Likewise.
12344         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12345         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12346         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12347         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12348         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12349         wcsspn functions.
12350         * sysdeps/s390/multiarch/ifunc-impl-list.c
12351         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12352         * string/test-strspn.c: Add wcsspn support.
12353         * wcsmbs/test-wcsspn.c: New File.
12354         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12355         * benchtests/bench-strspn.c: Add wcsspn support.
12356         * benchtests/bench-wcsspn.c: New File.
12357         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12358
12359         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12360         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12361         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12362         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12363         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12364         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12365         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12366         wcsrchr functions.
12367         * sysdeps/s390/multiarch/ifunc-impl-list.c
12368         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12369         * benchtests/bench-wcsrchr.c: New File.
12370         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12371
12372         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12373         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12374         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12375         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12376         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12377         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12378         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12379         wcschrnul functions.
12380         * sysdeps/s390/multiarch/ifunc-impl-list.c
12381         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12382         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12383         * string/test-strchr.c: Add wcschrnul support.
12384         * wcsmbs/test-wcschrnul.c: New File.
12385         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12386         * benchtests/bench-strchr.c: Add wcschrnul support.
12387         * benchtests/bench-wcschrnul.c: New File.
12388         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12389
12390         * sysdeps/s390/multiarch/strchr-c.c: New File.
12391         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12392         * sysdeps/s390/multiarch/strchr.c: Likewise.
12393         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12394         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12395         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12396         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12397         wcschr functions.
12398         * sysdeps/s390/multiarch/ifunc-impl-list.c
12399         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12400         * string/strchr.c (STRCHR): Define and use macro.
12401         * benchtests/bench-wcschr.c: New File.
12402         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12403
12404         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12405         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12406         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12407         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12408         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12409         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12410         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12411         wcsncmp functions.
12412         * sysdeps/s390/multiarch/ifunc-impl-list.c
12413         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12414         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12415         * benchtests/bench-strncmp.c: Add wcsncmp support.
12416         * benchtests/bench-wcsncmp.c: New File.
12417         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12418
12419         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12420         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12421         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12422         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12423         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12424         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12425         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12426         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12427         wcscmp functions.
12428         * sysdeps/s390/multiarch/ifunc-impl-list.c
12429         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12430         * string/strcmp.c (STRCMP): Define and use macro.
12431         * benchtests/bench-wcscmp.c: New File.
12432         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12433         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12434         instead of _HAVE_STRING_ARCH_memchr.
12435
12436         * sysdeps/s390/multiarch/strncat-c.c: New File.
12437         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12438         * sysdeps/s390/multiarch/strncat.c: Likewise.
12439         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12440         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12441         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12442         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12443         wcsncat functions.
12444         * sysdeps/s390/multiarch/ifunc-impl-list.c
12445         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12446         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12447         * string/test-strncat.c: Add wcsncat support.
12448         * wcsmbs/test-wcsncat.c: New File.
12449         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12450         * benchtests/bench-strncat.c: Add wcsncat support.
12451         * benchtests/bench-wcsncat.c: New File.
12452         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12453
12454         * sysdeps/s390/multiarch/strcat-c.c: New File.
12455         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12456         * sysdeps/s390/multiarch/strcat.c: Likewise.
12457         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12458         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12459         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12460         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12461         wcscat functions.
12462         * sysdeps/s390/multiarch/ifunc-impl-list.c
12463         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12464         * string/strcat.c (STRCAT): Define and use macro.
12465         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12466         * string/test-strcat.c: Add wcscat support.
12467         * wcsmbs/test-wcscat.c: New File.
12468         * wcsmbs/Makefile (strop-tests): Add wcscat.
12469         * benchtests/bench-strcat.c: Add wcscat support.
12470         * benchtests/bench-wcscat.c: New File.
12471         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12472
12473         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12474         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12475         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12476         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12477         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12478         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12479         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12480         wcpncpy functions.
12481         * sysdeps/s390/multiarch/ifunc-impl-list.c
12482         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12483         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12484         * string/test-stpncpy.c: Add wcpncpy support.
12485         * wcsmbs/test-wcpncpy.c: New File.
12486         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12487         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12488         * benchtests/bench-wcpncpy.c: New File.
12489         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12490
12491         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12492         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12493         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12494         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12495         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12496         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12497         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12498         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12499         wcsncpy functions.
12500         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12501         * sysdeps/s390/multiarch/ifunc-impl-list.c
12502         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12503         * string/test-strncpy.c: Add wcsncpy support.
12504         * wcsmbs/test-wcsncpy.c: New File.
12505         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12506         * benchtests/bench-strncpy.c: Add wcsncpy support.
12507         * benchtests/bench-wcsncpy.c: New File.
12508         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12509
12510         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12511         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12512         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12513         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12514         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12515         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12516         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12517         wcpcpy functions.
12518         * string/stpcpy.c: Use STPCPY if defined.
12519         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12520         * sysdeps/s390/multiarch/ifunc-impl-list.c
12521         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12522         * string/test-stpcpy.c: Add wcpcpy support.
12523         * wcsmbs/test-wcpcpy.c: New File.
12524         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12525         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12526         * benchtests/bench-wcpcpy.c: New File.
12527         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12528
12529         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12530         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12531         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12532         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12533         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12534         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12535         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12536         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12537         wcscpy functions.
12538         * sysdeps/s390/multiarch/ifunc-impl-list.c
12539         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12540         * benchtests/bench-wcscpy.c: New File.
12541         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12542
12543         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12544         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12545         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12546         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12547         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12548         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12549         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12550         wcsnlen functions.
12551         * sysdeps/s390/multiarch/ifunc-impl-list.c
12552         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12553         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12554         * string/test-strnlen.c: Add wcsnlen support.
12555         * wcsmbs/test-wcsnlen.c: New File.
12556         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12557         * benchtests/bench-strnlen.c: Add wcsnlen support.
12558         * benchtests/bench-wcsnlen.c: New File.
12559         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12560
12561         * sysdeps/s390/multiarch/Makefile: New File.
12562         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12563         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12564         * sysdeps/s390/multiarch/strlen.c: Likewise.
12565         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12566         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12567         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12568         * string/strlen.c (STRLEN): Define and use macro.
12569         * sysdeps/s390/multiarch/ifunc-impl-list.c
12570         (IFUNC_VX_IMPL): New macro function.
12571         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12572         * benchtests/Makefile (wcsmbs-bench): New variable.
12573         (string-bench-all): Added wcsmbs-bench.
12574         * benchtests/bench-wcslen.c: New File.
12575
12576         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12577         s390_vx_libc_ifunc2): New macro function.
12578
12579         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12580         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12581         assembler support.
12582         * sysdeps/s390/configure: Regenerated.
12583
12584         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12585         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12586
12587         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12588         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12589         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12590
12591         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12592         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12593         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12594         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12595         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12596         (memcmp, bcmp): Use __memcmp_default as alias source.
12597         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12598         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12599         Rename to __memcmp_default.
12600         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12601         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12602         (memcpy): Use __memcpy_default as alias source.
12603         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12604         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12605         Rename to __memcpy_default.
12606         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12607         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12608         (memset): Use __memset_default as alias source.
12609         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12610         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12611         Rename to __memset_default.
12612         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12613         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12614         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12615         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12616         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12617         (memcmp, bcmp): Use __memcmp_default as alias source.
12618         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12619         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12620         Rename to __memcmp_default.
12621         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12622         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12623         (memcpy): Use __memcpy_default as alias source.
12624         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12625         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12626         Rename to __memcpy_default.
12627         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12628         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12629         (memset): Use __memset_default as alias source.
12630         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12631         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12632         Rename to __memset_default.
12633         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12634         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12635
12636         [BZ #18610]
12637         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12638         __ieee_instruction_pointer to __unused.
12639         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12640         __ieee_instruction_pointer.
12641         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12642         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12643         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12644         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12645         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12646         Mark dxc-field as reserved.
12647
12648 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12649
12650         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12651         if the weak reference is not null.
12652
12653 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12654
12655         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12656
12657         [BZ #11214]
12658         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12659
12660 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12661
12662         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12663         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12664         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12665         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12666         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12667         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12668         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12669         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12670         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12671         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12672         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12673         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12674         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12675         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12676         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12677         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12678         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12679         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12680
12681 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12682
12683         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12684         register other than r0 for tabort, it has special meaning.
12685         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12686         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12687         transaction before starting syscall.
12688
12689 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12690
12691         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12692
12693 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12694
12695         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12696
12697         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12698         * sysdeps/x86_64/rtld-memset.S: Likewise.
12699         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12700         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12701         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12702         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12703
12704         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12705
12706 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12707
12708         * debug/strcpy_chk.c: Improve performance.
12709         * debug/stpcpy_chk.c: Likewise.
12710         * sysdeps/x86_64/strcpy_chk.S: Remove.
12711         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12712
12713         [BZ #18240]
12714         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12715
12716 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12717
12718         [BZ #15128]
12719         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12720         ifuncmain8.
12721         (modules-names): Add ifuncmod8.
12722         ($(objpfx)ifuncmain8): New rule.
12723         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12724         <cpuid.h>.
12725         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12726         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12727         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12728         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12729         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12730         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12731         * sysdeps/x86_64/ifuncmain8.c: New file.
12732         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12733         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12734         Removed.
12735         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12736         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12737         Change rtld_savespace_sse to __glibc_unused2.
12738         (RTLD_CHECK_FOREIGN_CALL): Removed.
12739         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12740         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12741         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12742
12743 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12744
12745         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12746
12747 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12748
12749         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12750         Unconditionally set __fpcr to avoid uninialized warning.
12751         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12752
12753 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12754
12755         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12756         is corrupt.
12757
12758         * malloc/arena.c (arena_get2): Drop unused argument.
12759         (arena_lock): Adjust.
12760         (arena_get_retry): Likewise.
12761
12762 2015-08-24  Andreas Schwab  <schwab@suse.de>
12763
12764         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12765         Don't define.
12766         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12767         (__ASSUME_IPC64): Don't undef.
12768         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12769         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12770         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12771         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12772         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12773         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12774         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12775         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12776         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12777         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12778         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12779         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12780         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12781         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12782         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12783         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12784         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12785         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12786         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12787         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12788         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12789
12790 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12791
12792         * manual/Makefile (install): Only build manual when perl is available.
12793
12794 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12795
12796         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12797         '#undef memcpy' by '#undef memchr'.
12798
12799 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12800
12801         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12802         memchr not point to the internal __GI_memchr implementation.
12803
12804 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12805
12806         * timezone/Makefile (CFLAGS-zdump.c): Remove
12807         -Wno-strict-prototypes.
12808         (CFLAGS-zic.c): Likewise.
12809         (CFLAGS-ialloc.c): Likewise.
12810         (CFLAGS-scheck.c): Likewise.
12811
12812         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12813         -Wno-error=undef.
12814
12815 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12816
12817         * i386/i686/multiarch/strcasestr-c.c: Removed.
12818         * x86_64/multiarch/strcasestr.c: Likewise.
12819         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12820         Remove strcasestr.
12821
12822 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12823
12824         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12825
12826         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12827         variables for high and low parts before possibly modifying them.
12828
12829 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12830
12831         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12832         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12833         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12834         of "multiarch/init-arch.h".
12835         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12836         * sysdeps/x86/init-arch.h: This.
12837
12838 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12839
12840         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
12841         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
12842
12843 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
12844
12845         [BZ #17787]
12846         * manual/macros.texi: Add twoexp macro.
12847         * manual/filesys.texi: Fix exponents.
12848         * manual/llio.texi: Likewise.
12849         * manual/stdio.texi: Likewise.
12850
12851 2015-08-20  Florian Weimer  <fweimer@redhat.com>
12852
12853         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
12854         incorrect use.
12855
12856 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12857
12858         [BZ #18370]
12859         * math/s_csqrt.c (__csqrt): Force underflow exception for results
12860         whose real or imaginary part has small absolute value.
12861         * math/s_csqrtf.c (__csqrtf): Likewise.
12862         * math/s_csqrtl.c (__csqrtl): Likewise.
12863         * math/auto-libm-test-in: Add more tests of csqrt.
12864         * math/auto-libm-test-out: Regenerated.
12865         * sysdeps/i386/fpu/libm-test-ulps: Update.
12866
12867 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12868
12869         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
12870         __ppc_set_ppr_very_low): New functions.
12871         * manual/platform.texi: Add documentation about
12872         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
12873
12874 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
12875
12876         * string/stpncpy.c (stpncpy): Improve performance using
12877         __strnlen/memcpy/memset.
12878
12879 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12880
12881         [BZ #18796]
12882         * scripts/test-installation.pl: Don't add -lmvec to build options if
12883         libmvec wasn't built.
12884
12885 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12886
12887         [BZ #14341]
12888         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
12889         case when there is a gap between DT_REL and DT_JMPREL sections.
12890         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
12891         (LDFLAGS-tst-split-dynreloc): New.
12892         (tst-split-dynreloc-ENV): Likewise.
12893         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
12894         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
12895
12896 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12897
12898         [BZ #18822]
12899         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
12900         attribute_hidden.
12901         (__xstat64_conv): Likewise.
12902         (__xstat32_conv): Likewise.
12903
12904 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12905
12906         [BZ #18822]
12907         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
12908         Don't load %ebx when calling __setcontext.  Call __setcontext
12909         with HIDDEN_JUMPTARGET.
12910         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
12911         libc_hidden_def.
12912
12913 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12914
12915         * sysdeps/i386/i686/Makefile
12916         [$(subdir) == string] (sysdep_routines): Moved to ...
12917         * sysdeps/i386/Makefile: Here.
12918         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
12919         * sysdeps/i386/cacheinfo.c: Here.
12920         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
12921         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
12922         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
12923         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
12924
12925 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12926
12927         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
12928         __i586__ is defined.
12929         (HAS_I686): Defined to 1 if __i686__ is defined.
12930
12931 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12932
12933         * elf/Makefile [$(have-z-execstack) = yes]
12934         (CPPFLAGS-tst-execstack.c): New variable.
12935
12936         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
12937         conditional to [defined UTMPX || _HAVE_UT_TYPE].
12938         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
12939         UTMPX || _HAVE_UT_TV].
12940         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
12941         UTMPX || _HAVE_UT_TV - 0].
12942
12943 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
12944
12945         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
12946         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
12947         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
12948
12949 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12950
12951         * sysdeps/powerpc/dl-procinfo.c:
12952         (_dl_powerpc_cap_flags): Added missing strings for some
12953         hwcap features.
12954         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
12955
12956 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         Port the 0x7efe...feff pattern to GCC 6.
12959         See Steve Ellcey's bug report in:
12960         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
12961         * string/memrchr.c (MEMRCHR):
12962         * string/rawmemchr.c (RAWMEMCHR):
12963         * string/strchr.c (strchr):
12964         * string/strchrnul.c (STRCHRNUL):
12965         Rewrite code to avoid issues with signed shift overflow.
12966
12967 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
12968
12969         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
12970         whether cpuid is available only if HAS_CPUID is 0.
12971         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
12972         (HAS_I586): Likewise.
12973         (HAS_I686): Likewise.
12974
12975 2015-08-18  Zack Weinberg  <zackw@panix.com>
12976
12977         * misc/Versions (libc): Add GLIBC_2.23.
12978
12979 2015-08-18  Alan Modra  <amodra@gmail.com>
12980
12981         [BZ #18421]
12982         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
12983         .Lp__global.
12984         (_start): Load %dp via .Lp__global.
12985         [!SHARED]: Use .section .rodata.
12986
12987 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12988
12989         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
12990         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
12991
12992 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12993
12994         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
12995         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
12996
12997 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
12998
12999         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13000         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13001
13002 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13003
13004         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13005         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13006
13007 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13008
13009         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13010         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13011
13012 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13013
13014         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13015         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13016
13017 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13018
13019         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13020
13021 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13022
13023         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13024         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13025         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13026         (__ASSUME_LWS_CAS): Delete.
13027
13028 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13029
13030         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13031         * sysdeps/hppa/configure: Regenerated.
13032         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13033         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13034         * sysdeps/hppa/nptl/tls.h: Likewise.
13035
13036 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13037
13038         [BZ #18823]
13039         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13040         for scaling up small arguments.
13041         * math/s_csqrtf.c (__csqrtf): Likewise.
13042         * math/s_csqrtl.c (__csqrtl): Likewise.
13043         * math/auto-libm-test-in: Add more tests of csqrt.
13044         * math/auto-libm-test-out: Regenerated.
13045
13046 2015-08-17  Andreas Schwab  <schwab@suse.de>
13047
13048         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13049         version set GLIBC_2.19.
13050
13051 2015-08-16  Zack Weinberg  <zackw@panix.com>
13052
13053         [BZ #18681]
13054         * misc/regexp.h: This interface is no longer supported.
13055         Remove all contents, leaving only an #error directive.
13056         * misc/regexp.c (loc1, loc2, locs, step, advance):
13057         Demote to compatibility symbols.
13058
13059 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13060
13061         [BZ #18084]
13062         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13063         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13064         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13065         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13066         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13067         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13068         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13069         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13070         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13071
13072 2015-08-15  Zack Weinberg  <zackw@panix.com>
13073
13074         [BZ #18795]
13075         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13076         buffer length is known to be too large, not if it's known to be
13077         small enough.
13078         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13079         overflow at runtime, involving a length parameter, twice: once
13080         with a compile-time constant length parameter, once without.
13081
13082 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13083
13084         [BZ #18824]
13085         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13086         scaling x * y up instead of down.
13087         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13088         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13089         * math/auto-libm-test-in: Add more tests of fma.
13090         * math/auto-libm-test-out: Regenerated.
13091
13092 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13093
13094         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13095
13096 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13097
13098         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13099         unnecessary movq.
13100         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13101         Likewise.
13102
13103 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13104
13105         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13106         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13107         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13108         and tgamma.
13109         * math/auto-libm-test-out: Regenerated.
13110         * sysdeps/i386/fpu/libm-test-ulps: Update.
13111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13112
13113         [BZ #16520]
13114         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13115         (__tanh): Force underflow exception for arguments with small
13116         absolute value.
13117         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13118         (__tanhf): Force underflow exception for arguments with small
13119         absolute value.
13120         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13121         (__tanhl): Force underflow exception for arguments with small
13122         absolute value.
13123         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13124         (__tanhl): Force underflow exception for arguments with small
13125         absolute value.
13126         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13127         (__tanhl): Force underflow exception for arguments with small
13128         absolute value.
13129         * math/auto-libm-test-in: Add more tests of tanh.
13130         * math/auto-libm-test-out: Regenerated.
13131         * sysdeps/i386/fpu/libm-test-ulps: Update.
13132
13133 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13134
13135         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13136         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13137
13138 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13139
13140         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13141         <cpuid.h>.
13142
13143 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13144
13145         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13146         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13147
13148 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13149
13150         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13151         Remove $(objpfx)init-arch.o.
13152         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13153         init-arch.
13154         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13155         (INIT_ARCH_EXT): Defined as empty.
13156         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13157         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13158         __init_cpu_features call.  Replace HAS_XXX with
13159         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13160         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13161         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13162         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13163         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13164         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13165         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13166         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13167         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13168         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13169         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13170         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13171         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13172         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13173         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13174         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13175         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13176         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13177         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13178         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13179         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13180         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13181         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13182         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13183         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13184         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13185         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13186         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13187         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13188         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13189         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13190         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13191         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13192         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13193         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13194         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13195
13196 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13197
13198         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13199         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13200         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13201         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13202         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13203         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13204         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13205         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13206         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13207         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13208         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13209         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13210         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13211         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13212         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13213         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13214         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13215         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13216         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13217         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13218         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13219         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13241
13242 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13243
13244         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13245         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13246         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13247         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13248         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13249         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13250         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13251         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13252         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13253         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13254         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13255         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13256         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13257         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13258         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13259         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13260         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13261         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13262         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13263         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13264         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13265         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13266         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13267         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13268         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13269         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13270         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13271         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13272         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13273         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13274         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13275         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13276         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13277         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13278         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13279         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13280         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13281         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13282         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13283         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13284         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13285         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13286         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13287
13288 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13289
13290         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13291         (dl_platform_init): Call init_cpu_features.
13292         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13293         * sysdeps/i386/i686/cacheinfo.c
13294         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13295         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13296         * sysdeps/i386/i686/multiarch/Versions: Removed.
13297         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13298         Removed.
13299         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13300         * sysdeps/unix/sysv/linux/x86/Makefile
13301         (libpthread-sysdep_routines): Remove init-arch.
13302         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13303         <sysdeps/x86_64/dl-procinfo.c> instead of
13304         sysdeps/generic/dl-procinfo.c>.
13305         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13306         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13307         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13308         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13309         [$(subdir) == elf] (tests-static): Add
13310         tst-get-cpu-features-static.
13311         * sysdeps/x86/Versions: New file.
13312         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13313         * sysdeps/x86/cpu-features.c: Likewise.
13314         * sysdeps/x86/cpu-features.h: Likewise.
13315         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13316         * sysdeps/x86/libc-start.c: Likewise.
13317         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13318         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13319         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13320         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13321         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13322         Assume USE_MULTIARCH is defined and don't check it.
13323         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13324         (is_amd): Likewise.
13325         (max_cpuid): Likewise.
13326         (intel_check_word): Likewise.
13327         (__cache_sysconf): Don't call __init_cpu_features.
13328         (__x86_preferred_memory_instruction): Removed.
13329         (init_cacheinfo): Don't call __init_cpu_features. Replace
13330         __cpu_features with GLRO(dl_x86_cpu_features).
13331         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13332         (dl_platform_init): Call init_cpu_features.
13333         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13334         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13335         * sysdeps/x86_64/multiarch/Versions: Removed.
13336         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13337         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13338         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13339         Removed.
13340         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13341
13342 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13343
13344         [BZ #18820]
13345         * libio/Makefile (test-fmemopen-mem): New test.
13346         * libio/test-fmemopen.c (do_bz18820): New test.
13347         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13348         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13349
13350 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13351
13352         [BZ #16734]
13353         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13354         (FREE_BUF): Delete.
13355         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13356         * libio/genops.c (_IO_setb): Use malloc and free directly.
13357         (_IO_default_doallocate, _IO_default_finish): Likewise.
13358         ( _IO_unbuffer_all): Likewise.
13359         ( libc_freeres_fn): Likewise.
13360         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13361         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13362         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13363         (_IO_wdefault_doallocate): Likewise.
13364
13365 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13366
13367         [BZ #18086]
13368         * sysdeps/posix/nice.c (nice): Restore old errno.
13369         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13370
13371 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13372
13373         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13374
13375 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13376
13377         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13378         __bcopy and add a weak_alias to bcopy.
13379         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13380         for static build.
13381
13382         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13383         cleanup macro usage.
13384         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13385         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13386         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13387         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13388         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13389         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13390         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13391         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13392         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13393         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13394         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13395         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13396         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13397         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13398         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13399         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13400         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13401         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13402         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13403
13404         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13405         libc_hidden_def.
13406         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13407
13408         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13409         (sysdep_routines): Add strstr-ppc64.
13410         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13411
13412 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13413
13414         [BZ #18778]
13415         * elf/Makefile (tests): Add Add tst-nodelete2.
13416         (modules-names): Add tst-nodelete2mod.
13417         (tst-nodelete2mod.so-no-z-defs): New.
13418         ($(objpfx)tst-nodelete2): Likewise.
13419         ($(objpfx)tst-nodelete2.out): Likewise.
13420         (LDFLAGS-tst-nodelete2): Likewise.
13421         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13422         out of loop through all loaded libraries.
13423         * elf/tst-nodelete2.c: New file.
13424         * elf/tst-nodelete2mod.c: Likewise.
13425         * elf/tst-znodelete-zlib.cc: Delete.
13426
13427 2015-08-11  Andreas Schwab  <schwab@suse.de>
13428
13429         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13430         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13431         (__openat64_nocancel): Likewise.
13432
13433 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13434
13435         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13436         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13437         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13438         * math/auto-libm-test-out: Regenerated.
13439         * sysdeps/i386/fpu/libm-test-ulps: Update.
13440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13441
13442 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13443
13444         [BZ #18790]
13445         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13446         threshold for returning +/- 1.
13447         * math/auto-libm-test-in: Add more tests of tanh.
13448         * math/auto-libm-test-out: Regenerated.
13449         * sysdeps/i386/fpu/libm-test-ulps: Update.
13450
13451 2015-08-10  Andreas Schwab  <schwab@suse.de>
13452
13453         [BZ #18781]
13454         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13455         MORE_OFLAGS to oflag.
13456         * io/test-lfs.c (do_test): Test openat64.
13457
13458 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13459
13460         [BZ #18789]
13461         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13462         smaller threshold for returning the argument.
13463         * math/auto-libm-test-in: Add more tests of sinh.
13464         * math/auto-libm-test-out: Regenerated.
13465         * sysdeps/i386/fpu/libm-test-ulps: Update.
13466
13467 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13468
13469         [BZ #18674]
13470         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13471         break.
13472
13473 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13474
13475         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13476         (generated): Don't add $(addprefix z.,$(tzfiles)).
13477
13478 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13479
13480         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13481         * scripts/sysd-rules.awk: Likewise.
13482
13483 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13484
13485         * iconvdata/tst-tables.sh: Change echo -n to printf.
13486         * nss/db-Makefile: Likewise.
13487         * posix/tst-getconf.sh: Likewise.
13488         * stdio-common/tst-unbputc.sh: Likewise.
13489
13490 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13491
13492         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13493         MADV_*_PAGES defines behind this feature check.
13494
13495 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13496
13497         [BZ #18480]
13498         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13499         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13500         Define.
13501         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13502         LOAD_REGS_5, LOAD_REGS_6): Update.
13503         (INTERNAL_SYSCALL): Update using new LOAD defines.
13504         (INTERNAL_SYSCALL_NCS): Likewise.
13505         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13506
13507 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13508
13509         [BZ #16734]
13510         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13511
13512 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13513
13514         [BZ #17905]
13515         * catgets/Makefile (tst-catgets-mem): New test.
13516         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13517         * catgets/open_catalog.c (__open_catalog): Likewise.
13518         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13519
13520 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13521
13522         [BZ #18787]
13523         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13524         clobber registers.
13525         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13526         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13527         Cast return to __typeof (oldval).
13528
13529 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13530
13531         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13532         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13533         and delete sys/syscall.h include.
13534
13535 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13536
13537         [BZ #16517]
13538         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13539         (tan): Force underflow exception for arguments with small absolute
13540         value.
13541         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13542         (__kernel_tanf): Force underflow exception for arguments with
13543         small absolute value.
13544         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13545         (__kernel_tanl): Force underflow exception for arguments with
13546         small absolute value.
13547         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13548         (__kernel_tanl): Force underflow exception for arguments with
13549         small absolute value.
13550         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13551         (__kernel_tanl): Force underflow exception for arguments with
13552         small absolute value.
13553         * math/auto-libm-test-in: Add more tests of tan.
13554         * math/auto-libm-test-out: Regenerated.
13555
13556 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13557
13558         Fix sysdeps/i386/fpu/s_scalbn.S build
13559
13560         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13561
13562 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13563
13564         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13565
13566 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13567
13568         Fix gcrt0.o compilation
13569
13570         When static-start-installed-name is different from
13571         start-installed-name, we must not use the shared objects.
13572
13573         * csu/Makefile
13574         (extra-objs): Add gmon-start.o when building shared library and
13575         $(static-start-installed-name) is different from
13576         $(start-installed-name).
13577         $(objpfx)g$(static-start-installed-name): When building shared
13578         library and $(static-start-installed-name) is different from
13579         $(static-start-installed-name), revert to non-shared rule,
13580         i.e. using $(objpfx)% and gmon-start.o.
13581
13582 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13583
13584         [BZ #16519]
13585         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13586         (__ieee754_sinh): Force underflow exception for arguments with
13587         small absolute value.
13588         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13589         (__ieee754_sinhf): Force underflow exception for arguments with
13590         small absolute value.
13591         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13592         (__ieee754_sinhl): Force underflow exception for arguments with
13593         small absolute value.
13594         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13595         (__ieee754_sinhl): Force underflow exception for arguments with
13596         small absolute value.
13597         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13598         (__ieee754_sinhl): Force underflow exception for arguments with
13599         small absolute value.
13600         * math/auto-libm-test-in: Add more tests of sinh.
13601         * math/auto-libm-test-out: Regenerated.
13602         * sysdeps/i386/fpu/libm-test-ulps: Update.
13603
13604 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13605
13606         * libio/oldfileops.c: Include unistd.h.
13607
13608 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13609
13610         * stdlib/isomac.c: Include ctype.h.
13611
13612 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13613
13614         * dirent/tst-seekdir.c (main): Converted to ...
13615         (do_test): ... this.
13616         (TEST_FUNCTION): New macro.
13617         Include test-skeleton.c.
13618         * elf/tst-dlmodcount.c (main): Converted to ...
13619         (do_test): ... this.
13620         (TEST_FUNCTION): New macro.
13621         Include test-skeleton.c.
13622         * elf/tst-order-main.c (main): Converted to ...
13623         (do_test): ... this.
13624         (TEST_FUNCTION): New macro.
13625         Include test-skeleton.c.
13626         * elf/tst-pie2.c (main): Converted to ...
13627         (do_test): ... this.
13628         (TEST_FUNCTION): New macro.
13629         Include test-skeleton.c.
13630         * inet/tst-ether_aton.c (main): Converted to ...
13631         (do_test): ... this.
13632         (TEST_FUNCTION): New macro.
13633         Include test-skeleton.c.
13634         * misc/tst-mntent.c (main): Converted to ...
13635         (do_test): ... this.
13636         (TEST_FUNCTION): New macro.
13637         Include test-skeleton.c.
13638         * misc/tst-tsearch.c (main): Converted to ...
13639         (do_test): ... this.
13640         (TEST_FUNCTION): New macro.
13641         Include test-skeleton.c.
13642         * posix/tst-regexloc.c (main): Converted to ...
13643         (do_test): ... this.
13644         (TEST_FUNCTION): New macro.
13645         Include test-skeleton.c.
13646         * resolv/tst-aton.c (main): Converted to ...
13647         (do_test): ... this.
13648         (TEST_FUNCTION): New macro.
13649         Include test-skeleton.c.
13650         * stdio-common/test-fwrite.c (main): Converted to ...
13651         (do_test): ... this.
13652         (TEST_FUNCTION): New macro.
13653         Include test-skeleton.c.
13654         * stdio-common/tst-ferror.c (main): Converted to ...
13655         (do_test): ... this.
13656         (TEST_FUNCTION): New macro.
13657         Include test-skeleton.c.
13658         * stdio-common/tst-printf.c (main): Converted to ...
13659         (do_test): ... this.
13660         (TEST_FUNCTION): New macro.
13661         Include test-skeleton.c.
13662         * stdio-common/tst-printfsz.c (main): Converted to ...
13663         (do_test): ... this.
13664         (TEST_FUNCTION): New macro.
13665         Include test-skeleton.c.
13666         * stdlib/tst-strtod.c (main): Converted to ...
13667         (do_test): ... this.
13668         (TEST_FUNCTION): New macro.
13669         Include test-skeleton.c.
13670         * string/tst-strlen.c (main): Converted to ...
13671         (do_test): ... this.
13672         (TEST_FUNCTION): New macro.
13673         Include test-skeleton.c.
13674         * string/tst-svc.c (main): Converted to ...
13675         (do_test): ... this.
13676         (TEST_FUNCTION): New macro.
13677         Include test-skeleton.c.
13678         * time/tst-strptime.c (main): Converted to ...
13679         (do_test): ... this.
13680         (TEST_FUNCTION): New macro.
13681         Include test-skeleton.c.
13682         * timezone/tst-timezone.c (main): Converted to ...
13683         (do_test): ... this.
13684         (TEST_FUNCTION): New macro.
13685         Include test-skeleton.c.
13686
13687 2015-08-05  Zack Weinberg  <zackw@panix.com>
13688
13689         * misc/regexp.h: Update comments.
13690
13691 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13692
13693         [BZ #18635]
13694         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13695         before return label.
13696
13697 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13698
13699         [BZ #18661]
13700         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13701         when calling __errno_location.
13702         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13703         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13704
13705 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13706
13707         [BZ #18661]
13708         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13709         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13710         __gettimeofday.
13711
13712 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13713
13714         [BZ #18661]
13715         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13716         (__start_context): Don't use pop to restore %rdi so that stack
13717         is aligned to 16 bytes when calling __setcontext.
13718
13719 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13720
13721         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13722         only for libc.
13723         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13724
13725 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13726
13727         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13728         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13729         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13730
13731 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13732
13733         * string/memccpy.c (memccpy):
13734         Improve performance by using memchr/memcpy/__mempcpy.
13735
13736 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13737
13738         * string/strncpy.c (strncpy):
13739         Improve performance by using __strnlen/memcpy.
13740
13741 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13742
13743         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13744         Optimize to avoid an unnecessary FPCR read.
13745
13746 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13747
13748         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13749         Optimize to reduce FPCR/FPSR accesses.
13750
13751 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13752
13753         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13754         dead->data[category] != NULL.
13755
13756 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13757
13758         [BZ #18647]
13759         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13760         and |x| close to 1, use absolute value of x when computing log.
13761         * math/auto-libm-test-in: Add more tests of pow.
13762         * math/auto-libm-test-out: Regenerated.
13763
13764 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13765
13766         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13767         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13768         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13769
13770 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13771
13772         [BZ #18525]
13773         * locales/km_KH: Remove timezone definition.
13774         * locales/lo_LA: Likewise.
13775         * locales/my_MM: Likewise.
13776         * locales/nan_TW@latin: Likewise.
13777         * locales/th_TH: Likewise.
13778         * locales/uk_UA: Likewise.
13779
13780 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13781
13782         [BZ #18265]
13783         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13784         (wcsncat): Likewise.
13785         (wcscmp): Likewise.
13786         (wcsncmp): Likewise.
13787
13788 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13789
13790         * test-skeleton.c (usage): New function.
13791         (main): Call usage when opt is '?'.
13792
13793 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13794
13795         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13796         before first use.
13797
13798 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13799
13800         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13801         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13802         in there too.
13803
13804 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13805
13806         * version.h (RELEASE): Set to "development".
13807         (VERSION): Set to "2.22.90"
13808
13809         * version.h (RELEASE): Set to "stable".
13810         (VERSION): Set to "2.22"
13811         * include/features.h (__GLIBC_MINOR__): Set to 22.
13812
13813 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13814
13815         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13816         Restructure macro to avoid "value computed is not used" warning.
13817         (atomic_compare_and_exchange_val_acq): Likewise.
13818
13819 2015-08-04  Andreas Schwab  <schwab@suse.de>
13820
13821         [BZ #18635]
13822         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13823         ret.
13824         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13825
13826 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13827
13828         * po/pl.po: Updated translation.
13829         * po/uk.po: Likewise.
13830         * po/fi.po: Likewise.
13831         * po/ko.po: Likewise.
13832         * po/ru.po: Likewise.
13833         * po/vi.po: Likewise.
13834
13835 2015-07-31  Zack Weinberg  <zackw@panix.com>
13836
13837         [BZ #18681]
13838         * regexp.h: Add unconditional #warning stating that this header
13839         will be removed soon.  Revise banner comment to match.
13840         (compile): Consistently use ERROR instead of RETURN to report
13841         errors (partial fix for bz#18681).
13842         * regexp.c: Don't include regexp.h. Remove some unnecessary
13843         declarations.
13844
13845 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
13846
13847         * po/libc.pot: Regenerated.
13848
13849 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
13850
13851         [BZ #18740]
13852         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
13853         float-vlen4-arch-ext-cflags): Removed.
13854         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
13855         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
13856
13857 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13858
13859         [BZ #14113]
13860         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
13861         aligned to __aligned__.
13862         (pthread_cond_t, pthread_rwlock_t): Likewise.
13863
13864 2015-07-30  Torvald Riegel  <triegel@redhat.com>
13865
13866         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
13867
13868 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13869
13870         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
13871         (struct sigaction): Change sa_flags from a long to an int, and add
13872         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
13873
13874 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13875
13876         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
13877         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
13878         sysdeps/generic/sysdep.h include.
13879         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
13880         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
13881         sysdeps/hppa/sysdep.h.
13882         (ENTRY, PSEUDO): Undefine before defining.
13883
13884 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13885
13886         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
13887         from scratch to use INTERNAL_SYSCALL.
13888
13889 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13890
13891         [BZ #18078]
13892         * scripts/check-localplt.awk: Support alternate relocations.
13893         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
13894         sections.
13895         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
13896         malloc entries with + REL R_386_GLOB_DAT.
13897         * sysdeps/x86_64/localplt.data: New file.
13898
13899 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
13900
13901         [BZ #18731]
13902         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
13903         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
13904         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
13905
13906 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13907
13908         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
13909
13910 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13911
13912         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
13913         directly in terms of __sync_fetch_and_add and delete (int) cast.
13914
13915 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13916
13917         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
13918         the -D_ASM_IA64_CURRENT_H flag.
13919
13920 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13921
13922         [BZ #18641]
13923         * pwd/pwd.h (putpwent): Delete __nonnull markings.
13924
13925 2015-07-27  Andreas Schwab  <schwab@suse.de>
13926
13927         * conform/conformtest.pl (checknamespace): Filter out string
13928         literals while tokenizing.
13929
13930 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13931
13932         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13933         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
13934         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13935
13936 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
13937
13938         * nptl/tst-join7mod.c: Add #include <string.h>.
13939
13940 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13941
13942         * sysdeps/nios2/libm-test-ulps: Update.
13943
13944 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
13945
13946         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
13947         Fix order of arguments to the rt_sigprocmask syscall.
13948         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
13949         Likewise.
13950
13951 2015-07-24  Roland McGrath  <roland@hack.frob.com>
13952
13953         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
13954
13955 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13956
13957         [BZ #18457]
13958         * nptl/Makefile (tests): New test case tst-join7.
13959         (modules-names): New test case module tst-join7mod.
13960         * nptl/tst-join7.c: New file.
13961         * nptl/tst-join7mod.c: New file.
13962         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
13963         all translation units in libc.so, libpthread.so and rtld.
13964
13965 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13966
13967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13968
13969 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
13970
13971         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
13972         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13973         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13974         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13975         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13976         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13977         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13978         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13979         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13980         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13981         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13982         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13983         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
13984         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
13985         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
13986         implementation.
13987
13988 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13989
13990         [BZ #17711]
13991         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13992         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
13993         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13994         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
13995         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
13996         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
13997
13998 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13999
14000         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14001         instead of just saying load lock in the comments.
14002
14003 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14004
14005         * sysdeps/unix/Subdirs: Moved ...
14006         * sysdeps/posix/Subdirs: ... here.
14007         * login/pty.h (struct termios, struct winsize): Add forward decls.
14008         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14009         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14010         * sysdeps/arm/nacl/libc.abilist: Updated.
14011         * sysdeps/nacl/libutil.abilist: New file.
14012
14013         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14014         (SIGWINCH): New macro.
14015
14016         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14017         * sysdeps/arm/nacl/libc.abilist: Add it.
14018
14019 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14020
14021         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14022
14023 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14024
14025         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14026         Swap __glibc_reserved0 and sa_flags order.
14027
14028 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14029
14030         [BZ #18657]
14031         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14032         are pending TLS destructor calls.
14033         * include/link.h (struct link_map): Add concurrency note for
14034         L_TLS_DTOR_COUNT.
14035         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14036         Don't touch the link map flag.  Atomically increment
14037         l_tls_dtor_count.
14038         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14039         Avoid taking the load lock and don't touch the link map flag.
14040         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14041         * stdlib/Makefile (tests): Use it.
14042         * stdlib/tst-tls-atexit.c (do_test): dlopen
14043         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14044         to allow tst-tls-atexit-nodelete test case to use it.
14045
14046 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14047
14048         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14049         to bits/types.h.
14050         (msgqnum_t): New typedef.
14051         (msglen_t): Likewise.
14052         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14053         and msg_qbytes type to msglen_t.
14054
14055 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14056
14057         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14058         pad0 to __glibc_reserved0.
14059         (struct stat64): Likewise.
14060
14061 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14062
14063         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14064         Change sa_flags from a long to an int and add __glibc_reserved0 before
14065         it for padding.
14066
14067 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14068
14069         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14070         anonymous by deleting "siginfo" name.
14071
14072 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14073
14074         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14075         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14076         rather than __nacl_irt_filename.
14077         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14078
14079         * NEWS: New item for arm-nacl port.
14080         * sysdeps/arm/nacl/libc.abilist: New file.
14081         * sysdeps/nacl/ld.abilist: New file.
14082         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14083         * sysdeps/nacl/libanl.abilist: New file.
14084         * sysdeps/nacl/libcrypt.abilist: New file.
14085         * sysdeps/nacl/libdl.abilist: New file.
14086         * sysdeps/nacl/libm.abilist: New file.
14087         * sysdeps/nacl/libpthread.abilist: New file.
14088         * sysdeps/nacl/libresolv.abilist: New file.
14089         * sysdeps/nacl/librt.abilist: New file.
14090
14091 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14092
14093         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14094         __startcontext to initialize the new context.
14095         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14096         up CFI directive to forbid further backtracing.
14097
14098 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14099
14100         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14101         reference.
14102         * charmaps/ANSI_X3.4-1968: Likewise.
14103         * charmaps/BS_4730: Likewise.
14104         * charmaps/BS_VIEWDATA: Likewise.
14105         * charmaps/CP1250: Likewise.
14106         * charmaps/CP1251: Likewise.
14107         * charmaps/CP1252: Likewise.
14108         * charmaps/CP1253: Likewise.
14109         * charmaps/CP1254: Likewise.
14110         * charmaps/CP1255: Likewise.
14111         * charmaps/CP1256: Likewise.
14112         * charmaps/CSN_369103: Likewise.
14113         * charmaps/EBCDIC-DK-NO: Likewise.
14114         * charmaps/GB_1988-80: Likewise.
14115         * charmaps/GREEK-CCITT: Likewise.
14116         * charmaps/GREEK7: Likewise.
14117         * charmaps/INIS-8: Likewise.
14118         * charmaps/ISIRI-3342: Likewise.
14119         * charmaps/ISO_2033-1983: Likewise.
14120         * charmaps/ISO_5427-EXT: Likewise.
14121         * locales/POSIX: Likewise.
14122         * locales/ar_SA: Likewise.
14123         * locales/be_BY: Likewise.
14124         * locales/be_BY@latin: Likewise.
14125         * locales/ca_ES: Likewise.
14126         * locales/cs_CZ: Likewise.
14127         * locales/da_DK: Likewise.
14128         * locales/de_BE: Likewise.
14129         * locales/de_CH: Likewise.
14130         * locales/de_LU: Likewise.
14131         * locales/en_AU: Likewise.
14132         * locales/en_BW: Likewise.
14133         * locales/en_CA: Likewise.
14134         * locales/en_DK: Likewise.
14135         * locales/en_GB: Likewise.
14136         * locales/en_IE: Likewise.
14137         * locales/en_NZ: Likewise.
14138         * locales/en_ZA: Likewise.
14139         * locales/en_ZW: Likewise.
14140         * locales/es_AR: Likewise.
14141         * locales/es_BO: Likewise.
14142         * locales/es_CL: Likewise.
14143         * locales/es_CO: Likewise.
14144         * locales/es_DO: Likewise.
14145         * locales/es_EC: Likewise.
14146         * locales/es_ES: Likewise.
14147         * locales/es_HN: Likewise.
14148         * locales/es_MX: Likewise.
14149         * locales/es_PA: Likewise.
14150         * locales/es_PE: Likewise.
14151         * locales/es_PY: Likewise.
14152         * locales/es_SV: Likewise.
14153         * locales/es_US: Likewise.
14154         * locales/es_UY: Likewise.
14155         * locales/es_VE: Likewise.
14156         * locales/et_EE: Likewise.
14157         * locales/fa_IR: Likewise.
14158         * locales/fo_FO: Likewise.
14159         * locales/fr_CA: Likewise.
14160         * locales/fr_CH: Likewise.
14161         * locales/gv_GB: Likewise.
14162         * locales/he_IL: Likewise.
14163         * locales/hr_HR: Likewise.
14164         * locales/id_ID: Likewise.
14165         * locales/is_IS: Likewise.
14166         * locales/it_CH: Likewise.
14167         * locales/iw_IL: Likewise.
14168         * locales/kl_GL: Likewise.
14169         * locales/ko_KR: Likewise.
14170         * locales/kw_GB: Likewise.
14171         * locales/lg_UG: Likewise.
14172         * locales/lt_LT: Likewise.
14173         * locales/lv_LV: Likewise.
14174         * locales/mi_NZ: Likewise.
14175         * locales/nhn_MX: Likewise.
14176         * locales/nl_BE: Likewise.
14177         * locales/pl_PL: Likewise.
14178         * locales/sk_SK: Likewise.
14179         * locales/sl_SI: Likewise.
14180         * locales/sv_FI: Likewise.
14181         * locales/tl_PH: Likewise.
14182         * locales/tr_TR: Likewise.
14183         * locales/vi_VN: Likewise.
14184
14185 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14186
14187         [BZ #17475]
14188         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14189         of tu_IN and bh_IN.
14190
14191 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14192
14193         [BZ #18694]
14194         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14195         bits/wordsize.h.
14196         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14197
14198 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14199
14200         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14201         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14202         (spawn_thread): New function.
14203         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14204         (do_test): ... here.  Use IS_LOADED to test for its
14205         availability.
14206
14207 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14208
14209         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14210
14211 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14212
14213         [BZ #18696]
14214         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14215         si_addr_bnd.
14216         (si_lower): New.
14217         (si_upper): Likewise.
14218
14219 2015-07-16  David S. Miller  <davem@davemloft.net>
14220
14221         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14222
14223 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14224
14225         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14226         buffer.
14227         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14228         fail output information.
14229
14230 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14231
14232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14233         and strstr-ppc64..
14234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14235         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14236         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14237         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14238         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14239
14240 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14241
14242         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14243         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14244         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14245         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14246
14247 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14248
14249         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14250         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14251         rtld_hidden_proto.
14252         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14253
14254 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14255
14256         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14257         the test can fail.
14258
14259         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14260
14261         [BZ #18676]
14262         * elf/tst-nodelete-opened.c: New test case.
14263         * elf/tst-nodelete-opened-lib.c: New test case module.
14264         * elf/Makefile (tests, modules-names): Use them.
14265         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14266         early.
14267
14268 2015-07-15  David S. Miller  <davem@davemloft.net>
14269
14270         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14271         futex-intenal.h
14272         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14273         * sysdeps/sparc/sparc64/Makefile: Likewise.
14274         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14275         Remove space from macro define.
14276         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14277
14278 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14279
14280         [BZ #17475]
14281         * locale/iso-639.def: Update Bhili and Tulu language codes as
14282         per iso639-3.
14283
14284 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14285
14286         * elf/tst-leaks1.c (main): Converted to ...
14287         (do_test): ... this.
14288         (TEST_FUNCTION): New macro.
14289         Include test-skeleton.c.
14290         * localedata/tst-langinfo.c (main): Converted to ...
14291         (do_test): ... this.
14292         (TEST_FUNCTION): New macro.
14293         Include test-skeleton.c.
14294         * math/test-fpucw.c (main): Converted to ...
14295         (do_test): ... this.
14296         (TEST_FUNCTION): New macro.
14297         Include test-skeleton.c.
14298         * math/test-tgmath.c (main): Converted to ...
14299         (do_test): ... this.
14300         (TEST_FUNCTION): New macro.
14301         Include test-skeleton.c.
14302         * math/test-tgmath2.c (main): Converted to ...
14303         (do_test): ... this.
14304         (TEST_FUNCTION): New macro.
14305         Include test-skeleton.c.
14306         * setjmp/tst-setjmp.c (main): Converted to ...
14307         (do_test): ... this.
14308         (TEST_FUNCTION): New macro.
14309         Include test-skeleton.c.
14310         * stdio-common/tst-sscanf.c (main): Converted to ...
14311         (do_test): ... this.
14312         (TEST_FUNCTION): New macro.
14313         Include test-skeleton.c.
14314         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14315         (do_test): ... this.
14316         (TEST_FUNCTION): New macro.
14317         Include test-skeleton.c.
14318
14319         * elf/tst-audit9.c (main): Converted to ...
14320         (do_test): ... this.
14321         (TEST_FUNCTION): New macro.
14322         Include test-skeleton.c.
14323
14324 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14325
14326         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14327
14328 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14329
14330         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14331         New variable.
14332
14333 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14334
14335         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14336
14337 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14338
14339         * sysdeps/generic/dl-fileid.h: New file.
14340         * sysdeps/posix/dl-fileid.h: New file.
14341         * sysdeps/nacl/dl-fileid.h: New file.
14342         * include/link.h: Include <dl-fileid.h>.
14343         (struct link_map): Replace l_dev and l_ino with l_file_id.
14344         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14345         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14346         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14347
14348 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14349
14350         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14351
14352 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14353
14354         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14355         Add iff $CXX is set.
14356         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14357         Likewise.
14358         (tst-nodelete-zmodiff): Likewise.
14359         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14360
14361 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14362
14363         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14364
14365 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14366
14367         * sysdeps/aarch64/fpu/math_private.h
14368         (define math_opt_barrier): Add AArch64 version.
14369         (math_force_eval): Likewise.
14370
14371 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14372
14373         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14374
14375 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14376
14377         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14378         %ld with %jd and cast to intmax_t.
14379         (do_test_length_zero): Likewise.
14380
14381 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14382
14383         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14384
14385 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14386
14387         * sysdeps/tile/libm-test-ulps: Regenerated.
14388
14389         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14390         Comment out the whole function, not just its body.
14391
14392 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14393
14394         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14395         locks.
14396
14397         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14398
14399 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14400
14401         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14402         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14403
14404 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14405
14406         * sysdeps/nptl/futex-internal.h: New file.
14407         * sysdeps/nacl/futex-internal.h: New file.
14408         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14409         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14410         error checking.
14411         (setxid_unmark_thread): Likewise.
14412         (__nptl_setxid): Likewise.
14413         (__wait_lookup_done): Likewise.
14414         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14415         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14416         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14417         * nptl/pthread_once.c (clear_once_control): Likewise.
14418         (__pthread_once_slow): Likewise.
14419         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14420         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14421         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14422         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14423         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14424         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14425         Likewise.
14426         (__pthread_rwlock_rdlock): Likewise.
14427         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14428         Likewise.
14429         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14430         Likewise.
14431         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14432         Likewise.
14433         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14434         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14435         Likewise.
14436         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14437         __ASSUME_PRIVATE_FUTEX check.
14438         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14439         Check that shared futexes are supported.
14440         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14441         wrappers with error checking.
14442         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14443         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14444         * nptl/pthread_barrierattr_setpshared.c
14445         (pthread_barrierattr_setpshared): Check that shared futexes are
14446         supported.
14447         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14448         Likewise.
14449         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14450         Likewise.
14451         * nptl/sem_init.c (futex_private_if_supported): Remove.
14452         (__new_sem_init): Adapt and check that shared futexes are supported.
14453         * nptl/sem_open.c (sem_open): Likewise.
14454         * nptl/sem_post.c (futex_wake): Remove.
14455         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14456         (do_futex_wait): Use futex wrappers with error checking.
14457         * nptl/sem_wait.c: Include lowlevellock.h.
14458         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14459         Use futex_supports_pshared.
14460         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14461         Use futex wrappers with error checking.
14462         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14463         Likewise.
14464         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14465         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14466         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14467         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14468         (futex_wake): Likewise.
14469         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14470         (do_futex_wait): Use futex wrappers with error checking.
14471         (__new_sem_wait_slow): Update EINTR handling.
14472         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14473
14474 2015-07-09  Martin Sebor  <msebor@redhat.com>
14475
14476         [BZ #18435]
14477         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14478         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14479         * nptl/Makefile (test-xfail-tst-once5): Define.
14480
14481 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14482
14483         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14484         * elf/dl-minimal.c: For readability, reorder some definitions and
14485         introduce more page breaks.  Include <stdio.h>.
14486         (__libc_fatal): New function.
14487
14488         * include/unistd.h: Add rtld_hidden_proto for _exit.
14489         * posix/_exit.c: Add rtld_hidden_def.
14490         * sysdeps/mach/hurd/_exit.c: Likewise.
14491         * sysdeps/nacl/_exit.c: Likewise.
14492         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14493         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14494
14495 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14496
14497         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14498         bndmov encoding with zero displacement.
14499
14500 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14501             H.J. Lu  <hongjiu.lu@intel.com>
14502
14503         [BZ #18134]
14504         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14505         * sysdeps/i386/configure: Regenerated.
14506         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14507         (_dl_runtime_profile): Save and restore Intel MPX return bound
14508         registers when calling _dl_call_pltexit.  Add
14509         PRESERVE_BND_REGS_PREFIX before return.
14510         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14511         (LRV_BND1_OFFSET): Likewise.
14512         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14513         lrv_bnd1.
14514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14515         typo in bndmov encoding.
14516         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14517         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14518         branch instructions to preserve bounds.
14519
14520 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14521
14522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14523         [GLIBC_2.22]: Add fmemopen.
14524
14525 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14526
14527         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14528         returns an error, also try to use host port from __mach_host_self for
14529         the __vm_wire call.
14530         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14531
14532 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14533
14534         [BZ #18400]
14535         [BZ #18648]
14536         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14537         Fix pr_uid and pr_gid members.
14538         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14539         definition to elf_greg_t.
14540
14541 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14542
14543         [BZ #18383]
14544         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14545         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14546         * sysdeps/arm/configure: Regenerated.
14547         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14548         (test-xfail-tst-tlsalign-static): Variable removed.
14549
14550         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14551         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14552         rather than explicit 'ln -s'.
14553
14554         * resolv/rpc/netdb.h: New file.
14555         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14556
14557 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14558
14559         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14560         length buffers.
14561         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14562         test-skeleton.c.
14563
14564         [BZ #6544]
14565         [BZ #11216]
14566         [BZ #12836]
14567         [BZ #13151]
14568         [BZ #13152]
14569         [BZ #14292]
14570         * include/stdio.h (fmemopen): Remove hidden prototype.
14571         (__fmemopen): Add new hidden prototype.
14572         * libio/Makefile: Add oldfmemopen object.
14573         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14574         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14575         compliance.
14576         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14577         symbol compatibility.
14578         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14579         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14580         fmemopen.
14581         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14582         on append and read mode.
14583         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14584         fmemopen.
14585         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14586         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14587         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14588         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14589         Likewise.
14590         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14591         [GLIBC_2.22]: Likewise.
14592         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14593         Likewise.
14594         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14595         Likewise.
14596         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14597         [GLIBC_2.22]: Likewise.
14598         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14599         [GLIBC_2.22]: Likewise.
14600         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14601         [GLIBC_2.22]: Likewise.
14602         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14603         [GLIBC_2.22]: Likewise.
14604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14605         [GLIBC_2.22]: Likewise.
14606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14607         [GLIBC_2.22]: Likewise.
14608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14609         [GLIBC_2.22]: Likewise.
14610         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14611         Likewise.
14612         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14613         Likewise.
14614         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14615         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14616         [GLIBC_2.22]: Likewise.
14617         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14618         [GLIBC_2.22]: Likewise.
14619         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14620         [GLIBC_2.22]: Likewise.
14621         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14622         [GLIBC_2.22]: Likewise.
14623         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14624         Likewise.
14625         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14626         Likewise.
14627         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14628         Likewise.
14629         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14630         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14631
14632 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14633
14634         [BZ #18643]
14635         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14636         IPV6_PATHMTU, and IPV6_DONTFRAG.
14637
14638 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14639
14640         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14641         and _IO_UNBUFFERED.
14642         * libio/oldfileops.c: Likewise.
14643         * libio/wfileops.c: Likewise.
14644
14645 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14646
14647         * nscd/selinux.c: Delete selinux/flask.h include.
14648
14649 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14650
14651         [BZ #18641]
14652         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14653         (putpwent): Likewise.
14654         (getpwnam): Likewise.
14655         (getpwent_r): Likewise.
14656         (getpwuid_r): Likewise.
14657         (getpwnam_r): Likewise.
14658         (fgetpwent_r): Likewise.
14659
14660 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14661
14662         [BZ #18557]
14663         * inet/rcmd.c (__validuser2_sa): Check user first to
14664         short-circuit host check.
14665
14666 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14667             Mikhail Ilin  <m.ilin@samsung.com>
14668
14669         [BZ #17833]
14670         * elf/Makefile (tests): Add tst-nodelete.
14671         (modules-names): Add tst-nodelete-uniquemod.
14672         (tst-nodelete-uniquemod.so-no-z-defs): New.
14673         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14674         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14675         ($(objpfx)tst-nodelete): Likewise.
14676         ($(objpfx)tst-nodelete.out): Likewise.
14677         (LDFLAGS-tst-nodelete): Likewise.
14678         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14679         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14680         implement forced object deletion.
14681         (_dl_close): Pass false to _dl_close_worker.
14682         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14683         * elf/tst-nodelete.cc: New file.
14684         * elf/tst-nodeletelib.cc: Likewise.
14685         * elf/tst-znodeletelib.cc: Likewise.
14686         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14687
14688 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14689
14690         [BZ #18508]
14691         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14692         Depend on $(libdl).
14693         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14694         is not called infinitely times.
14695         (backtrace_helper): New function.
14696         (trace_arg): New struct.
14697         (st1): Enlarge stack size.
14698         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14699         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14700         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14701         Likewise.
14702
14703 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14704
14705         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14706
14707 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14708
14709         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14710         Include sys/types.h instead of bits/types.h.
14711         Remove inclusion of bits/wordsize.h.
14712
14713 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14714
14715         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14716         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14717         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14718         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14719         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14720         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14721
14722 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14723
14724         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14725         link-defines.sym.
14726         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14727         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14728         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14729         and LR_SIZE.
14730         * sysdeps/i386/link-defines.sym: New file.
14731
14732 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14733
14734         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14735         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14736         ($(objpfx)tst-audit3): New rule.
14737         ($(objpfx)tst-audit3.out): Likewise.
14738         * sysdeps/i386/tst-audit3.c: New file.
14739         * sysdeps/i386/tst-audit3.h: Likewise.
14740         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14741         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14742
14743 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14744
14745         [BZ #18633]
14746         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14747         pointer in C code.
14748         (__strcat_c): Likewise.
14749         (__strcat_g): Likewise.
14750
14751 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14752
14753         [BZ #18592]
14754         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14755
14756 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14757
14758         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14759         New function.  (__ieee754_sqrtf): New function.
14760         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14761         New function.
14762         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14763         New function.
14764
14765 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14766
14767         * sysdeps/ieee754/support.c: Remove unused file.
14768
14769 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14770
14771         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14772         registers instead of d ones so the layout is kernel abi compatible.
14773         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14774         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14775         Likewise.
14776
14777 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14778
14779         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14780
14781 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14782
14783         [BZ #18619]
14784         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14785         and return argument in case of subnormal argument.
14786
14787 2015-07-01  Martin Sebor  <msebor@redhat.com>
14788
14789         [BZ #18435]
14790         * nptl/Makefile: Add tst-once5.cc.
14791         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14792         Remove macro redefinitions.
14793         * nptl/tst-once5.cc: New test.
14794
14795 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14796
14797         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14798
14799         * sysdeps/arm/libm-test-ulps: Regenerated.
14800
14801         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14802         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14803
14804 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14805
14806         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14807         lll_lock_wait_private and lll_futex_wake probes.
14808
14809         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14810         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14811         Likewise.
14812         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14813         atomic_spin_nop.
14814         * sysdeps/x86_64/bits/atomic.h: Likewise.
14815         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14816         to atomic_spin_nop and move ...
14817         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14818         ... here and ...
14819         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14820         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14821         atomic_spin_nop instead of BUSY_WAIT_NOP.
14822         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14823         Likewise.
14824         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14825         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14826         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14827         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14828         instead of atomic_delay.
14829
14830 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14831
14832         [BZ #18613]
14833         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14834         X_ADJ not X when adjusting exponent.
14835         (__ieee754_gamma_r): Do intermediate computations in
14836         round-to-nearest then adjust overflowing and underflowing results
14837         as needed.
14838         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14839         of X_ADJ not X when adjusting exponent.
14840         (__ieee754_gammaf_r): Do intermediate computations in
14841         round-to-nearest then adjust overflowing and underflowing results
14842         as needed.
14843         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
14844         log of X_ADJ not X when adjusting exponent.
14845         (__ieee754_gammal_r): Do intermediate computations in
14846         round-to-nearest then adjust overflowing and underflowing results
14847         as needed.  Use 1.0L not 1.0f as numerator of division.
14848         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
14849         log of X_ADJ not X when adjusting exponent.
14850         (__ieee754_gammal_r): Do intermediate computations in
14851         round-to-nearest then adjust overflowing and underflowing results
14852         as needed.  Use 1.0L not 1.0f as numerator of division.
14853         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
14854         of X_ADJ not X when adjusting exponent.
14855         (__ieee754_gammal_r): Do intermediate computations in
14856         round-to-nearest then adjust overflowing and underflowing results
14857         as needed.  Use 1.0L not 1.0f as numerator of division.
14858         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
14859         to auto-libm-test-in.
14860         (tgamma_test): Use ALL_RM_TEST.
14861         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
14862         tests of tgamma with spurious-overflow.
14863         * math/auto-libm-test-out: Regenerated.
14864         * math/gen-libm-have-vector-test.sh: Do not check for START.
14865         * sysdeps/i386/fpu/libm-test-ulps: Update.
14866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14867
14868         [BZ #18612]
14869         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
14870         arguments, just return 0.5 times the argument, with underflow
14871         forced as needed.
14872         * math/auto-libm-test-in: Add more tests of j1.
14873         * math/auto-libm-test-out: Regenerated.
14874
14875         [BZ #16559]
14876         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
14877         (__ieee754_j1): Force underflow exception for small results.
14878         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14879         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
14880         (__ieee754_j1f): Force underflow exception for small results.
14881         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14882         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14883         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14884         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
14885         (__ieee754_j1l): Force underflow exception for small results.
14886         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14887         * math/auto-libm-test-in: Add more tests of j1 and jn.
14888         * math/auto-libm-test-out: Regenerated.
14889
14890         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
14891         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
14892         (PF_MPLS): Likewise.
14893         (AF_IB): Likewise.
14894         (AF_MPLS): Likewise.
14895         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
14896         value and macro.
14897         (MS_RMT_MASK): Include MS_LAZYTIME.
14898
14899 2015-06-26  Mel Gorman  <mgorman@suse.de>
14900
14901         [BZ #18502]
14902         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
14903         already minimal.
14904
14905 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
14906
14907         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
14908         (DT_MIPS_NUM): Update.
14909         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
14910         DT_MIPS_RLD_MAP_REL.
14911
14912 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
14913
14914         [BZ #16559]
14915         [BZ #18602]
14916         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
14917         round-to-nearest internally then recompute results that
14918         underflowed to zero in the original rounding mode.
14919         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14920         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14921         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14922         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14923         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
14924         * sysdeps/i386/fpu/libm-test-ulps: Update.
14925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14926
14927 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
14928
14929         * NEWS: Fixed description of link with vector math library.
14930
14931 2015-06-25  Andreas Schwab  <schwab@suse.de>
14932
14933         [BZ #18549]
14934         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
14935         * libio/test-fmemopen.c (do_test): Add test for it.
14936
14937 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14938
14939         [BZ #17841]
14940         * Makeconfig (no-pie-ldflag): New.
14941         (+link): Set to $(+link-pie) if default to PIE.
14942         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
14943         * config.make.in (build-pie-default): New.
14944         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
14945         is default.  AC_SUBST.
14946         * configure: Regenerated.
14947         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
14948
14949 2015-06-24  Roland McGrath  <roland@hack.frob.com>
14950
14951         * nptl/descr.h (struct pthread): Change type of field setxid_futex
14952         to 'unsigned int'.
14953
14954         * resolv/gai_misc.h (struct waitlist): Change type of field
14955         counterp to 'volatile unsigned int *'.
14956         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
14957         FUTEXADDR and OLDVAL.
14958         * resolv/getaddrinfo_a.c (getaddrinfo_a):
14959         Give local variable TOTAL type 'volatile unsigned int'.
14960         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14961         * resolv/gai_suspend.c (gai_suspend):
14962         Give local variable CNTR type 'unsigned int'.
14963
14964         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
14965         counterp to 'volatile unsigned int *'.
14966         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
14967         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
14968         (aio_suspend): Give local variable CNTR type 'unsigned int'.
14969         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
14970         Give local variable TOTAL type 'volatile unsigned int'.
14971         (struct async_waitlist): Change type of field counter to 'unsigned int'.
14972
14973 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14974
14975         [BZ #18383]
14976         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
14977         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
14978         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
14979         comment for i386/x86-64.
14980         (test-xfail-tst-tlsalign-extern-static): Removed.
14981
14982 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
14983
14984         * math/test-double.h: New file.
14985         * math/test-float.h: Likewise.
14986         * math/test-ldouble.h: Likewise.
14987         * math/test-math-inline.h: Likewise.
14988         * math/test-math-no-inline.h: Likewise.
14989         * math/test-math-scalar.h: Likewise.
14990         * math/test-math-vector.h: Likewise.
14991         * math/test-vec-loop.h: Remove file.  Contents moved into
14992         test-math-vector.h.
14993         * math/libm-test.inc (MATHCONST): Do not document macro.
14994         * math/test-double.c: Include test-double.h, test-math-no-inline.h
14995         and test-math-scalar.h.
14996         (FUNC): Remove macro.
14997         (FUNC_TEST): Likewise.
14998         (FLOAT): Likewise.
14999         (MATHCONST): Likewise.
15000         (PRINTF_EXPR): Likewise.
15001         (PRINTF_XEXPR): Likewise.
15002         (PRINTF_NEXPR): Likewise.
15003         (TEST_DOUBLE): Likewise.
15004         (TEST_MATHVEC): Likewise.
15005         (__NO_MATH_INLINES): Likewise.
15006         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15007         and test-math-scalar.h.
15008         (FUNC): Remove macro.
15009         (FUNC_TEST): Likewise.
15010         (FLOAT): Likewise.
15011         (MATHCONST): Likewise.
15012         (PRINTF_EXPR): Likewise.
15013         (PRINTF_XEXPR): Likewise.
15014         (PRINTF_NEXPR): Likewise.
15015         (TEST_FLOAT): Likewise.
15016         (TEST_MATHVEC): Likewise.
15017         (__NO_MATH_INLINES): Likewise.
15018         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15019         and test-math-scalar.h.
15020         (FUNC): Remove macro.
15021         (FUNC_TEST): Likewise.
15022         (FLOAT): Likewise.
15023         (MATHCONST): Likewise.
15024         (PRINTF_EXPR): Likewise.
15025         (PRINTF_XEXPR): Likewise.
15026         (PRINTF_NEXPR): Likewise.
15027         (TEST_DOUBLE): Likewise.
15028         (TEST_MATHVEC): Likewise.
15029         (TEST_INLINE): Likewise.
15030         (__NO_MATH_INLINES): Likewise.
15031         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15032         test-math-scalar.h.
15033         (FUNC): Remove macro.
15034         (FUNC_TEST): Likewise.
15035         (FLOAT): Likewise.
15036         (MATHCONST): Likewise.
15037         (PRINTF_EXPR): Likewise.
15038         (PRINTF_XEXPR): Likewise.
15039         (PRINTF_NEXPR): Likewise.
15040         (TEST_FLOAT): Likewise.
15041         (TEST_MATHVEC): Likewise.
15042         (TEST_INLINE): Likewise.
15043         (__NO_MATH_INLINES): Likewise.
15044         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15045         and test-math-scalar.h.
15046         (FUNC): Remove macro.
15047         (FUNC_TEST): Likewise.
15048         (FLOAT): Likewise.
15049         (MATHCONST): Likewise.
15050         (PRINTF_EXPR): Likewise.
15051         (PRINTF_XEXPR): Likewise.
15052         (PRINTF_NEXPR): Likewise.
15053         (TEST_LDOUBLE): Likewise.
15054         (TEST_MATHVEC): Likewise.
15055         (TEST_INLINE): Likewise.
15056         (__NO_MATH_INLINES): Likewise.
15057         * math/test-ldouble.c: Include test-ldouble.h,
15058         test-math-no-inline.h and test-math-scalar.h.
15059         (FUNC): Remove macro.
15060         (FUNC_TEST): Likewise.
15061         (FLOAT): Likewise.
15062         (MATHCONST): Likewise.
15063         (PRINTF_EXPR): Likewise.
15064         (PRINTF_XEXPR): Likewise.
15065         (PRINTF_NEXPR): Likewise.
15066         (TEST_LDOUBLE): Likewise.
15067         (TEST_MATHVEC): Likewise.
15068         (__NO_MATH_INLINES): Likewise.
15069         * math/test-double-vlen2.h: Include test-double.h,
15070         test-math-no-inline.h and test-math-vector.h.
15071         (FLOAT): Remove macro.
15072         (FUNC): Likewise.
15073         (MATHCONST): Likewise.
15074         (PRINTF_EXPR): Likewise.
15075         (PRINTF_XEXPR): Likewise.
15076         (PRINTF_NEXPR): Likewise.
15077         (TEST_DOUBLE): Likewise.
15078         (TEST_MATHVEC): Likewise.
15079         (__NO_MATH_INLINES): Likewise.
15080         (CNCT): Likewise.
15081         (CONCAT): Likewise.
15082         (WRAPPER_NAME): Likewise.
15083         (WRAPPER_DECL): Likewise.
15084         (WRAPPER_DECL_ff): Likewise.
15085         (WRAPPER_DECL_fFF): Likewise.
15086         (VECTOR_WRAPPER): Likewise.
15087         (VECTOR_WRAPPER_ff): Likewise.
15088         (VECTOR_WRAPPER_fFF): Likewise.
15089         (VEC_LEN): New macro.
15090         * math/test-double-vlen4.h: Include test-double.h,
15091         test-math-no-inline.h and test-math-vector.h.
15092         (FLOAT): Remove macro.
15093         (FUNC): Likewise.
15094         (MATHCONST): Likewise.
15095         (PRINTF_EXPR): Likewise.
15096         (PRINTF_XEXPR): Likewise.
15097         (PRINTF_NEXPR): Likewise.
15098         (TEST_DOUBLE): Likewise.
15099         (TEST_MATHVEC): Likewise.
15100         (__NO_MATH_INLINES): Likewise.
15101         (CNCT): Likewise.
15102         (CONCAT): Likewise.
15103         (WRAPPER_NAME): Likewise.
15104         (WRAPPER_DECL): Likewise.
15105         (WRAPPER_DECL_ff): Likewise.
15106         (WRAPPER_DECL_fFF): Likewise.
15107         (VECTOR_WRAPPER): Likewise.
15108         (VECTOR_WRAPPER_ff): Likewise.
15109         (VECTOR_WRAPPER_fFF): Likewise.
15110         (VEC_LEN): New macro.
15111         * math/test-double-vlen8.h: Include test-double.h,
15112         test-math-no-inline.h and test-math-vector.h.
15113         (FLOAT): Remove macro.
15114         (FUNC): Likewise.
15115         (MATHCONST): Likewise.
15116         (PRINTF_EXPR): Likewise.
15117         (PRINTF_XEXPR): Likewise.
15118         (PRINTF_NEXPR): Likewise.
15119         (TEST_DOUBLE): Likewise.
15120         (TEST_MATHVEC): Likewise.
15121         (__NO_MATH_INLINES): Likewise.
15122         (CNCT): Likewise.
15123         (CONCAT): Likewise.
15124         (WRAPPER_NAME): Likewise.
15125         (WRAPPER_DECL): Likewise.
15126         (WRAPPER_DECL_ff): Likewise.
15127         (WRAPPER_DECL_fFF): Likewise.
15128         (VECTOR_WRAPPER): Likewise.
15129         (VECTOR_WRAPPER_ff): Likewise.
15130         (VECTOR_WRAPPER_fFF): Likewise.
15131         (VEC_LEN): New macro.
15132         * math/test-float-vlen4.h: Include test-float.h,
15133         test-math-no-inline.h and test-math-vector.h.
15134         (FLOAT): Remove macro.
15135         (FUNC): Likewise.
15136         (MATHCONST): Likewise.
15137         (PRINTF_EXPR): Likewise.
15138         (PRINTF_XEXPR): Likewise.
15139         (PRINTF_NEXPR): Likewise.
15140         (TEST_FLOAT): Likewise.
15141         (TEST_MATHVEC): Likewise.
15142         (__NO_MATH_INLINES): Likewise.
15143         (CNCT): Likewise.
15144         (CONCAT): Likewise.
15145         (WRAPPER_NAME): Likewise.
15146         (WRAPPER_DECL): Likewise.
15147         (WRAPPER_DECL_ff): Likewise.
15148         (WRAPPER_DECL_fFF): Likewise.
15149         (VECTOR_WRAPPER): Likewise.
15150         (VECTOR_WRAPPER_ff): Likewise.
15151         (VECTOR_WRAPPER_fFF): Likewise.
15152         (VEC_LEN): New macro.
15153         * math/test-float-vlen8.h: Include test-float.h,
15154         test-math-no-inline.h and test-math-vector.h.
15155         (FLOAT): Remove macro.
15156         (FUNC): Likewise.
15157         (MATHCONST): Likewise.
15158         (PRINTF_EXPR): Likewise.
15159         (PRINTF_XEXPR): Likewise.
15160         (PRINTF_NEXPR): Likewise.
15161         (TEST_FLOAT): Likewise.
15162         (TEST_MATHVEC): Likewise.
15163         (__NO_MATH_INLINES): Likewise.
15164         (CNCT): Likewise.
15165         (CONCAT): Likewise.
15166         (WRAPPER_NAME): Likewise.
15167         (WRAPPER_DECL): Likewise.
15168         (WRAPPER_DECL_ff): Likewise.
15169         (WRAPPER_DECL_fFF): Likewise.
15170         (VECTOR_WRAPPER): Likewise.
15171         (VECTOR_WRAPPER_ff): Likewise.
15172         (VECTOR_WRAPPER_fFF): Likewise.
15173         (VEC_LEN): New macro.
15174         * math/test-float-vlen16.h: Include test-float.h,
15175         test-math-no-inline.h and test-math-vector.h.
15176         (FLOAT): Remove macro.
15177         (FUNC): Likewise.
15178         (MATHCONST): Likewise.
15179         (PRINTF_EXPR): Likewise.
15180         (PRINTF_XEXPR): Likewise.
15181         (PRINTF_NEXPR): Likewise.
15182         (TEST_FLOAT): Likewise.
15183         (TEST_MATHVEC): Likewise.
15184         (__NO_MATH_INLINES): Likewise.
15185         (CNCT): Likewise.
15186         (CONCAT): Likewise.
15187         (WRAPPER_NAME): Likewise.
15188         (WRAPPER_DECL): Likewise.
15189         (WRAPPER_DECL_ff): Likewise.
15190         (WRAPPER_DECL_fFF): Likewise.
15191         (VECTOR_WRAPPER): Likewise.
15192         (VECTOR_WRAPPER_ff): Likewise.
15193         (VECTOR_WRAPPER_fFF): Likewise.
15194         (VEC_LEN): New macro.
15195         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15196         test-vec-loop.h.
15197         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15198         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15199         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15200         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15201         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15202         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15203         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15204
15205 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15206
15207         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15208         (__getlogin_r): ... this.
15209
15210 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15211
15212         [BZ #18594]
15213         * math/s_ccosh.c (__ccosh): Compare with least normal value
15214         instead of comparing class with FP_SUBNORMAL.
15215         * math/s_ccoshf.c (__ccoshf): Likewise.
15216         * math/s_ccoshl.c (__ccoshl): Likewise.
15217         * math/s_cexp.c (__cexp): Likewise.
15218         * math/s_cexpf.c (__cexpf): Likewise.
15219         * math/s_cexpl.c (__cexpl): Likewise.
15220         * math/s_csin.c (__csin): Likewise.
15221         * math/s_csinf.c (__csinf): Likewise.
15222         * math/s_csinh.c (__csinh): Likewise.
15223         * math/s_csinhf.c (__csinhf): Likewise.
15224         * math/s_csinhl.c (__csinhl): Likewise.
15225         * math/s_csinl.c (__csinl): Likewise.
15226         * math/s_ctan.c (__ctan): Likewise.
15227         * math/s_ctanf.c (__ctanf): Likewise.
15228         * math/s_ctanh.c (__ctanh): Likewise.
15229         * math/s_ctanhf.c (__ctanhf): Likewise.
15230         * math/s_ctanhl.c (__ctanhl): Likewise.
15231         * math/s_ctanl.c (__ctanl): Likewise.
15232         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15233         csin, csinh, ctan and ctanh.
15234         * math/auto-libm-test-out: Regenerated.
15235         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15236         * sysdeps/i386/fpu/libm-test-ulps: Update.
15237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15238
15239 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15240
15241         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15242         return value is wrong, print the expected value too.
15243
15244 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15245
15246         [BZ #18585]
15247         * elf/readlib.c (is_gdb_python_file): New.
15248         (process_file): Don't issue errors on filenames with -gdb.py
15249         suffix.
15250
15251 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15252
15253         * math/auto-libm-test-in: Add more tests of csin and csinh.
15254         * math/auto-libm-test-out: Regenerated.
15255         * math/libm-test.inc (csin_test_data): Remove tests moved to
15256         auto-libm-test-in.
15257         (csinh_test_data): Likewise.
15258
15259         [BZ #18593]
15260         * math/s_csin.c (__csin): Negate before rather than after possibly
15261         overflowing multiplication.
15262         * math/s_csinf.c (__csinf): Likewise.
15263         * math/s_csinh.c (__csinh): Likewise.
15264         * math/s_csinhf.c (__csinhf): Likewise.
15265         * math/s_csinhl.c (__csinhl): Likewise.
15266         * math/s_csinl.c (__csinl): Likewise.
15267         * math/auto-libm-test-in: Add some tests of csin and csinh.
15268         * math/auto-libm-test-out: Regenerated.
15269         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15270         (csinh_test_data): Likewise.
15271         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15272
15273         [BZ #18586]
15274         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15275         underflow exception for small results.
15276
15277 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15278
15279         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15280         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15281         variable and included header.
15282         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15283         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15284         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15285         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15286         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15287         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15288         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15289         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15290         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15291         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15292         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15293         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15294         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15295         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15296         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15297         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15298
15299 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15300
15301         [BZ #16526]
15302         [BZ #16538]
15303         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15304         (__sin): Force underflow exception for arguments with small
15305         absolute value.
15306         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15307         (__kernel_sinf): Force underflow exception for arguments with
15308         small absolute value.
15309         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15310         (__kernel_sincosl): Force underflow exception for arguments with
15311         small absolute value.
15312         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15313         (__kernel_sinl): Force underflow exception for arguments with
15314         small absolute value.
15315         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15316         (__kernel_sincosl): Force underflow exception for arguments with
15317         small absolute value.
15318         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15319         (__kernel_sinl): Force underflow exception for arguments with
15320         small absolute value.
15321         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15322         (__kernel_sinl): Force underflow exception for arguments with
15323         small absolute value.
15324         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15325         (__kernel_sinf): Force underflow exception for arguments with
15326         small absolute value.
15327         * math/auto-libm-test-in: Add more tests of sin and sincos.
15328         * math/auto-libm-test-out: Regenerated.
15329
15330         [BZ #18245]
15331         [BZ #18583]
15332         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15333         (__kernel_standard_l): Use feholdexcept and fesetenv around
15334         conversion to double instead of special-casing overflow and
15335         underflow.
15336         * math/libm-test.inc (fmod_test_data): Add more tests.
15337         (remainder_test_data): Likewise.
15338         (sqrt_test_data): Likewise.
15339
15340 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15341
15342         [BZ #17403]
15343         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15344         atomic_read_barrier, atomic_write_barrier): Define.
15345         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15346         atomic_read_barrier, atomic_write_barrier): Define.
15347
15348 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15349
15350         * math/Makefile [$(PERL) != no]
15351         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15352         dependency on libm-test.stmp below the inclusion of Rules.
15353
15354 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15355
15356         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15357         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15358         and included header.
15359         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15360         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15361         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15362         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15363         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15364         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15365         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15366         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15367         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15368         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15369         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15370         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15371         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15372         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15373         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15374         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15375         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15376         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15377         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15378
15379 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15380
15381         [BZ #18371]
15382         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15383         intermediate but not final result might underflow.
15384         * math/s_csqrtf.c (__csqrtf): Likewise.
15385         * math/s_csqrtl.c (__csqrtl): Likewise.
15386         * math/auto-libm-test-in: Add more tests of csqrt.
15387         * math/auto-libm-test-out: Regenerated.
15388         * sysdeps/i386/fpu/libm-test-ulps: Update.
15389
15390         [BZ #18219]
15391         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15392         threshold on absolute value of exponent for which scaling is used.
15393         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15394         * math/auto-libm-test-in: Add more tests of exp2.
15395         * math/auto-libm-test-out: Regenerated.
15396
15397 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15398
15399         [BZ #17977]
15400         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15401         when initializing interface list, based on the bug analysis
15402         and the patch proposed by Eric Newton.
15403         * resolv/tst-res_hconf_reorder.c: New test.
15404         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15405         tst-res_hconf_reorder.
15406         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15407         and $(shared-thread-library).
15408         (tst-res_hconf_reorder-ENV): New variable.
15409
15410         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15411         in comment.
15412
15413 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15414
15415         [BZ #16353]
15416         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15417         (__expm1): Force underflow exception for arguments with small
15418         absolute value.
15419         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15420         (__expm1f): Force underflow exception for arguments with small
15421         absolute value.
15422         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15423         (__expm1): Force underflow exception for arguments with small
15424         absolute value.
15425         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15426         (__expm1f): Force underflow exception for arguments with small
15427         absolute value.
15428         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15429         Check for small arguments before calling __expm1.
15430         * math/auto-libm-test-in: Do not mark underflow exceptions as
15431         possibly missing for bug 16353.
15432         * math/auto-libm-test-out: Regenerated.
15433
15434 2015-06-22  Andreas Schwab  <schwab@suse.de>
15435
15436         [BZ #18513]
15437         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15438         PTR queries.
15439
15440 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15441
15442         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15443
15444         * string/strcoll_l.c: Remove unused struct element idxnow.
15445
15446 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15447
15448         [BZ #18569]
15449         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15450         underflow and return argument in case of subnormal argument.
15451         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15452         Likewise.
15453         * math/auto-libm-test-in: Add more tests of expm1.
15454         * math/auto-libm-test-out: Regenerated.
15455
15456         [BZ #16361]
15457         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15458         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15459         tiny results.
15460         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15461         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15462         tiny results.
15463         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15464         mark underflow exceptions as possibly missing for bug 16361.
15465         * math/auto-libm-test-out: Regenerated.
15466
15467 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15468
15469         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15470         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15471         Remove variable.
15472         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15473         (test-xfail-XOPEN2K8/utmpx.h/conform).
15474
15475         * conform/conformtest.pl ($xerrors): New variable.
15476         (note_error): New function.
15477         (compiletest): New argument $xfail.  Use not_error.
15478         (runtest): Likewise.
15479         (top level): Handle xfail- lines.  Update calls to compiletest and
15480         runtest.  Handle xfail- and optional- in headers listed with
15481         allow-header.
15482         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15483         (O_EXEC): Likewise.
15484         (O_SEARCH): Likewise.
15485         * conform/data/stropts.h-data (ioctl): Likewise.
15486         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15487         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15488         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15489         (msghdr.msg_controllen): Likewise.
15490         (cmsghdr.cmsg_len): Likewise.
15491         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15492         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15493         variable.
15494         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15495         (test-xfail-XPG4/stropts.h/conform): Likewise.
15496         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15497         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15498         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15499         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15500         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15501         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15502         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15503         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15504         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15505         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15506         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15507         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15508         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15509         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15510         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15511         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15512         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15513         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15514         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15515
15516 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15517
15518         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15519         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15520         definitions for proper unfolding of __MATHDECL_VEC.
15521
15522 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15523
15524         * benchtests/bench-strcoll.c:
15525         Include string.h.
15526         (main): Remove unused variable res.
15527
15528 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15529
15530         * timezone/Makefile (%/UTC %/Universal):
15531         Generate test-result files for UTC and Universal.
15532
15533 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15534
15535         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15536
15537 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15538
15539         [BZ #16350]
15540         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15541         for arguments with small absolute value.
15542         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15543         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15544         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15545         (__asinh): Force underflow exception for arguments with small
15546         absolute value.
15547         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15548         (__asinhf): Force underflow exception for arguments with small
15549         absolute value.
15550         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15551         (__asinhl): Force underflow exception for arguments with small
15552         absolute value.
15553         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15554         (__asinhl): Force underflow exception for arguments with small
15555         absolute value.
15556         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15557         (__asinhl): Force underflow exception for arguments with small
15558         absolute value.
15559         * math/auto-libm-test-in: Do not mark underflow exceptions as
15560         possibly missing for bug 16350.
15561         * math/auto-libm-test-out: Regenerated.
15562
15563         * include/bits/ipc.h: Remove file.
15564         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15565         variable.
15566         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15567         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15568         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15569         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15570         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15571         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15572         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15573         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15574         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15575
15576         * math/auto-libm-test-in: Remove spurious underflow allowance for
15577         tests of cexp.
15578         * math/auto-libm-test-out: Regenerated.
15579
15580         [BZ #18558]
15581         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15582         unconditional definition.
15583         (MCAST_BLOCK_SOURCE): Likewise.
15584         (MCAST_UNBLOCK_SOURCE): Likewise.
15585         (MCAST_LEAVE_GROUP): Likewise.
15586         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15587         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15588         (MCAST_MSFILTER): Likewise.
15589         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15590         Remove variable.
15591         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15592         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15593         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15594         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15595         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15596
15597 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15598
15599         * NEWS: Mention addition of x86_64 vector sincosf.
15600         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15601         * math/test-float-vlen4.h: Likewise.
15602         * math/test-float-vlen8.h: Likewise.
15603         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15604         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15605         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15606         * sysdeps/x86_64/fpu/Versions: New versions added.
15607         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15608         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15609         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15610         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15611         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15612         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15613         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15614         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15615         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15616         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15617         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15618         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15619         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15620         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15621         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15622         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15623         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15624         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15625         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15626         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15627         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15628         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15629         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15630         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15631
15632         * NEWS: Mention addition of x86_64 vector sincos.
15633         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15634         * math/math.h (__MATHDECL_VEC): New macro.
15635         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15636         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15637         declaration under condition.
15638         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15639         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15640         TEST_VEC_LOOP change.
15641         * math/test-double-vlen4.h: Likewise.
15642         * math/test-double-vlen8.h: Likewise.
15643         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15644         * math/test-float-vlen4.h: Likewise.
15645         * math/test-float-vlen8.h: Likewise.
15646         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15647         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15648         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15649         * sysdeps/x86_64/fpu/Versions: New versions added.
15650         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15651         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15652         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15653         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15654         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15655         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15656         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15657         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15658         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15659         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15660         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15661         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15662         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15663         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15664         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15665         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15666         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15667         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15668         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15669         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15670         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15671         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15672         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15673         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15674
15675         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15676         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15677         redirections for powf.
15678         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15679         * sysdeps/x86_64/fpu/Versions: New versions added.
15680         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15681         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15682         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15683         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15684         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15685         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15686         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15687         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15688         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15689         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15690         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15691         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15692         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15693         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15694         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15695         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15696         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15697         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15698         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15699         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15700         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15701         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15702         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15703         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15704         * math/test-float-vlen16.h: Fixed 2 argument macro.
15705         * math/test-float-vlen4.h: Likewise.
15706         * math/test-float-vlen8.h: Likewise.
15707         * NEWS: Mention addition of x86_64 vector powf.
15708
15709 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15710
15711         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15712         and redefine.
15713         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15714         and redefine.
15715         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15716         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15717         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15718
15719         [BZ #18553]
15720         * resource/getpriority.c (getpriority): Rename to __getpriority
15721         and define as weak alias of __getpriority.
15722         * resource/setpriority.c (setpriority): Rename to __setpriority
15723         and define as weak alias of __setpriority.
15724         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15725         __getpriority and define as weak alias of __getpriority.
15726         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15727         __setpriority and define as weak alias of __setpriority.
15728         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15729         strong name.
15730         (setpriority): Use __setpriority as strong name.
15731         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15732         __getpriority and define as weak alias of __getpriority.
15733         * include/sys/resource.h (__getpriority): Declare.  Use
15734         libc_hidden_proto.
15735         (__setpriority): Likewise.
15736         (getpriority): Don't use libc_hidden_proto.
15737         (setpriority): Likewise.
15738         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15739         getpriority.  Call __setpriority instead of setpriority.
15740         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15741         Remove variable.
15742
15743         [BZ #18547]
15744         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15745         as weak alias of __getttynam.  Use prototype function definition.
15746         Call __setttyent, __getttyent and __endttyent instead of
15747         setttyent, getttyent and endttyent.
15748         (getttyent): Rename to __getttyent and define as weak alias of
15749         __getttyent.  Call __setttyent instead of setttyent.  Call
15750         __fgets_unlocked instead of fgets_unlocked.
15751         (setttyent): Rename to __setttyent and define as weak alias of
15752         __setttyent.
15753         (endttyent): Rename to __endttyent and define as weak alias of
15754         __endttyent.
15755         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15756         (__setttyent): Likewise.
15757         (__endttyent): Likewise.
15758         (getttyent): Don't use libc_hidden_proto.
15759         (setttyent): Likewise.
15760         (endttyent): Likewise.
15761         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15762         __endttyent instead of setttyent, getttyent and endttyent.
15763         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15764         Remove variable.
15765
15766         [BZ #18546]
15767         * socket/recv.c (__recv): Use libc_hidden_def.
15768         * socket/socket.c (__socket): Likewise.
15769         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15770         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15771         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15772         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15773         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15774         libc_hidden_def.
15775         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15776         libc_hidden_weak.
15777         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15778         Use libc_hidden_proto.
15779         (__recv): Likewise.
15780         * socket/Versions (libc): Export __recv and __socket at version
15781         GLIBC_PRIVATE.
15782         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15783         instead of recv.
15784         (init_mq_netlink): Call __socket instead of socket.
15785         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15786         Remove variable.
15787
15788         [BZ #18545]
15789         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15790         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15791         hidden_weak.
15792         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15793         define as alias of __mq_timedsend.  Use hidden_weak.
15794         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15795         __mq_timedsend as strong name.
15796         (mq_timedreceive): Use __mq_timedreceive as strong name.
15797         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15798         (__mq_timedreceive): Likewise.
15799         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15800         __mq_timedreceive instead of mq_timedreceive.
15801         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15802         instead of mq_timedsend.
15803         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15804         Remove variable.
15805
15806         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15807         hidden_def and hidden_weak instead of libc_hidden_def and
15808         libc_hidden_weak.
15809         (top level): Refer to hidden_def in comment.
15810         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15811         macro.  Use it instead of libc_hidden_def.
15812         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15813         specify __GI_* name explicitly.
15814         (mq_timedreceive): Likewise.
15815         (mq_setattr): Likewise.
15816
15817         [BZ #18544]
15818         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15819         __pthread_barrier_init and define as weak alias of
15820         __pthread_barrier_init.
15821         * sysdeps/sparc/nptl/pthread_barrier_init.c
15822         (pthread_barrier_init): Likewise.
15823         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15824         __pthread_barrier_wait and define as weak alias of
15825         __pthread_barrier_wait.
15826         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15827         (pthread_barrier_wait): Likewise.
15828         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15829         (pthread_barrier_wait): Likewise.
15830         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15831         (pthread_barrier_wait): Likewise.
15832         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15833         (pthread_barrier_wait): Likewise.
15834         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15835         __pthread_barrier_wait at version GLIBC_PRIVATE.
15836         * include/pthread.h (__pthread_barrier_init): Declare.
15837         (__pthread_barrier_wait): Likewise.
15838         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15839         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15840         (helper_thread): Likewise.
15841         (init_mq_netlink): Call __pthread_barrier_init instead of
15842         pthread_barrier_init.
15843
15844         [BZ #18542]
15845         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
15846         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
15847         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
15848         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
15849         vswscanf.
15850         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
15851         Remove variable.
15852
15853         [BZ #18540]
15854         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
15855         strong alias of _IO_fflush.  Use libc_hidden_def.
15856         * libio/iofflush_u.c (fflush_unlocked): Rename to
15857         __fflush_unlocked and define as weak alias of __fflush_unlocked.
15858         Use libc_hidden_weak.
15859         * include/stdio.h (__fflush_unlocked): Declare.  Use
15860         libc_hidden_proto.
15861         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
15862         fflush_unlocked.
15863         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
15864         Remove variable.
15865
15866         [BZ #18539]
15867         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
15868         define as weak alias of __addseverity.
15869         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
15870         Remove variable.
15871         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
15872         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
15873         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
15874
15875         [BZ #18536]
15876         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
15877         (__tfind): Likewise.
15878         (__tdelete): Likewise.
15879         (__twalk): Likewise.
15880         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
15881         __twalk to GLIBC_PRIVATE.
15882         * include/search.h (__tsearch): Use libc_hidden_proto.
15883         (__tfind): Likewise.
15884         (__tdelete): Likewise.
15885         (__twalk): Likewise.
15886         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
15887         Call __tdelete instead of tdelete.
15888         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
15889         tfind.  Call __tsearch instead of tsearch.
15890         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
15891         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
15892         Remove variable.
15893         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
15894
15895         [BZ #18534]
15896         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
15897         (dprintf): Define as a weak alias of __dprintf, not a strong
15898         alias.
15899         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
15900         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
15901         dprintf.
15902         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
15903         Remove variable.
15904         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
15905         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
15906
15907         [BZ #18533]
15908         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
15909         not a strong alias.
15910         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
15911         Remove variable.
15912
15913         [BZ #18532]
15914         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
15915         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
15916         (in6addr_loopback): Rename to __in6addr_loopback and define as
15917         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
15918         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
15919         libc_hidden_proto.
15920         (__in6addr_any): Likewise.
15921         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
15922         in6addr_any.
15923         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
15924         variable.
15925         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
15926
15927 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
15928
15929         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
15930         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
15931         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
15932         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15933         redirections for pow.
15934         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15935         * sysdeps/x86_64/fpu/Versions: New versions added.
15936         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15937         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15938         build of SSE, AVX2 and AVX512 IFUNC versions.
15939         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
15940         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
15941         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
15942         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
15943         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
15944         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
15945         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
15946         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
15947         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
15948         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
15949         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
15950         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
15951         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
15952         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
15953         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15954         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15955         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15956         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15957         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15958         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15959         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15960         * NEWS: Mention addition of x86_64 vector pow.
15961
15962         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15963         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15964         redirections for expf.
15965         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15966         * sysdeps/x86_64/fpu/Versions: New versions added.
15967         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15968         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
15969         build of SSE, AVX2 and AVX512 IFUNC versions.
15970         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
15971         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
15972         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
15973         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
15974         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
15975         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
15976         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
15977         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
15978         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
15979         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
15980         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
15981         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
15982         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
15983         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15984         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15985         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15986         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15987         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15988         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15989         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15990         * NEWS: Mention addition of x86_64 vector expf.
15991
15992         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
15993         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
15994         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
15995         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15996         redirections for exp.
15997         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15998         * sysdeps/x86_64/fpu/Versions: New versions added.
15999         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16000         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16001         build of SSE, AVX2 and AVX512 IFUNC versions.
16002         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16003         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16004         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16005         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16006         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16007         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16008         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16009         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16010         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16011         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16012         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16013         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16014         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16015         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16016         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16017         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16018         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16019         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16020         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16021         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16022         * NEWS: Mention addition of x86_64 vector exp.
16023
16024         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16025         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16026         redirections for logf.
16027         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16028         * sysdeps/x86_64/fpu/Versions: New versions added.
16029         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16030         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16031         build of SSE, AVX2 and AVX512 IFUNC versions.
16032         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16033         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16034         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16035         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16036         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16037         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16038         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16039         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16040         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16041         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16042         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16043         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16044         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16045         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16046         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16047         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16048         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16049         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16050         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16051         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16052         * NEWS: Mention addition of x86_64 vector logf.
16053
16054         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16055         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16056         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16057         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16058         redirections for log.
16059         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16060         * sysdeps/x86_64/fpu/Versions: New versions added.
16061         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16062         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16063         build of SSE, AVX2 and AVX512 IFUNC versions.
16064         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16065         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16066         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16067         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16068         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16069         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16070         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16071         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16072         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16073         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16074         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16075         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16076         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16077         test.
16078         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16079         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16080         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16081         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16082         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16083         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16084         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16085         * NEWS: Mention addition of x86_64 vector log.
16086
16087 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16088
16089         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16090         cfi_adjust_cfa_offset argument.
16091         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16092         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16093
16094         [BZ #18034]
16095         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16096         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16097         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16098         ordering using ldar.
16099         (_dl_tlsdesc_dynamic): Likewise.
16100         (_dl_tlsdesc_return_lazy): Likewise.
16101         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16102         relaxed atomics instead of volatile and synchronize with release store.
16103         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16104         volatile.
16105         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16106
16107 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16108
16109         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16110         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16111         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16112         * sysdeps/x86_64/fpu/Versions: New versions added.
16113         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16114         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16115         build of SSE, AVX2 and AVX512 IFUNC versions.
16116         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16117         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16118         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16119         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16120         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16121         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16122         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16123         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16124         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16125         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16126         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16127         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16128         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16129         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16130         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16131         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16132         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16133         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16134         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16135         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16136         * NEWS: Mention addition of x86_64 vector sinf.
16137
16138 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16139
16140         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16141         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16142         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16143         Remove variable.
16144         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16145         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16146
16147 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16148
16149         [BZ #18530]
16150         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16151         strong alias of _IO_fputs.  Use libc_hidden_def.
16152         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16153         and define as weak alias of __fputs_unlocked.  Use
16154         libc_hidden_weak.
16155         * include/stdio.h (__fputs_unlocked): Declare.  Use
16156         libc_hidden_proto.
16157         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16158         fputs_unlocked.
16159
16160         [BZ #18529]
16161         * resolv/netdb.h [__USE_POSIX]: Change condition to
16162         [__USE_XOPEN2K].
16163         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16164         not expect.
16165         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16166         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16167         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16168         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16169         [XPG4 || UNIX98] (AI_ALL): Likewise.
16170         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16171         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16172         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16173         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16174         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16175         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16176         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16177         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16178         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16179         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16180         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16181         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16182         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16183         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16184         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16185         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16186         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16187         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16188         [XPG4 || UNIX98] (gai_strerror): Likewise.
16189         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16190         [XPG4 || UNIX98] (getnameinfo): Likewise.
16191
16192         [BZ #18528]
16193         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16194         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16195         __USE_XOPEN2K8].
16196         (getgrent): Likewise.
16197         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16198         expect.
16199         [XPG3 || POSIX2008] (endgrent): Likewise.
16200         [XPG3] (setgrent): Likewise.
16201         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16202         variable.
16203         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16204
16205         [BZ #18527]
16206         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16207         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16208         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16209         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16210         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16211         * include/unistd.h (__getlogin_r): Declare.  Use
16212         libc_hidden_proto.
16213         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16214         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16215         variable.
16216         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16217         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16218         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16219
16220 2015-06-12  Martin Sebor  <msebor@redhat.com>
16221
16222         [BZ #18512]
16223         * Makerules (check-install-supported): New target.
16224         (install): Add check-install-supported as a dependency.
16225         * manual/install.texi (Installing the C Library): Document
16226         that overriding prefix and exec_prefix is not supported.
16227         Mention DESTDIR.
16228         * INSTALL: Regenerate from the above.
16229
16230 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16231
16232         [BZ #18519]
16233         * posix/Versions (libc): Export __libc_pread at version
16234         GLIBC_PRIVATE.
16235         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16236         instead of pread.
16237         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16238         variable.
16239
16240         [BZ #18522]
16241         * misc/efgcvt_r.c
16242         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16243         (cvt_symbol): Use weak_alias instead of strong_alias.
16244         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16245         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16246         Remove variable.
16247         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16248         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16249
16250         [BZ #18520]
16251         * inet/herrno.c (h_errno): Rename to __h_errno.
16252         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16253         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16254         to __h_errno instead of h_errno.
16255         * nptl/herrno.c (h_errno): Rename to __h_errno.
16256         (__h_errno_location): Refer to __h_errno not h_errno.
16257         * resolv/Versions (h_errno): Rename to __h_errno.
16258         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16259         Remove variable.
16260         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16261
16262 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16263
16264         * configure.ac: More strict check for AVX512 assembler support.
16265         * configure: Regenerated.
16266
16267         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16268         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16269         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16270         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16271         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16272         * sysdeps/x86_64/fpu/Versions: New versions added.
16273         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16274         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16275         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16276         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16277         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16278         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16279         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16280         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16281         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16282         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16283         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16284         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16285         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16286         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16287         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16288         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16289         test.
16290         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16291         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16292         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16293         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16294         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16295         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16296         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16297         * NEWS: Mention addition of x86_64 vector sin.
16298
16299 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16300
16301         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16302         comment.
16303
16304 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16305
16306         [BZ #18479]
16307         * nptl/pt-interp.c: New file.
16308         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16309         Add pt-interp.
16310         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16311         $(common-objpfx)runtime-linker.h.
16312
16313 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16314
16315         * Makeconfig (+interp): Remove unused variable.
16316         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16317         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16318         $(elf-objpfx)runtime-linker.h.
16319         ($(elf-objpfx)runtime-linker.h): Rename to
16320         $(common-objpfx)runtime-linker.h and move ...
16321         * Makerules [$(build-shared) = yes]: ... here.
16322         * elf/interp.c: Include <runtime-linker.h> instead of
16323         <elf/runtime-linker.h>.
16324
16325 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16326
16327         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16328         (__gettimeofday_syscall): Remove vsyscall fallback.
16329         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16330         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16331         Add syscall fallback function.
16332         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16333         if vDSO is not present.
16334         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16335         fallback function.
16336         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16337         present.
16338         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16339         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16340
16341 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16342
16343         [BZ #18497]
16344         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16345         of wcscmp.
16346         (wcscmp): Define as weak alias of WCSCMP.
16347         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16348         wcscoll.
16349         (USE_HIDDEN_DEF): Define.
16350         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16351         __wcscoll.  Don't use libc_hidden_weak.
16352         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16353         wcscmp.
16354         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16355         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16356         __GI_wcscmp.
16357         (weak_alias): Undefine and redefine.
16358         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16359         __wcscmp and define as weak alias of __wcscmp.
16360         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16361         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16362         (__wcscoll): Likewise.
16363         (wcscmp): Don't use libc_hidden_proto.
16364         (wcscoll): Likewise.
16365         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16366         wcscoll.
16367         * posix/regexec.c (check_node_accept_bytes): Likewise.
16368         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16369         variable.
16370         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16371         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16372
16373         [BZ #18507]
16374         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16375         __fstatvfs and define as weak alias of __fstatvfs.  Use
16376         libc_hidden_weak.
16377         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16378         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16379         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16380         Define as alias of __fstatvfs, not fstatvfs.
16381         (fstatvfs64): Likewise.
16382         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16383         Define as alias of __statvfs, not statvfs.
16384         (statvfs64): Likewise.
16385         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16386         Remove variable.
16387
16388 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16389
16390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16391         (HAVE_GETCPU_VSYSCALL): Define.
16392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16393         (HAVE_GETCPU_VSYSCALL): Likewise.
16394         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16395         * sysdeps/unix/sysv/linux/sched_getcpu.c
16396         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16397         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16398         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16399         prototype.
16400         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16401         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16402         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16403         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16404         Define.
16405         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16406         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16407         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16408         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16409
16410 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16411
16412         * sysdeps/x86_64/fpu/Makefile: New file.
16413         * sysdeps/x86_64/fpu/Versions: New file.
16414         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16415         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16416         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16417         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16418         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16419         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16420         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16421         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16422         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16423         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16424         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16425         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16426         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16427         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16428         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16429         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16430         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16431         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16432         * sysdeps/x86_64/configure: Regenerated.
16433         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16434         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16435         * manual/install.texi (Configuring and compiling): Document
16436         --disable-mathvec.
16437         * INSTALL: Regenerated.
16438         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16439
16440         * math/Makefile: Added rules for vector tests.
16441         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16442         declaration under condition.
16443         * math/test-double-vlen2.h: New file.
16444         * math/test-double-vlen4.h: New file.
16445         * math/test-double-vlen8.h: New file.
16446         * math/test-vec-loop.h: Added initialization macro.
16447         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16448         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16449         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16450         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16451         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16452         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16453         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16454         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16455         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16456         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16457         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16458
16459         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16460         * sysdeps/x86_64/fpu/Versions: New versions added.
16461         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16462         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16463         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16464         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16465         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16466         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16467         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16468         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16469         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16470         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16471         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16472         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16473         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16474         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16475         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16476         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16477         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16478         * NEWS: Mention addition of x86_64 vector cosf.
16479
16480         * math/Makefile: Added CFLAGS for new tests.
16481         * math/test-float-vlen16.h: New file.
16482         * math/test-float-vlen4.h: New file.
16483         * math/test-float-vlen8.h: New file.
16484         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16485         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16486         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16487         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16488         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16489         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16490         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16491         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16492         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16493         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16494         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16495
16496 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16497
16498         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16499         * locale/programs/ld-ctype.c: Likewise.
16500
16501 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16502
16503         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16504         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16505         bit_ZMM16_31_state): New macro.
16506         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16507         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16508
16509 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16510
16511         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16512
16513 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16514
16515         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16516
16517 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16518
16519         [BZ #18498]
16520         * libio/memstream.c (open_memstream): Rename to __open_memstream
16521         and define as weak alias of __open_memstream.
16522         * include/stdio.h (__open_memstream): Declare.  Use
16523         libc_hidden_proto.
16524         (open_memstream): Don't use libc_hidden_proto.
16525         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16526         open_memstream.
16527         * posix/getopt.c (_getopt_internal_r): Likewise.
16528         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16529         variable.
16530         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16531         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16532         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16533
16534         [BZ #18496]
16535         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16536         instead of wcrtomb.
16537
16538         [BZ #18483]
16539         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16540         [__USE_XOPEN2K8].  Remove redundant #endif.
16541         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16542         Remove redundant #if.
16543         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16544         Remove variable.
16545         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16546         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16547
16548         [BZ #18495]
16549         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16550         (__iswlower): Likewise.
16551         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16552         (__iswlower): Likewise.
16553         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16554         instead of towlower.
16555         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16556         instead of iswlower.  Call __towupper instead of towupper.
16557         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16558         instead of iswalnum.
16559
16560 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16561
16562         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16563         errors to stderr.
16564
16565 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16566
16567         [BZ #15661]
16568         [BZ #17322]
16569         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16570         Check for overflow properly.  Check for O_APPEND.  Ignore large
16571         file system block sizes.  Add comments about problems.
16572         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16573         * manual/filesys.texi (Storage Allocation): New node.
16574
16575 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16576
16577         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16578         cancellable syscalls.
16579         (SYS_ify): Add guard to no redefine it.
16580         (INLINE_SYSCALL): Likewise.
16581         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16582         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16583         SYSCALL_CANCEL instead.
16584         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16585         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16586         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16587         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16588         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16589         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16590         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16591         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16592         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16593         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16594         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16595         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16596         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16597         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16598         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16599         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16600         Likewise.
16601         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16602         (__libc_pread64): Likewise.
16603         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16604         (__libc_preadv): Likewise.
16605         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16606         (__libc_readv64): Likewise.
16607         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16608         (__libc_pwrite): Likewise.
16609         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16610         (__libc_pwrite64): Likewise.
16611         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16612         (__libc_pwritev): Likewise.
16613         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16614         (__libc_pwritev64): Likewise.
16615         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16616         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16617         (sync_file_range): Likewise.
16618         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16619         Likewise.
16620         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16621         Likewise.
16622         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16623         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16624         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16625         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16626         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16627         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16628         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16629         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16631         Likewise.
16632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16633         (__libc_read64): Likewise.
16634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16635         Likewise.
16636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16637         Likewise.
16638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16639         Likewise.
16640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16641         Likewise.
16642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16643         (__libc_pread64): Likewise.
16644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16645         Likewise.
16646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16647         (__libc_pwrite64): Likewise.
16648         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16649         (sync_file_range): Likewise.
16650         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16651         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16652         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16653         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16654         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16655         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16656         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16657         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16658         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16659         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16660         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16661         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16662         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16663         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16664         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16665         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16666         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16667         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16668         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16669         Likewise.
16670         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16671         Likewise.
16672         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16673         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16674         Likewise.
16675         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16676         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16677         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16678         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16679         Likewise.
16680         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16681         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16682         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16683         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16684         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16685
16686 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16687
16688         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16689         Include dl-vdso.
16690         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16691         Use VDSO routines for gettimeofday, clock_gettime if
16692         available.
16693         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16694         Declare VDSO symbols.
16695         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16696         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16697         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16698         * sysdeps/unix/sysv/linux/arm/Versions: Add
16699         __vdso_clock_gettime.
16700
16701 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16702
16703         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16704         be an inline implementation regardless of library is built within.
16705         (open_not_cancel_2): Likewise.
16706         (__read_nocancel): Likewise.
16707         (__write_nocancel): Likewise.
16708         (openat_not_cancel): Likewise.
16709         (openat_not_cancel_3): Likewise.
16710         (openat64_not_cancel): Likewise.
16711         (openat64_not_cancel_3): Likewise.
16712         (__close_nocancel): Likewise.
16713         (pause_not_cancel): Likewise.
16714         (nanosleep_not_cancel): Likewise.
16715         (sigsuspend_not_cancel): Likewise.
16716
16717 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16718
16719         [BZ #14958]
16720         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16721         wake-up.
16722         (__pthread_rwlock_rdlock_slow): Likewise.
16723         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16724         Likewise.
16725         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16726         Likewise.
16727         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16728         * nptl/tst-rwlock16.c: New file.
16729         * nptl/Makefile (tests): Add new test.
16730
16731 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16732
16733         [BZ #18324]
16734         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16735         missing wake-up of readers.
16736         * nptl/tst-rwlock15.c: New file.
16737         * nptl/Makefile (tests): Add new test.
16738
16739 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16740
16741         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16742         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16743         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16744         and __nacl_supply_interface_rtld.
16745         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16746         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16747         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16748         Add __nacl_supply_interface_rtld.
16749         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16750
16751 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16752
16753         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16754         isfinite.
16755         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16756         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16757
16758 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16759
16760         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16761         __signbit* with standard C99 macros.
16762         * math/e_exp10l.c: Likewise.
16763         * math/e_exp2l.c: Likewise.
16764         * math/e_scalb.c: Likewise.
16765         * math/e_scalbf.c: Likewise.
16766         * math/e_scalbl.c: Likewise.
16767         * math/s_ldexp.c: Likewise.
16768         * math/s_ldexpf.c: Likewise.
16769         * math/s_ldexpl.c: Likewise.
16770         * math/w_atan2.c: Likewise.
16771         * math/w_atan2f.c: Likewise.
16772         * math/w_atan2l.c: Likewise.
16773         * math/w_cosh.c: Likewise.
16774         * math/w_coshf.c: Likewise.
16775         * math/w_coshl.c: Likewise.
16776         * math/w_exp10.c: Likewise.
16777         * math/w_exp10f.c: Likewise.
16778         * math/w_exp10l.c: Likewise.
16779         * math/w_exp2.c: Likewise.
16780         * math/w_exp2f.c: Likewise.
16781         * math/w_exp2l.c: Likewise.
16782         * math/w_fmod.c: Likewise.
16783         * math/w_fmodf.c: Likewise.
16784         * math/w_fmodl.c: Likewise.
16785         * math/w_hypot.c: Likewise.
16786         * math/w_hypotf.c: Likewise.
16787         * math/w_hypotl.c: Likewise.
16788         * math/w_jnl.c: Likewise.
16789         * math/w_lgamma.c: Likewise.
16790         * math/w_lgamma_r.c: Likewise.
16791         * math/w_lgammaf.c: Likewise.
16792         * math/w_lgammaf_r.c: Likewise.
16793         * math/w_lgammal.c: Likewise.
16794         * math/w_lgammal_r.c: Likewise.
16795         * math/w_pow.c: Likewise.
16796         * math/w_powf.c: Likewise.
16797         * math/w_powl.c: Likewise.
16798         * math/w_remainder.c: Likewise.
16799         * math/w_remainderf.c: Likewise.
16800         * math/w_remainderl.c: Likewise.
16801         * math/w_scalb.c: Likewise.
16802         * math/w_scalbf.c: Likewise.
16803         * math/w_scalbl.c: Likewise.
16804         * math/w_scalbln.c: Likewise.
16805         * math/w_scalblnf.c: Likewise.
16806         * math/w_scalblnl.c: Likewise.
16807         * math/w_sinh.c: Likewise.
16808         * math/w_sinhf.c: Likewise.
16809         * math/w_sinhl.c: Likewise.
16810         * math/w_tgamma.c: Likewise.
16811         * math/w_tgammaf.c: Likewise.
16812         * math/w_tgammal.c: Likewise.
16813         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16814         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16815         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16816         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16817         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16818         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16819         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16820         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16821         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16822         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16823         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16824         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16825         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16826         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16827         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16828         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16829         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16830         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16831         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16832         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16833         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16834         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16835         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16836         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16837         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16838         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16839         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16840         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16841         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16842         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16843         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
16844         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
16845         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
16846         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
16847         * stdio-common/printf_fp.c: Likewise.
16848         * stdio-common/printf_fphex.c: Likewise.
16849         * stdio-common/printf_size.c: Likewise.
16850
16851 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
16852
16853         [BZ #18470]
16854         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
16855         strnlen.
16856         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
16857         Remove variable.
16858         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
16859         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
16860         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
16861         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
16862         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
16863         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
16864         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
16865         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
16866         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
16867         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
16868
16869         [BZ #18468]
16870         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
16871         weak alias of __wmemchr.  Use libc_hidden_weak.
16872         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
16873         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
16874         instead of wmemchr.
16875
16876 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16877
16878         [BZ #18383]
16879         * elf/tst-tlsalign-extern.c: New file.
16880         * elf/tst-tlsalign-extern-static.c: New file.
16881         * elf/tst-tlsalign-vars.c: New file.
16882         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
16883         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
16884         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
16885         ($(objpfx)tst-tlsalign-extern-static): Likewise.
16886         (test-xfail-tst-tlsalign-extern-static): New variable.
16887
16888 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
16889
16890         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
16891         Use variable name _sc_err instead of err.
16892         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
16893         instead of ret.
16894         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
16895         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
16896         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
16897         (INLINE_SYSCALL): Likewise.
16898
16899         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
16900         * include/string.h (__strnlen): Use libc_hidden_proto.
16901         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
16902         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
16903         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
16904         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
16905         (libc_hidden_def): Undefine and redefine.
16906         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
16907         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
16908         __GI_strnlen.
16909         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
16910         libc_hidden_def.
16911         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
16912
16913         [BZ #18469]
16914         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
16915         weak alias of __towlower.  Use libc_hidden_weak.
16916         (towupper): Rename to __towupper and define as weak alias of
16917         __towupper.  Use libc_hidden_weak.
16918         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
16919         (__towupper): Likewise.
16920         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
16921         __towlower instead of towlower.
16922
16923 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16924
16925         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
16926         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
16927
16928 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16929
16930         * sysdeps/aarch64/libm-test-ulps: Update.
16931
16932 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16933
16934         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
16935         Define.
16936         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16937         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16938         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
16939         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
16940         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
16941         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
16942         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
16943
16944 2015-06-01  Martin Sebor  <msebor@redhat.com>
16945
16946         [BZ #18116]
16947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
16948         (__setcontext): Use extended four-operand version of mtsf whenever
16949         possible.
16950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
16951         (__novec_swapcontext): Likewise.
16952
16953 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16954
16955         * benchtests/scripts/compare_bench.py: New file.
16956         * benchtests/scripts/import_bench.py (mean): New function.
16957         (split_list): Likewise.
16958         (do_for_all_timings): Likewise.
16959         (compress_timings): Likewise.
16960
16961         * benchtests/scripts/import_bench.py: New file.
16962         * benchtests/scripts/validate_benchout.py: Import import_bench
16963         instead of jsonschema.
16964         (validate_bench): Remove function.
16965         (main): Use import_bench.
16966
16967 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
16968
16969         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
16970         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
16971
16972 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16973
16974         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16975
16976 2015-05-28  Roland McGrath  <roland@hack.frob.com>
16977
16978         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
16979         set THREAD_SELF->tid to a magic value and futex-wake it.
16980         Pass its address to the thread_exit system call.
16981         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
16982         bit is clear.
16983         * sysdeps/nacl/lowlevellock.h: New file.
16984         * sysdeps/nacl/lll_timedwait_tid.c: New file.
16985
16986         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
16987         Add TIMEOUT to current time, don't subtract it.
16988
16989 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
16990
16991         [BZ #2981]
16992         [BZ #18422]
16993         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
16994         ($(objpfx)tst-audit2.out): Also depend on
16995         $(objpfx)tst-auditmod9b.so.
16996         * elf/tst-audit2.c: Include <dlfcn.h>.
16997         (calloc_called): New.
16998         (calloc): Allow to be called more than once.
16999         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17000
17001 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17002
17003         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17004         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17005
17006 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17007
17008         * stdlib/monetary.h: Fix comment.
17009
17010 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17011
17012         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17013         Avoid using variables in #defines that might cause shadowing.
17014         (INTERNAL_VSYSCALL_CALL): Likewise.
17015
17016 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17017
17018         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17019
17020         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17021         * nptl/lll_timedlock_wait.c: ... to this new file.
17022         * nptl/Makefile (libpthread-routines): Add it.
17023         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17024         * nptl/lll_timedwait_tid.c: ... to this new file.
17025         * nptl/Makefile (libpthread-routines): Add it.
17026         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17027         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17028         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17029         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17030         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17031         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17032         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17033         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17034         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17035         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17036
17037 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17038
17039         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17040         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17041         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17042         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17043         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17044         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17045         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17046         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17047         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17048         * sysdeps/unix/sysv/linux/tile/sysdep.h
17049         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17050         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17051         using vDSO syscall macro.
17052
17053 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17054
17055         [BZ #17293]
17056         * uk_UA: Fix sorting order for Ukrainian locale
17057
17058 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17059
17060         * stdlib/monetary.h: Fix comment.
17061
17062 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17063
17064         [BZ #18234]
17065         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17066         st_mtim and st_ctim members.
17067         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17068         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17069         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17070         (struct stat64): Likewise.
17071         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17072         (struct stat64): Likewise.
17073         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17074         (struct stat64): Likewise.
17075
17076 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17077
17078         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17079         Define and include sysdep-vdso.h.
17080         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17081         Likewise.
17082         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17083         Likewise.
17084         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17085         Define with VDSO_SYMBOL and use PTR_MANGLE.
17086         (__vdso_clock_gettime): Likewise.
17087         (__vdso_clock_getres): Likewise.
17088         (_libc_vdso_platform_setup): Likewise.
17089         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17090         Likewise.
17091         (_libc_vdso_platform_setup): Likewise.
17092         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17093         Likewise.
17094         (__vdso_clock_gettime): Likewise.
17095         (__vdso_clock_getres): Likewise.
17096         (__vdso_get_tbfreq): Likewise.
17097         (__vdso_getcpu): Likewise.
17098         (__vdso_time): Likewise.
17099         (__vdso_sigtramp_rt64): Likewise.
17100         (__vdso_signtramp32): Likewise.
17101         (__vdso_sigtramp_rt32): Likewise.
17102         (_libc_vdso_platform_setup): Likewise.
17103         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17104         Likewise.
17105         (__vdso_clock_gettime): Likewise.
17106         (__vdso_clock_getres): Likewise.
17107         (_libc_vdso_platform_setup): Likewise.
17108         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17109         Likewise.
17110         (__vdso_clock_gettime): Likewise.
17111         (_libc_vdso_platform_setup): Likewise.
17112         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17113         Likewise.
17114         (__vdso_getcpu): Likewise.
17115         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17116         Use VDSO_SYMBOL macro to define.
17117         (__vdso_clock_gettime): Likewise.
17118         (__vdso_clock_getres): Likewise.
17119         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17120         Likewise.
17121         (__vdso_clock_gettime): Likewise.
17122         (__vdso_clock_getres): Likewise.
17123         (__vdso_get_tbfreq): Likewise.
17124         (__vdso_getcpu): Likewise.
17125         (__vdso_time): Likewise.
17126         (__vdso_sigtramp_rt64): Likewise.
17127         (__vdso_signtramp32): Likewise.
17128         (__vdso_sigtramp_rt32): Likewise.
17129         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17130         Likewise.
17131         (__vdso_clock_gettime): Likewise.
17132         (__vdso_clock_getres): Likewise.
17133         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17134         Likewise.
17135         (__vdso_clock_gettime): Likewise.
17136         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17137         Likewise.
17138         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17139         macro.
17140         (INTERNAL_VSYSCALL): Likewise.
17141         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17142         Remove macro.
17143         (INTERNAL_VSYSCALL): Likewise.
17144         (INTERNAL_VSYSCALL_NCS): Likewise.
17145         (INTERNAL_VSYSCALL_CALL): New macro.
17146         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17147         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17148         Likewise.
17149         (INTERNAL_VSYSCALL): Likewise.
17150         (INTERNAL_VSYSCALL_NCS): Likewise.
17151         (INTERNAL_VSYSCALL_CALL): New macro.
17152         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17154         (INLINE_VSYSCALL): Remove macro.
17155         (INTERNAL_VSYSCALL): Remove macro.
17156         (INTERNAL_VSYSCALL_NCS): Remove macro.
17157         (INTERNAL_VSYSCALL_CALL): New macro.
17158         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17159         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17160         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17161         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17162         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17164         (INLINE_VSYSCALL): Remove macro.
17165         (INTERNAL_VSYSCALL): Likewise.
17166         (INTERNAL_VSYSCALL_NCS): Likewise.
17167         (INTERNAL_VSYSCALL_CALL): New macro.
17168         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17169         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17170         PTR_DEMANGLE on vDSO pointer.
17171         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17172         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17173         macro.
17174         (INTERNAL_SYSCALL): Likewise.
17175         (INTERNAL_VSYSCALL_NCS): Remove macro.
17176         (INTERNAL_VSYSCALL_CALL): New macro.
17177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17178         Remove macro.
17179         (INTERNAL_VSYSCALL): Likewise.
17180         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17181         sysdep-vdso.h instead of libc-vdso.h.
17182         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17183         definition.
17184         (INLINE_VSYSCALL): Likewise.
17185         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17186         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17187         definition.
17188         (INLINE_VSYSCALL): Likewise.
17189         (INTERNAL_VSYSCALL): Likewise.
17190         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17191         * sysdeps/unix/sysv/linux/timespec_get.c
17192         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17193         (timespec_get): Use ANSI prototype.
17194         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17195         and definition for Linux.
17196
17197 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17198
17199         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17200         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17201
17202 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17203
17204         [BZ #2981]
17205         [BZ #18410]
17206         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17207         for missing DT_PLTRELSZ.
17208
17209 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17210
17211         Remove obsolete aliases that broke 'locale -a'
17212         [BZ #18412]
17213         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17214         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17215         breaking some applications that use 'locale -a' output.
17216         Change the encoding of this file from Latin-1 to ASCII to avoid
17217         other potential problems with people grepping this file.
17218
17219 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17220
17221         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17222         -fasynchronous-unwind-tables.
17223         (CFLAGS-sendto.c): Likewise.
17224         (CFLAGS-sendmsg.c): Likewise.
17225         (CFLAGS-connect.c): Likewise.
17226         (CFLAGS-recvmsg.c): Likewise.
17227         (CFLAGS-recvfrom.c): Likewise.
17228         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17229         (SOCKETCALL): New macro: non-cancellable socketcall.
17230         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17231         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17232         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17233         * sysdeps/unix/sysv/linux/accept.c: New file.
17234         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17235         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17236         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17237         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17238         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17239         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17240         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17241         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17242         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17243         * sysdeps/unix/sysv/linux/send.c: Likewise.
17244         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17245         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17246         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17247         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17248         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17249         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17250         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17251         prototype.
17252         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17253         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17254         instead of __internal_xxx function.
17255         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17256         prototype.
17257         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17258         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17259         instead of __internal_xxx function.
17260         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17261         prototype.
17262         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17263         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17264         instead of __internal_xxx function.
17265         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17266         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17267         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17268         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17269         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17270         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17271         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17272         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17273         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17274         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17275         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17276         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17277         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17278         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17279         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17280         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17281         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17282         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17283         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17284         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17287         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17288         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17289         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17290         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17291         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17292         * sysdeps/unix/sysv/linux/send.S: Likewise.
17293         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17294         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17295         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17296         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17297         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17298         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17299         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17300         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17301         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17302         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17303         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17304         socketcall is implemented in GLIBC.
17305
17306 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17307
17308         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17309         (__fma): Ignore uninitialized warnings around packing.
17310         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17311         (__fmaf): Ignore uninitialized warnings around packing.
17312         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17313         (__fmal): Ignore uninitialized warnings around packing.
17314
17315         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17316         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17317         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17318         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17319
17320         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17321         switch statement into default case.
17322         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17323
17324         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17325         a conditional in forcing "inexact".
17326         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17327         Likewise.
17328
17329 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17330
17331         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17332         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17333         for each INTERNAL_SYSCALL use.
17334
17335 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17336
17337         [BZ #438]
17338         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17339         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17340         variable.
17341
17342         [BZ #18444]
17343         * string/basename.c (basename): Rename to __basename and define as
17344         weak alias of __basename.  Use libc_hidden_weak.
17345         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17346         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17347         __basename instead of basename.
17348         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17349         Remove variable.
17350         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17351
17352 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17353
17354         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17355         (_IO_JUMPS_FILE_plus): New.
17356         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17357         _IO_CAST_FIELD_ACCESS.
17358         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17359         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17360         * libio/freopen.c (freopen): Likewise.
17361         * libio/freopen64.c (freopen64): Likewise.
17362         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17363         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17364         * libio/iofwide.c (_IO_fwide): Likewise.
17365         * libio/memstream.c (open_memstream): Likewise.
17366         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17367         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17368         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17369
17370 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17371
17372         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17373         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17374         NADJ.
17375         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17376         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17377         NADJ.
17378         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17379         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17380         NADJ.
17381
17382         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17383         (p == 4) case.
17384
17385         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17386         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17387         Remove variable.
17388         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17389         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17390         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17391
17392 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17393
17394         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17395         Adjust jump table label generation macros.
17396
17397 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17398
17399         * stdio-common/vfprintf.c (vfprintf): Move local variables
17400         args_malloced, specs, specs_malloced, and the code after
17401         do_positional to the printf_positional function.
17402         (printf_positional): New function.
17403
17404 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17405
17406         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17407         function.
17408         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17409         STEP4_TABLE, process_arg): Move macro definitions
17410         out of the vfprintf function.  (Cosmetic change only.)
17411
17412 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17413
17414         * benchtests/Makefile (stdio-common-bench): Define.
17415         (benchset): Add stdio-common-bench.
17416         * sprintf-inputs: New file.
17417         * sprintf-source.c: New file.
17418
17419 2015-05-21  Andreas Schwab  <schwab@suse.de>
17420
17421         [BZ #13028]
17422         [BZ #17053]
17423         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17424         of struct __res_state.
17425         * resolv/res_send.c (__libc_res_nsend): Likewise.
17426         (get_nsaddr): New function.
17427         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17428         statp directly.
17429
17430 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17431
17432         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17433         -D_POSIX_C_SOURCE=199506L.
17434
17435         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17436
17437         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17438         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17439         Do not mention otherwise.
17440         [POSIX] (_XOPEN_VERSION): Do not expect.
17441         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17442         [POSIX] (_POSIX2_C_BIND): Likewise.
17443         [POSIX] (_POSIX2_VERSION): Likewise.
17444         [POSIX] (_XOPEN_XPG2): Likewise.
17445         [POSIX] (_XOPEN_XPG3): Likewise.
17446         [POSIX] (_XOPEN_XPG4): Likewise.
17447         [POSIX] (_XOPEN_UNIX): Likewise.
17448         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17449         [POSIX] (_POSIX_BARRIERS): Likewise.
17450         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17451         [POSIX] (_POSIX_CPUTIME): Likewise.
17452         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17453         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17454         [POSIX] (_POSIX_SHELL): Likewise.
17455         [POSIX] (_POSIX_SPAWN): Likewise.
17456         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17457         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17458         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17459         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17460         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17461         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17462         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17463         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17464         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17465         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17466         [POSIX] (_POSIX2_PBS): Likewise.
17467         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17468         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17469         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17470         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17471         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17472         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17473         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17474         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17475         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17476         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17477         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17478         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17479         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17480         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17481         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17482         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17483         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17484         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17485         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17486         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17487         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17488         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17489         [POSIX] (_SC_2_C_BIND): Likewise.
17490         [POSIX] (_SC_2_C_VERSION): Likewise.
17491         [POSIX] (_SC_2_PBS): Likewise.
17492         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17493         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17494         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17495         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17496         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17497         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17498         [POSIX] (_SC_BARRIERS): Likewise.
17499         [POSIX] (_SC_BASE): Likewise.
17500         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17501         [POSIX] (_SC_DEVICE_IO): Likewise.
17502         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17503         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17504         [POSIX] (_SC_FD_MGMT): Likewise.
17505         [POSIX] (_SC_FIFO): Likewise.
17506         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17507         [POSIX] (_SC_FILE_LOCKING): Likewise.
17508         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17509         [POSIX] (_SC_IOV_MAX): Likewise.
17510         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17511         [POSIX] (_SC_NETWORKING): Likewise.
17512         [POSIX] (_SC_PAGE_SIZE): Likewise.
17513         [POSIX] (_SC_PASS_MAX): Likewise.
17514         [POSIX] (_SC_PIPE): Likewise.
17515         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17516         [POSIX] (_SC_REGEXP): Likewise.
17517         [POSIX] (_SC_SHELL): Likewise.
17518         [POSIX] (_SC_SIGNALS): Likewise.
17519         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17520         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17521         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17522         [POSIX] (_SC_USER_GROUPS): Likewise.
17523         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17524         [POSIX] (_SC_STREAMS): Likewise.
17525         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17526         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17527         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17528         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17529         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17530         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17531         [POSIX] (_PC_FILESIZEBITS): Likewise.
17532         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17533         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17534         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17535         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17536         [POSIX] (uid_t): Likewise.
17537         [POSIX] (gid_t): Likewise.
17538         [POSIX] (off_t): Likewise.
17539         [POSIX] (pid_t): Likewise.
17540         [POSIX] (cuserid): Allow.
17541         (_SC_2_CHAR_TERM): Require constant.
17542         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17543         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17544         variable.
17545
17546 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17547
17548         * sysdeps/nacl/pthread-pids.h: New file.
17549         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17550         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17551
17552         * nptl/pthread-pids.h: New file.
17553         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17554         * nptl/nptl-init.c: Include <pthread-pids.h>.
17555         (__pthread_initialize_minimal_internal):
17556         Call __pthread_initialize_pids instead of set_tid_address syscall.
17557
17558         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17559         * sysdeps/posix/usleep.c: ... here.
17560
17561 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17562
17563         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17564         call_pselect6 object.
17565         [$(subdir) = io]: Remove call_sync_file_range object.
17566         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17567         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17568         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17569         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17570
17571 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17572
17573         * math/s_cproj.c: Add include "math_private.h".
17574         * math/s_cprojf.c: Likewise.
17575         * math/s_cprojl.c: Likewise.
17576
17577 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17578
17579         [BZ #18244]
17580         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17581         high mantissa bit when testing whether P is a NaN.
17582         * math/libm-test.inc (remainder_test_data): Add more tests.
17583         (remquo_test_data): Likewise.
17584
17585         [BZ #18049]
17586         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17587         below -32, return the argument, with underflow if subnormal.
17588         * math/auto-libm-test-in: Add more tests of atanh.
17589         * math/auto-libm-test-out: Regenerated.
17590
17591 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17592
17593         [BZ #18434]
17594         * nptl/tst-sem15.c: New file.
17595         * nptl/Makefile (tests): Add it.
17596         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17597         s/<</>>/ to fix typo in EOVERFLOW check.
17598         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17599
17600 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17601
17602         * manual/strings.texi (envz_remove): Fix typo in safety
17603         annotations.
17604
17605 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17606             Steve Ellcey  <sellcey@imgtec.com>
17607
17608         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17609         in order to avoid strict alias warnings.
17610         (iruserok_af): Ditto for ra.
17611
17612 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17613
17614         [BZ #17581]
17615         * malloc/hooks.c
17616         (magicbyte): Convert to a function and avoid returning 0x01.
17617         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17618         (mem2chunk_check): Fix unsigned comparisons to zero.
17619         Hoist defs of sz and magic.
17620
17621 2015-05-19  Richard Henderson  <rth@redhat.com>
17622
17623         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17624
17625         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17626
17627 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17628
17629         [BZ #16159]
17630         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17631         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17632         (reused_arena): Find a non-corrupt arena.
17633         (heap_trim): Pass arena to unlink.
17634         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17635         malloc_printerr.
17636         (top_check): Likewise.
17637         (free_check): Likewise.
17638         (realloc_check): Likewise.
17639         * malloc/malloc.c (malloc_printerr): Add arena argument.
17640         (unlink): Likewise.
17641         (munmap_chunk): Adjust.
17642         (ARENA_CORRUPTION_BIT): New macro.
17643         (arena_is_corrupt): Likewise.
17644         (set_arena_corrupt): Likewise.
17645         (sysmalloc): Use mmap if there are no usable arenas.
17646         (_int_malloc): Likewise.
17647         (__libc_malloc): Don't fail if arena_get returns NULL.
17648         (_mid_memalign): Likewise.
17649         (__libc_calloc): Likewise.
17650         (__libc_realloc): Adjust for additional argument to
17651         malloc_printerr.
17652         (_int_free): Likewise.
17653         (malloc_consolidate): Likewise.
17654         (_int_realloc): Likewise.
17655         (_int_memalign): Don't touch corrupt arenas.
17656         * malloc/tst-malloc-backtrace.c: New test case.
17657
17658         * Makefile (summarize-tests): Fix return value on success.
17659
17660         * manual/string.texi (Envz Functions): Add envz_remove.
17661
17662 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17663
17664         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17665         (invalid_name): New function, broken out of ...
17666         (__opendirat): ... here.  Call it.
17667         (need_isdir_precheck): New function, broken out of ...
17668         (__opendirat): ... here.  Call it.
17669         Use __fxstatat64, not __xstatat64.
17670         (opendir_oflags): New function, broken out of ...
17671         (__opendirat): ... here.  Call it.
17672         (opendir_tail): New function, broken out of ...
17673         (__opendirat): ... here.  Call it.
17674         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17675         opendir_tail, rather than punting to __opendirat.
17676         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17677
17678 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17679
17680         * .gitignore: Ignore generated *.pyc.
17681
17682 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17683
17684         * include/stdio.h: Define __need_wint_t.
17685         * test-skeleton.c: Avoid `for' loop initial declaration.
17686         * nptl/tst-initializers1.c: Use test-skeleton.c.
17687
17688 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17689
17690         [BZ #18418]
17691         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17692
17693 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17694
17695         [BZ #16352]
17696         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17697         (__ieee754_atanh): Force underflow exception for results with
17698         small absolute value.
17699         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17700         (__ieee754_atanhf): Force underflow exception for results with
17701         small absolute value.
17702         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17703         (__ieee754_atanh): Force underflow exception for results with
17704         small absolute value.
17705         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17706         (__ieee754_atanhf): Force underflow exception for results with
17707         small absolute value.
17708         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17709         (__ieee754_atanhl): Force underflow exception for results with
17710         small absolute value.
17711         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17712         (__ieee754_atanhl): Force underflow exception for results with
17713         small absolute value.
17714         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17715         (__ieee754_atanhl): Force underflow exception for results with
17716         small absolute value.
17717         * math/auto-libm-test-in: Do not allow missing underflow
17718         exceptions from atanh.
17719         * math/auto-libm-test-out: Regenerated.
17720
17721         [BZ #18221]
17722         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17723         2**-28 as threshold for returning x or +/- 1/x.
17724         * math/auto-libm-test-in: Add more tests of tan.
17725         * math/auto-libm-test-out: Regenerated.
17726
17727         [BZ #18220]
17728         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17729         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17730         * math/auto-libm-test-in: Add another test of lgamma.
17731         * math/auto-libm-test-out: Regenerated.
17732
17733 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17734
17735         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17736         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17737         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17738         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17739         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17740         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17741         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17742         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17743         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17744         (log1): Use fabs.  (my_log2): Use fabs.
17745         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17746         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17747         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17748         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17749         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17750         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17751         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17752         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17753         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17754         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17755         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17756
17757 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17758
17759         [BZ #18217]
17760         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17761         as threshold for returning 1 - x.
17762         * math/auto-libm-test-in: Add more tests of erfc.
17763         * math/auto-libm-test-out: Regenerated.
17764
17765 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17766
17767         [BZ #18196]
17768         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17769         threshold for large arguments.
17770         * math/auto-libm-test-in: Add another test of atan.
17771         * math/auto-libm-test-out: Regenerated.
17772
17773         [BZ #16339]
17774         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17775         (__log1p): Force underflow exception for results with small
17776         absolute value.
17777         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17778         (__log1pf): Force underflow exception for results with small
17779         absolute value.
17780         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17781         (__log1p): Force underflow exception for results with small
17782         absolute value.
17783         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17784         (__log1pf): Force underflow exception for results with small
17785         absolute value.
17786         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17787         (__log1pl): Force underflow exception for results with small
17788         absolute value.
17789         * math/auto-libm-test-in: Do not allow missing underflow
17790         exceptions from log1p.
17791         * math/auto-libm-test-out: Regenerated.
17792
17793 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17794             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17795
17796         [BZ #16704]
17797         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17798
17799 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17800
17801         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17802         (libmvec): New variable.
17803         * configure.ac: Added option for mathvec build.
17804         * configure: Regenerated.
17805         * mathvec/Depend: New file.
17806         * mathvec/Makefile: New file.
17807         * shlib-versions: Added libmvec.
17808         * math/Makefile: Added rule for libm.so installation.
17809
17810         * bits/math-vector.h: New file.
17811         * bits/libm-simd-decl-stubs.h: New header.
17812         * math/Makefile (headers): Added new header
17813         libm-simd-decl-stubs.h.
17814         * math/math.h (__MATHCALL_VEC): New macro.
17815
17816         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17817         for conditions in testing functions.
17818         * math/Makefile: Added call of libm-have-vector-test.sh.
17819         * math/libm-test.inc (HAVE_VECTOR): New macros.
17820
17821         * math/libm-test.inc: START refactored.
17822         * math/test-double.c (TEST_MATHVEC): Add define.
17823         * math/test-float.c: Likewise.
17824         * math/test-idouble.c: Likewise.
17825         * math/test-ifloat.c: Likewise.
17826         * math/test-ildoubl.c: Likewise.
17827         * math/test-ldouble.c: Likewise.
17828         * sysdeps/generic/math-tests-arch.h
17829         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17830         architecture check.
17831
17832         * math/test-double.c (FUNC_TEST): New macro.
17833         * math/test-float.c: Likewise.
17834         * math/test-idouble.c: Likewise.
17835         * math/test-ifloat.c: Likewise.
17836         * math/test-ildoubl.c: Likewise.
17837         * math/test-ldouble.c: Likewise.
17838         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17839
17840 2015-05-13  Roland McGrath  <roland@hack.frob.com>
17841
17842         * sysdeps/nacl/fdopendir.c: New file.
17843
17844         * dirent/scandir-tail.c: New file.
17845         * dirent/scandir64-tail.c: New file.
17846         * dirent/Makefile (routines): Add them.
17847         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
17848         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
17849         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
17850         [!SCANDIR] (SCANDIR_TAIL): New macro.
17851         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
17852         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
17853         (SCANDIRAT): Macro removed.
17854         (SCANDIR_TAIL): New macro.
17855         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
17856         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
17857         (SCANDIRAT): Just call __opendirat and __scandir_tail.
17858         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
17859         (READDIR): Macro removed.
17860         (SCANDIR_TAIL): New macro.
17861         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
17862         (SCANDIR_TAIL): New macro.
17863
17864         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
17865         * dirent/scandir-cancel.c: ... to this new file.
17866         * dirent/Makefile (routines): Add it.
17867         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
17868         * sysdeps/unix/sysv/linux/i386/scandir64.c
17869         (SKIP_SCANDIR_CANCEL): Macro removed.
17870         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
17871
17872         * dirent/tst-scandir.c: New file.
17873         * dirent/tst-scandir64.c: New file.
17874         * dirent/Makefile (tests): Add them.
17875
17876 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17877
17878         [BZ #18409]
17879         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
17880
17881 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17882
17883         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
17884         list.
17885
17886 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
17887
17888         * benchtests/bench-strcoll.c: New benchmark.
17889         * benchtests/Makefile: Generate locales and run benchmark.
17890         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
17891         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17892         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
17893         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
17894         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
17895         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
17896         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
17897         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
17898         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
17899         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
17900         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
17901         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
17902         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
17903         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
17904         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
17905         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
17906         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
17907         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
17908         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
17909         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
17910         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
17911         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
17912         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
17913         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
17914
17915 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
17916
17917         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
17918         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17919
17920 2015-05-12  Roland McGrath  <roland@hack.frob.com>
17921
17922         * posix/uname-values.h: New file.
17923         * posix/uname.c: Include that instead of <config-name.h>.
17924         * sysdeps/nacl/uname-values.h: New file.
17925         * sysdeps/arm/nacl/uname-values.h: New file.
17926
17927 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
17928
17929         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
17930         splitting into fields.
17931
17932 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
17933
17934         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
17935         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
17936         * locale/localeinfo.h: Add enum collation_encoding_type.
17937         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
17938         * programs/ld-collate.c (collate_output): Add encoding type info.
17939         * string/strcoll_l.c (STRDIFF): New function.
17940         * (STRCOLL): Use STRDIFF to skip over equal prefix.
17941         * wcsmbs/wcscoll_l.c: Define STRDIFF.
17942
17943 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
17944
17945         [BZ #18397]
17946         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
17947         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
17948         <fpu_control.h> instead of <math/fpu_control.c>.
17949         * sysdeps/mips/mips32/fpu/Makefile: New file.
17950
17951 2015-05-11  Andreas Schwab  <schwab@suse.de>
17952
17953         [BZ #18007]
17954         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
17955         nss_endgrent.
17956         (_nss_compat_endgrent): Call nss_endgrent.
17957         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
17958         nss_endpwent.
17959         (_nss_compat_endpwent): Call nss_endpwent.
17960         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
17961         needent, call nss_setspent only if non-zero.
17962         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
17963         (internal_endspent): Don't call nss_endspent.
17964         (_nss_compat_endspent): Call nss_endspent.
17965         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
17966         Remove.  All uses removed.
17967         (internal_setent): Remove parameter stayopen, add parameter
17968         stream.  Use it instead of global variable.
17969         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
17970         (internal_endent, internal_getent): Add parameter stream.  Use it
17971         instead of global variable.
17972         (CONCAT(_nss_files_end,ENTNAME))
17973         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
17974         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
17975         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
17976         uses removed.
17977         (internal_setent, internal_endent): Add parameter stream.  Use it
17978         instead of global variable.
17979         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
17980         stream.
17981         (get_next_alias): Add parameter stream.
17982         (_nss_files_getaliasent_r): Pass global stream.
17983         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
17984         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
17985         (_nss_files_gethostbyname4_r): Pass local stream to
17986         internal_setent, internal_getent and internal_endent.  Remove
17987         locking.
17988
17989 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
17990
17991         * tst-strfmon1.c (tests): Update expected currency symbol.
17992
17993 2015-05-08  Roland McGrath  <roland@hack.frob.com>
17994
17995         * sysdeps/nacl/gethostname.c: New file.
17996
17997 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
17998
17999         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18000         and sinh.
18001         * math/auto-libm-test-out: Regenerated.
18002         * sysdeps/i386/fpu/libm-test-ulps: Update.
18003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18004
18005 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18006
18007         [BZ #18125]
18008         * stdlib/tst-setcontext3.c: New file.
18009         * stdlib/tst-setcontext3.sh: New file.
18010         * stdlib/Makefile (tests): Add tst-setcontext3.
18011         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18012         to verify test program created output file.
18013         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18014         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18015         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18016         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18017
18018 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18019
18020         [BZ #18383]
18021         * elf/tst-tlsalign.c: New file.
18022         * elf/tst-tlsalign-static.c: New file.
18023         * elf/tst-tlsalign-lib.c: New file.
18024         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18025         (tests-static): Add tst-tlsalign-static.
18026         (modules-names): Add tst-tlsalign-lib.
18027         (test-xfail-tst-tlsalign): New variable.
18028         (test-xfail-tst-tlsalign-static): New variable.
18029
18030         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18031         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18032
18033 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18034
18035         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18036         csqrt, erfc, sin and sincos.
18037         * math/auto-libm-test-out: Regenerated.
18038         * sysdeps/i386/fpu/libm-test-ulps: Update.
18039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18040
18041 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18042
18043         * sysdeps/aarch64/libm-test-ulps: Update.
18044
18045 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18046
18047         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18048         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18049         * math/auto-libm-test-out: Regenerated.
18050         * sysdeps/i386/fpu/libm-test-ulps: Update.
18051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18052
18053 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18054
18055         [BZ #18265]
18056         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18057         (wcsncpy): Likewise.
18058
18059 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18060
18061         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18062         Assume __ASSUME_FALLOCATE is always true.
18063         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18064         (__posix_fallocate64_l64): Likweise.
18065         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18066         (posix_fallocate): Likewise.
18067         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18068         (__posix_fallocate64_l64): Likewise.
18069         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18070         [!__ASSUME_FALLOCATE]: Add comment.
18071
18072 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18073
18074         * sysdeps/unix/sysv/linux/i386/Makefile
18075         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18076         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18077         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18078         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18079         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18080         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18081         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18082
18083 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18084
18085         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18086         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18087         tgamma.
18088         * math/auto-libm-test-out: Regenerated.
18089         * sysdeps/i386/fpu/libm-test-ulps: Update.
18090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18091
18092 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18093
18094         * math/auto-libm-test-in: Add more tests of tgamma.
18095         * math/auto-libm-test-out: Regenerated.
18096         * sysdeps/i386/fpu/libm-test-ulps: Update.
18097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18098
18099         * math/auto-libm-test-in: Add more tests of tanh.
18100         * math/auto-libm-test-out: Regenerated.
18101         * sysdeps/i386/fpu/libm-test-ulps: Update.
18102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18103
18104         * math/auto-libm-test-in: Add more tests of tan.
18105         * math/auto-libm-test-out: Regenerated.
18106         * sysdeps/i386/fpu/libm-test-ulps: Update.
18107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18108
18109         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18110         * math/auto-libm-test-out: Regenerated.
18111         * sysdeps/i386/fpu/libm-test-ulps: Update.
18112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18113
18114         * math/auto-libm-test-in: Add another test of pow.
18115         * math/auto-libm-test-out: Regenerated.
18116         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18117
18118         * math/auto-libm-test-in: Add more tests of lgamma.
18119         * math/auto-libm-test-out: Regenerated.
18120         * sysdeps/i386/fpu/libm-test-ulps: Update.
18121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18122
18123         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18124         log1p.
18125         * math/auto-libm-test-out: Regenerated.
18126         * sysdeps/i386/fpu/libm-test-ulps: Update.
18127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18128
18129 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18130
18131         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18132         Elf64_Chdr structs and ELFCOMPRESS constants.
18133
18134 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18135
18136         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18137         expm1.
18138         * math/auto-libm-test-out: Regenerated.
18139         * sysdeps/i386/fpu/libm-test-ulps: Update.
18140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18141
18142         * math/auto-libm-test-in: Add more tests of erf and erfc.
18143         * math/auto-libm-test-out: Regenerated.
18144         * sysdeps/i386/fpu/libm-test-ulps: Update.
18145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18146
18147 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18148
18149         * config.h.in (HAVE_AARCH64_BE): Add.
18150
18151 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18152
18153         * math/auto-libm-test-in: Add more tests of csqrt.
18154         * math/auto-libm-test-out: Regenerated.
18155         * sysdeps/i386/fpu/libm-test-ulps: Update.
18156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18157
18158         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18159         * math/auto-libm-test-out: Regenerated.
18160         * sysdeps/i386/fpu/libm-test-ulps: Update.
18161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18162
18163         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18164
18165 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18166
18167         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18168         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18169
18170         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18171         (euidaccess, eaccess): Define as weak aliases.
18172
18173         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18174         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18175         but __suseconds_t is often 'long int' so some sources assume that
18176         type is being used (e.g. they use %ld to print tv_usec).
18177
18178 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18179
18180         [BZ #18007]
18181         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18182         (CVE-2014-8121)
18183         * nss/tst-nss-getpwent.c: New file.
18184         * nss/Makefile (tests): Add new test.
18185
18186 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18187
18188         [BZ #18346]
18189         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18190         exponents less than 48 as cases where high part of mantissa needs
18191         examining to determine whether argument is integral.
18192         * math/libm-test.inc (round_test_data): Add more tests.
18193
18194 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18195
18196         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18197
18198 2015-04-27  David S. Miller  <davem@davemloft.net>
18199
18200         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18201         __tls_get_addr.
18202         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18203
18204 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18205
18206         [BZ#18333]
18207         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18208
18209 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18210
18211         [BZ#18333]
18212         * time/tzset.c (parse_tzname): Return error on memory allocation
18213         failure.
18214         * test-skeleton.c (struct temp_name_list): Change type of name
18215         member to non-const.
18216         (add_temp_file): Create a copy of the file name.
18217         (delete_temp_files): Deallocate memory.
18218         (create_temp_file): Add comment.
18219
18220 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18221
18222         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18223         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18224
18225 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18226
18227         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18228         * sysdeps/arm/configure: Regenerated.
18229
18230 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18231
18232         [BZ #17715]
18233         * time/tzfile.c (__tzfile_read): Check for large values of
18234         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18235         * time/tzset.c (__tzstring_len): New function, based on the old
18236         __tzstring function.
18237         (__tzstring): Call __tzstring_len.
18238         (parse_tzname): New helper function extracted from
18239         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18240         the input string.
18241         (parse_offset): New helper function extracted from
18242         __tzset_parse_tz.  Replace switch with fallthrough with
18243         initialization before sscanf.
18244         (parse_rule): Likewise.
18245         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18246         new-style function definition.
18247         * timezone/Makefile (tests): Add tst-tzset.
18248         (tst-tzset.out): Dependencies on time zone files.
18249         (tst-tzset-ENV): Set TZDIR.
18250         (testdata/XT%): Copy crafted time zone files.
18251         * timezone/README: Mention crafted time zone files.
18252         * timezone/testdata/XT1, timezone/testdata/XT2,
18253         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18254         files.
18255         * timezone/tst-tzset.c: New test.
18256
18257 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18258
18259         * Makeconfig (+gccwarn): Remove -Winline.
18260
18261 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18262
18263         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18264
18265 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18266
18267         * NEWS: Mention sysconf() cache information support for s390.
18268         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18269
18270 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18271
18272         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18273         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18274         (__nearbyint): Likewise.
18275         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18276         (copysignl): Likewise.
18277
18278 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18279
18280         [BZ #18287]
18281         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18282         based on padding.  (CVE-2015-1781)
18283
18284 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18285
18286         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18287         libc-vdso.h.
18288         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18289         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18290         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18291         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18292         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18293         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18294         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18295         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18296         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18297         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18298         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18299         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18300         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18301         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18302         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18303         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18304         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18305         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18306         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18307         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18308         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18309         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18310         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18311
18312 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18313
18314         * stdlib/setenv.c (__add_to_environ):
18315         Dump core quickly if setenv (..., NULL, ...) is called.
18316         This time, do it the right way, and pacify GCC with a pragma.
18317
18318 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18319
18320         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18321         IMAP->l_prev cannot be null, and #if out the code for the contrary
18322         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18323         believe that NS (&_dl_ns[NSID]) could point outside the array.
18324
18325         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18326         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18327         before using NSID as an index.
18328
18329 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18330
18331         [BZ #17825]
18332         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18333         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18334         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18335
18336 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18337
18338         Add preliminary port to Google Native Client on ARM.
18339         * abi-tags (.*-.*-nacl.*): New entry.
18340         * sysdeps/arm/nacl: New directory.
18341         * sysdeps/nacl: New directory.
18342
18343 2015-04-16  David S. Miller  <davem@davemloft.net>
18344
18345         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18346         lowlevellock-futex.h
18347
18348 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18349
18350         * sysdeps/tile/configure.ac: New file.
18351         * sysdeps/tile/configure: Regenerated.
18352
18353 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18354
18355         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18356         conditionals for weak_alias and libc_hidden_weak.
18357         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18358         libc_hidden_weak and weak_alias.
18359         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18360         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18361         and weak_alias for static one.
18362
18363 2015-04-15  David S. Miller  <davem@davemloft.net>
18364
18365         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18366
18367 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18368
18369         [BZ #18206]
18370         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18371           Use signed comparision instead of substraction to avoid
18372           overflow bug.
18373         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18374           Take the sign of ret.
18375         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18376           Do not expect precise return values. Only the sign matters.
18377         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18378         * wcsmbs/test-wcsncmp.c: New File.
18379         * string/test-strncmp.c: Add wcsncmp support.
18380
18381 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18382
18383         [BZ #6792]
18384         * math/w_log1p.c: New file.
18385         * math/w_log1pf.c: Likewise.
18386         * math/w_log1pl.c: Likewise.
18387         * math/Makefile (libm-calls): Add w_log1p.
18388         * math/s_log1pl.c (log1pl): Remove weak_alias.
18389         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18390         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18391         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18392         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18393         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18394         [NO_LONG_DOUBLE] (log1pl): Likewise.
18395         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18396         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18397         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18398         (log1p): Remove long_double_symbol.
18399         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18400         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18401         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18402         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18403         remove weak_alias for corresponding log1p function.
18404         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18405         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18406         * sysdeps/ia64/fpu/w_log1p.c: New file.
18407         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18408         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18409         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18410
18411 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18412
18413         [BZ #18247]
18414         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18415         decimal exponent by 1.
18416         * stdlib/tst-strtod-round-data: Add more tests.
18417         * stdlib/tst-strtod-round.c (tests): Regenerated.
18418
18419 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18420
18421         * math/auto-libm-test-in: Add more tests of clog and clog10.
18422         * math/auto-libm-test-out: Regenerated.
18423         * sysdeps/i386/fpu/libm-test-ulps: Update.
18424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18425
18426 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18427
18428         * Makeconfig (module-cppflags): Exclude all .v.i files.
18429         (skip-module-cppflags): Variable removed.
18430
18431         * configure.ac (libc_config_ok): Initialize before reading
18432         preconfigure scripts, not after.
18433         * configure: Regenerated.
18434
18435         * test-skeleton.c (TIMEOUT): Move #define to top level.
18436         (main): Grok environment variable TEST_DIRECT.  If set, print
18437         test expectation details into that file and then behave as if
18438         given --direct.
18439
18440 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18441
18442         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18443         warning on 32-bit.
18444
18445 2015-04-08  David S. Miller  <davem@davemloft.net>
18446
18447         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18448
18449 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18450
18451         * math/auto-libm-test-in: Add more tests of atanh.
18452         * math/auto-libm-test-out: Regenerated.
18453         * sysdeps/i386/fpu/libm-test-ulps: Update.
18454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18455
18456         * math/auto-libm-test-in: Add more tests of atan.
18457         * math/auto-libm-test-out: Regenerated.
18458         * sysdeps/i386/fpu/libm-test-ulps: Update.
18459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18460
18461 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18462
18463         * elf/pldd.c (main): Rewrite to use struct
18464         scratch_buffer instead of extend_alloca.
18465         * elf/pldd-xx.c (find_maps): Likewise.
18466         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18467         <alloca.h>.
18468         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18469         scratch_buffer instead of extend_alloca.
18470         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18471         grp/compat-initgroups.c.
18472         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18473         Rewrite to use struct scratch_buffer instead of extend_alloca.
18474         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18475         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18476
18477 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18478
18479         * math/auto-libm-test-in: Add more tests of cbrt.
18480         * math/auto-libm-test-out: Regenerated.
18481         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18482
18483         * math/auto-libm-test-in: Add more tests of cabs.
18484         * math/auto-libm-test-out: Regenerated.
18485         * sysdeps/i386/fpu/libm-test-ulps: Update.
18486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18487
18488         [BZ #18210]
18489         [BZ #18211]
18490         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18491         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18492         computations.
18493         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18494         clog10.
18495         * math/auto-libm-test-out: Regenerated.
18496         * sysdeps/i386/fpu/libm-test-ulps: Update.
18497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18498
18499         [BZ #18197]
18500         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18501         (atan): Set FE_TONEAREST mode for internal computations.
18502         * math/auto-libm-test-in: Add more tests of atan.
18503         * math/auto-libm-test-out: Regenerated.
18504
18505 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18506
18507         [BZ #17930]
18508         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18509
18510 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18511
18512         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18513
18514 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18515
18516         * include/scratch_buffer.h: New file.
18517         * malloc/scratch_buffer_grow.c: Likewise.
18518         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18519         * malloc/scratch_buffer_set_array_size.c: Likewise.
18520         * malloc/tst-scratch_buffer.c: Likewise.
18521         * malloc/Makefile (routines): Add scratch_buffer_grow.
18522         (tests): Add test case.
18523         * malloc/Versions (GLIBC_PRIVATE): Export
18524         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18525         __libc_scratch_buffer_set_array_size.
18526
18527 2015-04-06  Richard Henderson  <rth@redhat.com>
18528
18529         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18530         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18531
18532         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18533         unsigned int before printing.
18534
18535 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18536
18537         [BZ #17596]
18538         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18539         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18540
18541 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18542
18543         * include/libc-internal.h (libc_max_align_t): Define.
18544
18545 2015-04-02  Andreas Schwab  <schwab@suse.de>
18546
18547         [BZ #16850]
18548         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18549
18550 2015-04-02  Mel Gorman  <mgorman@suse.de>
18551
18552         [BZ #17195]
18553         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18554         as well as the main arena.
18555
18556 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18557
18558         [BZ #18185]
18559         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18560         sharing L2 cache to 2 for Silvermont/Knights Landing.
18561
18562 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18563
18564         [BZ #17711]
18565         * config.make.in (have-protected-data): New.
18566         * configure.ac: Check linker support for protected data symbol.
18567         * configure: Regenerated.
18568         * elf/Makefile (modules-names): Add tst-protected1moda and
18569         tst-protected1modb if $(have-protected-data) is yes.
18570         (tests): Add tst-protected1a and tst-protected1b if
18571         $(have-protected-data) is yes.
18572         ($(objpfx)tst-protected1a): New.
18573         ($(objpfx)tst-protected1b): Likewise.
18574         (tst-protected1modb.so-no-z-defs): Likewise.
18575         * elf/tst-protected1a.c: New file.
18576         * elf/tst-protected1b.c: Likewise.
18577         * elf/tst-protected1mod.h: Likewise.
18578         * elf/tst-protected1moda.c: Likewise.
18579         * elf/tst-protected1modb.c: Likewise.
18580
18581 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18582
18583         [BZ #17711]
18584         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18585         indicates it is called from do_lookup_x on relocation against
18586         protected data, skip the data definion in the executable from
18587         copy reloc.
18588         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18589         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18590         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18591         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18592         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18593         otherwise to 0.
18594         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18595         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18596         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18597         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18598         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18599         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18600
18601 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18602
18603         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18604         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18605
18606 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18607
18608         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18609         THREAD_SETMEM_NC.
18610         * sysdeps/x86_64/nptl/tls.h: Ditto.
18611
18612 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18613
18614         * dlfcn/tststatic.c (main): Converted to ...
18615         (do_test): ... this.
18616         (TEST_FUNCTION): New macro.
18617         Include test-skeleton.c.
18618
18619 2015-03-26  Alan Modra  <amodra@gmail.com>
18620
18621         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18622         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18623         zero for undefined weak.
18624         (elf_machine_plt_conflict): Similarly.
18625
18626 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18627
18628         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18629         atanh.
18630         * math/auto-libm-test-out: Regenerated.
18631         * sysdeps/i386/fpu/libm-test-ulps: Update.
18632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18633
18634         * math/auto-libm-test-in: Add another test of asin.
18635         * math/auto-libm-test-out: Regenerated.
18636         * sysdeps/i386/fpu/libm-test-ulps: Update.
18637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18638
18639         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18640         Remove macro.
18641         (LLL_EBX_REG): Likewise.
18642         (LLL_ENTER_KERNEL): Likewise.
18643
18644         * math/auto-libm-test-in: Add more tests of asin.
18645         * math/auto-libm-test-out: Regenerated.
18646         * sysdeps/i386/fpu/libm-test-ulps: Update.
18647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18648
18649         [BZ #18138]
18650         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18651         libc_do_syscall_args): New structure.
18652         (INTERNAL_SYSCALL_MAIN_0): New macro.
18653         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18654         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18655         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18656         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18657         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18658         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18659         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18660         Replace conditional definitions by conditional definitions of ....
18661         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18662         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18663         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18664         (libpthread-sysdep_routines): Add libc-do-syscall.
18665         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18666         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18667         to __NR_futex not 240.
18668
18669 2015-03-25  Alan Modra  <amodra@gmail.com>
18670
18671         * NEWS: Advertise TLS optimization.
18672         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18673         (DT_PPC_NUM): Increment.
18674         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18675         (CHECK_STATIC_TLS): Use here.
18676         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18677         TLS descriptors.
18678         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18679         * sysdeps/powerpc/dl-tls.c: New file.
18680         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18681         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18682         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18683         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18687
18688 2015-03-25  Alan Modra  <amodra@gmail.com>
18689
18690         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18691         for overlapping .opd entries" to "support...".
18692         * sysdeps/powerpc/powerpc64/configure: Regenerate
18693
18694 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18695
18696         * math/auto-libm-test-in: Add more tests of acos.
18697         * math/auto-libm-test-out: Regenerated.
18698         * sysdeps/i386/fpu/libm-test-ulps: Update.
18699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18700
18701         * math/auto-libm-test-in: Add more tests of expm1.
18702         * math/auto-libm-test-out: Regenerated.
18703         * sysdeps/i386/fpu/libm-test-ulps: Update.
18704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18705
18706 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18707
18708         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18709         * math/auto-libm-test-out: Regenerated.
18710         * sysdeps/i386/fpu/libm-test-ulps: Update.
18711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18712
18713         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18715
18716         * math/auto-libm-test-in: Add more tests of log2.
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 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18722
18723         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18724         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18725         _IO_IS_APPENDING bit in READ_WRITE instead.
18726
18727 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18728
18729         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18730         (__determine_cpumask_size): Replace extend_alloca with a
18731         variable-length array.  Do not treat res == 0 as an error.
18732
18733 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18734
18735         [BZ #18100]
18736         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18737         and integer overflow.
18738         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18739         (main): Add integer overflow tests.
18740         * manual/pattern.texi (Calling Wordexp): Document additional use
18741         for WRDE_SYNTAX.
18742
18743 2015-03-23  Alan Modra  <amodra@gmail.com>
18744
18745         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18746         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18747         and false branch of conditional.
18748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18749         Likewise.
18750
18751 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18752
18753         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18754         libc-modules.h
18755         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18756         unused declaration of _hurd_intr_rpc_msg_in_trap.
18757         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18758         defined instead of whether it is non-zero.
18759         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18760         input constraint instead of both input and output constraint.  Use ecx
18761         clobber instead of %ecx.
18762         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18763         mutex_unlock): Use a statement expression instead of an expression list.
18764         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18765         type to vm_size_t instead of vm_address_t.
18766         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18767         defined instead of whether it is non-zero.
18768         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18769         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18770         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18771         comparisons with mapaddr.
18772         * nscd/nscd-client.h: Include <time.h>.
18773         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18774         9th parameter to __vm_region instead of int.
18775         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18776         * scripts/check-local-headers.sh (exclude): Add device/,
18777         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18778         cthreads.h.
18779
18780 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18781
18782         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18783         to account for alignment padding.
18784         * sysdeps/arm/memmove.S: Likewise.
18785
18786 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18787
18788         * sysdeps/unix/sysv/linux/generic/README: New file.
18789
18790 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18791
18792         [BZ #18138]
18793         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18794         (futex_abstimed_wait)
18795         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18796         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18797         of lll_futex_timed_wait.
18798
18799 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18800
18801         [BZ #17542]
18802         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18803
18804 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18805
18806         [BZ #17090]
18807         [BZ #17620]
18808         [BZ #17621]
18809         [BZ #17628]
18810         * NEWS: Update.
18811         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18812         entries with Static TLS too.  Skip entries past the end of the
18813         allocated DTV, from Alan Modra.
18814         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18815         Static TLS DTV entry set up from...
18816         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18817         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18818         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18819         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18820         for Static TLS.
18821         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18822         that the slot we find is associated with the given map before
18823         using its generation count.
18824         * nptl_db/db_info.c: Include ldsodefs.h.
18825         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18826         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18827         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18828         (link_map::l_tls_offset): New struct field.
18829         (dtv_t::counter): Likewise.
18830         (rtld_global): New struct.
18831         (_rtld_global): New rtld variable.
18832         (dl_tls_dtv_slotinfo_list): New rtld global field.
18833         (dtv_slotinfo_list): New struct.
18834         (dtv_slotinfo): Likewise.
18835         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18836         (td_lookup): Rename to...
18837         (td_mod_lookup): ... this.  Use new mod parameter instead of
18838         LIBPTHREAD_SO.
18839         * nptl_db/td_thr_tlsbase.c: Include link.h.
18840         (dtv_slotinfo_list, dtv_slotinfo): New functions.
18841         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
18842         addresses even if the DTV is out of date or missing them.
18843         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
18844         index zero-length arrays.
18845         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
18846         (td_lookup): Make it a macro implemented in terms of...
18847         (td_mod_lookup): ... this declaration.
18848         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
18849         (DB_MAIN_VARIABLE): Likewise.
18850
18851 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18852
18853         [BZ #18134]
18854         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18855
18856 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18857
18858         * stdlib/setenv.c (__add_to_environ): Revert previous change.
18859
18860 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18861
18862         [BZ #18128]
18863         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
18864         (atomic_add, atomic_increment_and_test)
18865         (atomic_decrement_and_test): Fix 64-bit arithmetic.
18866
18867 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18868
18869         * stdlib/setenv.c (__add_to_environ):
18870         Dump core quickly if setenv (..., NULL, ...) is called.
18871
18872 2015-03-13  Roland McGrath  <roland@hack.frob.com>
18873
18874         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
18875         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
18876         all the necessary asm magic in one place.
18877         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
18878         using those.
18879
18880 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
18881
18882         [BZ #14906]
18883         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
18884         traced file mtime. Use consistent log message.
18885         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
18886         (register_traced_file): Call install_watches. Always set mtime.
18887         (invalidate_cache): Iterate over all trace files. Call install_watches.
18888         (inotify_check_files): Don't inline. Handle watching parent
18889         directories and configuration file movement in and out.
18890         (handle_inotify_events): New function.
18891         (main_loop_poll): Call handle_inotify_events.
18892         (main_loop_epoll): Likewise.
18893         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
18894         (struct traced_file): Use array of inotify fds. Add parent directory,
18895         and basename.
18896         (struct database_dyn): Remove unused file_mtime.
18897         (init_traced_file): New inline function.
18898         (define_traced_file): New macro.
18899         * nss/nss_db/db-init.c: Use define_traced_file.
18900         (_nss_db_init): Use init_traced_file.
18901         * nss/nss_files/files-init.c: Use define_traced_file.
18902         (_nss_files_init): Use init_traced_file.
18903
18904 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
18905
18906         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
18907         [_LIBC]: Do not include <stdlib.h>.
18908         [!_LIBC] (abort): Remove declaration.
18909         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
18910         _FP_STATIC_ASSERT instead of conditionally calling abort.
18911         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
18912         (_FP_EXTEND_CNAN): Likewise.
18913         (FP_TRUNC): Likewise.
18914         (__FP_CLZ): Likewise.
18915         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
18916
18917 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
18918
18919         * manual/string.texi (XPG basename): Fix prototype.
18920
18921 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18922
18923         [BZ #18080]
18924         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
18925         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18926         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
18927         (__setcontext): Likewise.
18928         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
18929         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18930         Call rt_sigprocmask syscall one time to set new signal mask
18931         and retrieve the current signal mask instead of two calls.
18932         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
18933         (__swapcontext): Likewise.
18934         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
18935         * stdlib/tst-setcontext2.c: New file.
18936
18937 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18938
18939         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
18940
18941 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
18942
18943         [BZ #18093]
18944         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
18945         the wrong size.
18946
18947 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
18948
18949         [BZ #18043]
18950         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
18951
18952 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
18953
18954         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
18955         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
18956         Remove define.
18957         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
18958         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
18959         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
18960         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
18961         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
18962         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
18963         define.
18964         * nptl_db/td_symbol_list.c (td_lookup): Remove
18965         HAVE_ASM_GLOBAL_DOT_NAME code.
18966         * sysdeps/powerpc/powerpc64/configure.ac: Remove
18967         HAVE_ASM_GLOBAL_DOT_NAME check.
18968         * sysdeps/powerpc/powerpc64/configure: Regenerate.
18969         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
18970         (DOT_LABEL): Remove define.
18971         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
18972         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
18973         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
18974         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
18975         (__TLS_GET_ADDR): Likewise.
18976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
18977         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
18978
18979 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
18980
18981         [BZ #18111]
18982         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
18983         (_FPU_SETCW): Initialize cw from fpsr before storing.
18984         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
18985         (fesetexceptflag): Rewrite using fpu_control.h.
18986         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
18987
18988 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
18989
18990         [BZ #18110]
18991         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
18992         asms.
18993         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
18994
18995 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
18996
18997         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
18998         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
18999         abort.
19000         (_FP_FMA): Likewise.
19001         (_FP_DIV): Likewise.
19002
19003 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19004
19005         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19006         with 0 in that case.
19007         * Makefile (summarize-tests): New canned sequence, factored out of
19008         commands for targets tests and xtests.  Display summary lines that
19009         don't start with PASS: or XFAIL: rather than ones that do start with
19010         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19011         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19012         do start with ERROR: or FAIL:.
19013         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19014         (except for [$(build-shared) = yes]).
19015         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19016         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19017         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19018         * nptl/Makefile: Revert 2015-03-04 changes.
19019         [$(CXX) empty] (tests-unsupported): New variable.
19020         * debug/Makefile: Likewise.
19021
19022         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19023         gnulib file.  Replace __attribute with __attribute__ throughout.
19024
19025 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19026
19027         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19028
19029 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19030
19031         [BZ #18104]
19032         * math/auto-libm-test-in: Add another test of pow.
19033         * math/auto-libm-test-out: Regenerated.
19034
19035 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19036
19037         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19038         $(config-cflags-nofma).
19039
19040 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19041
19042         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19043         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19044         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19045         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19046         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19047         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19048         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19049         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19050         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19051         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19052         Add comment on closing #endif.
19053
19054 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19055
19056         * posix/wordexp.c (CHAR_IN_SET): New macro.
19057         (parse_param): Use it.
19058
19059 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19060
19061         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19062
19063 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19064
19065         [BZ #18043]
19066         * posix/wordexp.c (parse_param): Fix buffer overflow.
19067         * posix/wordexp-test.c (test_case): Add test case.
19068
19069 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19070
19071         [BZ #18042]
19072         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19073         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19074
19075 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19076
19077         [BZ #18043]
19078         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19079         (do_bz18043): Delete.
19080         (at_page_end): New.
19081         (testit): Refactor to have words at the edge of unreadable page.
19082
19083 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19084
19085         [BZ #16734]
19086         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19087         Cleanup read-only streams as well.
19088         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19089
19090 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19091
19092         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19093         <bits/libc-lockP.h>
19094
19095 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19096
19097         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19098         on [__KERNEL__].
19099         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19100         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19101         * soft-fp/op-common.h (_FP_DECL): Likewise.
19102
19103 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19104
19105         * elf/ifuncdep2.c (global): Replace
19106         __attribute__((visibility("protected"))) with
19107         asm (".protected global").
19108         * elf/ifuncmod1.c (global): Likewise.
19109         * elf/ifuncmod5.c (global): Likewise.
19110
19111 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19112
19113         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19114         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19115
19116 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19117
19118         * manual/install.texi (Configuring and compiling):
19119         Document test-wrapper-env-only.
19120         * INSTALL: Regenerated.
19121
19122 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19123
19124         [BZ #18043]
19125         * posix/wordexp.c (parse_param): Fix buffer overflow.
19126         * posix/wordexp-test.c (do_bz18043): Add test case.
19127
19128 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19129
19130         * time/tst-strptime2.c (do_test): Ensure failing tests are
19131         reported correctly.
19132         * time/tst-strptime3.c (do_test): Likewise.
19133
19134 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19135
19136         Fix aio_error thread-safety.
19137         * sysdeps/pthread/aio_error.c: New file
19138         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19139         synchronization.
19140
19141 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19142
19143         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19144         (group_number, vfprintf): Use it.
19145         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19146         (JUMP, REF): Use it.
19147         (WORK_BUFFER_SIZE): New enum constant.
19148         (process_arg, vfprintf): Use it.
19149
19150 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19151
19152         * manual/errno.texi (Error Messages): Complete example function
19153         by adding missing #define.
19154         (program_invocation_name): Add statement indicating GNU
19155         extension and reference which header file declares the variable.
19156         (program_invocation_short_name): Likewise.
19157
19158 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19159
19160         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19161         compatibility note.
19162
19163 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19164
19165         * Makeconfig (test-wrapper-env-only): New variable.
19166         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19167         then use that with $(test-wrapper-env-only) rather than using
19168         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19169
19170 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19171
19172         [BZ #18082]
19173         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19174         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19175         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19176         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19177         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19178         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19179         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19180         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19181         Likewise.
19182         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19183         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19184         Likewise.
19185         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19186         Likewise.
19187         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19188         Likewise.
19189         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19190         Likewise.
19191         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19192         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19193         Likewise.
19194         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19195         Likewise.
19196         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19197         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19198
19199 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19200
19201         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19202         (ETH_ALEN): New macro.
19203         (struct ether_addr): Use it for length of ether_addr_octet.
19204
19205         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19206         (setdb): Don't call __nss_configure_lookup for "rpc".
19207         (do_test): Don't call test_rpc.
19208         (output_rpcent, test_rpc): Functions moved ...
19209         * sunrpc/test-rpcent.c: ... to this new file.
19210         * sunrpc/Makefile (tests): Add it.
19211
19212         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19213         __xpg_sigpause.
19214         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19215         * nptl/tst-signal6.c: Likewise.
19216         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19217         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19218
19219         * configure.ac (libc_cv_cxx_link_ok): New check.
19220         Reset CXX to empty if it fails to link.
19221         * configure: Regenerated.
19222         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19223         bug-atexit3-lib only if $(CXX) is nonempty.
19224         * nptl/Makefile (tests): Likewise for tst-cancel24.
19225         (tests, tests-static): Likewise for tst-cancel24-static.
19226         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19227         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19228         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19229         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19230
19231 2015-03-04  Andreas Schwab  <schwab@suse.de>
19232
19233         [BZ #17631]
19234         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19235         for non-GCC compilers.
19236         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19237         Likewise.
19238
19239 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19240
19241         [BZ #17776]
19242         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19243         integer before bitwise and assembly operations.
19244         (feclearexcept): Likewise.
19245         * math/test-fenvinline.c: New file.
19246         * math/Makefile: Add test-fenvinline test.
19247
19248 2015-03-03  Alan Modra  <amodra@gmail.com>
19249
19250         [BZ #16512]
19251         * scripts/localplt.awk: Strip off symbol version.
19252         * NEWS: Mention bug fix.
19253
19254 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19255
19256         * sysdeps/pthread/timer_routines.c
19257         (timer_free_list, thread_free_list, thread_active_list): Make static.
19258
19259 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19260
19261         [BZ #17779]
19262         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19263         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19264         Undefine.
19265         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19266         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19267         Likewise.
19268         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19269         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19270         Likewise.
19271
19272 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19273
19274         [BZ #18036]
19275         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19276         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19277
19278 2015-03-02  Andreas Schwab  <schwab@suse.de>
19279
19280         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19281         variable name.
19282
19283 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19284
19285         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19286         Return error status.
19287
19288 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19289
19290         [BZ #15969]
19291         * locale/findlocale.c (_nl_find_locale): Introduce const
19292         version of loc_name and drop unsafe type casts.
19293
19294 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19295
19296         * dlfcn/tststatic2.c (main): Converted to ...
19297         (do_test): ... this.
19298         (TEST_FUNCTION): New macro.
19299         Include test-skeleton.c.
19300
19301 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19302
19303         [BZ #17711]
19304         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19305         (tests-pie): Add vismain.
19306         (CFLAGS-vismain.c): New.
19307         * elf/vismain.c: Add comments for PIE requirement.
19308
19309 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19310
19311         [BZ #18046]
19312         [BZ #18047]
19313         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19314         0x1p-56L as threshold for just returning the argument.
19315         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19316         0x1p-32L as threshold for just returning the argument.
19317         * math/auto-libm-test-in: Add more tests of atanh.
19318         * math/auto-libm-test-out: Regenerated.
19319         * sysdeps/i386/fpu/libm-test-ulps: Update.
19320         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19321
19322 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19323
19324         * string/bcopy.c (bcopy): Call memmove for performance.
19325
19326 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19327
19328         * string/bzero.c (__bzero): Call memset for performance.
19329
19330 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19331
19332         [BZ #18068]
19333         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19334         to 00100000.
19335
19336 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19337
19338         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19339
19340 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19341
19342         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19343         (__kernel_standard): Use CSTR macro when setting exc.name.
19344         * sysdeps/ieee754/Makefile [$(subdir) = math]
19345         (CFLAGS-k_standard.c): Remove variable.
19346
19347         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19348         setting p and q from "else if" to "else".
19349         (qzero): Likewise.
19350         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19351         (qone): Likewise.
19352         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19353         (qzerof): Likewise.
19354         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19355         (qonef): Likewise.
19356         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19357         (qzero): Likewise.
19358         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19359         (qone): Likewise.
19360
19361         [BZ #18038]
19362         [BZ #18039]
19363         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19364         return pi/2 for arguments below 0x1p-113L.
19365         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19366         return pi/2 for arguments below 0x1p-106L.
19367         * math/auto-libm-test-in: Add more tests of acos.
19368         * math/auto-libm-test-out: Regenerated.
19369
19370         [BZ #16351]
19371         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19372         (MO): New macro.
19373         (__ieee754_asin): Force underflow exception for results with small
19374         absolute value.
19375         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19376         (MO): New macro.
19377         (__ieee754_asinf): Force underflow exception for results with
19378         small absolute value.
19379         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19380         (__ieee754_asin): Force underflow exception for results with small
19381         absolute value.
19382         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19383         (__ieee754_asinf): Force underflow exception for results with
19384         small absolute value.
19385         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19386         (__ieee754_asinl): Force underflow exception for results with
19387         small absolute value.
19388         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19389         (__ieee754_asinl): Force underflow exception for results with
19390         small absolute value.
19391         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19392         (__ieee754_asinl): Force underflow exception for results with
19393         small absolute value.
19394         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19395         Include <math.h>.
19396         * math/auto-libm-test-in: Do not mark underflow exceptions as
19397         possibly missing for bug 16351.
19398         * math/auto-libm-test-out: Regenerated.
19399
19400         [BZ #18030]
19401         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19402         of power of 2 down when low part has opposite sign.
19403         * math/libm-test.inc (logb_test_data): Add more tests.
19404
19405 2015-02-26  Andreas Schwab  <schwab@suse.de>
19406
19407         [BZ #18032]
19408         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19409         over collating symbol inside a bracket expression.  Minor cleanup.
19410         * posix/tst-fnmatch3.c (do_test): Add test case.
19411
19412 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19413
19414         [BZ #18029]
19415         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19416         Adjust exponent of power of 2 down when low part has opposite
19417         sign.
19418         * math/libm-test.inc (ilogb_test_data): Add more tests.
19419
19420 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19421
19422         [BZ #15969]
19423         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19424         the previous change.
19425
19426         [BZ #15969]
19427         * locale/findlocale.c (_nl_find_locale): Retry archive search
19428         after alias expansion.
19429
19430 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19431
19432         * iconv/tst-iconv3.c (main): Converted to ...
19433         (do_test): ... this.
19434         (TEST_FUNCTION): New macro.
19435         Include test-skeleton.c.
19436
19437         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19438         (convert): Make function static.
19439         (test_unalign): Likewise.  Add const to argument pointee types.
19440         (main): Replace with static function do_test.
19441         Print "Succeeded." only if RET is zero.
19442         (TEST_FUNCTION): New macro.
19443         Include test-skeleton.c.
19444
19445         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19446         returns a null pointer.
19447
19448 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19449
19450         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19451         to __memcpy_ppc only for static builds.
19452
19453 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19454
19455         [BZ #18020]
19456         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19457         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19458         * math/auto-libm-test-in: Add more tests of asinh.
19459         * math/auto-libm-test-out: Regenerated.
19460         * sysdeps/i386/fpu/libm-test-ulps: Update.
19461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19462
19463 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19464
19465         [BZ #15850]
19466         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19467         and ip6_mtuinfo definitions here.
19468         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19469         in this define too.  Update comment.
19470
19471 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19472
19473         * elf/sprof.c (load_shobj): Tweak error message to match others.
19474
19475 2015-02-24  Kevin Easton  <kevin@guarana.org>
19476
19477         [BZ #16145] (partial fix)
19478         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19479         to reduce lock contention.
19480
19481 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19482
19483         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19484         (struct timex): Update time comment.
19485         (ADJ_SETOFFSET): Define.
19486
19487 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19488
19489         [BZ #18019]
19490         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19491         2**56 not 2**28 as threshold for log (2x) formula.
19492         * math/auto-libm-test-in: Add more tests of acosh.
19493         * math/auto-libm-test-out: Regenerated.
19494         * sysdeps/i386/fpu/libm-test-ulps: Update.
19495         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19496
19497 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19498
19499         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19500         parenthesis around the buf assignment.
19501         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19502
19503 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19504
19505         [BZ #16783]
19506         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19507         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19508         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19509         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19510         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19511         * math/libm-test.inc (scalb_test_data): Add more tests.
19512
19513 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19514
19515         [BZ #17916]
19516         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19517         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19518
19519 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19520
19521         [BZ #17523]
19522         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19523         * io/bits/fcntl2.h (open): Use it.
19524         (openat): Likewise.
19525         * io/open.c (__libc_open): Likewise.
19526         * io/open64.c (__libc_open64): Likewise.
19527         * io/open64_2.c (__open64_2): Likewise.
19528         * io/open_2.c (__open_2): Likewise.
19529         * io/openat.c (__openat): Likewise.
19530         * io/openat64.c (__openat64): Likewise.
19531         * io/openat64_2.c (__openat64_2): Likewise.
19532         * io/openat_2.c (__openat_2): Likewise.
19533         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19534         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19535         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19536         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19537         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19538         (__open_nocancel): Likewise.
19539         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19540         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19541         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19542
19543 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19544
19545         [BZ #14841]
19546         * resolv/gethnamaddr.c (getanswer): Skip logging if
19547         RES_USE_DNSSEC is set.
19548         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19549
19550 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19551
19552         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19553
19554 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19555
19556         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19557         201304L, for Unicode 7.
19558
19559 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19560
19561         [BZ #17836]
19562         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19563         shared library.  Add gmon-start.os otherwise.
19564         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19565         $(objpfx)gmon-start.os if builing shared library.
19566         ($(objpfx)g$(static-start-installed-name)): Likewise.
19567
19568 2015-02-23  Andreas Schwab  <schwab@suse.de>
19569
19570         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19571
19572 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19573
19574         [BZ #17269]
19575         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19576         (enlarge_userbuf): Likewise.
19577
19578 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19579
19580         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19581         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19582         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19583         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19584
19585 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19586
19587         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19588         expression inside statement expression.
19589
19590 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19591
19592         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19593         <sysdeps/nptl/lowlevellock.h> and remove macros and
19594         functions that are now defined there.
19595         (SYS_futex): Remove.
19596         (lll_compare_and_swap): Remove.
19597         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19598
19599 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19600
19601         [BZ #17999]
19602         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19603         instead of scandirat.
19604         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19605         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19606         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19607         __scandirat.
19608         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19609         (__scandirat): Declare.  Use libc_hidden_proto.
19610         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19611         Remove variable.
19612         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19613
19614 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19615
19616         [BZ #15319]
19617         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19618         (MO): New macro.
19619         (__ieee754_atan2): For results with small absolute value, force
19620         underflow exception and remove excess range and precision from
19621         return value.
19622         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19623         (MO): New macro.
19624         (__ieee754_atan2f): For results with small absolute value, force
19625         underflow exception and remove excess range and precision from
19626         return value.
19627         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19628         (MO): New macro.
19629         (__atan): For results with small absolute value, force underflow
19630         exception and remove excess range and precision from return value.
19631         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19632         (MO): New macro.
19633         (__atanf): For results with small absolute value, force underflow
19634         exception and remove excess range and precision from return value.
19635         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19636         <math.h>.
19637         (__ieee754_atan2): Force underflow exception for results with
19638         small absolute value.
19639         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19640         <math_private.h>.
19641         (atan): Force underflow exception for results with small absolute
19642         value.
19643         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19644         (__atanf): Force underflow exception for results with small
19645         absolute value.
19646         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19647         <math.h>.
19648         (__atanl): Force underflow exception for results with small
19649         absolute value.
19650         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19651         (__atanl): Force underflow exception for results with small
19652         absolute value.
19653         * sysdeps/x86/fpu/bits/mathinline.h
19654         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19655         (__ieee754_atan2): Only define inline for long double.
19656         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19657         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19658         * math/auto-libm-test-in: Do not mark underflow exceptions as
19659         possibly missing for bug 15319.  Add more tests of atan2.
19660         * math/auto-libm-test-out: Regenerated.
19661         * math/libm-test.inc (casin_test_data): Do not mark underflow
19662         exceptions as possibly missing for bug 15319.
19663         (casinh_test_data): Likewise.
19664         * sysdeps/i386/fpu/libm-test-ulps: Update.
19665
19666 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19667
19668         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19669         * sysdeps/mips/bits/endian.h: Fix comments.
19670
19671 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19672
19673         [BZ #17996]
19674         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19675         (hdestroy_r): Likewise.
19676         (hsearch_r): Likewise.
19677         (__hcreate_r): Declare and use libc_hidden_proto.
19678         (__hdestroy_r): Likewise.
19679         (__hsearch_r): Likewise.
19680         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19681         (hcreate): Call __hcreate_r instead of hcreate_r.
19682         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19683         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19684         as weak alias of __hcreate_r.
19685         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19686         __hdestroy_r.
19687         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19688         __hsearch_r.
19689         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19690         Remove variable.
19691         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19692         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19693         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19694         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19695
19696 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19697
19698         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19699         arena_lock into a single arena_get.
19700
19701 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19702
19703         * dl-reloc.c: Inlucde libc-internal.h.
19704         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19705         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19706         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19707         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19708         (grow_heap): Likewise.
19709         * malloc/malloc.c: Include libc-internal.h.
19710         (do_check_malloc): Call powerof2.
19711         (sysmalloc): Use pagesize. Call ALIGN_UP.
19712         (systrim): Use pagesize.
19713         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19714         (__libc_valloc): Use pagesize.
19715         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19716
19717 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19718
19719         [BZ #17991]
19720         * include/sys/resource.h (__getrlimit64): Declare.  Use
19721         libc_hidden_proto.
19722         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19723         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19724         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19725         getrlimit64.
19726         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19727         __getrlimit64.
19728         [!getrlimit64] (getrlimit64): Define as weak alias of
19729         __getrlimit64.  Use libc_hidden_weak.
19730         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19731         using __getrlimit64 not __new_getrlimit64.
19732         (__GI_getrlimit64): Likewise.
19733         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19734         Likewise.
19735         (__GI_getrlimit64): Likewise.
19736         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19738         (getrlimit): Add __getrlimit64 alias.
19739         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19740         Likewise.
19741         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19742         Remove variable.
19743         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19744         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19745
19746 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19747
19748         * libio/fileops.c: Add missing sys/mman.h
19749         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19750
19751 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19752
19753         * manual/math.texi (Errors in Math Functions): Clarify goals
19754         regarding inexact and underflow exceptions.
19755
19756 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19757
19758         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19759         * sysdeps/mips/memset.S: Ditto.
19760
19761 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19762
19763         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19764
19765 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19766
19767         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19768         (__v1longjmp): Remove versioned symbol.
19769         (__v1siglongjmp): Remove alias and versioned symbol.
19770         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19771         (__v2siglongjmp): Likewise.
19772
19773 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19774
19775         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19776
19777 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19778
19779         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19780
19781 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19782
19783         [BZ #17987]
19784         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19785         zero result does not depend on the sign resulting from
19786         subtraction.
19787         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19788         Likewise.
19789         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19790         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19791         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19792         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19793         * math/libm-test.inc (remquo_test_data): Add more tests.
19794
19795 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19796
19797         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19798         Problem reported by J William Piggott.
19799
19800 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19801
19802         [BZ #17978]
19803         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19804         products 4 * y and 2 * y where those would overflow.
19805         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19806         Likewise.
19807         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19808         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19809         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19810         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19811         * math/libm-test.inc (remquo_test_data): Add more tests.
19812
19813         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19814
19815         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19816         [defined _COMPILING_NEWLIB].
19817         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19818         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19819
19820         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19821         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19822
19823 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19824
19825         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19826         acquired.
19827
19828 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19829
19830         [BZ #17792]
19831         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19832         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19833         HOST_STACK_END_ADDR): Likewise.
19834
19835 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19836
19837         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19838         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19839         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19840
19841 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19842
19843         * sysdeps/generic/c++-types.data: New file.
19844         * sysdeps/generic/ld.abilist: New file.
19845         * sysdeps/generic/libBrokenLocale.abilist: New file.
19846         * sysdeps/generic/libanl.abilist: New file.
19847         * sysdeps/generic/libc.abilist: New file.
19848         * sysdeps/generic/libcrypt.abilist: New file.
19849         * sysdeps/generic/libdl.abilist: New file.
19850         * sysdeps/generic/libm.abilist: New file.
19851         * sysdeps/generic/libpthread.abilist: New file.
19852         * sysdeps/generic/libresolv.abilist: New file.
19853         * sysdeps/generic/librt.abilist: New file.
19854
19855 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19856
19857         [BZ #17569]
19858         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19859         Compute absolute value of x as modified by fmod, not original
19860         value of x.
19861         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
19862         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
19863         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
19864         RUN_TEST_ffI_f1_mod8.
19865         (remquo_test_data): Add more tests.
19866
19867 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19868
19869         * sysdeps/init_array/pt-crti.S: New file.
19870
19871 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19872
19873         [BZ #17967]
19874         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
19875         __builtin_fmaf instead of relying on contraction of a * b + c.
19876
19877 2015-02-12  J William Piggott  <elseifthen@gmx.com>
19878
19879         [BZ #17969]
19880         * manual/time.texi: correct the zoneinfo path in the TZ Variable
19881         node.
19882
19883 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19884
19885         [BZ #17964]
19886         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
19887         __builtin_fma instead of relying on contraction of a * b + c.
19888
19889 2015-02-12  Roland McGrath  <roland@hack.frob.com>
19890
19891         * Makeconfig (ASFLAGS): Add -Werror=undef.
19892         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
19893         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
19894         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
19895
19896         * Makeconfig (after-link): New variable.
19897         (+link-pie, +link-pie-tests): Use it.
19898         (+link-static, +link-static-tests): Likewise.
19899         (+link, +link-tests): Likewise.
19900         * Makerules (build-module, build-module-asneeded): Likewise.
19901         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
19902         Likewise.
19903         * elf/Makefile ($(objpfx)ld.so): Likewise.
19904
19905 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
19906
19907         [BZ #17965]
19908         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
19909         both struct timeval and struct timespec.
19910
19911 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19912
19913         [BZ #16560]
19914         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19915         and redefine.
19916         (__ieee754_exp2l): Do not multiply small fractional parts by
19917         M_LN2l.
19918         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
19919         small argument.
19920         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
19921         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19922         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
19923         * math/auto-libm-test-in: Add more tests of exp2.
19924         * math/auto-libm-test-out: Regenerated.
19925
19926 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19927
19928         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
19929         unaligned path.
19930
19931 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19932
19933         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
19934         little endian.
19935
19936 2015-02-12  Andreas Schwab  <schwab@suse.de>
19937
19938         [BZ #15790]
19939         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
19940         Filter out elision flags from value returned in kind.
19941         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
19942         * nptl/tst-pthread-mutexattr.c: New file.
19943
19944 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19945
19946         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
19947         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
19948         into gnu-gnu, and update comment to refer to abi-tags.
19949
19950 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
19951
19952         [BZ #15467]
19953         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
19954         (__sincos): Set errno to EDOM for infinite argument.
19955         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
19956         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
19957         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
19958         (__sincosl): Set errno to EDOM for infinite argument.
19959         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
19960         (__sincosl): Set errno to EDOM for infinite argument.
19961         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
19962         (__sincosl): Set errno to EDOM for infinite argument.
19963         * math/libm-test.inc (sincos_test_data): Test errno setting.
19964
19965 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
19966
19967         * string/strxfrm_l.c: Remove #define STRCMP.
19968         * string/strcoll_l.c: Remove #define STRLEN.
19969         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
19970         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
19971
19972 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
19973
19974         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
19975         * sysdeps/mips/mips32/sfp-machine.h: ... here.
19976         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
19977         * sysdeps/mips/mips64/Makefile: ... here.
19978         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
19979         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
19980         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
19981         * sysdeps/mips/mips64/sfp-machine.h: ... here.
19982         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
19983         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
19984         * sysdeps/mips/mips64/n64/Implies: Likewise.
19985
19986 2015-02-10  Roland McGrath  <roland@hack.frob.com>
19987
19988         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
19989         <sys/time.h>, <string.h>, and <errno.h>.
19990         (dest_offset, dest_address, value, zero): Remove unused variables.
19991         (ldouble): Remove typedef.
19992         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
19993         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
19994         1).  Fix code style.
19995         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
19996         (check): Function removed.
19997         (CHECK): New macro.
19998         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
19999         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20000         Don't call set_sigaction_FP and remove_sigaction_FP here.
20001         (ldouble_test): Just use 'long double' as macro argument, no need for
20002         the 'ldouble' typedef.
20003         (do_test): Set up SIGFPE handler at start, using plain signal rather
20004         than sigaction.  Fix code style.
20005
20006 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20007
20008         [BZ #17949]
20009         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20010         jump label.
20011
20012 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20013
20014         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20015         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20016
20017         * sysdeps/powerpc/configure.ac: Remove file.
20018         * sysdeps/powerpc/configure: Likewise.
20019
20020         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20021         [sysdep_routines]: Remove wordcopy-power6 object.
20022         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20023         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20024         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20025         (__memmove_ppc32): Likewise.
20026         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20027         file.
20028         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20029         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20030         Remove preprocessor.
20031
20032         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20033         [sysdep_routines]: Remove wide chars objects.
20034         [wcsmbs]: New rule for wide char objects.
20035
20036         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20037         Remove wordcopy-power6 obejct.
20038         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20039         Use local call for wordcopy and memcpy symbols.
20040         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20041         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20042         implementation for loader.
20043         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20044
20045         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20046         Remove wordcopy-power7 object.
20047         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20048         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20049         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20050         (_wordcopy_fwd_dest_aligned): Likewise.
20051         (_wordcopy_bwd_aligned): Likewise.
20052         (_wordcopy_bwd_dest_aligned): Likewise.
20053
20054         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20055         Rewrite to call __memmove_ppc instead of include default
20056         implementation.
20057
20058         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20059         Remove wide chars objects.
20060         [wcsmbs]: New rule for wide char objects.
20061
20062 2015-02-09  Andreas Schwab  <schwab@suse.de>
20063
20064         [BZ #17912]
20065         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20066         in terms of __O_DIRECTORY.
20067
20068 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20069
20070         * time/getdate.c: Include <stdbool.h>.
20071         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20072         call PTR_MANGLE.
20073         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20074         PTR_DEMANGLE.
20075
20076 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         Add ersatz _Static_assert on older C hosts
20079         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20080         pre-C11 C platform that is not known to support _Static_assert.
20081
20082 2015-02-07  Richard Braun  <rbraun@sceen.net>
20083
20084         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20085         sigstate.
20086         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20087
20088 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20089
20090         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20091         priority against unexistent AIO_PRIO_DELTA_MAX.
20092         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20093         instead of int.
20094         * misc/fchflags.c (fchflags): Likewise.
20095         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20096         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20097         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20098         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20099         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20100         Declare macros.
20101         [__USE_MISC] (chflags, fchflags): Declare functions.
20102         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20103         EINVAL when nfds is greater than FD_SETSIZE.
20104         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20105         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20106         45.
20107         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20108         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20109         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20110         MACH_RCV_TIMED_OUT.
20111         * hurd/hurd/signal.h (_hurd_self_sigstate,
20112         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20113         Explicit casts from void *.
20114         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20115         * abi-tags: Rename gnu-gnu os into gnu.
20116
20117         [BZ #4719]
20118         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20119         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20120         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20121         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20122         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20123         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20124
20125         [BZ #17944]
20126         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20127         duplicates ADDR->sun_path with sockaddr LEN limitation.
20128         * sysdeps/mach/hurd/connect.c: Include <string.h>
20129         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20130         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20131         * sysdeps/mach/hurd/sendto.c: Likewise.
20132         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20133         implementing it by hand.
20134
20135 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20136
20137         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20138         Use sfi_breg on ldr.
20139         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20140         Likewise.
20141
20142         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20143         it's defined.
20144         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20145         Test SIGSETXID only if it's defined.
20146
20147         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20148
20149         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20150         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20151
20152         * nptl/tst-align2.c: Moved ...
20153         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20154         * nptl/Makefile (tests): Remove tst-align2.
20155         * sysdeps/unix/sysv/linux/Makefile
20156         [$(subdir) = nptl] (tests): Add tst-align-clone.
20157         * nptl/tst-getpid1.c: Moved ...
20158         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20159         * nptl/tst-getpid2.c: Moved ...
20160         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20161         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20162         * sysdeps/unix/sysv/linux/Makefile
20163         [$(subdir) = nptl] (tests): ... here.
20164         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20165         * sysdeps/unix/sysv/linux/Makefile
20166         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20167
20168         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20169         Drop trailing \n from perror argument.  Use return rather than exit.
20170
20171         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20172         on [SA_SIGINFO].
20173         * nptl/tst-cancel21.c (do_test): Likewise.
20174         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20175         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20176         [!SA_SIGINFO]: Make it a stub test.
20177
20178         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20179         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20180
20181         * posix/tst-getlogin.c: Move to ...
20182         * login/tst-getlogin.c: ... here.
20183         * posix/Makefile (tests): Move tst-getlogin to ...
20184         * login/Makefile (tests): ... here.
20185
20186         * libio/tst-atime.c (do_test): Move local variables SV and E
20187         inside [ST_NOATIME] conditional.
20188
20189         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20190
20191         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20192
20193         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20194         (wait_code): New function replaces macro.
20195         Call nanosleep rather than syscall.
20196
20197         * nptl/pt-system.c: Rewritten.  Put everything under
20198         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20199         Use IFUNC to redirect when possible.
20200
20201         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20202         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20203         Use IFUNC to redirect when possible.
20204
20205         * nptl/pt-fork.c: Rewritten.  Put everything under
20206         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20207         Use IFUNC to redirect when possible.
20208         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20209
20210         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20211         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20212         unconditionally nowadays.  This included the only reference to
20213         __vdso_clock_gettime that appears outside libc proper.
20214         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20215         Remove version set (containing only __vdso_clock_gettime).
20216         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20217         Add attribute_hidden.
20218         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20219         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20220         libc_hidden_data_def.
20221         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20222         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20223
20224         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20225         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20226         setrpcent, and getrpcport to ...
20227         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20228         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20229         getrpcbynumber_r, and getrpcent_r to ...
20230         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20231         * inet/getrpcbyname.c: Moved ...
20232         * sunrpc/getrpcbyname.c: ... here.
20233         * inet/getrpcbyname_r.c: Moved ...
20234         * sunrpc/getrpcbyname_r.c: ... here.
20235         * inet/getrpcbynumber.c: Moved ...
20236         * sunrpc/getrpcbynumber.c: ... here.
20237         * inet/getrpcbynumber_r.c: Moved ...
20238         * sunrpc/getrpcbynumber_r.c: ... here.
20239         * inet/getrpcent.c: Moved ...
20240         * sunrpc/getrpcent.c: ... here.
20241         * inet/getrpcent_r.c: Moved ...
20242         * sunrpc/getrpcent_r.c: ... here.
20243         * inet/Makefile (routines): Move those to ...
20244         * sunrpc/Makefile (routines): ... here.
20245         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20246         the $(subdirs) list.
20247         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20248         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20249         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20250         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20251
20252         * elf/Makefile (routines): Include $(all-dl-routines), not just
20253         $(dl-routines).
20254         (rtld-routines): Likewise.  Use = rather than :=.
20255         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20256         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20257         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20258         * sysdeps/arm/Makefile: Likewise.
20259         * sysdeps/i386/Makefile: Likewise.
20260         * sysdeps/x86_64/Makefile: Likewise.
20261         * sysdeps/hppa/Makefile [$(subdir) = elf]
20262         (sysdep_routines, sysdep-rtld-routines): Don't add
20263         $(sysdep-dl-routines) to these.
20264         * sysdeps/ia64/Makefile: Likewise.
20265         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20266         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20267         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20268         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20269         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20270         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20271         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20272         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20273         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20274         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20275         these; sysdep-dl-routines alone is enough.
20276
20277 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20278
20279         [BZ #17932]
20280         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20281         where multiplication results in zero and third argument is finite
20282         and nonzero.
20283         * math/auto-libm-test-in: Add more tests of fma.
20284         * math/auto-libm-test-out: Regenerated.
20285
20286         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20287         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20288         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20289         (_FP_CMP_EQ): Likewise.
20290         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20291
20292         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20293         extra argument CHECK_NAN.  Redefine as wrapper around
20294         _FP_EXTEND_CNAN.
20295
20296 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20297
20298         * version.h (RELEASE): Set to "stable".
20299         (VERSION): Set to "2.21"
20300         * include/features.h (__GLIBC_MINOR__): Set to 21.
20301
20302         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20303
20304 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20305             Paul Eggert  <eggert@cs.ucla.edu>
20306
20307         [BZ #16618]
20308         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20309         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20310         size in bytes. Store needed elements in wpmax. Use needed size
20311         in bytes for extend_alloca.
20312
20313 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20314
20315         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20316         binutls 2.25, and texinfo 5.2.
20317         * INSTALL: Regenerate.
20318         * sysdeps/nios2/configure: Regenerate.
20319         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20320         * manual/contrib.texi: Update.
20321         * po/be.po: Update.
20322         * po/bg.po: Update.
20323         * po/ca.po: Update.
20324         * po/cs.po: Update.
20325         * po/da.po: Update.
20326         * po/de.po: Update.
20327         * po/el.po: Update.
20328         * po/eo.po: Update.
20329         * po/es.po: Update.
20330         * po/fi.po: Update.
20331         * po/fr.po: Update.
20332         * po/gl.po: Update.
20333         * po/hr.po: Update.
20334         * po/hu.po: Update.
20335         * po/ia.po: Update.
20336         * po/id.po: Update.
20337         * po/it.po: Update.
20338         * po/ja.po: Update.
20339         * po/ko.po: Update.
20340         * po/lt.po: Update.
20341         * po/nb.po: Update.
20342         * po/nl.po: Update.
20343         * po/pl.po: Update.
20344         * po/pt_BR.po: Update.
20345         * po/ru.po: Update.
20346         * po/rw.po: Update.
20347         * po/sk.po: Update.
20348         * po/sl.po: Update.
20349         * po/sv.po: Update.
20350         * po/tr.po: Update.
20351         * po/uk.po: Update.
20352         * po/vi.po: Update.
20353         * po/zh_CN.po: Update.
20354         * po/zh_TW.po: Update.
20355
20356         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20357         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20358         * sysdeps/hppa/dl-irel.h: Remove #warning.
20359         * sysdeps/hppa/entry.h: Provide prototype for
20360         __canonicalize_funcptr_for_compare and cast argument.
20361         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20362         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20363         * sysdeps/hppa/sotruss-lib.c: New file.
20364         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20365         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20366         (atomic_compare_and_exchange_bool_acq): Likewise.
20367         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20368         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20369
20370         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20371         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20372         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20373
20374 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20375
20376         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20377         called function in non-PIC case.
20378
20379 2015-01-31  David S. Miller  <davem@davemloft.net>
20380
20381         * sysdeps/sparc/sparc32/bits/atomic.h
20382         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20383         unlock not after it.
20384         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20385         volatile register usage warnings from the compiler.
20386
20387         * sysdeps/sparc/nptl/sem_init.c: Delete.
20388         * sysdeps/sparc/nptl/sem_post.c: Delete.
20389         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20390         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20391         * sysdeps/sparc/sparc32/sem_init.c: New file.
20392         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20393         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20394         padding explicitly initialized.
20395         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20396         padding for in-semaphore spinlock.
20397         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20398         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20399         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20400         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20401         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20402         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20403         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20404         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20405         version.
20406         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20407         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20408
20409 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20410
20411         [BZ #17801]
20412         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20413         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20414         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20415         New.
20416         (index_AVX_Fast_Unaligned_Load): Likewise.
20417         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20418         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20419         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20420         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20421         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20422         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20423         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20424         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20425         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20426
20427 2015-01-29  Andreas Schwab  <schwab@suse.de>
20428
20429         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20430
20431 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20432
20433         [BZ #17892]
20434         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20435
20436 2015-01-28  Martin Sebor  <msebor@redhat.com>
20437
20438         * math/README.libm-test: Clarify. Add "How to read the test output."
20439
20440 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20441
20442         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20443         Define to 0.
20444
20445 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20446
20447         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20448         (__HAVE_64B_ATOMICS): Define to 0.
20449
20450 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20451
20452         [BZ #17885]
20453         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20454         value to set as new flag.
20455
20456         [BZ #16576]
20457         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20458         and use _ARCH_PPCSQ instead.
20459         (__ieee754_sqrt): Likewise.
20460         (__ieee754_sqrtf): Likewise.
20461         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20462         _ARCH_PPCSQ is defined.
20463         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20464         fsqrt instruction.
20465         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20466         _ARCH_PPCSQ is defined.
20467         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20468         fsqrts instruction.
20469         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20470
20471 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20472
20473         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20474         bug (GCC BZ #64739).
20475
20476 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20477
20478         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20479         Mark _retval as used.
20480         (lll_futex_wake_unlock): Likewise.
20481         (lll_futex_timed_wait_requeue_pi): Likewise.
20482
20483         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20484         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20485         register variables.
20486
20487         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20488         libm_hidden_def.
20489
20490         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20491         (__bswap_64): Mark as __always_inline.
20492
20493 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20494
20495         [BZ #15378]
20496         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20497         when none of the search directories exist.
20498
20499 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20500
20501         [BZ #17869]
20502         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20503         power8 in .machine directive.
20504
20505         [BZ #17868]
20506         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20507         set dependency from opd value.
20508
20509 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20510
20511         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20512         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20513         architecture.
20514
20515 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20516
20517         [BZ #17870]
20518         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20519         with uint64_t.
20520         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20521         (uint64_t) 1.
20522         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20523         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20524         Replace 1UL with (uint64_t) 1.
20525         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20526         int with uint64_t.
20527
20528 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20529
20530         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20531         (if_freenameindex): Likewise.
20532
20533         * resource/getrlimit64.c: Add missing libc_hidden_def.
20534
20535 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20536
20537         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20538         __label__.
20539         (_FP_FMA): Likewise.
20540         (_FP_TO_INT_ROUND): Likewise.
20541         (_FP_FROM_INT): Likewise.
20542
20543 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20544
20545         [BZ #16418]
20546         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20547         Make code racy and cancel safe.
20548
20549 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20550
20551         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20552         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20553         attribution.
20554
20555         * pwd/tst-getpw.c: Rewrite.
20556
20557         [BZ #17702]
20558         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20559         (modules-names): Add moddummy1 and moddummy2.
20560         ($(objpfx)tst-rec-dlopen): Define.
20561         * dlfcn/moddummy1.c: New file.
20562         * dlfcn/moddummy2.c: New file.
20563         * dlfcn/tst-rec-dlopen.c: New file.
20564         * elf/dl-cache.c (_dl_load_cache_lookup):
20565         Return char*. Copy result with alloca/strcpy/strdup.
20566         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20567         returns char*. Free cached. If not saving realname
20568         free cached.
20569         * elf/dl-open.c (dl_open_worker): Do not assert that
20570         _r_debug->r_state is RT_CONSISTENT.
20571         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20572         returns char*.
20573
20574 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20575             Carlos O'Donell  <carlos@redhat.com>
20576
20577         [BZ #12674]
20578         * nptl/sem_waitcommon.c: New file.
20579         * nptl/sem_wait.c: Include sem_waitcommon.c.
20580         (__sem_wait_cleanup, do_futex_wait): Remove.
20581         (__new_sem_wait): Adapt.
20582         (__new_sem_trywait): New function.
20583         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20584         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20585         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20586         (sem_timedwait): Adapt.
20587         * nptl/sem_post.c (__new_sem_post): Adapt.
20588         (futex_wake): New function.
20589         (__old_sem_post): Add release MO fence.
20590         * nptl/sem_open.c (sem_open): Adapt.
20591         * nptl/sem_init.c (__new_sem_init): Adapt.
20592         (futex_private_if_supported): New function.
20593         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20594         (__old_sem_getvalue): Add using previous code.
20595         * sysdeps/nptl/internaltypes.h: Adapt.
20596         * nptl/tst-sem13.c (do_test): Adapt.
20597         * nptl/tst-sem11.c (main): Adapt.
20598         * nptl/sem_trywait.c: Remove.
20599         * nptl/DESIGN-sem.txt: Remove.
20600         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20601         (gen-as-const-headers): Remove structsem.sym.
20602         * nptl/structsem.sym: Remove.
20603         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20604         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20605         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20606         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20607         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20608         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20609         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20610         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20611         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20612         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20613         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20614         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20615         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20616         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20617         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20618         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20619         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20620         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20621         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20622         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20623         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20624         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20625
20626 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20627
20628         * INSTALL: Regenerated.
20629
20630         * po/libc.pot: Regenerated.
20631
20632 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20633             Sandra Loosemore  <sandra@codesourcery.com>
20634             Andrew Jenner  <andrew@codesourcery.com>
20635             Joseph Myers  <joseph@codesourcery.com>
20636             Nathan Sidwell  <nathan@codesourcery.com>
20637
20638         * NEWS: Mention new Nios II port.
20639         * sysdeps/nios2/Implies: New file.
20640         * sysdeps/nios2/Makefile: New file.
20641         * sysdeps/nios2/Subdirs: New file.
20642         * sysdeps/nios2/Versions: New file.
20643         * sysdeps/nios2/__longjmp.S: New file.
20644         * sysdeps/nios2/abort-instr.h: New file.
20645         * sysdeps/nios2/backtrace.c: New file.
20646         * sysdeps/nios2/bits/endian.h: New file.
20647         * sysdeps/nios2/bits/fenv.h: New file.
20648         * sysdeps/nios2/bits/link.h: New file.
20649         * sysdeps/nios2/bits/setjmp.h: New file.
20650         * sysdeps/nios2/bsd-_setjmp.S: New file.
20651         * sysdeps/nios2/bsd-setjmp.S: New file.
20652         * sysdeps/nios2/configure: New generated file.
20653         * sysdeps/nios2/configure.ac: New file.
20654         * sysdeps/nios2/crti.S: New file.
20655         * sysdeps/nios2/crtn.S: New file.
20656         * sysdeps/nios2/dl-init.c: New file.
20657         * sysdeps/nios2/dl-machine.h: New file.
20658         * sysdeps/nios2/dl-sysdep.h: New file.
20659         * sysdeps/nios2/dl-tls.h: New file.
20660         * sysdeps/nios2/dl-trampoline.S: New file.
20661         * sysdeps/nios2/gccframe.h: New file.
20662         * sysdeps/nios2/gmp-mparam.h: New file.
20663         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20664         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20665         * sysdeps/nios2/ldsodefs.h: New file.
20666         * sysdeps/nios2/libc-tls.c: New file.
20667         * sysdeps/nios2/libm-test-ulps: New file.
20668         * sysdeps/nios2/machine-gmon.h: New file.
20669         * sysdeps/nios2/math-tests.h: New file.
20670         * sysdeps/nios2/math_private.h: New file.
20671         * sysdeps/nios2/memusage.h: New file.
20672         * sysdeps/nios2/nptl/Makefile: New file.
20673         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20674         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20675         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20676         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20677         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20678         * sysdeps/nios2/nptl/tls.h: New file.
20679         * sysdeps/nios2/preconfigure: New file.
20680         * sysdeps/nios2/s_fma.c: New file.
20681         * sysdeps/nios2/s_fmaf.c: New file.
20682         * sysdeps/nios2/setjmp.S: New file.
20683         * sysdeps/nios2/sfp-machine.h: New file.
20684         * sysdeps/nios2/sotruss-lib.c: New file.
20685         * sysdeps/nios2/stackguard-macros.h: New file.
20686         * sysdeps/nios2/stackinfo.h: New file.
20687         * sysdeps/nios2/start.S: New file.
20688         * sysdeps/nios2/sysdep.h: New file.
20689         * sysdeps/nios2/tls-macros.h: New file.
20690         * sysdeps/nios2/tst-audit.h: New file.
20691         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20692         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20693         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20694         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20695         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20696         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20697         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20698         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20699         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20700         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20701         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20702         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20703         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20704         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20705         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20706         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20707         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20708         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20709         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20710         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20711         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20712         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20713         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20714         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20715         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20716         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20717         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20718         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20719         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20720         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20721         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20722         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20723         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20724         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20725         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20726         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20727         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20728         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20729         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20730         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20731         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20732         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20733         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20734         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20735
20736 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20737
20738         [BZ #17844]
20739         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20740         (getutent): Use weak_alias in non SHARED case
20741         and default_symbol_version in SHARED case.
20742         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20743         (getutent_r, pututline): Likewise.
20744         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20745         (getutid): Likewise.
20746         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20747         (getutid_r): Likewise.
20748         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20749         (getutline): Likewise.
20750         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20751         (getutline_r): Likewise.
20752         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20753         (updwtmp): Likewise.
20754
20755 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20756
20757         [BZ #17848]
20758         * sysdeps/s390/s390-32/memcmp.S
20759         (memcmp_g5): Rename to __memcmp_g5.
20760         * sysdeps/s390/s390-32/memcpy.S
20761         (memcpy_g5): Rename to __memcpy_g5.
20762         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20763         (memcpy_mvcle) Rename to __memcpy_mvcle.
20764         * sysdeps/s390/s390-32/memset.S
20765         (memset_g5): Rename to __memset_g5.
20766         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20767         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20768         and use prefixed functions.
20769         * sysdeps/s390/s390-32/multiarch/memcmp.S
20770         (memcmp_z196): Rename to __memcmp_z196.
20771         (memcmp_z10): Rename to __memcmp_z10.
20772         (memcmp): Set alias to __memcmp_g5.
20773         (bcmp): Set alias to __memcmp_g5.
20774         * sysdeps/s390/s390-32/multiarch/memcpy.S
20775         (memcpy_z196): Rename to __memcpy_z196.
20776         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20777         (memcpy_z10): Rename to __memcpy_z10.
20778         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20779         (memcpy): Set alias to __memcpy_g5.
20780         * sysdeps/s390/s390-32/multiarch/memset.S
20781         (memset_z196): Rename to __memset_z196.
20782         Jump to __memset_mvcle instead of memset_mvcle.
20783         (memset_z10): Rename to __memset_z10.
20784         Jump to __memset_mvcle instead of memset_mvcle.
20785         (memset_mvcle) Rename to __memset_mvcle.
20786         (memset): Set alias to __memset_g5.
20787         * sysdeps/s390/s390-64/memcmp.S
20788         (memcmp_z900): Rename to __memcmp_z900.
20789         * sysdeps/s390/s390-64/memcpy.S
20790         (memcpy_z900): Rename to __memcpy_z900.
20791         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20792         (memcpy_mvcle) Rename to __memcpy_mvcle.
20793         * sysdeps/s390/s390-64/memset.S
20794         (memset_z900): Rename to __memset_z900.
20795         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20796         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20797         and use prefixed functions.
20798         * sysdeps/s390/s390-64/multiarch/memcmp.S
20799         (memcmp_z196): Rename to __memcmp_z196.
20800         (memcmp_z10): Rename to __memcmp_z10.
20801         (memcmp): Set alias to __memcmp_z900.
20802         (bcmp): Set alias to __memcmp_z900.
20803         * sysdeps/s390/s390-64/multiarch/memcpy.S
20804         (memcpy_z196): Rename to __memcpy_z196.
20805         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20806         (memcpy_z10): Rename to __memcpy_z10.
20807         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20808         (memcpy): Set alias to __memcpy_z900.
20809         * sysdeps/s390/s390-64/multiarch/memset.S
20810         (memset_z196): Rename to __memset_z196.
20811         Jump to __memset_mvcle instead of memset_mvcle.
20812         (memset_z10): Rename to __memset_z10.
20813         Jump to __memset_mvcle instead of memset_mvcle.
20814         (memset_mvcle) Rename to __memset_mvcle.
20815         (memset): Set alias to __memset_z900.
20816
20817 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20818
20819         [BZ #17748]
20820         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20821         __fesetenv instead of fesetenv.
20822
20823 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20824
20825         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20826         macro.
20827
20828 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20829
20830         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20831         regression on LE.
20832
20833         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20834         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20835         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20836         strncmp-power8 object.
20837         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20838         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20839         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20840         * NEWS: Update.
20841
20842 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20843             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20844
20845         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
20846         trailing byte check.
20847
20848 2015-01-13  David S. Miller  <davem@davemloft.net>
20849
20850         * include/signal.h (__sigreturn): Guard with __USE_MISC.
20851
20852 2015-01-13  Roland McGrath  <roland@hack.frob.com>
20853
20854         * login/logout.c (logout): Use memset rather than bzero.
20855         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
20856         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
20857         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
20858         (_gethtbyaddr): Likewise.
20859         * locale/programs/simple-hash.c (bcopy): Macro removed.
20860
20861 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20862
20863         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20864         Add strcmp-power8 object.
20865         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20866         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
20867         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
20868         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
20869         __strcmp_power8 implementation.
20870         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
20871         * NEWS: Update.
20872
20873         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20874         Add strncpy-power8 and stpncpy-power8 objects.
20875         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20876         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
20877         implementations.
20878         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
20879         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
20880         __stpncpy_power8 implementation.
20881         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
20882         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
20883         __strncpy_power8 implementation.
20884         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
20885         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
20886         * NEWS: Update.
20887
20888         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
20889         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
20890         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
20891
20892         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20893         strncat-power8 object.
20894         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
20895         __strcat_power8 implementation.
20896         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20897         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
20898         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
20899         optimized strcat for power8.
20900
20901         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20902         strcpy-power8 and stpcpy-power8 objects.
20903         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20904         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
20905         implementations.
20906         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
20907         multiarch stpcpy implementation for POWER8.
20908         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
20909         multiarch strcpy implementation for POWER8.
20910         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
20911         __strcpy_power8 function.
20912         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
20913         stpcpy for POWER8.
20914         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
20915         strcpy for POWER8.
20916         * NEWS: Update.
20917
20918 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
20919
20920         [BZ #16009]
20921         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
20922         weights and rules. Use do_xfrm_cached if data fits in cache,
20923         do_xfrm otherwise.  Moved former main loop to...
20924         * (do_xfrm_cached): New function.
20925         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
20926         find_idx, find_position and stack_push.
20927         * (find_idx): New function.
20928         * (find_position): Likewise.
20929         * localedata/sort-test.sh: Added test run for do_xfrm.
20930         * localedata/xfrm-test.c (main): Added command line option
20931         -nocache to run the test with strings that are too large for
20932         the STRXFRM cache.
20933
20934 2015-01-13  Torvald Riegel  <triegel@redhat.com>
20935
20936         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
20937         variable to lll_futex_wake call, not the value itself.
20938
20939 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
20940
20941         [BZ #17803]
20942         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
20943         twom64.  Adjust value to 0x1p-64L.
20944         (__scalblnl): Only return standard underflowing result for K <=
20945         -64 not K <= -63; adjust exponent for underflowing result by 64
20946         not 63.
20947         * math/libm-test.inc (scalbn_test_data): Add more tests.
20948         (scalbln_test_data): Likewise.
20949
20950         [BZ #17834]
20951         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
20952         0x1p63L.
20953         (__scalblnl): Get new exponent of adjusted subnormal value from ES
20954         not HX.
20955         * math/libm-test.inc (scalbn_test_data): Add more tests.
20956         (scalbln_test_data): Likewise.
20957
20958 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20959             Stefani Seibold  <stefani@seibold.net>
20960
20961         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
20962         (sysdep_routines): Add dl-vdso here, ...
20963         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
20964         (sysdep_routines): ... not here.
20965         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
20966         fallback when vDSO is not presented.
20967         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
20968         Define with libc_hidden_proto/libc_hidden_data_def definitions.
20969         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
20970         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
20971         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
20972         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
20973         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
20974         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
20975         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
20976         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
20977         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
20978         fallback configurable symbol when vDSO is not available.
20979         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
20980         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
20981         be able to redefine fallback symbol when vDSO is not available.
20982         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
20983         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
20984
20985 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20986
20987         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
20988         (TLS_INIT_TP): Add tm_capable initialization.
20989         (TLS_DEFINE_INIT_TP): Likewise.
20990         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
20991         TCB.
20992         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
20993         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
20994         calculation.
20995         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
20996         transactoion is lock elision is built and TCB tm_capable is set.
20997         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
20998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
20999         (INTERNAL_SYSCALL_NCS): Likewise.
21000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21001         (INTERNAL_SYSCALL_NCS): Likewise.
21002         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21003
21004         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21005         for powerpc.
21006         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21007         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21008         and remove it for 32 bits case.
21009         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21010         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21011         initialization.
21012         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21013         Disable lock elision with rdlocks if elision is not available.
21014
21015         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21016         (sysdep_routines): Add lock elision objects.
21017         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21018         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21019         [pthread_mutex_t] (__elision): Add field.
21020         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21021         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21022         elision definitions for powerpc.
21023         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21024         implementation of lock elision for powerpc.
21025         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21026         implementation of timed lock elision for powerpc.
21027         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21028         implementation of trylock with lock elision for powerpc.
21029         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21030         implementaion of unlock for lock elision for powerpc.
21031         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21032         automatic enable lock elision for mutexes.
21033         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21034         transaction execution definitions for powerpc.
21035         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21036         definitions.
21037         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21038         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21039         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21040         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21041         * NEWS: Update.
21042
21043 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21044
21045         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21046         for #include of <shm-directory.h>.
21047
21048 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21049
21050         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21051         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21052
21053 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21054
21055         [BZ #17791]
21056         * NEWS: Mention bug fix.
21057         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21058         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21059         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21060
21061 2015-01-09  Torvald Riegel <triegel@redhat.com>
21062
21063         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21064
21065 2015-01-09  Torvald Riegel <triegel@redhat.com>
21066
21067         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21068
21069 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21070
21071         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21072         pointer and cast to uintptr_t.
21073
21074 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21075
21076         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21077         removed.
21078         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21079
21080 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21081
21082         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21083         of 0.
21084
21085 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21086
21087         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21088         <nptl/pthreadP.h> instead.
21089         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21090
21091         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21092         already defined.
21093         [__SIGRTMIN] (init): Function removed.
21094         [__SIGRTMIN] (initialized): Variable removed.
21095         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21096         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21097         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21098         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21099         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21100         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21101         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21102         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21103         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21104         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21105         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21106         * sysdeps/nptl/allocrtsig.c: New file.
21107         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21108         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21109         * sysdeps/generic/testrtsig.h: File removed.
21110
21111         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21112         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21113
21114         * nptl/nptl-init.c (pthread_functions): Conditionalize
21115         .ptr__nptl_setxid initialization on [SIGSETXID].
21116
21117         * sysdeps/nptl/sys/procfs.h: New file.
21118         * nptl_db/Makefile (headers): Add it.
21119         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21120
21121         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21122         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21123         * nptl/pthread_attr_setaffinity.c: Include it.
21124         * nptl/pthread_setattr_default_np.c: Likewise.
21125         * nptl/check-cpuset.h: New file.
21126
21127 2015-01-08  Richard Henderson  <rth@redhat.com>
21128
21129         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21130         (CFLAGS-tst-execstack-prog.c): Likewise.
21131         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21132
21133 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21134             Sandra Loosemore  <sandra@codesourcery.com>
21135             Andrew Jenner  <andrew@codesourcery.com>
21136             Joseph Myers  <joseph@codesourcery.com>
21137             Nathan Sidwell  <nathan@codesourcery.com>
21138
21139         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21140         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21141         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21142         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21143         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21144         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21145         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21146         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21147         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21148         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21149         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21150         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21151         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21152         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21153         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21154         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21155         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21156
21157 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21158
21159         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21160         timespec struct member in syscall macro.
21161         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21162         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21163         first timeval struct member in syscall macro.
21164         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21165
21166 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21167
21168         [BZ #17748]
21169         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21170         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21171         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21172         __feupdateenv and define as weak alias of __feupdateenv.  Use
21173         libm_hidden_weak.
21174         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21175         libm_hidden_def.
21176         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21177         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21178         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21179         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21180         libm_hidden_def.
21181         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21182         __feupdateenv and define as weak alias of __feupdateenv.  Use
21183         libm_hidden_weak.
21184         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21185         libm_hidden_def.
21186         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21187         __feupdateenv and define as weak alias of __feupdateenv.  Use
21188         libm_hidden_weak.
21189         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21190         libm_hidden_def.
21191         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21192         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21193         (__feupdateenv): Likewise.
21194         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21195         __feupdateenv and define as weak alias of __feupdateenv.  Use
21196         libm_hidden_weak.
21197         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21198         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21199         libm_hidden_def.
21200         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21201         function.
21202         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21203         libm_hidden_def.
21204         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21205         __feupdateenv instead of feupdateenv.
21206         (default_libc_feupdateenv_test): Likewise.
21207         (libc_feresetround_ctx): Likewise.
21208
21209 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21210
21211         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21212         prototype.
21213
21214 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21215
21216         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21217         COLL_SYM in a couple of places to avoid uninitialized variable
21218         wanings on tilegx gcc 4.8.2.
21219
21220 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21221
21222         * sysdeps/aarch64/strcpy.S: New file.
21223         * sysdeps/aarch64/stpcpy.S: New file.
21224         * NEWS: Updated.
21225
21226 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21227
21228         * sysdeps/aarch64/strrchr.S: New file.
21229         * NEWS: Updated.
21230
21231 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21232
21233         [BZ #17658]
21234         * stdlib/setenv.c: Fix memory leak when setting large,
21235         duplicate string.
21236
21237 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21238
21239         [BZ #17273]
21240         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21241         and tabs from buffer before parsing fstab entry.
21242         * misc/tst-mntent.c (main): Add test for mount entry with
21243         trailing spaces and tabs.
21244
21245 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21246
21247         [BZ #17748]
21248         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21249         * math/fesetround.c (fesetround): Rename to __fesetround and
21250         define as weak alias of __fesetround.  Use libm_hidden_weak.
21251         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21252         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21253         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21254         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21255         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21256         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21257         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21258         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21259         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21260         __fesetround_inline.
21261         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21262         __fesetround_inline instead of __fesetround.
21263         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21264         __fesetround and define as weak alias of __fesetround.  Use
21265         libm_hidden_weak.  Call __fesetround_inline instead of
21266         __fesetround.
21267         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21268         __fesetround and define as weak alias of __fesetround.  Use
21269         libm_hidden_weak.
21270         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21271         Likewise.
21272         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21273         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21274         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21275         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21276         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21277         __fesetround and define as weak alias of __fesetround.  Use
21278         libm_hidden_weak.
21279         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21280         __fesetround instead of fesetround.
21281         (default_libc_feholdexcept_setround): Likewise.
21282         (libc_feholdsetround_ctx): Likewise.
21283         (libc_feholdsetround_noex_ctx): Likewise.
21284
21285         [BZ #17748]
21286         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21287         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21288         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21289         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21290         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21291         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21292         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21293         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21294         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21295         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21296         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21297         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21298         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21299         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21300         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21301         libm_hidden_def.
21302         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21303         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21304         Likewise.
21305         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21306         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21307         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21308         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21309         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21310         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21311         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21312         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21313         __fesetenv instead of fesetenv.
21314         (libc_feresetround_noex_ctx): Likewise.
21315         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21316         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21317         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21318         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21319         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21320         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21321         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21322         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21323         (__feupdateenv): Likewise.
21324         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21325         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21326         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21327         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21328
21329 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21330
21331         [BZ #17806]
21332         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21333         addresses have been freed.
21334
21335 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21336
21337         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21338         and nservall.
21339
21340 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21341
21342         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21343         Clean up check_pf allocation pattern. addresses
21344
21345 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21346
21347         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21348         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21349         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21350         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21351         * nptl/pthread_join.c (pthread_join): Likewise.
21352         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21353         * sysdeps/posix/waitid.c (__waitid): Likewise.
21354         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21355         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21356         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21357         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21358         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21359         Likewise.
21360         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21361         (__libc_pread64): Likewise.
21362         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21363         (__libc_pwrite): Likewise.
21364         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21365         (__libc_pwrite64): Likewsie.
21366         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21367         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21368         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21369         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21370         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21371         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21372         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21374         Likewise.
21375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21376         (__libc_pread64): Likewise.
21377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21378         Likewise.
21379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21380         (__libc_pwrite64): Likewise.
21381         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21382         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21383         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21384         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21385         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21386         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21387         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21388         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21389         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21390         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21391         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21392         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21393         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21394         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21395         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21396         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21397         Likewise.
21398
21399 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21400
21401         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21402         (CFLAGS-test-double.c): Likewise.
21403         (CFLAGS-test-ldouble.c): Likewise.
21404         (CPPFLAGS-test-ifloat.c): Likewise.
21405         (CPPFLAGS-test-idouble.c): Likewise.
21406         (CPPFLAGS-test-ildoubl.c): Likewise.
21407         (CFLAGS-test-test-fenv.c): Remove variable.
21408         (CFLAGS-test-misc.c): Likewise.
21409
21410 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21411
21412         [BZ #17797]
21413         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21414         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21415         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21416         CLOCKS_PER_SEC == 1000000.
21417         * time/clocktest.c (main): Replace %ld with %jd and cast to
21418         intmax_t.
21419
21420 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21421
21422         * sysdeps/generic/unwind-resume.h: New file.
21423         * sysdeps/gnu/unwind-resume.c: Include it.
21424         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21425         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21426         argument list.
21427         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21428         global rather than static.
21429         (_Unwind_Resume): Update user.
21430         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21431         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21432         rather than static.  Add __attribute__ ((cold)).
21433         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21434         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21435         * sysdeps/arm/arm-unwind-resume.S: New file.
21436         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21437         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21438         * sysdeps/arm/Makefile [$(subdir) = csu]
21439         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21440         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21441         Add rt-arm-unwind-resume.
21442         [$(subdir) = nptl]
21443         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21444         Add pt-arm-unwind-resume.
21445         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21446         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21447
21448 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21449
21450         [BZ #17748]
21451         * include/fenv.h (__feholdexcept): Declare.  Use
21452         libm_hidden_proto.
21453         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21454         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21455         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21456         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21457         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21458         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21459         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21460         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21461         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21462         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21463         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21464         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21465         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21466         (feholdexcept): Likewise.
21467         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21468         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21469         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21470         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21471         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21472         __feholdexcept instead of feholdexcept.
21473         (default_libc_feholdexcept_setround): Likewise.
21474
21475 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21476
21477         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21478         to avoid using stl/str to align destination.
21479
21480 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21481
21482         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21483
21484 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21485
21486         [BZ #17796]
21487         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21488         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21489         Define as weak alias not strong alias.
21490
21491 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21492
21493         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21494         bltzal with addiupc.
21495         (RTLD_START): Ditto.
21496
21497 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21498
21499         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21500         for __vdso_* functions in declarations.
21501         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21502         definitions.
21503         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21504         INTERNAL_VSYSCALL): Use struct return types to check for error.
21505
21506         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21507         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21508         function with cast from llround().
21509         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21510         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21511         Define.
21512
21513 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21514
21515         [BZ #17793]
21516         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21517         Define as weak alias not strong alias.
21518
21519         [BZ #17635]
21520         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21521         ...
21522         * ctype/ctype-extn.c: ... here.
21523         (__isblank_l): Move to ...
21524         * ctype/ctype-c99_l.c: ... here.  New file.
21525         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21526         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21527         Remove variable.
21528         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21529         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21530         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21531         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21532         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21533
21534         [BZ #17777]
21535         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21536         (posix_fadvise64): Define as weak alias not strong alias.
21537         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21538         (posix_fallocate64): Likewise.
21539         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21540         Remove variable.
21541         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21542         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21543         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21544         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21545         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21546
21547 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21548
21549         [BZ #16191]
21550         * NEWS: Mention bug fix.
21551         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21552         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21553         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21554         (HOST_STACK_END_ADDR): Likewise.
21555
21556 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21557
21558         [BZ #17748]
21559         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21560         * math/fegetround.c (fegetround): Rename to __fegetround and
21561         define as weak alias of __fegetround.  Use libm_hidden_weak.
21562         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21563         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21564         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21565         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21566         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21567         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21568         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21569         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21570         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21571         Undefine after rather than before function definition; use
21572         parentheses around function name in definition.
21573         (__fegetround): Also undefine macro after function definition.
21574         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21575         __fegetround and define as weak alias of __fegetround.  Use
21576         libm_hidden_weak.  Do not undefine as macro.
21577         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21578         Likewise.
21579         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21580         __fegetround and define as weak alias of __fegetround.  Use
21581         libm_hidden_weak.
21582         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21583         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21584         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21585         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21586         __fegetround and define as weak alias of __fegetround.  Use
21587         libm_hidden_weak.
21588         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21589         __fegetround instead of fegetround.
21590
21591         [BZ #17782]
21592         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21593         Condition macro definition on [__USE_MISC].
21594
21595         [BZ #17781]
21596         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21597         (struct sigaction): Change type of sa_flags field to int.
21598
21599         [BZ #17780]
21600         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21601         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21602         __glibc_reserved0.
21603
21604         * nptl/version.c (banner): Use single year in copyright notice.
21605
21606         * NEWS: Update copyright dates.
21607         * catgets/gencat.c (print_version): Likewise.
21608         * csu/version.c (banner): Likewise.
21609         * debug/catchsegv.sh: Likewise.
21610         * debug/pcprofiledump.c (print_version): Likewise.
21611         * debug/xtrace.sh (do_version): Likewise.
21612         * elf/ldconfig.c (print_version): Likewise.
21613         * elf/ldd.bash.in: Likewise.
21614         * elf/pldd.c (print_version): Likewise.
21615         * elf/sotruss.sh: Likewise.
21616         * elf/sprof.c (print_version): Likewise.
21617         * iconv/iconv_prog.c (print_version): Likewise.
21618         * iconv/iconvconfig.c (print_version): Likewise.
21619         * locale/programs/locale.c (print_version): Likewise.
21620         * locale/programs/localedef.c (print_version): Likewise.
21621         * login/programs/pt_chown.c (print_version): Likewise.
21622         * malloc/memusage.sh (do_version): Likewise.
21623         * malloc/memusagestat.c (print_version): Likewise.
21624         * malloc/mtrace.pl: Likewise.
21625         * manual/libc.texinfo: Likewise.
21626         * nptl/version.c (banner): Likewise.
21627         * nscd/nscd.c (print_version): Likewise.
21628         * nss/getent.c (print_version): Likewise.
21629         * nss/makedb.c (print_version): Likewise.
21630         * posix/getconf.c (main): Likewise.
21631         * scripts/test-installation.pl: Likewise.
21632         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21633
21634 2015-01-02  Will Newton  <will.newton@linaro.org>
21635
21636         * sysdeps/arm/armv7/configure: Removed.
21637         * sysdeps/arm/armv7/configure.ac: Likewise.
21638
21639 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21640
21641         * All files with FSF copyright notices: Update copyright dates
21642         using scripts/update-copyrights.
21643         * intl/plural.c: Regenerated.
21644         * locale/programs/charmap-kw.h: Likewise.
21645         * locale/programs/locfile-kw.h: Likewise.
21646
21647 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21648
21649         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21650
21651 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21652
21653         [BZ #17748]
21654         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21655         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21656         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21657         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21658         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21659         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21660         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21661         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21662         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21663         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21664         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21665         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21666         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21667         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21668         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21669         libm_hidden_def.
21670         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21671         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21672         Likewise.
21673         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21674         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21675         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21676         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21677         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21678         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21679         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21680         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21681         __fegetenv instead of fegetenv.
21682         (libc_feholdsetround_noex_ctx): Likewise.
21683
21684 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21685
21686         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21687         (Elf_MIPS_ABIFlags_v0): New structure.
21688         (EF_MIPS_FP64): Define.
21689         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21690         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21691         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21692         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21693         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21694         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21695         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21696         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21697         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21698         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21699         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21700         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21701         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21702         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21703         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21704         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21705         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21706         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21707         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21708         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21709         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21710         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21711         field.
21712         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21713         EF_MIPS_FP64.
21714         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21715         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21716         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21717         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21718         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21719         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21720         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21721         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21722         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21723         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21724         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21725         record the current FP ABI extension.
21726         (mips-mode-switch): Define to show if kernel headers support mode
21727         switching.
21728         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21729         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21730         supported SYSV ABI version to 3.
21731         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21732         feature.
21733
21734 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21735             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21736
21737         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21738         path.
21739         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21740
21741 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21742
21743         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21744         __fegetround and redefine to call __fegetround.  Remove condition
21745         on [!__NO_MATH_INLINES].
21746         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21747         function.
21748         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21749         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21750         Remove macro.
21751         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21752         instead of <fenv_libc.h>.
21753         (__llrintl): Call fegetround instead of __fegetround.
21754         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21755         instead of <fenv_libc.h>.
21756         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21757         (__lrintl): Call fegetround instead of __fegetround.
21758         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21759         instead of <fenv_libc.h>.
21760         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21761         (__rintl): Call fegetround instead of __fegetround.
21762
21763 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21764
21765         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21766         arrays.
21767
21768 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21769
21770         [BZ #17775]
21771         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21772         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21773         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21774
21775 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21776
21777         * sysdeps/i386/tls-macros.h: Include <features.h>.
21778         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21779         (TLS_IE): Likewise.
21780         (TLS_LD): Likewise.
21781         (TLS_GD): Likewise.
21782         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21783         define for GCC >= 5.0.
21784
21785 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21786
21787         * math/test-fenv.c (test_single_exception, set_single_exc,
21788         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21789         feexcp_mask_test, feenable_test, fe_single_test): Add
21790         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21791         case where they are not used.
21792         * math/libm-test.inc: Likewise.
21793         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21794         unused in the absence of FP rounding/exception support.
21795         * stdio-common/tst-printf-round.c: Likewise.
21796         * stdlib/tst-strtod-round.c: Likewise.
21797         * stdlib/tst-strtod-underflow.c: Likewise.
21798
21799 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21800
21801         [BZ #17723]
21802         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21803         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21804         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21805         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21806         libm_hidden_weak.
21807         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21808         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21809         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21810         libm_hidden_def.
21811         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21812         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21813         libm_hidden_weak.
21814         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21815         Likewise.
21816         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21817         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21818         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21819         libm_hidden_weak.
21820         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21821         libm_hidden_def.
21822         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21823         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21824         (__feraiseexcept): Likewise.
21825         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21826         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21827         libm_hidden_weak.
21828         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21829         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21830         libm_hidden_def.
21831         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21832         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21833         Use libm_hidden_def.
21834         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21835         libm_hidden_def.
21836         (feraiseexcept): Define as weak not strong alias.  Use
21837         libm_hidden_weak.
21838         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21839         New inline function.  Factored out of ...
21840         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
21841         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
21842         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
21843         feraiseexcept.
21844         * math/w_acos.c (__acos): Likewise.
21845         * math/w_asin.c (__asin): Likewise.
21846         * math/w_ilogb.c (__ilogb): Likewise.
21847         * math/w_j0.c (y0): Likewise.
21848         * math/w_j1.c (y1): Likewise.
21849         * math/w_jn.c (yn): Likewise.
21850         * math/w_log.c (__log): Likewise.
21851         * math/w_log10.c (__log10): Likewise.
21852         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
21853         * sysdeps/aarch64/fpu/math_private.h
21854         (libc_feupdateenv_test_aarch64): Likewise.
21855         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21856         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
21857         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
21858         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21859         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21860         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21861         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
21862         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21863         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21864         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21865
21866 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21867
21868         [BZ #17732]
21869         * io/test-utime.c (main): Replace %ld with %jd and cast to
21870         intmax_t.
21871         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
21872         * nptl/tst-mutex5.c: Include <stdint.h>.
21873         (do_test): Replace %ld with %jd and cast to intmax_t.
21874         * posix/tst-regex.c (run_test): Likewise.
21875         (run_test_backwards): Likewise.
21876         * rt/tst-clock.c: Include <stdint.h>.
21877         (clock_test): Replace %ld with %jd and cast to intmax_t.
21878         * rt/tst-cpuclock1.c: Include <stdint.h>.
21879         (do_test): Replace %lu with %ju and cast to uintmax_t.
21880         * rt/tst-cpuclock2.c: Include <stdint.h>.
21881         (do_test): Replace %lu with %ju and cast to uintmax_t.
21882         * rt/tst-mqueue1.c: Include <stdint.h>.
21883         (check_attrs): Replace %ld with %jd and cast to intmax_t.
21884         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
21885         intmax_t.
21886         * rt/tst-mqueue4.c (do_test): Likewise.
21887         * rt/tst-timer4.c: Include <stdint.h>.
21888         (check_ts): Replace %ld with %jd and cast to intmax_t.
21889         (do_test): Likewise.
21890         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
21891         and cast to intmax_t.
21892         * sysdeps/pthread/tst-timer.c (main): Likewise.
21893         * time/clocktest.c (main): Likewise.
21894         * time/tst-posixtz.c (do_test): Likewise.
21895         * timezone/tst-timezone.c (main): Likewise.
21896
21897 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21898             H.J. Lu  <hongjiu.lu@intel.com>
21899
21900         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
21901         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
21902         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
21903         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
21904         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
21905         version if bit_Fast_Unaligned_Load is set.
21906         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21907         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21908         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21909         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21910         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21911         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21912         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21913         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
21914         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
21915         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
21916         to 4.
21917         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
21918         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
21919         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
21920         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
21921
21922 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
21923
21924         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
21925         instead of #if to avoid a Wundef warning.
21926         * stdlib/tst-limits.c (do_test): Likewise.
21927
21928         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
21929         parallel other exception macros.
21930         (fegetenv): Convert from macro to extern inline so that it applies
21931         retroactively to inline functions already seen by the compiler.
21932         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
21933
21934         * posix/Makefile (before-compile): Use $(objpfx) for
21935         posix-conf-vars-def.h.
21936
21937 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21938
21939         * posix/getconf.c (main): Use size_t for type of I.
21940         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
21941         NSPEC.
21942
21943         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
21944         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
21945         * posix/posix-envs.def: Likewise.
21946         * sysdeps/posix/sysconf.c: Likewise.
21947         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
21948         (specs): Remove array.
21949         * scripts/gen-posix-conf-vars.awk: Support generation of specs
21950         array.
21951
21952         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
21953         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
21954         (__sysconf): Use CONF_IS_* macros.
21955
21956         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
21957         ($(objpfx)posix-conf-vars-def.h): New target.
21958         * posix/posix-conf-vars.list: New file.
21959         * posix/posix-conf-vars.h: New file.
21960         * posix/confstr.c: Include posix-conf-vars.h.
21961         (confstr): Use CONF_IS_* macros.
21962         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
21963         CONF_IS_* macros.
21964         * scripts/gen-posix-conf-vars.awk: New file.
21965
21966 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
21967
21968         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
21969         fegetround): Add no-op macros to avoid linknamespace issues.
21970
21971         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
21972         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
21973
21974         * sysdeps/unix/sysv/linux/tile/sysdep.h
21975         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
21976         assembly-specific section to avoid a redefinition warning.
21977
21978         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
21979         long before casting to pointer to avoid a cast warning.
21980
21981 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
21982
21983         * sysdeps/tile/tilegx/Implies: New file.
21984
21985 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
21986
21987         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
21988
21989 2014-12-23  Florian Weimer  <fweimer@redhat.com>
21990
21991         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
21992
21993 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
21994
21995         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
21996         not define.
21997         * sysdeps/unix/sysv/linux/utimes.c: Do not include
21998         <kernel-features.h>.
21999         (__utimes) [__NR_utimes]: Make code unconditional.
22000         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22001         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22002         (__ASSUME_UTIMES): Do not undefine.
22003         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22004         (__ASSUME_UTIMES): Likewise.
22005         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22006         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22007         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22008         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22009
22010 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22011
22012         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22013
22014 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22015
22016         [BZ #17747]
22017         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22018         alias to weak alias for j0l, y0l.
22019         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22020         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22021
22022         [BZ #17746]
22023         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22024         conversion.
22025
22026 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22027
22028         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22029         to zero if not already defined.
22030
22031 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22032
22033         [BZ #17724]
22034         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22035         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22036         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22037         (char *) casts added.
22038         * sysdeps/ieee754/k_standardf.c: New file.
22039         * sysdeps/ieee754/k_standardl.c: Likewise.
22040         * math/Makefile (libm-support): Remove k_standard.
22041         (libm-calls): Add k_standard.
22042
22043 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22044
22045         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22046         Optimize to avoid an unnecessary FPCR read.
22047
22048 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22049
22050         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22051         Optimize to reduce FPCR/FPSR accesses.
22052
22053 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22054
22055         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22056         Call libc_fetestexcept_aarch64.
22057
22058 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22059
22060         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22061         Call libc_fesetround_aarch64.
22062
22063 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22064
22065         [BZ #17733]
22066         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22067         (__bind): Do not define as weak alias.
22068         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22069         define.
22070         (__getsockname): Do not define as weak alias.
22071
22072 2014-12-22  Will Newton  <will.newton@linaro.org>
22073
22074         * manual/install.texi: Document that we require bison 2.7
22075         or above.
22076         * INSTALL: Regenerate.
22077         * configure.ac: Use AC_CHECK_PROG_VER instead of
22078         AC_PATH_PROG when checking for bison and check for
22079         version 2.7 or above.
22080         * configure: Regenerate.
22081
22082 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22083
22084         [BZ #17745]
22085         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22086         * sysdeps/tile/ffsll.c (ffsll): To here.
22087
22088         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22089
22090 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22091
22092         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22093         if not defined.
22094         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22095         definition.
22096         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22097         hidden ___tls_get_addr.
22098         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22099         hidden __tls_get_addr.
22100         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22101         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22102         Likewise.
22103
22104 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22105
22106         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22107         _dl_init call.
22108
22109 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22110
22111         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22112         from "call _dl_init@PLT".
22113         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22114
22115 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22116
22117         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22118         guarantees.
22119
22120 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22121
22122         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22123
22124 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22125
22126         [BZ #17744]
22127         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22128         strnlen.
22129
22130 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22131
22132         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22133         of multu on MIPSr6.
22134         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22135         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22136         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22137         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22138         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22139
22140 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22141
22142         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22143         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22144         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22145         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22146         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22147         mips32r6/mips64r6.
22148         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22149
22150 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22151
22152         * string/strncat.c (STRNCAT): Simplify implementation.
22153
22154 2014-12-19  David S. Miller  <davem@davemloft.net>
22155
22156         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22157         access the quad as both a long double and as a series of 4 words.
22158
22159         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22160         link_map->l_info array access.
22161
22162 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22163
22164         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22165
22166         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22167         * math/atest-exp2.c (TIMEOUT): Likewise.
22168         * math/atest-sincos.c (TIMEOUT): Likewise.
22169
22170 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22171
22172         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22173         -Wno-error with -fno-builtin-lround.
22174
22175 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22176
22177         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22178         Contains futex constants and functions moved over from ...
22179         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22180         <lowlevellock-futex.h>.
22181         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22182         (lll_timedwait_tid): Add comments and parentheses around macro
22183         arguments.
22184
22185 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22186
22187         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22188         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22189         (__lll_private_flag): Remove.
22190         (lll_futex_wait): Likewise.
22191         (lll_futex_timed_wait): Likewise.
22192         (lll_futex_wake): Likewise.
22193         (lll_futex_requeue): Likewise.
22194         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22195         (__lll_timedwait_tid): Spell out argument names.
22196         (lll_timedwait_tid): Add comments and parentheses around macro
22197         arguments.
22198         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22199         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22200
22201 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22202
22203         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22204         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22205         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22206         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22207         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22208         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22209         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22210         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22211         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22212         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22213         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22214         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22215         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22216         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22217         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22218         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22219         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22220         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22221         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22222
22223 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22224
22225         * sysdeps/x86_64/x32/Makefile: New file.
22226
22227 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22228
22229         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22230         1L with (mp_limb_t) 1.
22231
22232 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22233
22234         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22235         * nptl/libc_pthread_init.c: ... here.
22236         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22237         * nptl/register-atfork.c: ... here.
22238
22239         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22240         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22241         Use assert_perror to check its return value.
22242         (__gai_create_helper_thread): Likewise.
22243
22244         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22245
22246         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22247
22248 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22249
22250         [BZ #17725]
22251         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22252         __profil_counter.
22253         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22254         Likewise.
22255         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22256         Likewise.
22257         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22258         Likewise.
22259         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22260         (profil_counter): Likewise.
22261         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22262         (profil_counter): Likewise.
22263         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22264         Likewise.
22265         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22266         Likewise.
22267         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22268         (profil_counter): Likewise.
22269         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22270         Likewise.
22271         [!__profil_counter] (profil_counter): Define as weak alias of
22272         __profil_counter.
22273         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22274         (profil_counter): Rename to __profil_counter.
22275         [!__profil_counter] (profil_counter): Define as weak alias of
22276         __profil_counter.
22277         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22278         (profil_counter): Rename to __profil_counter.
22279         [!__profil_counter] (profil_counter): Define as weak alias of
22280         __profil_counter.
22281         * sysdeps/posix/profil.c: Update comment referring to
22282         profil_counter.
22283         (__profil): Use __profil_counter instead of profil_counter.
22284         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22285         __profil_counter.  Use __profil_counter_ushort and
22286         __profil_counter_uint in definitions.
22287         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22288         instead of profil_counter_uint and profil_counter_ushort.
22289
22290         [BZ #17722]
22291         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22292         define as weak alias of __inet_makeaddr.
22293         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22294         as weak alias of __inet_addr.
22295         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22296         as weak alias of __inet_pton.  Use libc_hidden_weak.
22297         * include/arpa/inet.h (__inet_pton): Declare.  Use
22298         libc_hidden_proto.
22299         (inet_makeaddr): Don't use libc_hidden_proto.
22300         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22301         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22302         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22303         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22304         Remove variable.
22305         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22306         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22307
22308 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22309
22310         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22311
22312 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22313
22314         * stdio-common/bug-vfprintf-nargs.c (do_test):
22315         Cast value to intptr_t to avoid format warning
22316         for usage with PRIdPTR printing macro.
22317
22318 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22319
22320         * libio/tst-widetext.c (do_test):
22321         Use format type %td instead of %Zd for ptrdiff_t
22322         in order to avoid format warning.
22323
22324 2014-12-17  Andreas Schwab  <schwab@suse.de>
22325
22326         * nscd/mem.c (gc): Add size_t cast to match printf format.
22327
22328 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22329
22330         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22331         (init): Apply PTR_MANGLE to pointers before storing them.
22332         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22333         before using them.
22334
22335 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22336
22337         [BZ #17719]
22338         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22339         define as weak alias of __memrchr.
22340         (__memrchr): Do not define as strong alias of memrchr.
22341         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22342         Remove variable.
22343         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22344         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22345         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22346
22347         [BZ #17717]
22348         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22349         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22350         (if_indextoname): Rename to __if_indextoname and define as weak
22351         alias of __if_indextoname.  Use libc_hidden_weak.
22352         (if_freenameindex): Rename to __if_freenameindex and define as
22353         weak alias of __if_freenameindex.
22354         (if_nameindex): Rename to __if_nameindex and define as weak alias
22355         of __if_nameindex.
22356         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22357         __if_nametoindex and define as weak alias of __if_nametoindex.
22358         Use libc_hidden_weak.
22359         (if_freenameindex): Rename to __if_freenameindex and define as
22360         weak alias of __if_freenameindex.
22361         (if_nameindex): Rename to __if_nameindex and define as weak alias
22362         of __if_nameindex.
22363         (if_indextoname): Rename to __if_indextoname and define as weak
22364         alias of __if_indextoname.  Use libc_hidden_weak.
22365         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22366         __if_nametoindex and define as weak alias of __if_nametoindex.
22367         Use libc_hidden_weak.
22368         (if_freenameindex): Rename to __if_freenameindex and define as
22369         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22370         (if_nameindex_netlink): Use __if_freenameindex instead of
22371         if_freenameindex.
22372         (if_nameindex): Rename to __if_nameindex and define as weak alias
22373         of __if_nameindex.  Use libc_hidden_weak.
22374         (if_indextoname): Rename to __if_indextoname and define as weak
22375         alias of __if_indextoname.  Use libc_hidden_weak.
22376         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22377         libc_hidden_proto.
22378         [!_ISOMAC] (__if_freenameindex): Likewise.
22379         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22380         if_nametoindex.
22381         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22382         variable.
22383         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22384         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22385         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22386         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22387         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22388         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22389         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22390
22391         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22392         Remove variable.
22393         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22394         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22395
22396 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22397
22398         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22399         subscript above bounds'
22400
22401         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22402         bounds.
22403
22404 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22405
22406         * libio/tst-fopenloc.c: Use test-skeleton.c.
22407
22408         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22409         (entry): Rename to ITEM.
22410         (do_test, comp): Adjust.
22411
22412         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22413
22414 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22415
22416         * string/tester.c: Include <libc-internal.h>.
22417         (test_memset): Ignore -Wmemset-transposed-args.
22418
22419 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22420
22421         * misc/tst-mntent2.c (do_test): Fix warning.
22422
22423 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22424
22425         * elf/tst-unique4lib.cc(a): Mark as used.
22426
22427 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22428
22429         [BZ #17630]
22430         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22431         names.
22432
22433 2014-12-16  Allan McRae  <allan@archlinux.org>
22434
22435         * stdio-common/Makefile (tests): Re-add bug26.
22436
22437 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22438
22439         [BZ #17657]
22440         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22441         static array.
22442
22443 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22444
22445         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22446         (__lll_lock_wait): Likewise.
22447         (__lll_timedlock_wait): Likewise.
22448         (__lll_timedwait_tid): Likewise.
22449         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22450         (__lll_robust_timedlock_wait): Likewise.
22451         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22452         (lll_cond_trylock): Likewise.
22453         (__lll_lock): Likewise.
22454         (__lll_robust_lock): Likewise.
22455         (__lll_cond_lock): Likewise.
22456         (lll_robust_cond_lock): Likewise.
22457         (__lll_timedlock): Likewise.
22458         (__lll_robust_timedlock): Likewise.
22459         (__lll_unlock): Likewise.
22460         (__lll_robust_unlock): Likewise.
22461         (lll_wait_tid): Likewise.
22462         (lll_timedwait_tid): Likewise.
22463
22464 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22465
22466         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22467
22468 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22469
22470         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22471
22472 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22473
22474         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22475         * stdio-common/tst-sprintf.c: Likewise.
22476
22477 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22478
22479         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22480
22481 2014-12-15  Jeff Law  <law@redhat.com>
22482
22483         [BZ #16617]
22484         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22485         on the heap.  (CVE-2012-3406)
22486         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22487         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22488         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22489
22490 2014-12-15  Will Newton  <will.newton@linaro.org>
22491
22492         * manual/install.texi: Bump required version of texinfo
22493         to 4.7 from 4.5.
22494         * INSTALL: Regenerated.
22495         * configure.ac: Check for makeinfo version 4.7 and above.
22496         * configure: Regenerated.
22497
22498 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22499
22500         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22501         PREFIX, string constant to insert between directory and name.
22502         * sysdeps/posix/shm_open.c: Update caller.
22503         * sysdeps/posix/shm_unlink.c: Likewise.
22504         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22505         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22506         (SEM_SHM_PREFIX): New macro.
22507         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22508         [$(have-thread-library) = no].
22509         * nptl/Makefile (libpthread-routines): Add shm-directory.
22510         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22511         * sysdeps/nptl/shm-directory.h: New file.
22512         * sysdeps/posix/shm-directory.c
22513         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22514         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22515         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22516         INTERNAL_SYSCALL.
22517         (__where_is_shmfs): Function removed.
22518         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22519         Variables removed.
22520         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22521         Use SHM_GET_NAME.
22522         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22523
22524         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22525         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22526         unconditional for use inside libpthread.
22527         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22528
22529 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22530
22531         * nptl/pthread_getaffinity.c: New file.
22532         * nptl/pthread_setaffinity.c: New file.
22533         * nptl/pthread_getname.c: New file.
22534         * nptl/pthread_setname.c: New file.
22535
22536         * nptl/pthread_create.c (START_THREAD_DEFN)
22537         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22538
22539 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22540             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22541
22542         * resolv/res_send.c (send_vc): Disable warning resplen may
22543         be used uninitialized.
22544
22545 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22546
22547         * nptl/tst-mutex6.c
22548         (ATTR_NULL): New define checks ATTR against NULL.
22549         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22550         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22551
22552 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22553
22554         [BZ #17581]
22555         * malloc/hooks.c
22556         (mem2mem_check): Revert my previous change.
22557         (malloc_check_get_size): Revert my previous change.
22558         (mem2chunk_check): Revert my previous change.
22559
22560 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22561
22562         * sysdeps/posix/shm-directory.c: New file.
22563         * sysdeps/posix/shm-directory.h: New file.
22564         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22565         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22566         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22567         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22568         Transmute EPERM to EACCES.
22569         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22570         from ...
22571         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22572         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22573
22574 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22575
22576         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22577         pointer and cast to uintptr_t.
22578         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22579         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22580         Add cast to avoid warning.
22581         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22582
22583 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22584
22585         * nptl/semaphore.h: Move to ...
22586         * sysdeps/pthread/semaphore.h: ... here.
22587         * Makefile (installed-headers): Change nptl/semaphore.h to
22588         sysdeps/pthread/semaphore.h.
22589
22590 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22591
22592         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22593         generated error format strings.
22594
22595         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22596         -Wformat-extra-args warnings for scanf formats.
22597         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22598         test of zero-length format (duh).
22599         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22600         corner-case scanf format test.
22601         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22602         generated fprintf format string.
22603         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22604         corner-case sprintf format tests.
22605         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22606         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22607         -Wformat-extra-args warnings throughout.
22608         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22609         (CFLAGS-scanf4.c): Likewise.
22610         (CFLAGS-scanf7.c): Likewise.
22611         (CFLAGS-tst-sprintf.c): Likewise.
22612         (CFLAGS-tst-printf.c): Likewise.
22613         (CFLAGS-tst-printfsz.c): Likewise.
22614
22615 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22616
22617         * include/cpio.h: New file.
22618         * include/fmtmsg.h: Likewise.
22619
22620         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22621         corresponding format argument to size_t.
22622         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22623         arguments.
22624         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22625         corresponding format argument to size_t.
22626         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22627         arguments.
22628         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22629         corresponding format argument to size_t.
22630         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22631         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22632         (CFLAGS-tst-mbswcs2.c): Likewise.
22633         (CFLAGS-tst-mbswcs3.c): Likewise.
22634         (CFLAGS-tst-mbswcs4.c): Likewise.
22635         (CFLAGS-tst-mbswcs5.c): Likewise.
22636         (CFLAGS-tst-trans.c): Likewise.
22637
22638 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22639
22640         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22641         rather than assuming they won't contain any '%'s.
22642
22643 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22644
22645         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22646         inhibit_loop_to_libcall to avoid recursive calls.
22647         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22648         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22649
22650 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22651
22652         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22653         prototype.
22654
22655 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22656
22657         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22658         integer value instead of boolean.
22659
22660 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22661
22662         * malloc/malloc.c: Fix powerof2 check.
22663
22664 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22665
22666         * locale/programs/locfile.h (maybe_swap_uint32):
22667         Remove inline and add unused attribute.
22668
22669 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22670
22671         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22672         Truncating assembler expression to a .long expression.
22673
22674 2014-12-11  Andreas Schwab  <schwab@suse.de>
22675
22676         * elf/rtld.c (struct map_args): Constify str member.
22677         (do_preload): Constify fname argument.
22678
22679 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22680
22681         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22682         constants definition.
22683
22684 2014-12-11  Andreas Schwab  <schwab@suse.de>
22685
22686         [BZ #16657]
22687         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22688         FORCE_ELISION instead of DO_ELISION.
22689         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22690         Remove.
22691         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22692         Likewise.
22693
22694         * iconvdata/gconv-modules: Remove duplicate entry.
22695
22696 2014-12-11  Will Newton  <will.newton@linaro.org>
22697
22698         Merge gettext 0.19.3 into intl/.
22699
22700         This involves a number of cosmetic changes to comments
22701         and ANSI function definitions and prototypes throughout
22702         all the files. The gettext copyright header is used but
22703         with the date ranges taken from the glibc copy.
22704
22705         * NEWS: Add gettext merge to 2.21.
22706         * intl/bindtextdom.c: Switch to gettext copyright.
22707         Use ANSI definitions and prototypes.
22708         Use gl_* locking primitives rather than __libc_* ones.
22709         Use __builtin_expect rather than __glibc_likely/unlikely.
22710         * intl/dcgettext.c: Switch to gettext copyright.
22711         Use ANSI definitions and prototypes.
22712         * intl/dcigettext.c: Switch to gettext copyright.
22713         Use ANSI definitions and prototypes.
22714         (INTDIV0_RAISES_SIGFPE): New define.
22715         Use gl_* locking primitives rather than __libc_* ones.
22716         Include eval-plural.h instead of plural-eval.c.
22717         Use __builtin_expect rather than __glibc_likely/unlikely.
22718         * intl/dcngettext.c: Switch to gettext copyright.
22719         Use ANSI definitions and prototypes.
22720         * intl/dgettext.c: Likewise.
22721         * intl/dngettext.c: Likewise.
22722         * intl/plural-eval.c: Renamed to...
22723         * intl/eval-plural.h: ...this.
22724         * intl/explodename.c: Switch to gettext copyright.
22725         Use ANSI definitions and prototypes.
22726         (_nl_explode_name): Use strchr instead of __rawmemchr.
22727         * intl/finddomain.c: Switch to gettext copyright.
22728         Use ANSI definitions and prototypes.
22729         Use gl_* locking primitives rather than __libc_* ones.
22730         (_nl_find_domain): Use malloc rather than alloca for
22731         allocation of temporary locale name.
22732         * intl/gettext.c: Switch to gettext copyright.
22733         Use ANSI definitions and prototypes.
22734         * intl/gettextP.h: Switch to gettext copyright.
22735         Use ANSI definitions and prototypes.
22736         Use gl_* locking primitives rather than __libc_* ones.
22737         * intl/gmo.h: Switch to gettext copyright.
22738         (struct sysdep_string): Move struct segment_pair outside of
22739         struct definition.
22740         * intl/hash-string.c: Use ANSI definitions and prototypes.
22741         * intl/hash-string.h: Switch to gettext copyright.
22742         Use ANSI definitions and prototypes.
22743         * intl/l10nflist.c: Switch to gettext copyright.
22744         Use ANSI definitions and prototypes.
22745         (_nl_normalize_codeset): Avoid integer overflow.
22746         * intl/loadinfo.h: Switch to gettext copyright.
22747         Use ANSI definitions and prototypes.
22748         (LIBINTL_DLL_EXPORTED): New define.
22749         (PATH_SEPARATOR): New define.
22750         * intl/loadmsgcat.c: Switch to gettext copyright.
22751         * intl/localealias.c: Switch to gettext copyright.
22752         Use ANSI definitions and prototypes.
22753         (_nl_expand_alias): Use PATH_SEPARATOR.
22754         * intl/ngettext.c: Switch to gettext copyright.
22755         Use ANSI definitions and prototypes.
22756         * intl/plural-exp.c: Likewise.
22757         * intl/plural-exp.h: Switch to gettext copyright.
22758         Use ANSI definitions and prototypes.
22759         (struct expression): Move definition of enum operator outside
22760         of struct definition.
22761         * intl/plural.c: Regenerate.
22762         * intl/plural.y: Switch to gettext copyright.
22763         Use ANSI definitions and prototypes.
22764         Port to bison 3.0.
22765         * intl/textdomain.c: Switch to gettext copyright.
22766         Use ANSI definitions and prototypes.
22767         Use gl_* locking primitives rather than __libc_* ones.
22768
22769 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22770
22771         * debug/warning-nop.c: Add used atrribute.
22772
22773 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22774
22775         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22776
22777         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22778         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22779         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22780
22781 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22782             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22783
22784         [BZ #17634]
22785         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22786         Undefine after defining function.  Define as weak alias of
22787         __wcschr.  Use libc_hidden_weak.
22788         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22789         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22790         (libc_hidden_def): Also define __GI___wcschr alias.
22791         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22792         __wcschr and define as weak alias of __wcschr.
22793         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22794         __wcschr.
22795         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22796         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22797         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22798         libc_hidden_weak.  Do not use libc_hidden_def.
22799         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22800         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22801         __GI___wcschr alias.
22802         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22803         [IS_IN (libc)] (wcschr): Define as macro expanding to
22804         __redirect_wcschr.
22805         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22806         [IS_IN (libc)] (__wcschr_power6): Likewise.
22807         [IS_IN (libc)] (__wcschr_power7): Likewise.
22808         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22809         instead of wcschr.
22810         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22811         __libc_wcschr.
22812         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22813         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22814         __wcschr and define as weak alias of __wcschr.  Use
22815         libc_hidden_builtin_def.
22816         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22817         as weak alias of __wcschr.  Use libc_hidden_weak.
22818         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22819         wcschr.
22820         * time/era.c (_nl_init_era_entries): Likewise.
22821         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22822         variable.
22823         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22824         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22825
22826 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22827
22828         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22829         format for long int variable.
22830
22831 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22832
22833         [BZ #10672]
22834         * manual/search.texi: (Array Sort Function): Remove claim how to make
22835         qsort stable.
22836
22837 2014-12-10  Andreas Schwab  <schwab@suse.de>
22838
22839         [BZ #12847]
22840         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
22841         user-controlled locks.
22842
22843 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
22844
22845         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
22846         register.
22847
22848 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22849
22850         * configure.ac (--disable-werror): New configure option.
22851         (enable_werror): New AC_SUBST.
22852         * configure: Regenerated.
22853         * config.make.in (enable-werror): New variable.
22854         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
22855         -Wno-error=undef.
22856         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
22857         * manual/install.texi (Configuring and compiling): Document
22858         --disable-werror.
22859         * INSTALL: Regenerated.
22860         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
22861         (CFLAGS-tst-chk2.c): Likewise.
22862         (CFLAGS-tst-chk3.c): Likewise.
22863         (CFLAGS-tst-chk4.cc): Likewise.
22864         (CFLAGS-tst-chk5.cc): Likewise.
22865         (CFLAGS-tst-chk6.cc): Likewise.
22866         (CFLAGS-tst-lfschk1.c): Likewise.
22867         (CFLAGS-tst-lfschk2.c): Likewise.
22868         (CFLAGS-tst-lfschk3.c): Likewise.
22869         (CFLAGS-tst-lfschk4.cc): Likewise.
22870         (CFLAGS-tst-lfschk5.cc): Likewise.
22871         (CFLAGS-tst-lfschk6.cc): Likewise.
22872
22873         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
22874         (main): Disable -Wdeprecated-declarations around calls to
22875         register_printf_function.
22876
22877         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
22878         (do_test): Disable -Wdiv-by-zero around some calls to
22879         fwrite_unlocked and fread_unlocked.
22880
22881         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
22882         (DIAG_POP_NEEDS_COMMENT): Likewise.
22883         (_DIAG_STR1): Likewise.
22884         (_DIAG_STR): Likewise.
22885         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
22886         * stdio-common/bug21.c: Include <libc-internal.h>.
22887         (do_test): Disable -Wformat around call to sscanf.
22888         * stdio-common/scanf14.c: Include <libc-internal.h>.
22889         (main): Disable -Wformat around some calls to scanf functions.
22890
22891 2014-12-09  Torvald Riegel  <triegel@redhat.com>
22892
22893         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
22894
22895 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22896
22897         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
22898         stack variable alignment.
22899
22900 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
22901
22902         [BZ #17682]
22903         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
22904         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
22905         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
22906         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
22907         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
22908         __getrlimit instead of getrlimit.
22909         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
22910         __gettimeofday instead of gettimeofday.
22911         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22912         Likewise.
22913         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22914         Likewise.
22915         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
22916         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
22917         Remove variable.
22918         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
22919         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
22920
22921 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22922
22923         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
22924         for wide-character tests.
22925
22926 2014-12-04  Roland McGrath  <roland@hack.frob.com>
22927
22928         * io/openat64.c: #include <libc-internal.h>
22929         (__openat64): Prototypify.  Use ignore_value on MODE.
22930         * io/openat.c: Likewise.
22931         * misc/reboot.c: #include <libc-internal.h>
22932         (reboot): Prototypify.  Use ignore_value on HOWTO.
22933         * misc/ptrace.c: #include <libc-internal.h>
22934         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
22935
22936 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
22937
22938         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
22939         XPG4, UNIX98 and XOPEN2K.
22940         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
22941         Remove variable.
22942         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
22943
22944 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22945
22946         * libio/fileops.c: Use ISO C style for function definitions.
22947         * libio/iofopen.c: Likewise.
22948         * libio/wfileops.c: Likewise.
22949
22950         [BZ #17653]
22951         * libio/fileops.c (_IO_new_file_underflow): Unset cached
22952         offset on EOF.
22953         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
22954         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
22955         (fgets_func): Function pointer to fgets and fgetws.
22956         (do_ftell_test): Add test to verify ftell value after read
22957         EOF.
22958         (do_test): Set fgets_func.
22959
22960         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
22961         O_TRUNC flag for w and w+ modes.
22962         (do_rewind_test): Likewise.
22963         (do_ftell_test): Likewise.
22964         (do_write_test): Likewise.
22965
22966         [BZ #17647]
22967         * libio/fileops.c (do_ftell): Seek only when there are
22968         unflushed writes.
22969         * libio/wfileops.c (do_ftell_wide): Likewise.
22970         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
22971         test case.
22972         (do_one_test): Call it.
22973
22974 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
22975
22976         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
22977         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
22978         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
22979         Remove variable.
22980         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
22981         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
22982         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
22983
22984 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
22985
22986         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
22987         Remove variable.
22988         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
22989
22990         [BZ #17668]
22991         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
22992         as weak alias of __getifaddrs.  Use libc_hidden_weak.
22993         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
22994         __freeifaddrs.  Use libc_hidden_weak.
22995         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
22996         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
22997         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
22998         __freeifaddrs.  Use libc_hidden_weak.
22999         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23000         __getifaddrs and define as weak alias of __getifaddrs.  Use
23001         libc_hidden_weak.
23002         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23003         __freeifaddrs.  Use libc_hidden_weak.
23004         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23005         Remove variable.
23006         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23007         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23008
23009 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23010
23011         [BZ #17601]
23012         * sysdeps/mips/start.S (__start): Use indirect jump to call
23013         __libc_start_main.
23014
23015 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23016
23017         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23018
23019         * nptl/tst-mutex1.c: Include <stdbool.h>.
23020         [!ATTR] (ATTR_NULL): New macro.
23021         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23022         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23023         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23024
23025         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23026         to char *.
23027
23028         [BZ #17665]
23029         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23030         Change conditional to [__USE_MISC].
23031
23032         [BZ #17664]
23033         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23034         fgets_unlocked.
23035         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23036         __fgets_unlocked.
23037         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23038         fgets_unlocked.
23039         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23040         Remove variable.
23041         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23042         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23043         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23044         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23045         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23046         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23047         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23048         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23049         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23050
23051         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23052
23053 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23054
23055         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23056         Remove strpbrk objects.
23057         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23058         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23059         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23060         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23061         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23062         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23063
23064         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23065         Remove strcspn objects.
23066         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23067         (__libc_ifunc_impl_list): Remove strcspn implementation.
23068         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23069         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23070         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23071         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23072
23073         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23074         Remove strspn objetcs.
23075         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23076         (__libc_ifunc_impl_list): Remove strspn implementation.
23077         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23078         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23079         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23080         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23081
23082 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23083
23084         [BZ #17581]
23085         * malloc/hooks.c
23086         (mem2mem_check): Add a terminator to the chain of checking blocks.
23087         (malloc_check_get_size): Use it here.
23088         (mem2chunk_check): Ditto.
23089
23090 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23091
23092         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23093         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23094
23095 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23096
23097         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23098
23099         * nptl/nptl-init.c: Include libc-internal.h.
23100         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23101
23102         * elf/ldconfig.c (search_dir): Expand comment.
23103
23104 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23105
23106         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23107         variable.
23108         (linknamespace-symlist-stdlibs-tests): Likewise.
23109         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23110         instead of $(objpfx)symlist-stdlibs.
23111         (linknamespace-libs-isoc): New variable.
23112         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23113         (linknamespace-libs-ISO): New variable.
23114         (linknamespace-libs-ISO99): Likewise.
23115         (linknamespace-libs-ISO11): Likewise.
23116         (linknamespace-libs-XPG3): Likewise.
23117         (linknamespace-libs-XPG4): Likewise.
23118         (linknamespace-libs-POSIX): Likewise.
23119         (linknamespace-libs-UNIX98): Likewise.
23120         (linknamespace-libs-XOPEN2K): Likewise.
23121         (linknamespace-libs-POSIX2008): Likewise.
23122         (linknamespace-libs-XOPEN2K8): Likewise.
23123         ($(objpfx)symlist-stdlibs): Replace by
23124         $(linknamespace-symlist-stdlibs-tests).  Use
23125         $(linknamespace-libs-$*) as set of libraries.
23126         ($(linknamespace-header-tests)): Update dependencies.  Use
23127         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23128         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23129         * conform/linknamespace.pl: Remove comment about considering
23130         definitions of symbols from irrelevant libraries.
23131
23132 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23133
23134         [BZ #13862]
23135         * elf/dl-tls.c: Include <atomic.h>.
23136         (oom): Remove #ifdef SHARED/#endif.
23137         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23138         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23139         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23140         big enough.
23141         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23142         * nptl/Makefile (tests): Add tst-stack4.
23143         (modules-names): Add tst-stack4mod.
23144         ($(objpfx)tst-stack4): New.
23145         (tst-stack4mod.sos): Likewise.
23146         ($(objpfx)tst-stack4.out): Likewise.
23147         ($(tst-stack4mod.sos)): Likewise.
23148         (clean): Likewise.
23149         * nptl/tst-stack4.c: New file.
23150         * nptl/tst-stack4mod.c: Likewise.
23151
23152 2014-11-27  J. Brown  <jb999@gmx.de>
23153
23154         * sysdeps/x86/bits/string.h: Add recent CPUs.
23155
23156 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23157
23158         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23159         sigblock.
23160
23161         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23162         feof.
23163
23164         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23165         variable.
23166
23167 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23168
23169         * nscd/connections.c: Include libc-internal.h because of macro
23170         usage ignore_value.
23171
23172 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23173
23174         * string/bits/string3.h (__warn_memset_zero_len): Don't
23175         declare for gcc newer than 5.0.
23176         (memset): Don't test for zero-length __LEN for gcc newer than
23177         5.0.
23178
23179 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23180
23181         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23182         size_t for %zu format.
23183
23184         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23185         difference, not %ju.
23186
23187 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23188
23189         * include/libc-internal.h (ignore_value): New macro.
23190         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23191         with ignore_value.
23192
23193         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23194         definition.
23195
23196         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23197         pthread_cleanup_push to void *.
23198
23199         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23200         Undefine.
23201
23202         [BZ #16619]
23203         [BZ #16740]
23204         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23205         instead of 1L << 52.
23206
23207         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23208         * libio/bug-rewind2.c (do_test): Likewise.
23209
23210         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23211         * debug/test-strcpy_chk-ifunc.c: Likewise.
23212         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23213         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23214         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23215         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23216         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23217         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23218         * Rules [$(multi-arch) = no] (tests): Do not filter out
23219         $(tests-ifunc).
23220         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23221         * debug/Makefile (tests-ifunc): Remove variable.
23222         (tests): Do not add $(tests-ifunc).
23223         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23224         (tests): Do not add $(tests-ifunc).
23225         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23226         [TEST_IFUNC]: Remove conditionals.
23227         * string/test-string.h (TEST_IFUNC): Remove macro.
23228         [TEST_IFUNC]: Remove conditionals.
23229
23230         * string/test-strchr.c [!WIDE] (L): New macro.
23231         [WIDE] (L): Likewise.
23232         (check1): Use CHAR instead of char.  Use L on string and character
23233         constants.
23234
23235 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23236
23237         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23238         tests.
23239         * sysdeps/powerpc/bits/atomic.h
23240         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23241         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23242         (atomic_exchange_and_add_acq): Likewise.
23243         (atomic_exchange_and_add_rel): Likewise.
23244         * sysdeps/powerpc/powerpc32/bits/atomic.h
23245         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23246         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23247         * sysdeps/powerpc/powerpc64/bits/atomic.h
23248         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23249         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23250
23251 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23252
23253         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23254         Change synchronization of __sched_fifo_min_prio and
23255         __sched_fifo_max_prio.
23256         * nptl/pthread_mutexattr_getprioceiling.c
23257         (pthread_mutexattr_getprioceiling): Likewise.
23258         * nptl/pthread_mutexattr_setprioceiling.c
23259         (pthread_mutexattr_setprioceiling): Likewise.
23260         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23261         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23262         Likewise.
23263
23264 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23265
23266         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23267         void.
23268
23269 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23270
23271         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23272         third argument const.
23273
23274 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23275
23276         fnmatch: work around GCC compiler warning bug with uninit var
23277         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23278         This works around a bug with x86-64 GCC 4.9.2 and earlier
23279         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23280         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23281         used uninitialized in this function [-Wmaybe-uninitialized]".
23282
23283 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23284
23285         * posix/bug-regex31.c (main): Return RES not 0.
23286
23287 2014-11-25  Anton Blanchard <anton@samba.org>
23288
23289         * sysdeps/powerpc/bits/atomic.h
23290         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23291
23292 2014-11-24  Sterling Augustine  <saugustine@google.com>
23293
23294         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23295
23296 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23297
23298         [BZ #17608]
23299         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23300
23301 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23302
23303         [BZ #17633]
23304         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23305         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23306         variable.
23307         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23308         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23309
23310 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23311
23312         * string/strncpy.c (strncpy): Improve performance by using memset.
23313
23314 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23315
23316         * string/strcpy.c (strcpy):
23317         Improve performance by using strlen and memcpy.
23318
23319 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23320
23321         * string/strcoll_l.c (get_next_seq): __always_inline.
23322         * string/strcoll_l.c (do_compare): __always_inline.
23323
23324 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23325
23326         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23327         defined.
23328         * include/mqueue.h: Likewise.
23329         * include/stdlib.h: Likewise.
23330
23331         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23332         (get_null_defines): Adjust.
23333         * sunrpc/Makefile: Adjust comment.
23334         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23335         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23336         (CFLAGS-interp.c): Likewise.
23337         (CFLAGS-ldconfig.c): Likewise.
23338         (CPPFLAGS-.os): Likewise.
23339         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23340         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23341         * extra-modules.mk (extra-modules.mk): Likewise.
23342         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23343         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23344         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23345         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23346         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23347         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23348         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23349         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23350         * iconvdata/Makefile (CPPFLAGS): Likewise.
23351         (cpp-srcs-left): Add libof for all iconvdata routines.
23352         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23353         * include/assert.h: Likewise.
23354         * include/ctype.h: Likewise.
23355         * include/errno.h: Likewise.
23356         * include/libc-symbols.h: Likewise.
23357         * include/math.h: Likewise.
23358         * include/netdb.h: Likewise.
23359         * include/resolv.h: Likewise.
23360         * include/stdio.h: Likewise.
23361         * include/stdlib.h: Likewise.
23362         * include/string.h: Likewise.
23363         * include/sys/stat.h: Likewise.
23364         * include/wctype.h: Likewise.
23365         * intl/l10nflist.c: Likewise.
23366         * libidn/idn-stub.c: Likewise.
23367         * libio/libioP.h: Likewise.
23368         * nptl/libc_multiple_threads.c: Likewise.
23369         * nptl/pthreadP.h: Likewise.
23370         * posix/regex_internal.h: Likewise.
23371         * resolv/res_hconf.c: Likewise.
23372         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23373         * sysdeps/arm/memmove.S: Likewise.
23374         * sysdeps/arm/sysdep.h: Likewise.
23375         * sysdeps/generic/_itoa.h: Likewise.
23376         * sysdeps/generic/symbol-hacks.h: Likewise.
23377         * sysdeps/gnu/errlist.awk: Likewise.
23378         * sysdeps/gnu/errlist.c: Likewise.
23379         * sysdeps/i386/i586/memcpy.S: Likewise.
23380         * sysdeps/i386/i586/memset.S: Likewise.
23381         * sysdeps/i386/i686/memcpy.S: Likewise.
23382         * sysdeps/i386/i686/memmove.S: Likewise.
23383         * sysdeps/i386/i686/mempcpy.S: Likewise.
23384         * sysdeps/i386/i686/memset.S: Likewise.
23385         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23386         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23387         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23388         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23389         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23390         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23391         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23392         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23393         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23394         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23395         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23396         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23397         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23398         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23399         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23400         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23401         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23402         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23403         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23404         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23405         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23406         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23407         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23408         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23409         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23410         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23411         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23412         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23413         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23414         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23415         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23416         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23417         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23418         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23419         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23420         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23421         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23422         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23423         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23424         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23425         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23426         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23427         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23428         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23429         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23430         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23431         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23432         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23433         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23434         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23435         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23436         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23437         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23438         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23439         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23440         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23441         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23442         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23443         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23444         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23445         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23446         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23447         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23448         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23449         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23450         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23451         * sysdeps/posix/closedir.c: Likewise.
23452         * sysdeps/posix/opendir.c: Likewise.
23453         * sysdeps/posix/readdir.c: Likewise.
23454         * sysdeps/posix/rewinddir.c: Likewise.
23455         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23456         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23457         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23458         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23459         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23460         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23461         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23462         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23463         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23464         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23465         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23466         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23467         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23468         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23469         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23470         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23471         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23472         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23473         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23474         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23475         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23476         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23477         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23478         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23479         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23480         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23481         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23482         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23483         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23484         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23485         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23486         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23487         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23488         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23489         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23490         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23491         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23492         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23493         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23494         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23495         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23496         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23497         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23498         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23499         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23500         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23501         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23502         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23503         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23504         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23505         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23506         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23507         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23508         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23509         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23510         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23511         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23512         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23513         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23514         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23515         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23516         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23517         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23518         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23519         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23520         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23521         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23522         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23523         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23524         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23525         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23526         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23527         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23528         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23529         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23530         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23531         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23532         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23533         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23534         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23535         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23536         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23537         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23538         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23539         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23540         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23541         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23542         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23543         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23544         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23545         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23546         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23547         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23548         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23549         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23550         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23551         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23552         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23553         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23554         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23555         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23556         * sysdeps/unix/alpha/sysdep.S: Likewise.
23557         * sysdeps/unix/alpha/sysdep.h: Likewise.
23558         * sysdeps/unix/make-syscalls.sh: Likewise.
23559         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23560         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23561         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23562         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23563         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23564         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23565         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23566         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23567         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23568         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23569         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23570         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23571         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23572         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23573         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23574         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23575         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23576         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23577         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23578         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23579         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23580         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23581         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23582         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23583         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23584         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23585         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23588         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23589         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23590         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23591         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23592         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23593         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23594         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23595         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23596         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23597         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23598         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23599         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23600         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23601         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23602         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23603         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23604         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23605         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23606         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23607         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23608         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23609         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23610         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23611         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23612         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23613         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23614         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23615         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23616         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23617         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23618         * sysdeps/x86_64/memcpy.S: Likewise.
23619         * sysdeps/x86_64/memmove.c: Likewise.
23620         * sysdeps/x86_64/memset.S: Likewise.
23621         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23622         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23623         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23624         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23625         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23626         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23627         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23628         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23629         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23630         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23631         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23632         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23633         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23634         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23635         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23636         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23637         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23638         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23639         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23640         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23641         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23642         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23643         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23644         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23645         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23646         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23647         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23648         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23649         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23650         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23651         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23652         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23653         * sysdeps/x86_64/strcmp.S: Likewise.
23654
23655         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23656
23657         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23658         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23659         * elf/rtld-Rules: Likewise.
23660         * elf/setup-vdso.h: Likewise.
23661         * include/assert.h: Likewise.
23662         * include/bits/stdlib-float.h: Likewise.
23663         * include/errno.h: Likewise.
23664         * include/sys/stat.h: Likewise.
23665         * include/unistd.h: Likewise.
23666         * sysdeps/aarch64/setjmp.S: Likewise.
23667         * sysdeps/alpha/setjmp.S: Likewise.
23668         * sysdeps/arm/__longjmp.S: Likewise.
23669         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23670         * sysdeps/arm/setjmp.S: Likewise.
23671         * sysdeps/arm/sysdep.h: Likewise.
23672         * sysdeps/generic/_itoa.h: Likewise.
23673         * sysdeps/generic/dl-sysdep.h: Likewise.
23674         * sysdeps/generic/ldsodefs.h: Likewise.
23675         * sysdeps/i386/dl-tls.h: Likewise.
23676         * sysdeps/i386/setjmp.S: Likewise.
23677         * sysdeps/m68k/setjmp.c: Likewise.
23678         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23679         * sysdeps/mach/hurd/opendir.c: Likewise.
23680         * sysdeps/posix/getcwd.c: Likewise.
23681         * sysdeps/posix/opendir.c: Likewise.
23682         * sysdeps/posix/profil.c: Likewise.
23683         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23684         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23685         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23686         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23687         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23688         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23689         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23690         * sysdeps/s390/dl-tls.h: Likewise.
23691         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23692         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23693         * sysdeps/sh/sh3/setjmp.S: Likewise.
23694         * sysdeps/sh/sh4/setjmp.S: Likewise.
23695         * sysdeps/unix/alpha/sysdep.h: Likewise.
23696         * sysdeps/unix/arm/sysdep.S: Likewise.
23697         * sysdeps/unix/i386/sysdep.S: Likewise.
23698         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23699         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23700         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23701         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23702         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23703         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23704         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23705         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23706         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23707         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23708         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23709         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23710         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23713         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23714         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23715         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23716         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23717         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23718         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23719         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23720         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23721         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23722         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23723         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23724         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23725         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23726         * sysdeps/x86_64/setjmp.S: Likewise.
23727
23728         * include/math.h: Use IS_IN instead of IS_IN_libm.
23729         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23730         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23731         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23732         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23733         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23734         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23735         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23736         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23737         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23738         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23739         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23740         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23741         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23742         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23743         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23744         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23745         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23746         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23747         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23748         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23749         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23750         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23751         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23752         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23753         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23754         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23755         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23756         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23757         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23758         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23759         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23760         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23761         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23763         Likewise.
23764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23765         Likewise.
23766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23767         Likewise.
23768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23769         Likewise.
23770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23771         Likewise.
23772         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23773         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23774         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23775         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23776         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23777         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23783         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23784         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23785         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23786         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23787         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23788         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23789         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23790         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23791         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23792         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23793         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23794         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23795         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23796         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23797         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23798         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23799
23800         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23801         * nptl/pthreadP.h: Likewise.
23802         * nptl_db/structs.def: Likewise.
23803         * sysdeps/arm/sysdep.h: Likewise.
23804         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23805         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23806         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23807         * sysdeps/unix/alpha/sysdep.h: Likewise.
23808         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23809         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23810         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23811         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23812         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23813         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23814         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23815         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23816         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23817         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23818         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23819         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23820         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23821         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23824         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23825         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23826         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23827         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23828         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23829         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23830         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23831         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23832         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23833         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23834
23835         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23836         * nptl/pthreadP.h: Likewise.
23837         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23838         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23839         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23840         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23841         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23842         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23843         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23844         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23845         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23846         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23847         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23848         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
23850         Likewise.
23851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
23852         Likewise.
23853         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23854         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23855         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23856         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23857         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23858         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23859         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23860         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23861
23862         * dlfcn/dladdr.c: Use IS_IN.
23863         * dlfcn/dladdr1.c: Likewise.
23864         * dlfcn/dlclose.c: Likewise.
23865         * dlfcn/dlerror.c: Likewise.
23866         * dlfcn/dlinfo.c: Likewise.
23867         * dlfcn/dlmopen.c: Likewise.
23868         * dlfcn/dlopen.c: Likewise.
23869         * dlfcn/dlsym.c: Likewise.
23870         * dlfcn/dlvsym.c: Likewise.
23871
23872         * include/ifaddrs.h: Use IS_IN.
23873         * inet/check_pf.c: Likewise.
23874         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
23875         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
23876
23877         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
23878         IS_IN_ldconfig.
23879         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
23880         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
23881
23882         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
23883         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
23884         IS_IN (libc).
23885
23886         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
23887
23888         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
23889         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23890         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23891         * include/libc-symbols.h (IS_IN_LIB): New macro.
23892         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
23893         * include/netdb.h: Likewise.
23894         * include/stap-probe.h: Remove all uses of IN_LIB.
23895
23896         * Makeconfig (module-cppflags-real): Define MODULE_NAME
23897         instead of IN_MODULE.
23898         * include/libc-symbols.h (IN_MODULE): Define using
23899         MODULE_NAME.
23900         (PASTE_NAME, PASTE_NAME1): New macros.
23901         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
23902         of IN_LIB.
23903         (STAP_PROBE_ASM): Likewise.
23904
23905 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23906
23907         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
23908         __mach_init in dlopened libc.
23909
23910 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
23911
23912         * sysdeps/arm/preconfigure.ac: Delete EABI check.
23913         * sysdeps/arm/preconfigure: Regenerate.
23914
23915 2014-11-21  Roland McGrath  <roland@hack.frob.com>
23916
23917         * nptl/pthread_create.c (__pthread_create_2_1): Set
23918         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
23919         when copying values from IATTR into PD.
23920
23921 2014-11-21  Will Newton  <will.newton@linaro.org>
23922             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23923
23924         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
23925         Refactor inline-asm.  Also add comment.
23926
23927         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
23928         ElfW macro instead of hardcoded Elf64 types.
23929         (la_aarch64_gnu_pltenter): Likewise.
23930         * sysdeps/aarch64/dl-machine.h
23931         (elf_machine_runtime_setup): Use ElfW(Addr).
23932
23933         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
23934         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
23935         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
23936         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
23937         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
23938         (R_AARCH64_TLS_DTPMOD64): Rename to ..
23939         (R_AARCH64_TLS_DTPMOD): This.
23940         (R_AARCH64_TLS_DTPREL64): Rename to ...
23941         (R_AARCH64_TLS_DTPREL): This.
23942         (R_AARCH64_TLS_TPREL64): Rename to ...
23943         (R_AARCH64_TLS_TPREL): This.
23944         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
23945         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
23946         R_AARCH64_TLS_TPREL64.
23947         (elf_machine_rela): Likewise.
23948
23949 2014-11-21  Torvald Riegel  <triegel@redhat.com>
23950
23951         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
23952         by setting it to 0.  64b atomics are not supported currently.
23953
23954 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23955
23956         [BZ #16469]
23957         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
23958         search domain names.
23959
23960 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23961
23962         [BZ #16469]
23963         * NEWS: Update.
23964         * resolv/res_query.c (__libc_res_nquerydomain): Retain
23965         trailing dot.
23966         * posix/tst-getaddrinfo5.c: New.
23967         * posix/Makefile (tests): Add it.
23968
23969 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23970
23971         [BZ #14498]
23972         * NEWS: Fixed.
23973         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
23974         after parsing line but before break_if_match.
23975         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
23976         if there is a protocol mismatch.
23977
23978 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
23979
23980         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
23981         because the potential race is on the user-supplied stream.
23982
23983 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23984
23985         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
23986         string literal if not passed a buffer.
23987         * manual/job.texi (ctermid): Update reasoning, note deviation
23988         from posix, suggest mtasurace when not passed a buffer, for
23989         future non-preliminary safety notes.
23990
23991 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23992
23993         * manual/users.texi (cuserid): Fix MT-Safety note for the case
23994         of not passing it a buffer.
23995         Reported by Peng Haitao.
23996
23997 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
23998
23999         * manual/Makefile ($(objpfx)stamp-summary): Require
24000         check-safety.sh to pass.
24001         * manual/check-safety.sh: Wish for verification that every
24002         @deftypefn and @deftypefun is followed by a @safety remark.
24003
24004 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24005
24006         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24007
24008         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24009         PTHREAD_CANCEL_ASYNCHRONOUS.
24010         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24011         send SIGCANCEL.
24012
24013         * nptl/default-sched.h: New file.
24014         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24015         * nptl/pthread_create.c: Include it.
24016         (__pthread_create_2_1): Use collect_default_sched instead of making
24017         Linux syscalls here directly.
24018
24019 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24020
24021         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24022         __pthread_once): Use C11 atomics.
24023
24024 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24025
24026         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24027
24028 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24029
24030         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24031         atomic_thread_fence_acquire, atomic_thread_fence_release,
24032         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24033         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24034         atomic_compare_exchange_weak_relaxed,
24035         atomic_compare_exchange_weak_acquire,
24036         atomic_compare_exchange_weak_release,
24037         atomic_exchange_acquire, atomic_exchange_release,
24038         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24039         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24040         atomic_fetch_and_acquire,
24041         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24042
24043 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24044
24045         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24046         USE_ATOMIC_COMPILER_BUILTINS): Define.
24047         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24048         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24049         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24050         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24051         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24052         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24053         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24054         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24055         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24056         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24057         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24058         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24059         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24060         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24061         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24062         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24063         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24064         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24065         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24066         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24067         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24068         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24069         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24070         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24071         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24072         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24073         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24074         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24075         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24076         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24077         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24078         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24079         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24080         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24081         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24082         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24083         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24084         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24085         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24086         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24087
24088 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24089
24090         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24091         the sched_priority value here.  It was already checked when the user
24092         called pthread_attr_setschedparam.
24093
24094         * nptl/tst-bad-schedattr.c: New file.
24095         * nptl/Makefile (tests): Add it.
24096
24097 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24098             Florian Weimer  <fweimer@redhat.com>
24099             Joseph Myers  <joseph@codesourcery.com>
24100             Adam Conrad  <adconrad@0c3.net>
24101             Andreas Schwab  <schwab@suse.de>
24102             Brooks  <bmoses@google.com>
24103
24104         [BZ #17625]
24105         * wordexp-test.c (__dso_handle): Add prototype.
24106         (__register_atfork): Likewise.
24107         (__app_register_atfork): New function.
24108         (registered_forks): New global.
24109         (register_fork): New function.
24110         (test_case): Add 3 new tests for WRDE_CMDSUB.
24111         (main): Call __app_register_atfork.
24112         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24113         fork count is non-zero fail the test.
24114         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24115         is set.
24116         (parse_dollars): Remove check for WRDE_NOCMD.
24117         (parse_dquote): Likewise.
24118
24119 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24120
24121         * Makeconfig (built-modules): List non-library modules to be
24122         built.
24123         (module-cppflags): Include libc-modules.h for
24124         everything except shlib-versions.v.i.
24125         (CPPFLAGS): Use it.
24126         (before-compile): Add libc-modules.h.
24127         ($(common-objpfx)libc-modules.h,
24128         $(common-objpfx)libc-modules.stmp): New targets.
24129         (common-generated): Add libc-modules.h and libc-modules.stmp.
24130         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24131         * include/libc-symbols.h: Don't include libc-modules.h.
24132         * include/libc-modules.h: Remove file.
24133         * scripts/gen-libc-modules.awk: New script to generate
24134         libc-modules.h.
24135         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24136         Depend on libc-modules.stmp.
24137
24138         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24139
24140         * Makeconfig (in-module): Get value of libof set for the
24141         translation unit.
24142         (CPPFLAGS): Use $(in-module).
24143         * Makerules: Don't suffix routine names for nonlib.
24144         * include/libc-modules.h: New file.
24145         * include/libc-symbols.h: Include libc-modules.h
24146         (IS_IN): New macro to replace IS_IN_* macros.
24147         * elf/Makefile: Set libof-* for each routine.
24148         * elf/rtld-Rules: Likewise.
24149         * extra-modules.mk: Likewise.
24150         * iconv/Makefile: Likewise.
24151         * iconvdata/Makefile: Likewise.
24152         * locale/Makefile: Likewise.
24153         * malloc/Makefile: Likewise.
24154         * nss/Makefile: Likewise.
24155         * sysdeps/gnu/Makefile: Likewise.
24156         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24157         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24158         * sysdeps/s390/s390-64/Makefile: Likewise.
24159         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24160         CPPFLAGS for nscd instead of nonlib.
24161
24162 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24163
24164         * nptl/createthread.c: New file.
24165
24166         * nptl/createthread.c: Moved ...
24167         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24168
24169         * nptl/createthread.c: Add proper top-line comment.
24170         (do_clone): Folded into ...
24171         (create_thread): ... here.  Take new arguments STOPPED_START and
24172         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24173         increment __nptl_threads, do event-reporting logic, do
24174         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24175         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24176         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24177         just send SIGCANCEL.
24178         * nptl/pthread_create.c: Forward-declare create_thread before
24179         including createthread.c.
24180         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24181         declaration, and new macro START_THREAD_SELF to replace argument.
24182         Remove return statement.
24183         (report_thread_creation): New function.
24184         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24185         synchronization logic, and __nptl_nthreads increment here, around
24186         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24187         PD->parent_cancelhandling here, before create_thread.  When
24188         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24189         __deallocate_stack, and ENOMEM translation here.
24190
24191 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24192
24193         [BZ #17616]
24194         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24195         (mptwo): Rename to __mptwo.
24196         (__inv): Use __mptwo instead of mptwo.
24197         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24198         (mptwo): Rename to __mptwo.
24199         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24200         of mpone and __mptwo instead of mptwo.
24201         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24202         instead of mpone.
24203         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24204         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24205         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24206         of mpone and __mptwo instead of mptwo.
24207         (__mpranred): Use __mpone instead of mpone.
24208         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24209         variable.
24210         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24211         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24212         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24213         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24214         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24215         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24216         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24217         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24218         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24219         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24220         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24221         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24222         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24223         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24224         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24225         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24226         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24227         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24228         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24229
24230 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24231
24232         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24233         replace BSD Handler xref with BSD Signal Handling.
24234
24235 2014-11-17  Richard Henderson  <rth@redhat.com>
24236
24237         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24238         (_FP_PACK_RAW_2): Remove.
24239         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24240         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24241         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24242         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24243         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24244         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24245         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24246         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24247         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24248         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24249         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24250         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24251         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24252         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24253         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24254         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24255
24256 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24257
24258         * signal/signal.h [__USE_MISC]
24259         (struct sigvec): Remove type.
24260         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24261         (sigvec): Remove declaration.
24262         * sysdeps/posix/sigvec.c: Moved ...
24263         * signal/sigvec.c: ... here, replacing old file.
24264         (struct sigvec): New type, copied from old signal.h definition.
24265         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24266         (__sigvec): Convert definition to prototype.
24267         (sigvec): Replace weak_alias with compat_symbol.
24268         * signal/Versions (libc: GLIBC_2.21): New version set.
24269         * include/signal.h: Remove __sigvec declaration.
24270         * sysdeps/unix/bsd/sigvec.c: Remove file.
24271         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24272         * manual/signal.texi (BSD Handler): Remove subsection.
24273         Move siginterrupt up to ...
24274         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24275         (Blocking in BSD): Fold subsection into its parent.
24276         * NEWS: Mention sigvec removal.
24277
24278 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24279
24280         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24281         (DLA_FMS): Make definition conditional only on [__FMA4__].
24282         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24283         definition.
24284
24285         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24286         Make definition conditional only on [PROF].
24287         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24288         definition.
24289         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24290         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24291
24292         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24293         !__GNUC__].
24294         * include/signal.h (__sigpause): Move declaration above call to
24295         libc_hidden_proto.
24296         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24297         variable.
24298         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24299         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24300
24301 2014-11-14  David S. Miller  <davem@davemloft.net>
24302
24303         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24304         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24305
24306 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24307
24308         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24309         * configure: Regenerated.
24310         * manual/install.texi (Tools for Compilation): Document a
24311         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24312         compiler verified to work.
24313         * INSTALL: Regenerated.
24314
24315         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24316         redeclare with asm name.
24317         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24318         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24319         including <string.h>.
24320         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24321         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24322         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24323         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24324         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24325         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24326         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24327
24328 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24329
24330         * stdlib/strtol.c (__strtol): Use prototype definition.
24331
24332         [BZ #17594]
24333         * stdlib/strtol.c (SYM__): New macro.
24334         (SYM__1): Likewise.
24335         (__strtol): Likewise.
24336         (strtol): Rename to __strtol and define as weak alias of
24337         __strtol.  Use libc_hidden_weak.
24338
24339 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24340
24341         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24342         Use numbered labels in inline assembly.
24343
24344 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24345
24346         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24347         Add setjmp LIBC_PROBE.
24348         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24349         Likewise.
24350         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24351         Add longjmp, longjmp_target LIBC_PROBE.
24352         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24353         Likewise.
24354
24355 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24356
24357         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24358         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24359         to get rid of unused variable warning.
24360
24361 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24362
24363         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24364         Check for unwind_backtrace ==  NULL only in SHARED case.
24365         (__backchain_backtrace): Compile only in SHARED case.
24366         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24367         Likewise.
24368         (__backchain_backtrace): Declare as static.
24369
24370 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24371
24372         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24373         (__libc_multiple_threads_ptr): Variable moved ...
24374         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24375
24376 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24377
24378         * conform/GlibcConform.pm: New file.
24379         * conform/conformtest.pl: Use GlibcConform module.
24380         * conform/linknamespace.pl: New file.
24381         * conform/list-header-symbols.pl: Likewise.
24382         * conform/Makefile (linknamespace-symlists-base): New variable.
24383         (linknamespace-symlists-tests): Likewise.
24384         (linknamespace-header-base): Likewise.
24385         (linknamespace-header-tests): Likewise.
24386         (tests-special): Add new tests.
24387         ($(linknamespace-symlists-tests)): New rule.
24388         (linknamespace-libs): New variable.
24389         ($(objpfx)symlist-stdlibs): New rule.
24390         ($(linknamespace-header-tests)): Likewise.
24391         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24392         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24393         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24394         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24395         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24396         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24397         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24398         (test-xfail-ISO/math.h/linknamespace): Likewise.
24399         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24400         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24401         (test-xfail-ISO/time.h/linknamespace): Likewise.
24402         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24403         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24404         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24405         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24406         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24407         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24408         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24409         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24410         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24411         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24412         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24413         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24414         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24415         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24416         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24417         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24418         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24419         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24420         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24421         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24422         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24423         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24424         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24425         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24426         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24427         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24428         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24429         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24430         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24431         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24432         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24433         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24434         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24435         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24436         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24437         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24438         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24439         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24440         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24441         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24442         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24443         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24444         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24445         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24446         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24447         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24448         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24449         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24450         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24451         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24452         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24453         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24454         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24455         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24456         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24457         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24458         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24459         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24460         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24461         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24462         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24463         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24464         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24465         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24466         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24467         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24468         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24469         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24470         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24471         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24472         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24473         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24474         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24475         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24476         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24477         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24478         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24479         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24480         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24481         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24482         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24483         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24484         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24485         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24486         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24487         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24488         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24489         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24490         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24491         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24492         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24493         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24494         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24495         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24496         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24497         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24498         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24499         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24500         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24501         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24502         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24503         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24504         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24505         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24506         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24507         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24508         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24509         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24510         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24511         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24512         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24513         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24514         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24515         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24516         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24517         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24518         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24519         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24520         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24521         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24522         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24523         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24524         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24525         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24526         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24527         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24528         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24529         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24530         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24531         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24532         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24533         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24534         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24535         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24536         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24537         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24538         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24539         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24540         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24541         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24542         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24543         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24544         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24545         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24546         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24547         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24548         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24549         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24550         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24551         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24552
24553         [BZ #17589]
24554         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24555         of fgets_unlocked.
24556
24557         [BZ #17585]
24558         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24559         (memmem): Rename to __memmem and define as weak alias of
24560         __memmem.  Use libc_hidden_weak.
24561         (__memmem): Use libc_hidden_def.
24562         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24563         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24564         memmem.
24565
24566         [BZ #17582]
24567         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24568         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24569         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24570         and define as weak alias of __fgets_unlocked.  Use
24571         libc_hidden_weak.
24572         (__fgets_unlocked): Use libc_hidden_def.
24573         * include/stdio.h (__fgets_unlocked): Declare.  Use
24574         libc_hidden_proto.
24575         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24576         __fgets_unlocked instead of fgets_unlocked.
24577         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24578         (GET_NPROCS_CONF_PARSER): Likewise.
24579         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24580         (GET_NPROCS_CONF_PARSER): Likewise.
24581
24582         [BZ #17574]
24583         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24584         weak alias of __wmemset.  Use libc_hidden_weak.
24585         (__wmemset): Use libc_hidden_def.
24586         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24587         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24588         of wmemset.
24589
24590         [BZ #17573]
24591         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24592         with asm name __mempcpy.
24593         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24594
24595         [BZ #17572]
24596         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24597         and define as weak alias of __rawmemchr.
24598         (__rawmemchr): Do not define as strong alias of rawmemchr.
24599
24600         [BZ #17571]
24601         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24602         alias of __qsort_r.
24603         (qsort): Call __qsort_r instead of qsort_r.
24604         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24605         (__qsort_r): Declare.  Call libc_hidden_proto.
24606         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24607         instead of qsort_r.
24608         * nscd/gai.c (__qsort_r): Define to qsort_r.
24609         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24610         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24611         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24612
24613         [BZ #17570]
24614         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24615         define as weak alias of __malloc_info.
24616
24617         [BZ #17584]
24618         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24619         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24620         (__rewinddir): Use libc_hidden_def.
24621         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24622         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24623         (__rewinddir): Use libc_hidden_def.
24624         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24625         weak alias of __rewinddir.  Don't use libc_hidden_def.
24626         (__rewinddir): Use libc_hidden_def.
24627         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24628         (__rewinddir): Use libc_hidden_proto.
24629         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24630         rewinddir.
24631         (__getcwd): Use __rewinddir instead of rewinddir.
24632
24633         [BZ #17583]
24634         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24635         alias of __fileno.  Use libc_hidden_weak.
24636         (__fileno): Use libc_hidden_def.
24637         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24638         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24639         alias of __ftello.
24640         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24641         __ftello.
24642         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24643         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24644         libc_hidden_def.
24645         (fread_unlocked): Don't use libc_hidden_ver.
24646         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24647         and define as weak alias of __fread_unlocked.  Don't use
24648         libc_hidden_def.
24649         (__fread_unlocked): Use libc_hidden_def.
24650         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24651         (ftello): Don't use libc_hidden_proto.
24652         (__ftello): Declare.  Use libc_hidden_proto.
24653         (fread_unlocked): Don't use libc_hidden_proto.
24654         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24655         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24656         and __ftello instead of fileno, fread_unlocked and ftello.
24657
24658 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24659
24660         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24661         GOT12.
24662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24663         Likewise.
24664         (_dl_start_user): Likewise.
24665         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24666
24667 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24668             Siddhesh Poyarekar  <siddhesh@redhat.com>
24669
24670         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24671         Move argv and envp down instead of moving argc up.
24672         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24673
24674 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24675
24676         [BZ #17506]
24677         * test-skeleton.c (main): Return successful if one of
24678         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24679         * string/tst-strcoll-overflow.c: Define expected status.
24680
24681 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24682
24683         [BZ #17475]
24684         * locale/iso-639.def: Define Bhili and Tulu language codes.
24685
24686 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24687
24688         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24689
24690 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24691
24692         [BZ #17555]
24693         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24694
24695 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24696
24697         * configure.ac: Updated check of minimal required version to
24698         2.22.
24699         * manual/install.texi (Tools for Compilation): Updated version
24700         number.
24701         * configure: Regenerated.
24702         * INSTALL: Likewise.
24703
24704 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24705
24706         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24707         __tls_get_addr.
24708
24709 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24710
24711         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24712         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24713         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24714         libc_hidden_weak.
24715         (waitpid): Define as alias of __waitpid.
24716         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24717         __waitpid.
24718         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24719         libc_hidden_weak.
24720         (waitpid): Define as alias of __waitpid.
24721         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24722         __libc_waitpid alias.
24723         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24724         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24725         Likewise.
24726         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24727         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24728         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24729         alias.
24730         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24731         __waitpid.
24732         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24733         libc_hidden_weak.
24734         (waitpid): Define as alias of __waitpid.
24735
24736 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24737
24738         * manual/llio.texi: Add comment that write safety has been
24739         fixed in Linux.
24740
24741         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24742         (localplt-build-dso): Add elf/ld.so.
24743         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24744         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24745         and free for ld.so.
24746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24747         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24749         Likewise.
24750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24751         Likewise.
24752         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24753         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24754         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24755         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24756         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24757         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24758         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24759         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24760         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24761         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24762         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24763
24764 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24765
24766         [BZ #14132]
24767         * include/libc-symbols.h (INTUSE): Remove macro.
24768         (INTDEF): Likewise.
24769         (INTVARDEF): Likewise.
24770         (_INTVARDEF): Likewise.
24771         (INTDEF2): Likewise.
24772         (INTVARDEF2): Likewise.
24773         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24774         rtld_hidden_def instead of INTVARDEF.
24775         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24776         (_dl_starting_up_internal): Remove declaration.
24777         (_dl_starting_up): Use rtld_hidden_proto.
24778         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24779         declaration.
24780         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24781         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24782         _dl_starting_up.
24783         * elf/dl-writev.h (_dl_writev): Likewise.
24784         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24785         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24786         _dl_starting_up_internal.
24787
24788 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24789
24790         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24791         test-skeleton.c.
24792
24793 2014-11-05  Will Newton  <will.newton@linaro.org>
24794
24795         * benchtests/Makefile: (bench-malloc): Add malloc thread
24796         scalability benchmark.
24797         * benchtests/bench-malloc-threads.c: New file.
24798
24799 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24800
24801         * sysdeps/aarch64/strchrnul.S: New file.
24802
24803 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24804
24805         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24806         definition.
24807         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24808         Likwise.
24809         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24810         Likewise.
24811         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24812         Likewise.
24813         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24814         Likewise.
24815         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24816         Likewise.
24817
24818 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24819
24820         * catgets/test-gencat.c: Use test-skeleton.c.
24821         * catgets/tst-catgets.c: Likewise.
24822         * csu/tst-empty.c: Likewise.
24823         * elf/tst-audit2.c: Likewise.
24824         * elf/tst-global1.c: Likewise.
24825         * elf/tst-pathopt.c: Likewise.
24826         * elf/tst-piemod1.c: Likewise.
24827         * elf/tst-tls10.c: Likewise.
24828         * elf/tst-tls11.c: Likewise.
24829         * elf/tst-tls12.c: Likewise.
24830         * gnulib/tst-gcc.c: Likewise.
24831         * iconvdata/tst-e2big.c: Likewise.
24832         * iconvdata/tst-loading.c: Likewise.
24833         * iconv/tst-iconv1.c: Likewise.
24834         * iconv/tst-iconv2.c: Likewise.
24835         * inet/test-inet6_opt.c: Likewise.
24836         * inet/tst-gethnm.c: Likewise.
24837         * inet/tst-network.c: Likewise.
24838         * inet/tst-ntoa.c: Likewise.
24839         * intl/tst-codeset.c: Likewise.
24840         * intl/tst-gettext2.c: Likewise.
24841         * intl/tst-gettext3.c: Likewise.
24842         * intl/tst-ngettext.c: Likewise.
24843         * intl/tst-translit.c: Likewise.
24844         * io/test-stat.c: Likewise.
24845         * libio/test-fmemopen.c: Likewise.
24846         * libio/tst-freopen.c: Likewise.
24847         * libio/tst-sscanf.c: Likewise.
24848         * libio/tst-ungetwc1.c: Likewise.
24849         * libio/tst-ungetwc2.c: Likewise.
24850         * libio/tst-widetext.c: Likewise.
24851         * localedata/tst-ctype.c: Likewise.
24852         * localedata/tst-digits.c: Likewise.
24853         * localedata/tst-leaks.c: Likewise.
24854         * localedata/tst-mbswcs1.c: Likewise.
24855         * localedata/tst-mbswcs2.c: Likewise.
24856         * localedata/tst-mbswcs3.c: Likewise.
24857         * localedata/tst-mbswcs4.c: Likewise.
24858         * localedata/tst-mbswcs5.c: Likewise.
24859         * localedata/tst-setlocale.c: Likewise.
24860         * localedata/tst-trans.c: Likewise.
24861         * localedata/tst-wctype.c: Likewise.
24862         * localedata/tst-xlocale1.c: Likewise.
24863         * login/tst-grantpt.c: Likewise.
24864         * malloc/tst-calloc.c: Likewise.
24865         * malloc/tst-malloc.c: Likewise.
24866         * malloc/tst-mallocstate.c: Likewise.
24867         * malloc/tst-mcheck.c: Likewise.
24868         * malloc/tst-mtrace.c: Likewise.
24869         * malloc/tst-obstack.c: Likewise.
24870         * math/atest-exp2.c: Likewise.
24871         * math/atest-exp.c: Likewise.
24872         * math/atest-sincos.c: Likewise.
24873         * math/test-matherr.c: Likewise.
24874         * math/test-misc.c: Likewise.
24875         * math/test-powl.c: Likewise.
24876         * math/tst-definitions.c: Likewise.
24877         * misc/tst-dirname.c: Likewise.
24878         * misc/tst-efgcvt.c: Likewise.
24879         * misc/tst-fdset.c: Likewise.
24880         * misc/tst-hsearch.c: Likewise.
24881         * misc/tst-mntent2.c: Likewise.
24882         * nptl/tst-sem7.c: Likewise.
24883         * nptl/tst-sem8.c: Likewise.
24884         * nptl/tst-sem9.c: Likewise.
24885         * nss/test-netdb.c: Likewise.
24886         * posix/tst-fnmatch.c: Likewise.
24887         * posix/tst-getlogin.c: Likewise.
24888         * posix/tst-gnuglob.c: Likewise.
24889         * posix/tst-mmap.c: Likewise.
24890         * pwd/tst-getpw.c: Likewise.
24891         * resolv/tst-inet_ntop.c: Likewise.
24892         * rt/tst-timer.c: Likewise.
24893         * stdio-common/test-fseek.c: Likewise.
24894         * stdio-common/test-popen.c: Likewise.
24895         * stdio-common/test-vfprintf.c: Likewise.
24896         * stdio-common/tst-cookie.c: Likewise.
24897         * stdio-common/tst-fileno.c: Likewise.
24898         * stdio-common/tst-gets.c: Likewise.
24899         * stdio-common/tst-obprintf.c: Likewise.
24900         * stdio-common/tst-perror.c: Likewise.
24901         * stdio-common/tst-sprintf2.c: Likewise.
24902         * stdio-common/tst-sprintf3.c: Likewise.
24903         * stdio-common/tst-sprintf.c: Likewise.
24904         * stdio-common/tst-swprintf.c: Likewise.
24905         * stdio-common/tst-tmpnam.c: Likewise.
24906         * stdio-common/tst-unbputc.c: Likewise.
24907         * stdio-common/tst-wc-printf.c: Likewise.
24908         * stdlib/tst-environ.c: Likewise.
24909         * stdlib/tst-fmtmsg.c: Likewise.
24910         * stdlib/tst-limits.c: Likewise.
24911         * stdlib/tst-rand48-2.c: Likewise.
24912         * stdlib/tst-rand48.c: Likewise.
24913         * stdlib/tst-random2.c: Likewise.
24914         * stdlib/tst-random.c: Likewise.
24915         * stdlib/tst-strtol.c: Likewise.
24916         * stdlib/tst-strtoll.c: Likewise.
24917         * stdlib/tst-tls-atexit.c: Likewise.
24918         * stdlib/tst-xpg-basename.c: Likewise.
24919         * string/test-ffs.c: Likewise.
24920         * string/tst-bswap.c: Likewise.
24921         * string/tst-inlcall.c: Likewise.
24922         * string/tst-strtok.c: Likewise.
24923         * string/tst-strxfrm.c: Likewise.
24924         * sysdeps/x86_64/tst-audit10.c: Likewise.
24925         * sysdeps/x86_64/tst-audit3.c: Likewise.
24926         * sysdeps/x86_64/tst-audit4.c: Likewise.
24927         * sysdeps/x86_64/tst-audit5.c: Likewise.
24928         * time/tst-ftime_l.c: Likewise.
24929         * time/tst-getdate.c: Likewise.
24930         * time/tst-mktime3.c: Likewise.
24931         * time/tst-mktime.c: Likewise.
24932         * time/tst-posixtz.c: Likewise.
24933         * time/tst-strptime2.c: Likewise.
24934         * time/tst-strptime3.c: Likewise.
24935         * wcsmbs/tst-btowc.c: Likewise.
24936         * wcsmbs/tst-mbrtowc.c: Likewise.
24937         * wcsmbs/tst-mbsrtowcs.c: Likewise.
24938         * wcsmbs/tst-wchar-h.c: Likewise.
24939         * wcsmbs/tst-wcpncpy.c: Likewise.
24940         * wcsmbs/tst-wcrtomb.c: Likewise.
24941         * wcsmbs/tst-wcsnlen.c: Likewise.
24942         * wcsmbs/tst-wcstof.c: Likewise.
24943
24944 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
24945
24946         [BZ #14132]
24947         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
24948         INTDEF.
24949         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
24950         declaration.
24951         (_dl_mcount): Use rtld_hidden_proto.
24952         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
24953         _dl_mcount.
24954         * elf/rtld.c (_rtld_global_ro): Likewise.
24955
24956         [BZ #14132]
24957         * elf/dl-init.c (_dl_init): Don't use INTDEF.
24958         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
24959         of _dl_init_internal.
24960         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
24961         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
24962         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
24963         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
24964         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
24965         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
24966         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
24967         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
24968         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
24969         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
24970         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
24971         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
24972         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
24973         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
24974         * sysdeps/tile/dl-start.S (_start): Likewise.
24975         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
24976         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
24977
24978         [BZ #14132]
24979         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
24980         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
24981         (rtld_progname): Make macro definition unconditional.
24982         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
24983         INTDEF.
24984         (dlmopen_doit): Do not use INTUSE with _dl_argv.
24985         (dl_main): Likewise.
24986         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
24987         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
24988         instead of _dl_argv_internal.
24989         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
24990         __GI__dl_argv instead of INTUSE(_dl_argv).
24991         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
24992         __GI__dl_argv instead of _dl_argv_internal.
24993
24994         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
24995         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
24996         macro.
24997         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
24998         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
24999         New macro.
25000         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25001         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25002         macro.
25003         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25004         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25005
25006 2014-11-04  Andreas Schwab  <schwab@suse.de>
25007
25008         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25009
25010 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25011
25012         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25013         mtvsrd instruction in binary form.
25014
25015 2014-11-03  Andreas Schwab  <schwab@suse.de>
25016
25017         [BZ #17522]
25018         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25019         for less than MB_LEN_MAX use a local buffer of that size.
25020         * libio/tst-fputws.c: New file.
25021         * libio/Makefile (tests): Add tst-fputws.
25022
25023 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25024
25025         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25026         the size of the fpu_fr.fpu_dregs[] array.
25027
25028 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25029
25030         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25031         (__nanosleep): Do not define as alias.
25032         (nanosleep): Define as alias of __nanosleep.
25033         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25034         __libc_nanosleep name.
25035
25036 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25037
25038         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25039         install.texi in comment.
25040
25041 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25042
25043         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25044         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25045         ... add here and use lwsync or sync ...
25046         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25047         ... and add here using lwsync.
25048
25049 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25050
25051         * elf/dl-machine-reject-phdr.h: New file.
25052         * elf/dl-load.c: #include that.
25053         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25054         if that returned true.
25055
25056 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25057
25058         [BZ #17496]
25059         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25060         gen-as-const-headers chunk.  Add a big scare comment after the last
25061         safe place to touch before-compile.
25062
25063 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25064
25065         * manual/install.texi (Tools for Compilation): Update autoconf
25066         version requirements.
25067         * INSTALL: Regenerated.
25068
25069         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25070         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25071         (__libc_pselect): Likewise.
25072
25073         [BZ #14138]
25074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25078
25079 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25080
25081         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25082         correct barrier instruction.
25083         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25084         Likewise.
25085         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25086         Likewise.
25087
25088 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25089
25090         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25091         after defining inlines.  Instead, just use parens to defeat macro
25092         expansion of __isctype in its declaration.
25093
25094 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25095
25096         * include/sys/uio.h (__libc_readv): Remove declaration.
25097         (__libc_writev): Likewise.
25098         * misc/readv.c (__libc_readv): Rename to __readv.
25099         (__readv): Do not define as alias.
25100         (readv): Define as alias of __readv.
25101         * misc/writev.c (__libc_writev): Rename to __writev.
25102         (__writev): Do not define as alias.
25103         (writev): Define as alias of __writev.
25104         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25105         (__readv): Do not define as alias.
25106         (readv): Define unconditionally as alias of __readv.
25107         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25108         (__writev): Do not define as alias.
25109         (writev): Define unconditionally as alias of __writev.
25110         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25111         name.
25112         (writev): Do not define __libc_writev name.
25113
25114 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25115
25116         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25117         (convert_charseq): New function, broken out of ...
25118         (use_from_charmap): ... here.  Call it.
25119         (use_to_charmap): Use convert_charseq and free instead of duplicating
25120         its code with a variable-length stack struct.
25121
25122 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25123
25124         * include/fcntl.h (__libc_creat): Remove declaration.
25125         * io/creat.c (__libc_creat): Rename to creat.
25126         (creat): Do not define as alias.
25127         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25128         of creat instead of __libc_creat.
25129         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25130         to creat.
25131         (creat): Do not define as alias.
25132         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25133         __libc_creat.
25134         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25135         __libc_creat name.
25136         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25137         Likewise.
25138
25139 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25140
25141         * manual/llio.texi: Add comments discussing why write() may be
25142         considered MT-unsafe on Linux.
25143
25144 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25145
25146         * dl-load.c (local_strdup): Remove.
25147         (expand_dynamic_string_token): Use __strdup.
25148         (decompose_rpath): Likewise.
25149         (_dl_map_object): Likewise.
25150
25151 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25152
25153         [BZ #14132]
25154         * sysdeps/generic/unwind-dw2-fde.c
25155         (__register_frame_info_bases_internal): Do not declare.
25156         (__register_frame_info_table_bases_internal): Likewise.
25157         (__deregister_frame_info_bases_internal): Likewise.
25158         (__register_frame_info_bases): Declare and use hidden_proto before
25159         definition.  Use hidden_def instead of INTDEF.
25160         (__register_frame_info_table_bases): Likewise.
25161         (__deregister_frame_info_bases): Likewise.
25162         (__register_frame_info): Do not use INTUSE.
25163         (__register_frame): Likewise.
25164         (__register_frame_info_table): Likewise.
25165         (__register_frame_table): Likewise.
25166         (__deregister_frame_info): Likewise.
25167         (__deregister_frame): Likewise.
25168
25169 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25170
25171         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25172         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25173         not undefine.
25174         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25175         Likewise.
25176         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25177         Likewise.
25178
25179 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25180
25181         [BZ #14138]
25182         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25183         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25184         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25185         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25186         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25187         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25188         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25189         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25190         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25191         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25192         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25193         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25194         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25195         syscall.
25196         (setfsuid): Likewise.
25197         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25198         (setfsuid): Likewise.
25199         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25200         (setfsuid): Likewise.
25201         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25202         Likewise.
25203         (setfsuid): Likewise.
25204         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25205         (setfsuid): Likewise.
25206         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25207         Likewise.
25208         (setfsuid): Likewise.
25209
25210 2014-10-27  Andreas Schwab  <schwab@suse.de>
25211
25212         [BZ #17501]
25213         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25214         check for Slow_SSE4_2 feature bit.
25215         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25216         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25217         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25218         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25219
25220 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25221
25222         * configure.ac: Validate compiler version with a empirical test of
25223         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25224         $CC -v output.
25225         * configure: Regenerated.
25226
25227         * inet/htons.c (htons): Prototypify.
25228         * inet/htonl.c (htonl): Likewise.
25229
25230 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25231
25232         * string/strncat.c (strncat): Improve performance by using strlen.
25233
25234 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25235
25236         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25237
25238 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25239
25240         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25241         Call libc_fetestexcept_aarch64.
25242
25243 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25244
25245         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25246         Call libc_feholdexcept_aarch64.
25247
25248 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25249
25250         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25251         Call get_rounding_mode.
25252
25253 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25254
25255         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25256         Simplify logic.
25257
25258 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25259
25260         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25261         Simplify logic.
25262
25263 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25264
25265         [BZ #14138]
25266         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25267         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25268         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25269         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25270         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25271         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25272         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25273         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25274         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25275         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25276         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25277         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25278         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25279         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25280         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25281         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25282         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25283         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25284         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25285         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25286         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25287         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25288         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25289         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25290         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25291         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25292         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25293         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25294         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25295         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25296         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25297         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25298         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25299         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25300         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25301         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25302         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25303         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25304         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25305         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25306         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25307         syscall.
25308         (geteuid): Likewise.
25309         (getgid): Likewise.
25310         (getuid): Likewise.
25311         (getresgid): Likewise.
25312         (getresuid): Likewise.
25313         (getgroups): Likewise.
25314         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25315         (geteuid): Likewise.
25316         (getgid): Likewise.
25317         (getuid): Likewise.
25318         (getresgid): Likewise.
25319         (getresuid): Likewise.
25320         (getgroups): Likewise.
25321         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25322         (geteuid): Likewise.
25323         (getgid): Likewise.
25324         (getuid): Likewise.
25325         (getresgid): Likewise.
25326         (getresuid): Likewise.
25327         (getgroups): Likewise.
25328         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25329         Likewise.
25330         (geteuid): Likewise.
25331         (getgid): Likewise.
25332         (getuid): Likewise.
25333         (getresgid): Likewise.
25334         (getresuid): Likewise.
25335         (getgroups): Likewise.
25336         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25337         (geteuid): Likewise.
25338         (getgid): Likewise.
25339         (getuid): Likewise.
25340         (getresgid): Likewise.
25341         (getresuid): Likewise.
25342         (getgroups): Likewise.
25343         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25344         Likewise.
25345         (geteuid): Likewise.
25346         (getgid): Likewise.
25347         (getuid): Likewise.
25348         (getgroups): Likewise.
25349
25350         [BZ #14138]
25351         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25352         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25353         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25354         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25355         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25356         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25357         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25358         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25359         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25360         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25361         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25362         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25363         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25364         __chown.
25365         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25366         (lchown): Likewise.
25367         (fchown): Likewise.
25368         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25369         Likewise.
25370         (lchown): Likewise.
25371         (fchown): Likewise.
25372         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25373         (lchown): Likewise.
25374         (fchown): Likewise.
25375         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25376         Likewise.
25377         (lchown): Likewise.
25378         (fchown): Likewise.
25379
25380 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25381
25382         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25383         Simplify logic.
25384
25385 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25386
25387         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25388         Cleanup logic.
25389
25390 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25391
25392         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25393         Remove unused include.
25394
25395 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25396
25397         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25398         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25399         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25400         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25401
25402 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25403             Helge Deller <deller@gmx.de>
25404
25405         [BZ #17508]
25406         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25407         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25408         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25409
25410 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25411
25412         [BZ #14132]
25413         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25414         Remove macro definition.
25415         (__ashrdi3_v_glibc20): Likewise.
25416         (__lshrdi3_v_glibc20): Likewise.
25417         (__cmpdi2_v_glibc20): Likewise.
25418         (__ucmpdi2_v_glibc20): Likewise.
25419         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25420         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25421         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25422         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25423         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25424         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25425
25426 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25427
25428         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25429         old GNU extension [0] syntax.
25430         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25431         alloca rather than an array member with variable length.
25432         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25433         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25434         (parse_opt): ... here.  Likewise use alloca there.
25435         Validate the -i argument before checking for rootness.
25436         (send_shutdown): New function, broken out of ...
25437         (parse_opt): ... here.
25438
25439 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25440
25441         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25442         macro to get at the _rt_local_ro field.
25443         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25444         ([PIC] case) or _dl_hwcap ([!PIC] case).
25445         * sysdeps/arm/setjmp.S: Likewise.
25446
25447         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25448         * sysdeps/arm/configure.ac: New check to define it.
25449         * sysdeps/arm/configure: Regenerated.
25450         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25451         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25452         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25453         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25454         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25455         Use move/movt pair instead of a load.
25456         (LDST_GLOBAL): Macro removed.
25457         (LDR_GLOBAL): New macro replaces it.
25458         (LDR_HIDDEN): New macro.
25459         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25460         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25461
25462         * setjmp/tst-setjmp-static.c: New file.
25463         * setjmp/Makefile (tests): Add it.
25464         (tests-static): New variable.
25465
25466 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25467
25468         [BZ #17485]
25469         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25470
25471 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25472
25473         [BZ #14132]
25474         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25475
25476 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25477
25478         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25479
25480 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25481
25482         * io/fts.c (dirent_not_directory): New function.
25483         (fts_build): Call it.
25484
25485 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25486
25487         * nptl/version.c (__nptl_main): Use normal __write rather than
25488         INTERNAL_SYSCALL.
25489         (banner): Update copyright years.
25490
25491         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25492         gettimeofday.
25493         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25494         * nptl/pthread_cond_timedwait.c: Likewise.
25495         * nptl/pthread_mutex_timedlock.c: Likewise.
25496         * nptl/sem_timedwait.c: Likewise.
25497
25498         * sysdeps/nptl/bits/libc-lock.h
25499         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25500         (__libc_lock_init_recursive): Return void, not 0.
25501         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25502         (__libc_rwlock_init): Likewise.
25503         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25504
25505 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25506
25507         [BZ #15215]
25508         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25509         (__pthread_once_slow): ... here.
25510         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25511         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25512
25513 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25514
25515         [BZ #15215]
25516         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25517         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25518         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25519         * nptl/pthread_once.c (__pthread_once): Likewise.
25520         Update comments.
25521
25522 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25523
25524         [BZ #14138]
25525         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25526         name.
25527         (writev): Use __libc_writev as strong name.
25528         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25529         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25530
25531 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25532
25533         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25534
25535         * sysdeps/i386/nptl/tls.h
25536         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25537         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25538         New macros.
25539         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25540         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25541         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25542         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25543         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25544         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25545
25546         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25547         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25548         on [__NR_futex].
25549         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25550         broken out of ...
25551         (__pthread_mutex_init): ... here.  Call it.
25552         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25553         Conditionalize PI cases on [__NR_futex].
25554         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25555         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25556         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25557
25558         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25559         conditional on [SIGSETXID].
25560         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25561         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25562         is defined.  Likewise for SIGSETXID.
25563         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25564         Conditionalize definitions on [SIGSETXID].
25565         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25566         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25567         unblocking on [SIGCANCEL].
25568
25569         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25570         [__NR_set_robust_list].
25571
25572 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25573
25574         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25575         (do_compare): Likewise.
25576
25577 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25578
25579         [BZ #15884]
25580         * string/strcoll_l.c: Don't include stdio.h.
25581         (coll_seq): Remove members idxarr and rulearr.
25582         (get_next_seq_cached): Remove function.
25583         (get_next_seq): Likewise.
25584         (get_next_seq_nocache): Rename to get_next_seq.
25585         (do_compare): Remove function.
25586         (do_compare_nocache): Rename to do_compare.
25587         (STRCOLL): Remove weight and rules cache.
25588
25589 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25590
25591         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25592         * sysdeps/arm/sfp-machine.h: ... to here.
25593         * sysdeps/arm/Implies: Remove arm/soft-fp.
25594
25595 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25596
25597         * conform/data/sys/utsname.h-data (*_t): Allow.
25598         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25599         [POSIX] (WEXITED): Do not expect constant.
25600         [POSIX] (WSTOPPED): Likewise.
25601         [POSIX] (WNOHANG): Likewise.
25602         [POSIX] (WNOWAIT): Likewise.
25603         [POSIX] (siginfo_t): Do not expect type or elements.
25604         [POSIX] (pid_t): Do not expect type.
25605         [POSIX] (signal.h): Do not allow header.
25606         [POSIX] (sys/resource.h): Likewise.
25607         [POSIX] (si_*): Do not allow pattern.
25608         [POSIX] (W*): Likewise.
25609         [POSIX] (P_*): Likewise.
25610         [POSIX] (BUS_*): Likewise.
25611         [POSIX] (CLD_*): Likewise.
25612         [POSIX] (FPE_*): Likewise.
25613         [POSIX] (ILL_*): Likewise.
25614         [POSIX] (POLL_*): Likewise.
25615         [POSIX] (SEGV_*): Likewise.
25616         [POSIX] (SI_*): Likewise.
25617         [POSIX] (TRAP_*): Likewise.
25618         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25619         variable.
25620
25621 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25622
25623         [BZ #12926]
25624         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25625         infinite loop when __recvmsg returns 0.
25626
25627 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25628
25629         * CANCEL-FCT-WAIVE: Remove file.
25630         * CANCEL-FILE-WAIVE: Likewise.
25631
25632         [BZ #14132]
25633         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25634         instead of INTVARDEF.
25635         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25636         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25637         rtld_hidden_data_def instead of INTVARDEF.
25638         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25639         * elf/dl-deps.c (expand_dst): Likewise.
25640         * elf/dl-load.c (_dl_dst_count): Likewise.
25641         (_dl_dst_substitute): Likewise.
25642         (decompose_rpath): Likewise.
25643         (_dl_init_paths): Likewise.
25644         (open_path): Likewise.
25645         (_dl_map_object): Likewise.
25646         * elf/rtld.c (dl_main): Likewise.
25647         (process_dl_audit): Likewise.
25648         (process_envvars): Likewise.
25649         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25650         Remove declaration.
25651         (__libc_enable_secure): Use rtld_hidden_proto.
25652
25653 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25654
25655         * elf/dl-load.c
25656         (add_path): New function broken out of _dl_rtld_di_serinfo.
25657         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25658
25659 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25660
25661         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25662         parentheses around macro arguments.
25663         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25664         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25665         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25666         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25667         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25668         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25669         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25670         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25671         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25672         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25673         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25674         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25675         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25676         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25677         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25678         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25679         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25680         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25681         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25682         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25683         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25684         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25685         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25686         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25687         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25688         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25689         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25690         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25691         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25692         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25693         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25694         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25695         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25696         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25697         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25698         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25699         Likewise.
25700         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25701         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25702         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25703         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25704         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25705         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25706         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25707         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25708         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25709         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25710         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25711         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25712         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25713         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25714         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25715         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25716         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25717         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25718         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25719         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25720         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25721         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25722         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25723         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25724         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25725         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25726         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25727         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25728         (_FP_FRAC_SRS_1): Likewise.
25729         (_FP_FRAC_CLZ_1): Likewise.
25730         (_FP_MUL_MEAT_1_imm): Likewise.
25731         (_FP_MUL_MEAT_1_wide): Likewise.
25732         (_FP_MUL_MEAT_1_hard): Likewise.
25733         (_FP_SQRT_MEAT_1): Likewise.
25734         (_FP_FRAC_ASSEMBLE_1): Likewise.
25735         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25736         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25737         (__FP_CLZ_2): Likewise.
25738         (_FP_MUL_MEAT_2_wide): Likewise.
25739         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25740         (_FP_MUL_MEAT_2_gmp): Likewise.
25741         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25742         (_FP_SQRT_MEAT_2): Likewise.
25743         (_FP_FRAC_ASSEMBLE_2): Likewise.
25744         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25745         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25746         (_FP_FRAC_CLZ_4): Likewise.
25747         (_FP_MUL_MEAT_4_wide): Likewise.
25748         (_FP_MUL_MEAT_4_gmp): Likewise.
25749         (_FP_SQRT_MEAT_4): Likewise.
25750         (_FP_FRAC_ASSEMBLE_4): Likewise.
25751         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25752         * soft-fp/op-common.h (_FP_CMP): Likewise.
25753         (_FP_CMP_EQ): Likewise.
25754         (_FP_CMP_UNORD): Likewise.
25755         (_FP_TO_INT): Likewise.
25756         (_FP_FROM_INT): Likewise.
25757         [!__FP_CLZ] (__FP_CLZ): Likewise.
25758         (_FP_DIV_HELP_imm): Likewise.
25759         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25760         Likewise.
25761         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25762         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25763         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25764         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25765         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25766         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25767         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25768         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25769         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25770         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25771         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25772         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25773         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25774         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25775         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25776         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25777         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25778         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25779         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25780         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25781         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25782         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25783         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25784         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25785         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25786         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25787         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25788         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25789         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25790         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25791         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25792         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25793         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25794         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25795         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25796         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25797         (FP_UNPACK_RAW_SP): Likewise.
25798         (FP_PACK_RAW_S): Likewise.
25799         (FP_PACK_RAW_SP): Likewise.
25800         (FP_UNPACK_S): Likewise.
25801         (FP_UNPACK_SP): Likewise.
25802         (FP_UNPACK_SEMIRAW_S): Likewise.
25803         (FP_UNPACK_SEMIRAW_SP): Likewise.
25804         (FP_PACK_S): Likewise.
25805         (FP_PACK_SP): Likewise.
25806         (FP_PACK_SEMIRAW_S): Likewise.
25807         (FP_PACK_SEMIRAW_SP): Likewise.
25808         (_FP_SQRT_MEAT_S): Likewise.
25809         (FP_CMP_S): Likewise.
25810         (FP_CMP_EQ_S): Likewise.
25811         (FP_CMP_UNORD_S): Likewise.
25812         (FP_TO_INT_S): Likewise.
25813         (FP_FROM_INT_S): Likewise.
25814
25815         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25816
25817         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25818         (FP_EX_INVALID_IMZ): Likewise.
25819         (FP_EX_INVALID_IMZ_FMA): Likewise.
25820         (FP_EX_INVALID_ISI): Likewise.
25821         (FP_EX_INVALID_ZDZ): Likewise.
25822         (FP_EX_INVALID_IDI): Likewise.
25823         (FP_EX_INVALID_SQRT): Likewise.
25824         (FP_EX_INVALID_CVI): Likewise.
25825         (FP_EX_INVALID_VC): Likewise.
25826         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25827         "invalid" exceptions.
25828         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25829         (_FP_ADD_INTERNAL): Likewise.
25830         (_FP_MUL): Likewise.
25831         (_FP_FMA): Likewise.
25832         (_FP_DIV): Likewise.
25833         (_FP_CMP_CHECK_NAN): Likewise.
25834         (_FP_SQRT): Likewise.
25835         (_FP_TO_INT): Likewise.
25836         (FP_EXTEND): Likewise.
25837
25838 2014-10-09  Allan McRae  <allan@archlinux.org>
25839
25840         * po/fr.po: Update French translation from translation project.
25841
25842 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25843
25844         [BZ #14132]
25845         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
25846         of INTDEF.
25847         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
25848         (__cxa_atexit): Use libc_hidden_proto.
25849         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
25850
25851         [BZ #14132]
25852         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
25853         declaration.
25854         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
25855         [!_ISOMAC] (__iswspace_l_internal): Likewise.
25856         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
25857         [!_ISOMAC] (__iswctype_internal): Likewise.
25858         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
25859         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
25860         alias.
25861         (fcntl): Remove __fcntl_internal alias.
25862         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
25863         __connect_internal alias.
25864         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
25865         Likewise.
25866
25867         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
25868         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
25869         FP_DENORM_ZERO.
25870         (_FP_CHECK_FLUSH_ZERO): New macro.
25871         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
25872         (_FP_CMP): Likewise.
25873         (_FP_CMP_EQ): Likewise.
25874         (_FP_TO_INT): Do not set inexact for subnormal arguments if
25875         FP_DENORM_ZERO.
25876         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
25877         (FP_TRUNC): Likewise.
25878
25879         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
25880         treated as invalid conversion, not as normal exponent.
25881
25882         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
25883         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
25884         (_FP_CMP_EQ): Likewise.
25885         (_FP_CMP_UNORD): Likewise.
25886         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
25887         (FP_CMP_EQ_D): Likewise.
25888         (FP_CMP_UNORD_D): Likewise.
25889         * soft-fp/extended.h (FP_CMP_E): Likewise.
25890         (FP_CMP_EQ_E): Likewise.
25891         (FP_CMP_UNORD_E): Likewise.
25892         * soft-fp/quad.h (FP_CMP_Q): Likewise.
25893         (FP_CMP_EQ_Q): Likewise.
25894         (FP_CMP_UNORD_Q): Likewise.
25895         * soft-fp/single.h (FP_CMP_S): Likewise.
25896         (FP_CMP_EQ_S): Likewise.
25897         (FP_CMP_UNORD_S): Likewise.
25898         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
25899         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
25900         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
25901         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
25902         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
25903         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
25904         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
25905         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
25906         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
25907         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
25908         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
25909         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
25910         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
25911         to FP_CMP_Q.
25912         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
25913         FP_CMP_Q.
25914         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
25915         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
25916         FP_CMP_EQ_Q.
25917         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
25918         FP_CMP_Q.
25919         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
25920         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
25921         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
25922         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
25923         FP_CMP_EQ_Q.
25924         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
25925         FP_CMP_Q.
25926         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
25927         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
25928         FP_CMP_EQ_Q.
25929         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
25930         FP_CMP_Q.
25931         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
25932         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
25933         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
25934         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
25935         FP_CMP_EQ_Q.
25936
25937         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
25938         a subnormal result, set the underflow exception if trapping on
25939         underflow is enabled.
25940         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
25941         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
25942         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
25943         redefine to 0.
25944         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
25945         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25946         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
25947         * soft-fp/extendxftf2.c (__extendxftf2): Use
25948         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
25949
25950         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
25951         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
25952         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25953         FP_HANDLE_EXCEPTIONS.
25954         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
25955         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25956         FP_HANDLE_EXCEPTIONS.
25957         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
25958         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25959         FP_HANDLE_EXCEPTIONS.
25960         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
25961         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
25962         FP_HANDLE_EXCEPTIONS.
25963
25964 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
25965
25966         [BZ #14132]
25967         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
25968         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
25969         use INTUSE.
25970         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
25971         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
25972         Remove alias.
25973         (__adjtimex): Define using libc_hidden_ver.
25974         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
25975         Remove declaration.
25976         (ntp_gettime): Call __adjtimex directly.
25977         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
25978         Remove declaration.
25979         (ntp_gettimex): Call __adjtimex directly.
25980         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
25981         __adjtimex_internal alias.
25982
25983 2014-10-08  Roland McGrath  <roland@hack.frob.com>
25984
25985         [BZ #17460]
25986         * nscd/nscd.c (more_help): Rewrite list of tables collection
25987         using xstrdup and asprintf.
25988
25989         * nscd/nscd_conf.c: Remove local xstrdup declaration.
25990
25991 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25992             Roland McGrath  <roland@hack.frob.com>
25993
25994         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
25995         (do_lookup_unique): ... local function 'enter' here; update callers.
25996
25997 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
25998
25999         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26000         compat_symbol calls on [SHARED].
26001         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26002         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26003         Remove.
26004         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26005         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26006         (oldsetrlimit): Remove.
26007         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26009         (lchown): New syscall entry.
26010         (oldsetrlimit): Remove.
26011         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26012         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26013         (oldsetrlimit): Remove.
26014         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26015
26016         [BZ #14138]
26017         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26018         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26019         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26020         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26021         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26022         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26023         (fchown): Likewise.
26024         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26025         (fchown): Likewise.
26026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26027         Likewise.
26028
26029 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26030
26031         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26032         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26033         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26034         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26035         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26036         Likewise.
26037         (__old_sem_post): Likewise.
26038
26039 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26040
26041         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26042         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26043         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26044         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26045         Use INLINE_VSYSCALL macro.
26046         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26047         __vdso_clock_gettime.
26048         * sysdeps/unix/sysv/linux/tile/init-first.c
26049         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26050         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26051         __vdso_clock_gettime.
26052
26053         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26054         to set up frame more cleanly.
26055
26056         * sysdeps/tile/memcmp.c: New file.
26057
26058         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26059
26060         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26061         * sysdeps/tile/tilegx/strcasestr.c: New file.
26062         * sysdeps/tile/tilegx/strnlen.c: New file.
26063         * sysdeps/tile/tilegx/strstr.c: New file.
26064
26065         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26066
26067 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26068
26069         * nptl/tst-setuid3.c: Write errors to stdout.
26070
26071 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26072
26073         * elf/dl-deps.c
26074         (preload): New functions broken out of _dl_map_object_deps.
26075         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26076
26077 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26078
26079         [BZ #14138]
26080         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26081         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26082
26083 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26084
26085         * sysdeps/mips/strcmp.S: New.
26086
26087 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26088
26089         [BZ #14138]
26090         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26091         (linkat): Likewise.
26092         (mkdirat): Likewise.
26093         (readlinkat): Likewise.
26094         (renameat): Likewise.
26095         (symlinkat): Likewise.
26096         (unlinkat): Likewise.
26097         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26098         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26099         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26100         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26101         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26102         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26103         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26104
26105 2014-09-30  Will Newton  <will.newton@linaro.org>
26106
26107         * math/math.h: Define long double math functions if
26108         _LIBC_TEST is defined.
26109         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26110
26111         * localedata/Makefile: Move assignment to tests-special
26112         into an ifdef testing run-built-tests.
26113         * timezone/Makefile: Likewise.
26114
26115 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26116
26117         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26118         with $(BASH) not $(SHELL).
26119
26120 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26121             Matthew LeGendre  <legendre1@llnl.gov>
26122
26123         [BZ #17411]
26124         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26125         l_reloc_result.
26126
26127 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26128
26129         * stdio-common/printf_fp.c
26130         (hack_digit): New function, broken out of ...
26131         (__printf_fp): ... local function here.  Update call sites.
26132         hack_digit now takes an additional parameter that is a pointer
26133         to a struct of the referenced locals.  Those locals moved inside
26134         the struct and references updated.
26135
26136 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26137
26138         * aclocal.m4: Require autoconf 2.69.
26139         * configure: Regenerated.
26140         * sysdeps/aarch64/configure: Likewise.
26141         * sysdeps/alpha/configure: Likewise.
26142         * sysdeps/arm/armv7/configure: Likewise.
26143         * sysdeps/arm/configure: Likewise.
26144         * sysdeps/ia64/configure: Likewise.
26145         * sysdeps/mach/configure: Likewise.
26146         * sysdeps/mips/configure: Likewise.
26147         * sysdeps/s390/configure: Likewise.
26148         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26150
26151         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26152         file.
26153         * sysdeps/ia64/configure.ac: Likewise.
26154
26155 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26156
26157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26158         specify symbol version for ld.so.  Do not include entry for
26159         libpthread.
26160         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26161         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26162         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26163
26164         [BZ #14171]
26165         * Makeconfig [$(build-shared) = yes]
26166         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26167         makefiles.
26168         [$(build-shared) = yes && $(soversions.mk-done) = t]
26169         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26170         [$(build-shared) = yes && $(soversions.mk-done) = t]
26171         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26172         to Makerules.
26173         [$(build-shared) = yes && $(soversions.mk-done) = t]
26174         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26175         here.
26176         [$(build-shared) = yes && $(soversions.mk-done) = t]
26177         (common-generated): Don't append gnu/lib-names.h and
26178         gnu/lib-names.stmp here.
26179         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26180         (lib-names-h-abi): New variable.
26181         [$(build-shared) = yes && $(soversions.mk-done) = t]
26182         (lib-names-stmp-abi): Likewise.
26183         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26184         abi-variants] (before-compile): Append
26185         $(common-objpfx)$(lib-names-h-abi).
26186         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26187         abi-variants] (common-generated): Append gnu/lib-names.h.
26188         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26189         abi-variants] (install-others-nosubdir): Depend on
26190         $(inst_includedir)/$(lib-names-h-abi).
26191         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26192         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26193         [$(build-shared) = yes && $(soversions.mk-done) = t]
26194         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26195         [$(build-shared) = yes && $(soversions.mk-done) = t]
26196         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26197         [$(build-shared) = yes && $(soversions.mk-done) = t]
26198         (common-generated): Append $(lib-names-h-abi) and
26199         $(lib-names-stmp-abi).
26200         * scripts/lib-names.awk: Do not handle multi being set.
26201         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26202         Remove variable.
26203         (abi-lp64_be-ld-soname): Likewise.
26204         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26205         Likewise.
26206         (abi-hard-ld-soname): Likewise.
26207         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26208         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26209         Remove variable.
26210         (abi-o32_hard-ld-soname): Likewise.
26211         (abi-o32_soft_2008-ld-soname): Likewise.
26212         (abi-o32_hard_2008-ld-soname): Likewise.
26213         (abi-n32_soft-ld-soname): Likewise.
26214         (abi-n32_hard-ld-soname): Likewise.
26215         (abi-n32_soft_2008-ld-soname): Likewise.
26216         (abi-n32_hard_2008-ld-soname): Likewise.
26217         (abi-n64_soft-ld-soname): Likewise.
26218         (abi-n64_hard-ld-soname): Likewise.
26219         (abi-n64_soft_2008-ld-soname): Likewise.
26220         (abi-n64_hard_2008-ld-soname): Likewise.
26221         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26222         Likewise.
26223         (abi-64-v2-ld-soname): Likewise.
26224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26225         ld.so entries.
26226         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26227         variable.
26228         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26229         entry.
26230         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26231         variable.
26232         (abi-64-ld-soname): Likewise.
26233         (abi-x32-ld-soname): Likewise.
26234         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26235         entry.
26236         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26237
26238 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26239
26240         [BZ #14138]
26241         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26242         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26243         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26244         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26245         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26246         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26247         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26248         syscall entry for GLIBC_2.2 symbol version.
26249         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26250         Likewise.
26251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26252         (setrlimit): Likewise.
26253         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26254         Likewise.
26255
26256 2014-09-23  Will Newton  <will.newton@linaro.org>
26257
26258         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26259         _LINUX_ARM_SYSDEP_H include guard too.
26260         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26261         define.
26262
26263 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26264
26265         * sysdeps/unix/sysv/linux/eventfd.c:
26266         Make first argument unsigned.
26267         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26268         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26269
26270 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26271
26272         [BZ #16852]
26273         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26274         * socket/sys/socket.h: Likewise.
26275         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26276
26277 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26278
26279         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26280
26281 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26282
26283         * time/tst-ftime.c: New test.
26284         * time/Makefile (tests): Add tst-ftime.
26285
26286 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26287
26288         * soft-fp/extended.h: Fix comment formatting.
26289         * soft-fp/op-1.h: Likewise.
26290         * soft-fp/op-2.h: Likewise.
26291         * soft-fp/op-4.h: Likewise.
26292         * soft-fp/op-8.h: Likewise.
26293         * soft-fp/op-common.h: Likewise.
26294         * soft-fp/soft-fp.h: Likewise.
26295
26296         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26297
26298 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26299
26300         [BZ #6652]
26301         * Makeconfig (soversions-default-setname): Remove variable.
26302         ($(common-objpfx)soversions.i): Don't pass default_setname to
26303         soversions.awk.
26304         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26305         oldest_abi to abi-versions.awk.
26306         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26307         * config.make.in (oldest-abi): Remove variable.
26308         * configure.ac (--enable-oldest-abi): Remove configure option.
26309         * configure: Regenerated.
26310         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26311         text.
26312         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26313         * scripts/soversions.awk: Do not handle default_setname variable.
26314         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26315         variable.
26316         * sysdeps/mach/hurd/configure: Regenerated.
26317         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26318         variable.
26319         * sysdeps/unix/sysv/linux/configure: Regenerated.
26320
26321 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26322
26323         * elf/Makefile (CFLAGS-interp.c): Remove.
26324         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26325         path string.
26326         * elf/interp.c: Include generated runtime-linker.h
26327
26328         * Makerules (lib%.so): Don't include $(+interp) in
26329         prerequisites.
26330         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26331         * dlfcn/eval.c: Remove file.
26332
26333         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26334         macros.
26335
26336         [BZ #17266]
26337         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26338         4.2 and newer.
26339
26340         [BZ #17370]
26341         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26342
26343 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26344             Jakub Jelinek  <jakub@redhat.com>
26345
26346         [BZ #17266]
26347         * libio/stdio.h: Check definition of __fortify_function
26348         instead of __extern_always_inline to include bits/stdio2.h.
26349         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26350         check if __extern_always_inline is defined.
26351         [__USE_MISC || __USE_XOPEN]: Likewise.
26352         [__USE_ISOC99] Likewise.
26353         * misc/sys/cdefs.h (__fortify_function): Define only if
26354         __extern_always_inline is defined.
26355         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26356         __extern_always_inline and __extern_inline only for g++-4.3
26357         and newer or a compatible gcc.
26358
26359 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26360
26361         [BZ #17371]
26362         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26363         last change to handle zero prefix length.
26364
26365 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26366
26367         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26368         _SC_REGEX_VERSION.
26369
26370         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26371         _POSIX_RAW_SOCKETS.
26372
26373 2014-09-13  Allan McRae  <allan@archlinux.org>
26374
26375         * po/ru.po: Update Russian translation from translation project.
26376
26377 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26378
26379         * locale/programs/locale.c (show_locale_vars): Inline local function
26380         into its sole call site.  Clean up some style nits.
26381         (print_item): New function, broken out of ...
26382         (show_info): ... local function here.  Clean up style nits.
26383
26384         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26385         out of ...
26386         (set_class_defaults): ... local function set_default here.
26387         Define set_default as a macro locally to pass constant parameters.
26388         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26389         rather than a shared local.
26390
26391         * stdlib/rpmatch.c (try): New function, broken out of ...
26392         (rpmatch): ... local function here.  Also, prototypify definition.
26393
26394 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26395
26396         * scripts/soversions.awk: Do not handle configuration names.
26397         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26398         vendor and os variables to soversions.awk.
26399         * configure.ac: Do not modify gnu-* host_os.
26400         * configure: Regenerated
26401         * shlib-versions: Remove first column with configuration names.
26402         * nptl/shlib-versions: Likewise.
26403         * nptl_db/shlib-versions: Likewise.
26404         * sysdeps/hppa/shlib-versions: Likewise.
26405         * sysdeps/m68k/shlib-versions: Likewise.
26406         * sysdeps/mach/hurd/shlib-versions: Likewise.
26407         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26408         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26409         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26410         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26411         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26412         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26413         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26414         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26416         Likewise.
26417         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26418         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26419         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26420         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26421         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26422         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26423         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26424         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26425
26426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26427         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26429         Regenerated.
26430         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26432         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26433
26434         * shlib-versions: Remove OS-specific entries.  Moved to files in
26435         sysdeps.
26436         * sysdeps/mach/hurd/shlib-versions: New file.
26437         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26438
26439         * nptl/shlib-versions: Remove architecture-specific entries.
26440         Moved to files in sysdeps.
26441         * shlib-versions: Likewise.
26442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26443         file.
26444         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26445         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26446         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26447         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26448
26449         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26450         (UDP_NO_CHECK6_RX): Likewise.
26451
26452 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26453
26454         * sysdeps/posix/sysconf.c (__sysconf): Spell
26455         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26456
26457 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26458
26459         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26460         loading.
26461         * iconv/Versions (__gconv_transliterate): Export for use from
26462         gconv modules.
26463         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26464         (struct __gconv_trans_data, __gconv_trans_fct,
26465         __gconv_trans_context_fct, __gconv_trans_query_fct,
26466         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26467         definitions.
26468         (struct __gconv_step_data): Remove __trans member.
26469         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26470         longer hidden.  Remove unused trans_data argument.
26471         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26472         (__gconv_translit_find): Remove declaration.
26473         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26474         prototype.
26475         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26476         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26477         trans_data argument.  Add hidden definition.
26478         (__gconv_translit_find): Remove.
26479         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26480         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26481         * iconv/skeleton.c: Remove transliteration initialization.
26482         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26483         __gconv_step_data initialization.
26484         * libio/iofwide.c (__libio_translit_): Remove.
26485         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26486         * wcsmbs/btowc.c (__btowc): Likewise.
26487         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26488         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26489         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26490         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26491         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26492         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26493         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26494         * wcsmbs/wctob.c (wctob): Likewise.
26495
26496 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26497
26498         [BZ #16194]
26499         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26500         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26501         register usage.
26502         * sysdeps/x86/Makefile: Adjust.
26503
26504 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26505             Roland McGrath  <roland@hack.frob.com>
26506
26507         * locale/weight.h: Add include guard.
26508         (findidx): Make static rather than auto; take new parameters
26509         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26510         * locale/weightwc.h: Likewise.
26511         * posix/fnmatch_loop.c
26512         (FCT): Change type of EXTRA from int32_t to wint_t.
26513         Don't include either header inside the function.
26514         Call FINDIDX rather than findidx, and pass new arguments.
26515         #undef FINDIDX at the end of the file.
26516         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26517         FINDIDX before including fnmatch_loop.c for the non-wide version.
26518         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26519         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26520         for the wide version.
26521         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26522         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26523         Pass new arguments to findidx.
26524         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26525         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26526         Don't #include it inside the function.  Pass new arguments to findidx.
26527         * posix/regex_internal.h
26528         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26529         (re_string_elem_size_at): Don't #include it inside the function.
26530         Pass new arguments to findidx.
26531         * string/strcoll_l.c: #include WEIGHT_H at top level.
26532         (get_next_seq): Don't #include it inside the function.
26533         Pass new arguments to findidx.
26534         (get_next_seq_nocache): Likewise.
26535         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26536         (STRXFRM): Don't #include it inside the function.
26537         Pass new arguments to findidx.
26538
26539 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26540
26541         [BZ #17344]
26542         * malloc/malloc.c (unlink): Turn asserts into a call to
26543         malloc_printerr.
26544
26545 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26546
26547         [BZ #17370]
26548         * libio/wfileops (do_ftell_wide): Free OUT.
26549
26550 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26551
26552         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26553
26554 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26555
26556         [BZ #17363]
26557         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26558         group if the current group is empty.
26559
26560 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26561
26562         * benchtests/bench-memset.c (test_main): Add more test from size
26563         from 32 to 512 bytes.
26564         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26565         Add POWER8 memset object.
26566         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26567         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26568         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26569         implementation.
26570         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26571         Likewise.
26572         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26573         multiarch POWER8 memset optimization.
26574         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26575         POWER8 memset optimization.
26576
26577         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26578         Remove bzero multiarch objects.
26579         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26580         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26581         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26582         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26583         Remove define.
26584         [__bzero]: Redefine to specific name.
26585         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26586         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26587         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26588         define.
26589         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26590         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26591
26592 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26593
26594         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26595         warnings into errors.
26596
26597         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26598         __cxa_thread_atexit_impl prototype.
26599
26600 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26601
26602         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26603         Fix capitalization of error message.
26604
26605 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26606
26607         * sysdeps/mips/preconfigure: Modify ABI tests.
26608
26609 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26610
26611         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26612
26613 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26614             Carlos O'Donell  <carlos@systemhalted.org>
26615
26616         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26617         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26618         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26619         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26620         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26621         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26622         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26623         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26624         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26625         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26626         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26627         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26628         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26629         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26630         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26631         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26632         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26633         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26634         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26635         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26636         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26637         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26638         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26639         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26640         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26641         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26642         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26643         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26644         Deconditionalize the code that was previously under [RESET_PID].
26645         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26646         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26647         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26648         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26649         include sysdep.h.
26650
26651 2014-09-08  Allan McRae  <allan@archlinux.org>
26652
26653         * version.h (RELEASE): Set to "development".
26654         (VERSION): Set to "2.20.90"
26655
26656 2014-09-07  Allan McRae  <allan@archlinux.org
26657
26658         * version.h (RELEASE): Set to "stable".
26659         (VERSION): Set to "2.20"
26660         * include/features.h (__GLIBC_MINOR__): Set to 20.
26661
26662         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26663         Liebler.
26664
26665         * po/ko.po: Update Korean translation from translation project.
26666
26667 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26668
26669         [BZ #17354]
26670         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26671         macro for handling signed relocations.
26672
26673 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26674
26675         [BZ #17325]
26676         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26677         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26678         assert.
26679         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26680         * iconvdata/ibm935.c (BODY): Likewise.
26681         * iconvdata/ibm937.c (BODY): Likewise.
26682         * iconvdata/ibm939.c (BODY): Likewise.
26683         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26684         assert.
26685         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26686         script.
26687         * iconvdata/run-iconv-test.sh: New test loop for checking for
26688         decoder crashers.
26689
26690 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26691
26692         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26693         libm_hidden_ver.
26694
26695 2014-09-01  Allan McRae  <allan@archlinux.org>
26696
26697         * po/eo.po: Update Esperanto translation from translation project.
26698
26699         * po/ca.po: Update Catalan translation from translation project.
26700
26701 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26702
26703         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26704         __proc_dostop call.
26705
26706 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26707
26708         [BZ #17319]
26709         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26710         to call set_thread_area instead of hand written asm.
26711         (__NR_set_thread_area): Removed define.
26712         (TLS_FLAG_WRITABLE): Likewise.
26713         (__ASSUME_SET_THREAD_AREA): Remove check.
26714         (TLS_EBX_ARG): Remove define.
26715         (TLS_LOAD_EBX): Likewise.
26716
26717 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26718
26719         Simplify atomicity of socket creation in bind.
26720
26721         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26722         looking up the name after linking the file.
26723
26724 2014-08-27  Allan McRae  <allan@archlinux.org>
26725
26726         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26727
26728 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26729
26730         [BZ #17187]
26731         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26732         trans_compare, open_translit, __gconv_translit_find):
26733         Remove module loading code.
26734
26735 2014-08-26  Allan McRae  <allan@archlinux.org>
26736
26737         * po/vi.po: Update Vietnamese translation from translation project.
26738
26739         * po/uk.po: Update Ukrainian translation from translation project.
26740
26741         * po/fr.po: Update French translation from translation project.
26742
26743         * po/ru.po: Update Russian translation from translation project.
26744
26745         * po/pl.po: Update Polish translation from translation project.
26746
26747         * po/cs.po: Update Czech translation from translation project.
26748
26749         * po/de.po: Update German translation from translation project.
26750
26751         * po/bg.po: Update Bulgarian translation from translation project.
26752
26753         * po/sv.po: Update Sweedish translation from translation project.
26754
26755         * po/nl.po: Update Dutch translation from translation project.
26756
26757         * po/es.po: Update Spanish translation from translation project.
26758
26759 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26760
26761         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26762
26763         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26764         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26765         (CPPFLAGS-iconvconfig): Likewise.
26766         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26767
26768         * include/libc-symbols.h: Remove unnecessary check for
26769         NOT_IN_libc.
26770         * nptl/pthreadP.h: Likewise.
26771         * sysdeps/aarch64/setjmp.S: Likewise.
26772         * sysdeps/alpha/setjmp.S: Likewise.
26773         * sysdeps/arm/sysdep.h: Likewise.
26774         * sysdeps/i386/setjmp.S: Likewise.
26775         * sysdeps/m68k/setjmp.c: Likewise.
26776         * sysdeps/posix/getcwd.c: Likewise.
26777         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26778         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26779         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26780         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26781         * sysdeps/sh/sh3/setjmp.S: Likewise.
26782         * sysdeps/sh/sh4/setjmp.S: Likewise.
26783         * sysdeps/unix/alpha/sysdep.h: Likewise.
26784         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26785         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26786         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26787         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26790         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26791         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26792         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26793         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26794         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26795         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26796         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26797         * sysdeps/x86_64/setjmp.S: Likewise.
26798
26799 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26800
26801         [BZ #17263]
26802         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26803         <stdint.h>.
26804         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26805         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26806
26807 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26808
26809         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26810
26811         [BZ #17262]
26812         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26813         and __x86_64__ when disabling x87 inline functions.
26814
26815 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26816
26817         [BZ #17259]
26818         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26819         asm statement with __cpuid_count.
26820
26821 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26822
26823         * configure.ac: Change __ehdr_start code to dereference the struct.
26824         Run readelf on the output to look for relocations.
26825         * configure: Regenerated.
26826
26827 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26828
26829         [BZ #17261]
26830         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26831         value to 0.
26832         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26833
26834 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26835
26836         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26837
26838 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26839
26840         [BZ #16892]
26841         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
26842         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
26843
26844 2014-08-12  Sean Anderson  <seanga2@gmail.com>
26845
26846         * malloc/malloc.c: Fix typo in comment.
26847
26848 2014-08-09  Allan McRae  <allan@archlinux.org>
26849
26850         * Regenerate libc.po.
26851
26852 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
26853
26854         * intl/tst-gettext2.sh: Check every lang file for creation.
26855
26856 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26857
26858         * sysdeps/aarch64/fpu/math_private.h
26859         (libc_feholdsetround_noex_aarch64_ctx): New function.
26860
26861 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26862
26863         * sysdeps/arm/armv6/strcpy.S (strcpy):
26864         Fix performance issue in misaligned cases.
26865
26866 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26867
26868         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
26869         Move definition from termios.h.
26870         (struct termio): Likewise.
26871         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26872         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26873         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26874         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26875         Likewise.
26876         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
26877         Move definition to ioctl-types.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
26885 2014-08-05  Richard Henderson  <rth@redhat.com>
26886
26887         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
26888         exceptions.
26889         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
26890         Add fraiseexcpt.
26891         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
26892         Use __feraiseexcept.
26893         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
26894         Protect libm symbols with IS_IN_libm.
26895
26896         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
26897
26898 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
26899
26900         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
26901
26902 2014-08-04  Will Newton  <will.newton@linaro.org>
26903
26904         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
26905         file.
26906
26907 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
26908
26909         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
26910         variants for each function.
26911
26912 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26913
26914         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
26915         appended ...
26916         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
26917         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
26918         appended ...
26919         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
26920         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
26921         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
26922         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
26923         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
26924         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
26925         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
26926         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
26927         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
26928         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
26929         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
26930         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
26931         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
26932         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
26933         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
26934         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
26935         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
26936         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
26937         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
26938         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
26939         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
26940         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
26941         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
26942         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
26943         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
26944         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
26945         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
26946         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
26947         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
26948         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
26949         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
26950         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
26951         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
26952         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
26953         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
26954         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
26955         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
26956         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
26957         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
26958         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
26959         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
26960         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
26961         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
26962         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
26963         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
26964         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
26965         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
26966         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
26967         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
26968         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
26969         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
26970         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
26971         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
26972         Update #include.
26973         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
26974         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
26975
26976 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26977
26978         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
26979         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
26980         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
26981         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
26982         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
26983         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
26984
26985 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26986
26987         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
26988         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
26989         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
26990         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
26991
26992 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26993
26994         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
26995         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
26996         (__libc_vfork): Define function under this name.
26997         (__vfork): Define as an alias.
26998         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
26999         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27000
27001 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27002
27003         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27004         that was previously under [RESET_PID].
27005         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27006
27007 2014-08-04  Andreas Schwab  <schwab@suse.de>
27008
27009         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27010
27011 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27012
27013         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27014         (main): Likewise.
27015
27016 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27017
27018         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27019
27020 2014-08-01  Richard Henderon  <rth@redhat.com>
27021
27022         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27023         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27024         typo in exact zero test.
27025         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27026         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27027         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27028
27029 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27030
27031         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27032         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27033         * sysdeps/arm/sysdep.h: ... here.
27034         [!__ASSEMBLER__]: Include <stdint.h>.
27035
27036 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27037
27038         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27039         (HAVE_WCTYPE_H): Likewise.
27040         (HAVE_ISWCTYPE): Likewise.
27041         (ENABLE_NLS): Likewise.
27042         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27043         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27044
27045         * posix/regex_internal.c: Check if DEBUG is defined and is
27046         set.
27047
27048         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27049         (HAVE_MBSRTOWCS): Likewise.
27050         * posix/fnmatch.c: Include string.h unconditionally.
27051
27052 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27053
27054         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27055         reversal.
27056
27057 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27058
27059         * sysdeps/generic/safe-fatal.h: New file.
27060         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27061         * nptl/forward.c: Include it.
27062         (__pthread_unwind): Use __safe_fatal as default action, rather
27063         than a bogus use of INTERNAL_SYSCALL that could never work.
27064
27065         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27066         * configure.ac (libc_cv_builtin_trap): New test.
27067         * configure: Regenerated.
27068         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27069         (ABORT_INSTRUCTION): Define using __builtin_trap.
27070
27071         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27072         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27073         * sysdeps/nptl/nptl-signals.h: New file.
27074         * nptl/pthreadP.h: Include <nptl-signals.h>.
27075
27076 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27077
27078         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27079         (ONE_DIRECTION): Define.
27080         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27081         (ONE_DIRECTION): Define.
27082         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27083         (ONE_DIRECTION): Define.
27084
27085 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27086
27087         * sysdeps/s390/Makefile: Delete file.
27088         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27089         * sysdeps/s390/__longjmp.c: Delete file.
27090         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27091         Remove fields __flags and __reserved.
27092         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27093         and add versioning.
27094         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27095         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27096         * sysdeps/s390/rtld-setjmp.S: Likewise.
27097         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27098         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27099         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27100         * sysdeps/s390/s390-32/setjmp.S: ... here.
27101         Add versioning.
27102         (__sigsetjmp): Remove setting __flags field.
27103         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27104         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27105         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27106         * sysdeps/s390/s390-64/setjmp.S: ... here.
27107         Add versioning.
27108         (__sigsetjmp): Remove setting __flags field.
27109         * sysdeps/s390/setjmp.S: Delete file.
27110         * sysdeps/s390/sigjmp.c: Likewise.
27111         * sysdeps/s390/v1-longjmp.c: Likewise.
27112         * sysdeps/s390/v1-setjmp.h: Likewise.
27113         * sysdeps/s390/v1-sigjmp.c: Likewise.
27114         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27115         Remove v1-longjmp_chk.
27116         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27117         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27118         Include debug/longjmp_chk.c and add versioning.
27119         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27120         Include nptl/pt-longjmp.c and add versioning.
27121         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27122         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27123         Include __longjmp.c.
27124         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27125         Move to ...
27126         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27127         (__getcontext): Remove setting __flags field.
27128         Add versioning.
27129         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27130         Don't restore upper high grps.
27131         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27132         Likewise.
27133         (__swapcontext): Remove setting uc_flags field.
27134         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27135         Delete file.
27136         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27137         Include __longjmp.c.
27138         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27139         Move to ...
27140         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27141         (__getcontext): Remove setting __flags field.
27142         Add versioning.
27143         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27144         (__swapcontext): Remove setting uc_flags field.
27145         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27146         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27147         Remove fields uc_high_gprs and __reserved.
27148         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27149         New file with reverted content.
27150         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27151         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27152         Regenerated.
27153         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27154         Regenerated.
27155
27156 2014-07-31  Andreas Schwab  <schwab@suse.de>
27157
27158         * config.h.in (HAVE_IFUNC): Define to 0.
27159         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27160         definedness.
27161
27162 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27163
27164         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27165         memmove-avx-unaligned, memcpy-avx-unaligned and
27166         mempcpy-avx-unaligned.
27167         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27168         Add tests for AVX memcpy functions.
27169         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27170         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27171         memcpy_chk.
27172         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27173         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27174         memmove_chk.
27175         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27176         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27177         mempcpy_chk.
27178         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27179         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27180         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27181
27182 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27183
27184         [BZ #17213]
27185         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27186         powerpc64le.
27187
27188 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27189
27190         [BZ #16839]
27191         * manual/llio.texi: Add section about open file description locks.
27192         * manual/examples/ofdlocks.c: Example of open file description
27193         lock usage.
27194         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27195         F_OFD_SETLK, and F_OFD_SETLKW.
27196
27197 2014-07-23  Allan McRae  <allan@archlinux.org>
27198
27199         * po/es.po: Update Spanish translation from translation project.
27200
27201 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27202
27203         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27204
27205 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27206
27207         [BZ #17078]
27208         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27209         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27210         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27211
27212 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27213
27214         [BZ #17088]
27215         * math/fesetenv.c (__fesetenv)
27216         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27217         * math/feupdateenv.c (__feupdateenv)
27218         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27219
27220         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27221         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27222         (__ASSUME_SOCKETCALL): Do not define.
27223
27224         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27225         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27226         (__ASSUME_SOCKETCALL): Do not define.
27227         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27228         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27229         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27230         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27231         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27232         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27233         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27234         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27235
27236         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27237         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27238         (__ASSUME_SOCKETCALL): Do not define.
27239         (__ASSUME_IPC64): Define unconditionally.
27240         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27241         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27242         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27243         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27244         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27245         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27246         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27247         Likewise.
27248
27249         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27250         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27251         (__ASSUME_SOCKETCALL): Do not define.
27252         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27253         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27254         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27255         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27256         (__ASSUME_REQUEUE_PI): Define unconditionally.
27257         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27258         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27259         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27260         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27261         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27262         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27263
27264         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27265         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27266         (__ASSUME_SOCKETCALL): Do not define.
27267         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27268         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27269         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27270         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27271         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27272         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27273
27274         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27275         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27276         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27277         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27278         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27279         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27280         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27281         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27282         (__ASSUME_GETCPU_SYSCALL): Likewise.
27283
27284         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27285         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27286         cases for individual architectures.
27287         * sysdeps/gnu/configure: Regenerated.
27288         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27289         LIBC_SLIBDIR_RTLDDIR.
27290         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27291         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27292         LIBC_SLIBDIR_RTLDDIR.
27293         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27295         LIBC_SLIBDIR_RTLDDIR.
27296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27297         Regenerated.
27298         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27299         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27300         file.
27301         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27302         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27303         file.
27304         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27305         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27306         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27307         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27308
27309         * sysdeps/aarch64/shlib-versions: Move to ...
27310         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27311         * sysdeps/alpha/shlib-versions: Move to ...
27312         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27313         * sysdeps/arm/shlib-versions: Move to ...
27314         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27315         * sysdeps/hppa/shlib-versions: Move all contents except for
27316         libgcc_s entry to ...
27317         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27318         entry from ...
27319         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27320         * sysdeps/ia64/shlib-versions: Move to ...
27321         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27322         entry from ...
27323         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27324         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27325         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27326         * sysdeps/microblaze/shlib-versions: Move to ...
27327         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27328         * sysdeps/mips/shlib-versions: Move to ...
27329         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27330         entry from ...
27331         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27332         * sysdeps/tile/shlib-versions: Move to ...
27333         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27334         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27335         from ...
27336         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27337         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27338         entry from ...
27339         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27340
27341 2014-07-17  Will Newton  <will.newton@linaro.org>
27342
27343         * sysdeps/arm/bits/atomic.h
27344         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27345         (__arch_compare_and_exchange_bool_16_int): Likewise.
27346         (__arch_compare_and_exchange_bool_64_int): Likewise.
27347
27348         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27349         into an #else block.
27350
27351 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27352
27353         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27354         just Linux configurations.  Test empirically that the compiler sets
27355         __ARM_EABI__, rather than using the tuple to decide.
27356         * sysdeps/arm/preconfigure: Regenerated.
27357         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27358         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27359         contents appended ...
27360         * sysdeps/arm/configure.ac: ... here.
27361         * sysdeps/arm/configure: Regenerated.
27362
27363 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27364
27365         * nptl/pthread_kill.c: New file.
27366         * nptl/pthread_sigmask.c: New file.
27367         * nptl/pthread_sigqueue.c: New file.
27368
27369         * sysdeps/nptl/lowlevellock.h: New file.
27370         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27371         * sysdeps/nptl/lowlevellock-futex.h: New file.
27372
27373         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27374         Remove dead declarations.
27375
27376 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27377
27378         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27379         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27380         config-cflags-avx2.
27381         * sysdeps/x86_64/configure.ac: Likewise.
27382         * sysdeps/i386/configure: Regenerated.
27383         * sysdeps/x86_64/configure: Likewise.
27384         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27385         memset-avx2 only if config-cflags-avx2 is yes.
27386         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27387         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27388         defined.
27389         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27390         only if HAVE_AVX2_SUPPORT is defined.
27391         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27392
27393 2014-07-14  Alan Modra  <amodra@gmail.com>
27394
27395         [BZ #17153]
27396         * elf/elf.h (DT_PPC64_NUM): Correct value.
27397         * NEWS: Add to fixed bug list.
27398
27399 2014-07-13  Jim Meyering  <meyering@fb.com>
27400
27401         [BZ 17150]
27402         regex: don't deref NULL upon heap allocation failure
27403         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27404         failure in one more place.
27405         To trigger the segfault, configure grep -with-included-regex,
27406         build it, and run these commands:
27407         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27408
27409 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27410
27411         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27412
27413 2014-07-11  Richard Henderson  <rth@redhat.com>
27414
27415         * sysdeps/aarch64/libm-test-ulps: Update.
27416
27417 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27418
27419         [BZ #17135]
27420         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27421         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27422         (__nptl_setxid): Initialize error member.  Call
27423         __nptl_setxid_error.
27424         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27425         * nptl/descr.h (struct xid_command): Add error member.
27426         * nptl/tst-setuid3.c: New file.
27427         * nptl/Makefile (tests): Add it.
27428
27429 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27430
27431         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27432         New define.
27433         (__lll_trylock): Use __lll_base_trylock.
27434         (__lll_cond_trylock): Likewise.
27435
27436 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27437
27438         * nptl/pthread_create.c (start_thread): Use atomic_or and
27439         lll_futex_wake directly rather than lll_robust_dead.
27440         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27441         (lll_robust_dead): Macro removed.
27442         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27443         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27444         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27445         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27446         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27447         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27448         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27449         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27450         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27451         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27452         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27453         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27454         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27455         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27456         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27457
27458         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27459         Use atomic_compare_and_exchange_val_acq directly rather than
27460         lll_robust_trylock.
27461         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27462         (__lll_robust_trylock, lll_robust_trylock): Removed.
27463         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27464         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27465         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27466         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27467         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27468         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27469         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27470         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27471         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27472         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27473         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27474         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27475         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27476         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27477
27478 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27479
27480         * manual/locale.texi (Locale Names): New section documenting
27481         locale name syntax.  Adjust menu and node chaining accordingly.
27482         (Choosing Locale): Reference Locale Names, Locale Categories.
27483         Mention setting LC_ALL=C.  Reflect that name syntax is now
27484         documented.
27485         (Locale Categories): New section title.  Reference Locale Names.
27486         LC_ALL is an environment variable, but not a category.
27487         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27488         description, now in Locale Name.  Reference that section.  Locale
27489         name syntax is now documented.
27490
27491 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27492
27493         [BZ #17137]
27494         * locale/findlocale.c (name_present, valid_locale_name): New
27495         functions.
27496         (_nl_find_locale): Use the loc_name variable to store name
27497         candidates.  Call name_present and valid_locale_name to check and
27498         validate locale names.  Return an error if the locale is invalid.
27499
27500 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27501
27502         * locale/setlocale.c (setlocale): Use strdup for allocating
27503         composite name copy.
27504
27505 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27506
27507         Sync up with gnulib.
27508         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27509         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27510         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27511         and _GL_ARG_NONNULL.
27512         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27513         [!_LIBC]: Include code for Windows and Cygwin.
27514         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27515         Include prototype for int strerror_r.
27516         [!_LIBC] (is_open): New function.
27517         (flush_stdout): New function.
27518         (print_errno_message): Use it.
27519         (error): Likewise.
27520         (error_at_line): Likewise.
27521         (error_tail) Add function attribute macros.  Use
27522         __builtin_expect.
27523
27524         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27525
27526         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27527
27528         * io/ftw.c: Include sys/param.h unconditionally.
27529
27530         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27531
27532         [BZ #17125]
27533         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27534         libc_freeres_ptr.
27535         (freecache): New function to free CACHE on exit.
27536
27537         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27538         initialization.
27539
27540 2014-07-09  David S. Miller  <davem@davemloft.net>
27541
27542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27543
27544         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27545         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27546         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27547         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27548         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27549         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27550         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27551         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27552         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27553         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27554         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27555         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27556         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27557
27558 2014-07-09  Andreas Schwab  <schwab@suse.de>
27559
27560         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27561         output.
27562         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27563         (do_test): Likewise.
27564
27565         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27566
27567 2014-07-09  Will Newton  <will.newton@linaro.org>
27568
27569         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27570         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27571         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27572         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27573         * sysdeps/hppa/start.S (_start): Likewise.
27574
27575 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27576
27577         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27578
27579         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27580         defined.
27581
27582 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27583
27584         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27585         after checking that it is non-NULL.
27586
27587         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27588
27589 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27590
27591         * sysdeps/powerpc/memmove.c: Remove file.
27592         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27593         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27594         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27595         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27596         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27597         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27598         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27599         string memmove instead of removed powerpc one.
27600
27601         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27602         [weak_alias]: Fix compiler warning due trailing data.
27603         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27604         [weak_alias]: Likewise.
27605         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27606         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27607
27608         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27609         (__libc_ifunc_impl_list): Add memmove functions.
27610
27611 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27612
27613         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27614         Remove code.
27615         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27616         Likewise.
27617         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27618         Likewise.
27619         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27620         Likewise.
27621         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27622         Likewise.
27623         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27624         Likewise.
27625         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27626         Likewise.
27627         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27628         Likewise.
27629         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27630         Likewise.
27631         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27632         Likewise.
27633         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27634         Likewise.
27635         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27636         Likewise.
27637         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27638         Likewise.
27639         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27640         Likewise.
27641         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27642         Likewise.
27643         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27644         Likewise.
27645         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27646         Likewise.
27647
27648 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27649
27650         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27651         to avoid alignment traps in non-cacheable memory.
27652         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27653
27654         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27655         multiarch objects.
27656         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27657         file: multiarch power7 memmove.
27658         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27659         multiarch default memmove.
27660         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27661         multiarch memove for powerpc32/power4.
27662
27663         * string/bcopy.c: Use full path to include memmove.c.
27664         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27665         multiarch objects.
27666         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27667         bcopy for powerpc64.
27668         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27669         bcopy for powerpc64.
27670         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27671         and memmove implementations.
27672         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27673         optimized multiarch memmove for POWER7/powerpc64.
27674         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27675         default multiarch memmove for powerpc64.
27676         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27677         multiarch for powerpc64.
27678         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27679         for POWER7/powerpc64.
27680         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27681         memmove for POWER7/powerpc64.
27682
27683         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27684         glibc default one.
27685
27686         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27687         __ELF_NATIVE_CLASS equal to 64.
27688
27689 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27690
27691         * sysdeps/nptl/lowlevellock.h: File removed.
27692
27693         * NEWS: NPTL is no longer an add-on!
27694         * nptl/internaltypes.h: Moved ...
27695         * sysdeps/nptl/internaltypes.h: ... here.
27696         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27697         * sysdeps/nptl/fork.c: Likewise.
27698         * sysdeps/nptl/gai_misc.h: Likewise.
27699         * sysdeps/nptl/librt-cancellation.c: Likewise.
27700         * sysdeps/nptl/jmp-unwind.c: Likewise.
27701         * sysdeps/nptl/setxid.h: Likewise.
27702         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27703         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27704         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27705         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27706         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27707         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27708         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27709         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27710         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27711         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27712         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27713         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27714         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27715         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27716         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27717         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27718         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27719         * nptl/Makeconfig: Moved ...
27720         * sysdeps/nptl/Makeconfig: ... here.
27721         * nptl/configure: File removed.
27722         * nptl/ANNOUNCE: File removed.
27723         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27724         * sysdeps/unix/sysv/linux/configure: Regenerated.
27725
27726         * nptl/Makefile (routines): Add libc_pthread_init,
27727         libc_multiple_threads, register-atfork and unregister-atfork.
27728         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27729         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27730         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27731         pthread-pi-defines.sym, structsem.sym.
27732         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27733         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27734         [$(subdir) = nptl] (tests): Add tst-setgetname.
27735         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27736         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27737         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27738         [!LIBC_SIGACTION]: Remove aliases.
27739         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27740         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27741         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27742         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27743         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27744         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27745         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27746         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27747         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27748         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27749         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27750         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27751         __libc_allocate_rtsig_private.
27752         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27753         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27754         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27755         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27756         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27757         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27758         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27759         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27760         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27761         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27762         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27763         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27764         * nptl/internaltypes.h: ... here.
27765         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27766         * sysdeps/nptl/jmp-unwind.c: ... here.
27767         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27768         * nptl/libc-lowlevellock.c: ... here.
27769         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27770         * nptl/libc_multiple_threads.c: ... here.
27771         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27772         * nptl/libc_pthread_init.c: ... here.
27773         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27774         * nptl/lowlevelbarrier.sym: ... here.
27775         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27776         * nptl/lowlevelcond.sym: ... here.
27777         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27778         * nptl/lowlevellock.c: ... here.
27779         * nptl/lowlevellock.h: Moved ...
27780         * sysdeps/nptl/lowlevellock.h: ... here.
27781         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27782         * nptl/lowlevelrobustlock.c: ... here.
27783         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27784         * nptl/lowlevelrobustlock.sym: ... here.
27785         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27786         * nptl/lowlevelrwlock.sym: ... here.
27787         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27788         * nptl/pt-fork.c: ... here.
27789         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27790         * nptl/pthread-pi-defines.sym: ... here.
27791         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27792         * nptl/pthread_attr_getaffinity.c: ... here.
27793         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27794         * nptl/pthread_attr_setaffinity.c: ... here.
27795         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27796         * nptl/pthread_mutex_cond_lock.c: ... here.
27797         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27798         Update #include.
27799         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27800         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27801         * nptl/pthread_once.c: ... here, replacing old file.
27802         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27803         * nptl/pthread_yield.c: ... here.
27804         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27805         * nptl/register-atfork.c: ... here.
27806         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27807         * nptl/sem_post.c: ... here.
27808         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27809         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27810         * nptl/sem_timedwait.c: ... here.
27811         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27812         * nptl/sem_trywait.c: ... here.
27813         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27814         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27815         * nptl/sem_wait.c: ... here.
27816         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27817         * nptl/structsem.sym: ... here.
27818         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27819         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27820         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27821         * nptl/unregister-atfork.c: ... here.
27822         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27823         * nptl/unwindbuf.sym: ... here.
27824         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27825         * sysdeps/nptl/fork.c: ... here.
27826         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27827         * sysdeps/nptl/fork.h: ... here.
27828         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27829         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27830         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27831         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27832         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27833         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27834         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27835         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27836         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27837         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27838         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27839         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27840         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
27841         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
27842         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
27843         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
27844         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
27845         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
27846         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
27847         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
27848         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
27849         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
27850         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
27851         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
27852         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
27853         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
27854         * sysdeps/unix/sysv/linux/raise.c: ... here.
27855         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
27856         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
27857         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
27858         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
27859         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
27860         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
27861         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
27862         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
27863         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
27864         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
27865         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
27866         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
27867         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
27868         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
27869         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
27870
27871 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
27872
27873         * sysdeps/generic/memcopy.h: Add comment for
27874         MEMCPY_OK_FOR_FWD_MEMMOVE.
27875
27876 2014-07-04  Will Newton  <will.newton@linaro.org>
27877
27878         * string/memchr.c: Merge from gnulib.
27879         [_LIBC]: Remove conditionals.
27880         (__ptr_t): Remove define.
27881         (LONG_MAX_32_BITS): Likewise.
27882         (LONG_MAX): Likewise.
27883         (MEMCHR): Use ANSI prototype and optimize algorithm.
27884
27885         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
27886
27887 2014-07-03  Roland McGrath  <roland@hack.frob.com>
27888
27889         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
27890         (lll_futex_timed_wait_bitset): Fix syscall argument count.
27891
27892         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
27893         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
27894         in a bare environment with no <stdlib.h> installed.
27895         * sysdeps/nptl/configure: Regenerated.
27896
27897         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
27898
27899         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
27900         AC_EGREP_CPP for kernel header checks, so they only succeed if
27901         including <linux/version.h> actually works right.
27902         * sysdeps/unix/sysv/linux/configure: Regenerated.
27903
27904         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
27905         value so it's not diagnosed as unused.
27906
27907         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
27908         thing) with "ifeq ($(subdir),rt)".
27909
27910 2014-07-03  Richard Henderson  <rth@redhat.com>
27911
27912         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
27913         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
27914         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
27915
27916         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
27917         (math_force_eval): New.
27918
27919         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
27920         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
27921
27922         * sysdeps/alpha/fpu/s_round.c: Remove file.
27923         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
27924
27925         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
27926         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
27927         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
27928         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
27929         (_dl_start, print_statistics): Likewise.
27930         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
27931         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
27932
27933         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27934         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27935         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27936         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27937         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27938         (HP_SMALL_TIMING_AVAIL): Define.
27939         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27940         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27941         (HP_SMALL_TIMING_AVAIL): Define.
27942         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27943         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27944
27945         * sysdeps/aarch64/hp-timing.h: New file.
27946
27947         * sysdeps/generic/hp-timing.h: Remove dead comment.
27948         * sysdeps/generic/hp-timing-common.h: New file.
27949         * sysdeps/alpha/hp-timing.h: Include it.
27950         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
27951         * sysdeps/i386/i686/hp-timing.h: Likewise.
27952         * sysdeps/ia64/hp-timing.h: Likewise.
27953         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
27954         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
27955         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
27956         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
27957         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
27958         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
27959         (hp_timing_t): New.
27960
27961         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
27962         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
27963         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
27964         * elf/rtld.c (_dl_start_final): Likewise.
27965         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
27966         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27967         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27968         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27969         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27970         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27971         (HP_TIMING_DIFF_INIT): Remove.
27972         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27973         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
27974         (HP_TIMING_DIFF_INIT): Remove.
27975         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
27976         * sysdeps/i386/i686/hp-timing.c: Remove file.
27977         * sysdeps/x86_64/hp-timing.c: Remove file.
27978         * sysdeps/ia64/hp-timing.c: Remove file.
27979         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
27980         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
27981         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
27982         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
27983
27984         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
27985         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
27986         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
27987         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27988         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
27989         (HP_TIMING_ACCUM): Remove.
27990         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27991         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
27992         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
27993
27994         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
27995         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
27996         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
27997         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
27998         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
27999         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28000         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28001         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28002
28003         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28004
28005 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28006
28007         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28008
28009 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28010
28011         Sync up with gettext.
28012         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28013         [_MSC_VER]: Include malloc.h
28014         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28015         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28016         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28017         TEMP_FAILURE_RETRY.  Cast return of alloca.
28018         [!_LIBC] Call gl_rwlock_init.
28019         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28020
28021 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28022
28023         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28024         before checking its value.
28025
28026 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28027
28028         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28029
28030         * debug/memcpy_chk.c: Don't include pagecopy.h.
28031         * debug/mempcpy_chk.c: Likewise.
28032         * string/memcpy.c: Likewise.
28033         * string/memmove.c: Likewise.
28034         * sysdeps/powerpc/memmove.c: Likewise.
28035         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28036         definition of PAGE_COPY_FWD_MAYBE here...
28037         * sysdeps/generic/pagecopy.h: ... from here.
28038         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28039
28040 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28041             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28042
28043         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28044         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28045         optimizations.
28046         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28047         (__libc_ifunc_impl_list): Likewise.
28048         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28049         multiarch strcat for PPC64.
28050         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28051         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28052
28053 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28054
28055         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28056
28057 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28058
28059         * intl/loadmsgcat.c: Remove declaration of
28060         get_sysdep_segment_value.
28061         (get_sysdep_segment_value): Use ISO C style.
28062         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28063         semicolon.  Fix typo and formatting in comment.
28064         (_nl_unload_domain): Use ISO C style.
28065
28066         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28067
28068 2014-07-02  Will Newton  <will.newton@linaro.org>
28069
28070         * malloc/obstack.c: Merge from gnulib master.
28071         [HAVE_CONFIG_H]: Remove conditional code.
28072         [!_LIBC]: Include config.h.
28073         [!ELIDE_CODE]: Don't include inttypes.h, include
28074         stdint.h unconditionally.
28075         (print_and_abort): Mark as _Noreturn.
28076         (_obstack_allocated_p): Mark as __attribute_pure__.
28077         (obstack_free): Rename to __obstack_free.
28078         [!__attribute__]: Remove conditional code.
28079         * malloc/obstack.h: Merge from gnulib master.
28080         [__cplusplus]: Move conditional down.
28081         [!__attribute_pure__]: Define __attribute_pure__ here
28082         if it is not already defined.
28083         (_obstack_memory_used): Mark as __attribute_pure__.
28084         [!__obstack_free]: Define as obstack_free.
28085         [__GNUC__]: Remove check for ancient NeXT gcc.
28086
28087 2014-07-02  Will Newton  <will.newton@linaro.org>
28088             Paul Eggert  <eggert@cs.ucla.edu>
28089
28090         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28091
28092 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28093
28094         * resolv/gethnamaddr.c: Add comment warning that the file is
28095         not maintained.
28096
28097 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28098
28099         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28100         entries.
28101
28102         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28103         entry for aio_cancel and aio_cancel64.
28104         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28105         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28106         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28107         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28108         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28109         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28110         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28111         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28112         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28113         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28114         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28115         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28116         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28117
28118 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28119
28120         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28121         * nptl/pthread_mutex_lock.c: Likewise.
28122         * nptl/pthread_mutex_timedlock.c: Likewise.
28123         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28124
28125 2014-07-01  Richard henderson  <rth@redhat.com>
28126
28127         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28128         (__isnan, __isnanl): Remove.
28129         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28130
28131         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28132
28133 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28134
28135         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28136
28137 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28138
28139         * resolv/nss_dns/dns-host.c (getanswer_r)
28140         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28141
28142 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28143
28144         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28145         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28146         undefine.
28147         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28148         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28149
28150 2014-07-01  Roland McGrath <roland@hack.frob.com>
28151
28152         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28153         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28154
28155         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28156         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28157
28158         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28159         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28160         ... here.
28161         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28162         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28163
28164         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28165         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28166         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28167         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28168
28169         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28170         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28171         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28172         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28173         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28174         Moved ...
28175         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28176         ... here.
28177         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28178         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28179         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28180         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28181         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28182         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28183         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28184         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28185         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28186         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28187         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28188         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28189         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28190         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28191         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28192         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28193         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28194         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28195         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28196         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28197         ... here.
28198         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28199         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28200         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28201         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28202         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28203         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28204         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28205         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28206
28207 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28208
28209         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28210         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28211         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28212         Add sysdep.
28213
28214 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28215
28216         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28217
28218 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28219
28220         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28221         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28222
28223         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28224
28225         * sysdeps/arm/libm-test-ulps: Regenerated.
28226
28227 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28228             Roland McGrath <roland@hack.frob.com>
28229
28230         * test-skeleton.c (signal_handler): Kill the whole process group
28231         before killing the child individually.
28232         (main): Report any failure on `setpgid'.
28233
28234 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28235
28236         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28237         from _TLS_H to _ARM_NPTL_TLS_H.
28238         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28239         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28240
28241 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28242
28243         [BZ #16539]
28244         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28245         (__expm1l): Return argument unchanged when small but not
28246         subnormal.
28247
28248         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28249         include macro name.
28250         (_FP_UNPACK_RAW_1_P): Likewise.
28251         (_FP_PACK_RAW_1): Likewise.
28252         (_FP_PACK_RAW_1_P): Likewise.
28253         (_FP_MUL_MEAT_1_wide): Likewise.
28254         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28255         (_FP_MUL_MEAT_1_hard): Likewise.
28256         (_FP_DIV_MEAT_1_imm): Likewise.
28257         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28258         (_FP_DIV_MEAT_1_udiv): Likewise.
28259         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28260         (_FP_UNPACK_RAW_2): Likewise.
28261         (_FP_UNPACK_RAW_2_P): Likewise.
28262         (_FP_PACK_RAW_2): Likewise.
28263         (_FP_PACK_RAW_2_P): Likewise.
28264         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28265         (_FP_MUL_MEAT_2_wide): Likewise.
28266         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28267         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28268         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28269         (_FP_MUL_MEAT_2_gmp): Likewise.
28270         (_FP_DIV_MEAT_2_udiv): Likewise.
28271         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28272         (_FP_FRAC_SRL_4): Likewise.
28273         (_FP_FRAC_SRST_4): Likewise.
28274         (_FP_FRAC_SRS_4): Likewise.
28275         (_FP_UNPACK_RAW_4): Likewise.
28276         (_FP_UNPACK_RAW_4_P): Likewise.
28277         (_FP_PACK_RAW_4): Likewise.
28278         (_FP_PACK_RAW_4_P): Likewise.
28279         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28280         (_FP_MUL_MEAT_4_wide): Likewise.
28281         (_FP_MUL_MEAT_4_gmp): Likewise.
28282         (umul_ppppmnnn): Likewise.
28283         (_FP_DIV_MEAT_4_udiv): Likewise.
28284         (__FP_FRAC_ADD_4): Likewise.
28285         (__FP_FRAC_SUB_3): Likewise.
28286         (__FP_FRAC_SUB_4): Likewise.
28287         (__FP_FRAC_DEC_3): Likewise.
28288         (__FP_FRAC_DEC_4): Likewise.
28289         (__FP_FRAC_ADDI_4): Likewise.
28290         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28291         (_FP_FRAC_SRL_8): Likewise.
28292         (_FP_FRAC_SRS_8): Likewise.
28293
28294         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28295         include macro name.
28296         (FP_UNPACK_RAW_EP): Likewise.
28297         (FP_PACK_RAW_E): Likewise.
28298         (FP_PACK_RAW_EP): Likewise.
28299         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28300         (_FP_ISSIGNAN): Likewise.
28301         (_FP_ADD_INTERNAL): Likewise.
28302         (_FP_FMA): Likewise.
28303         (_FP_CMP): Likewise.
28304         (_FP_SQRT): Likewise.
28305         (_FP_TO_INT): Likewise.
28306         (_FP_FROM_INT): Likewise.
28307         (FP_EXTEND): Likewise.
28308         (_FP_DIV_MEAT_N_loop): Likewise.
28309
28310 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28311
28312         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28313         throughout.
28314
28315 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28316
28317         [BZ #17097]
28318         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28319         result with correct sign in case of exponents that produce
28320         overflow except for X very close to 1.
28321
28322 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         mktime: merge #if/#ifdef usage from glibc
28325         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28326         as that works with both Glibc's and Gnulib's style.
28327         See thread starting at Siddhesh Poyarekar's bug report at:
28328         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28329
28330 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28331
28332         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28333         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28334         * sysdeps/tile/tilegx/memmove.c: Remove file.
28335
28336 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28337
28338         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28339         abi-name definition.
28340         * scripts/soversions.awk: Do not handle or generate ABI lines.
28341         * shlib-versions: Remove ABI entries.
28342         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28343         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28344
28345 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28346
28347         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28348         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28349         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28350         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28351         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28352         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28353         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28354         Moved ...
28355         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28356         ... here.
28357         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28358         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28359         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28360         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28361         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28362         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28363         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28364         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28365         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28366         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28367         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28368         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28369         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28370         Moved ...
28371         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28372         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28373         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28374         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28375         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28376         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28377         Moved ...
28378         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28379         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28380         Moved ...
28381         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28382         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28383         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28384         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28385         Moved ...
28386         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28387         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28388         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28389         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28390         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28391         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28392         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28393         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28394         Moved ...
28395         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28396         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28397         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28398         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28399         Moved ...
28400         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28401         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28402         Moved ...
28403         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28404         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28405         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28406         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28407         Moved ...
28408         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28409         ... here.
28410         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28411         Identical file removed.
28412         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28413         Moved ...
28414         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28415         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28416         Identical file removed.
28417         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28418         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28419         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28420         Moved ...
28421         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28422         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28423         Identical file removed.
28424         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28425         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28426         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28427         Identical file removed.
28428         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28429         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28430         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28431         Identical file removed.
28432         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28433         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28434         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28435         Identical file removed.
28436         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28437         Moved ...
28438         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28439         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28440         Identical file removed.
28441         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28442         Moved ...
28443         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28444         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28445         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28446         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28447         Identical file removed.
28448         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28449         Moved ...
28450         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28451         ... here.
28452         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28453         Identical file removed.
28454         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28455         Moved ...
28456         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28457         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28458         Identical file removed.
28459         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28460         Moved ...
28461         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28462         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28463         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28464         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28465         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28466         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28467         Moved ...
28468         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28469         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28470         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28471
28472         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28473         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28474         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28475         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28476         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28477
28478 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28479
28480         [BZ #17092]
28481         * nscd/nscd.c (monitor_child): Return exit status of child
28482         instead of return value from wait syscall.
28483
28484 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28485
28486         * configure.ac (libc_commonpagesize): Remove variable.
28487         (libc_relro_required): Likewise.
28488         (libc_cv_z_relro): Remove configure test.
28489         * configure: Regenerated.
28490         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28491         variable.
28492         (libc_relro_required): Likewise.
28493         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28494         (libc_relro_required): Likewise.
28495         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28496         (libc_relro_required): Likewise.
28497         * sysdeps/arm/preconfigure: Regenerated.
28498         * sysdeps/ia64/preconfigure: Remove file.
28499         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28500         variable.
28501         (libc_relro_required): Likewise.
28502
28503         [BZ #16561]
28504         [BZ #16562]
28505         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28506         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28507         recompute overflowing results in original rounding mode.
28508         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28509         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28510         recompute overflowing results in original rounding mode.
28511         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28512         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28513         recompute overflowing results in original rounding mode.
28514         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28515         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28516         recompute overflowing results in original rounding mode.
28517         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28518         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28519         recompute overflowing results in original rounding mode.
28520         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28521         (libc_feholdsetround_ctx): New macro.
28522         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28523         * sysdeps/i386/fpu/libm-test-ulps: Update.
28524         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28525
28526 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28527
28528         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28529         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28530         corresponding .cpsetup call.
28531
28532 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28533
28534         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28535         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28536         * sysdeps/arm/Makefile [$(subdir) = csu]
28537         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28538         (static-only-routines): Add aeabi_read_tp here.
28539         (shared-only-routines): Add libc-aeabi_read_tp here.
28540         (CFLAGS-libc-start.c): Add -fexceptions here.
28541         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28542         (sysdep_routines, static-only-routines, shared-only-routines):
28543         Don't add to these here.
28544         (CFLAGS-libc-start.c): Likewise.
28545
28546         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28547         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28548         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28549         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28550         * sysdeps/arm/Makefile [$(subdir) = rt]
28551         (librt-sysdep_routines, librt-shared-only-routines):
28552         Append rt-aeabi_unwind_cpp_pr1 here.
28553         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28554         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28555         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28556         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28557         Append nptl-aeabi_unwind_cpp_pr1 here.
28558         (tests): Filter out tst-cleanupx4 here.
28559         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28560         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28561         Don't do those here.
28562
28563 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28564
28565         * scripts/list-sources.sh: Do not handle ports specially.
28566
28567 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28568
28569         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28570         * sysdeps/arm/feupdateenv.c: Likewise.
28571
28572         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28573
28574 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28575
28576         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28577         trailing whitespace removed.
28578         * scripts/config.guess: Update to version 2014-03-23.
28579         * scripts/config.sub: Update to version 2014-05-01
28580         * scripts/install-sh: Update to version 2013-12-25.23.
28581         * scripts/move-if-change: Update from gnulib.
28582
28583 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28584
28585         * debug/memmove_chk.c: Remove pagecopy.h include.
28586
28587 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28588
28589         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28590         identical to gnulib mktime.
28591
28592 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28593
28594         * configure.ac: Do not test for machine being rs6000.  Do not test
28595         for powerpc*-*soft.
28596         * configure: Regenerated.
28597
28598         [BZ #11505]
28599         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28600         test.
28601         * configure: Regenerated.
28602         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28603         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28604         Remove configure test.
28605         * sysdeps/arm/configure: Regenerated.
28606         * sysdeps/nptl/configure.ac: Do not check
28607         libc_cv_asm_cfi_directives.
28608         * sysdeps/nptl/configure: Regenerated.
28609         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28610         * sysdeps/x86_64/nptl/configure: Remove generated file.
28611         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28612         unconditional.
28613         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28614
28615 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28616
28617         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28618         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28619         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28620         it is defined.
28621
28622         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28623         instead of whether it is defined.
28624         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28625         * sysdeps/hppa/dl-machine.h: Likewise.
28626         * sysdeps/ia64/dl-machine.h: Likewise.
28627         * sysdeps/m68k/dl-machine.h: Likewise.
28628         * sysdeps/microblaze/dl-machine.h: Likewise.
28629         * sysdeps/mips/dl-machine.: Likewise.
28630         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28631         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28632         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28633         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28634         * sysdeps/sh/dl-machine.h: Likewise.
28635         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28636         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28637         * sysdeps/tile/dl-machine.h: Likewise.
28638         * sysdeps/x86_64/dl-machine.h: Likewise.
28639
28640         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28641         code.
28642         (verify_persistent_db): Likewise.
28643
28644 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28645
28646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28647         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28649         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28651         Moved ...
28652         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28653         ... here.
28654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28655         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28656         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28657         Identical file removed.
28658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28659         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28661         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28663         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28665         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28667         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28669         Moved ...
28670         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28672         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28673         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28674         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28676         Moved ...
28677         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28679         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28681         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28683         Identical file removed.
28684         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28685         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28686         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28687         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28688         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28689         Moved ...
28690         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28691         ... here.
28692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28693         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28694         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28695         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28697         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28699         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28701         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28702         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28703         Moved ...
28704         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28706         Moved ...
28707         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28708         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28709         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28711         Moved ...
28712         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28713         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28714         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28715
28716         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28717         folded into ...
28718         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28719         * sysdeps/unix/sysv/linux/s390/Versions
28720         (libpthread: GLIBC_2.19): New version set.
28721         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28722         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28723         (librt: GLIBC_2.3.3): New version set.
28724         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28725         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28726         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28727         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28728         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28729         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28730         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28731         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28732         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28733         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28734         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28735         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28736         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28737         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28738         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28739         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28740         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28741         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28742         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28743         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28744         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28745         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28746         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28747         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28748         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28749         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28750         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28751         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28752         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28753         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28754         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28755         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28756         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28757         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28758         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28759         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28760         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28761         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28762         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28763         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28764         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28765         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28766         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28767         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28768         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28769
28770         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28771         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28772         (__libc_vfork): Define the function under this name.
28773         [!NOT_IN_libc] (__vfork): Make this an alias.
28774         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28775         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28776         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28777         (__libc_vfork): Define the function under this name.
28778         [!NOT_IN_libc] (__vfork): Make this an alias.
28779         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28780         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28781         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28782         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28783         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28784         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28785
28786         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28787         code that was previously under [RESET_PID].
28788         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28789         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28790         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28791
28792         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28793         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28794         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28795         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28796         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28797         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28798         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28799         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28800         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28801         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28802         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28803         Moved ...
28804         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28805         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28806         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28807         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28808         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28809         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28810         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28811         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28812         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28813         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28814         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28815         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28816         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28817         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28818         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28819         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28820         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28821         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28822         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28823         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28824         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28825         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28826         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28827         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28828         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28829         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28830         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28831         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28832         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28833
28834 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28835
28836         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28837         that was previously under [RESET_PID].
28838         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28839
28840 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
28841
28842         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
28843         not undefine and redefine.
28844         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
28845         [O_CLOEXEC]: Make code unconditional.
28846         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
28847         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
28848         <kernel-features.h>.
28849         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
28850         conditional variable definition.
28851         (shm_open) [O_CLOEXEC]: Make code unconditional.
28852         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
28853         code.
28854
28855         * configure.ac (USE_REGPARMS): Don't define here.
28856         * configure: Regenerated.
28857         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
28858         * sysdeps/i386/configure: Regenerated.
28859
28860         * nptl/createthread.c: Don't include kernel-features.h.
28861         * nptl/pthread_cancel.c: Likewise.
28862         * nptl/pthread_condattr_setclock.c: Likewise.
28863         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
28864         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
28865         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
28866         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
28867         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
28868         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
28869         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
28870         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
28871         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
28872         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
28873         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
28874         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
28875         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
28876         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
28877         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
28878         * nscd/gai.c: Likewise.
28879         * nss/nss_db/db-open.c: Likewise.
28880         * sysdeps/generic/ldsodefs.h: Likewise.
28881         * sysdeps/sh/nptl/tls.h: Likewise.
28882         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28883         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
28884         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
28885         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
28886         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
28887         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28888         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
28889         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
28890         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
28891         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
28892         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
28893         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
28894         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
28895         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
28896         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
28897         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
28898         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
28899         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
28900         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
28901         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
28902         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
28903         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
28904         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
28905         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
28906         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
28907         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
28908         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
28909         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
28910         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
28911         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
28912         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
28913         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
28914         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
28915         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28916         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28917         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28918         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28919         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
28920         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
28921         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
28922         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
28923         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
28924         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
28925         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
28926         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
28927         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
28928         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
28929         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
28930         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
28931         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
28932         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
28933         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
28934         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
28935         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28936         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
28937         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
28938         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
28939         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
28940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
28941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
28942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
28943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
28944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
28945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
28946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
28947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
28948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
28949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
28950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
28951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
28952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
28953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
28954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
28955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
28956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
28957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
28958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
28959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
28960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
28961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
28962         * sysdeps/unix/sysv/linux/pread.c: Likewise.
28963         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
28964         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
28965         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
28966         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
28967         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
28968         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
28969         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
28970         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
28971         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
28972         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
28973         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
28974         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
28975         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
28976         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
28977         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
28978         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
28979         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
28980         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
28981         * sysdeps/unix/sysv/linux/system.c: Likewise.
28982         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
28983         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
28984         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
28985         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
28986         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
28987         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28988         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
28989
28990         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
28991         * configure: Regenerated.
28992         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
28993
28994         * configure.ac (base_machine): Do not set specially for particular
28995         machines here.
28996         * configure: Regenerated.
28997         * sysdeps/powerpc/preconfigure: Move machine and base_machine
28998         settings from configure.ac.
28999         * sysdeps/i386/preconfigure: New file.
29000         * sysdeps/s390/preconfigure: Likewise.
29001         * sysdeps/sh/preconfigure: Likewise.
29002         * sysdeps/sparc/preconfigure: Likewise.
29003
29004 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29005
29006         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29007         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29008         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29009         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29010         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29011         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29012         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29013         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29014         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29015         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29016         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29017         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29018         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29019         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29020         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29021         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29022         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29023         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29024         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29025
29026         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29027         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29028         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29029         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29030         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29031         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29032         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29033         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29034         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29035         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29036         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29037         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29038         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29039         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29040         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29041         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29042         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29043         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29044         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29045         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29046         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29047         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29048         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29049         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29050         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29051         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29052         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29053         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29054         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29055         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29056         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29057         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29058         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29059         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29060         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29061         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29062         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29063         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29064
29065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29066         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29068         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29069         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29070         Moved ...
29071         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29072         ... here.
29073         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29074         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29076         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29077         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29078         Moved ...
29079         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29081         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29082         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29083         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29084         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29085         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29086         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29087         Moved ...
29088         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29089         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29090         Moved ...
29091         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29093         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29094         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29095         Moved ...
29096         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29097         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29098         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29099         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29100         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29101         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29102         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29103         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29104         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29105         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29106         Moved ...
29107         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29108         ... here.
29109         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29110         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29111         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29112         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29114         Moved ...
29115         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29116         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29117         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29119         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29120         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29121         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29122         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29123         Moved ...
29124         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29125         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29126         Moved ...
29127         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29128         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29129         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29130         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29131         Moved ...
29132         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29134         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29135         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29136         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29137
29138 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29139
29140         * timezone/checktab.awk: Update from tzcode 2014e.
29141         * timezone/private.h: Likewise.
29142         * timezone/tzfile.h: Likewise.
29143         * timezone/zdump.c: Likewise.
29144         * timezone/zic.c: Likewise.
29145
29146         * sysdeps/unix/sysv/linux/kernel-features.h
29147         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29148         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29149         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29150         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29151         Remove conditional code.
29152
29153 2014-06-25  Will Newton  <will.newton@linaro.org>
29154
29155         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29156         (_dl_arm_cap_flags): Add HWCAP2 values.
29157         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29158         (_DL_HWCAP_COUNT): Increase to 37.
29159         (_DL_HWCAP_LAST): New define.
29160         (_DL_HWCAP2_LAST): New define.
29161         (_dl_procinfo): Add support for printing
29162         AT_HWCAP2 entries.
29163         (_dl_string_hwcap): Use _dl_hwcap_string.
29164
29165 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29166
29167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29168
29169 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29170
29171         * README: Do not mention ports directory.
29172
29173         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29174         Remove macro.
29175         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29176         <kernel-features.h>.
29177         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29178         conditional variable definition.
29179         (__futimes): Update comment.
29180         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29181         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29182
29183         [BZ #16560]
29184         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29185         arguments close to 0.
29186         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29187         Likewise.
29188         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29189         Likewise.
29190         * math/auto-libm-test-in: Add more tests of exp10.
29191         * math/auto-libm-test-out: Regenerated.
29192         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29193
29194         * sysdeps/unix/sysv/linux/kernel-features.h
29195         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29196         * sysdeps/unix/sysv/linux/readv.c: Do not include
29197         <kernel-features.h>.
29198         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29199         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29200         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29201         unconditional.
29202         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29203         conditional code.
29204         * sysdeps/unix/sysv/linux/writev.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_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29209         unconditional.
29210         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29211         conditional code.
29212
29213 2014-06-25  Will Newton  <will.newton@linaro.org>
29214
29215         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29216         comment changes throughout the file.  Remove checks
29217         for HAVE_*_H definitions that are not required.
29218         (__gen_tempname): Call abort if an unknown kind value is
29219         passed.
29220
29221 2014-06-25  Andreas Schwab  <schwab@suse.de>
29222
29223         [BZ #17086]
29224         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29225         scalbln, scalblnf, scalblnl in libc.
29226
29227 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29228
29229         [BZ #17086]
29230         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29231         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29232         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29233
29234 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29235
29236         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29237         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29238         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29239         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29240         Update #include.
29241         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29242         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29243         Update #include.
29244         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29245         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29246         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29247         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29248         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29249         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29250         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29251         * sysdeps/x86/bits/semaphore.h: ... here.
29252         * sysdeps/x86/nptl/elide.h: Moved ...
29253         * sysdeps/x86/elide.h: ... here.
29254         * sysdeps/x86_64/nptl/Implies: File removed.
29255         * sysdeps/i386/nptl/Implies: File removed.
29256
29257 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29258
29259         [BZ #16539]
29260         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29261         return the argument for normal arguments with exponent below -64.
29262         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29263         Likewise.
29264         * math/auto-libm-test-in: Add another test of expm1.
29265         * math/auto-libm-test-out: Regenerated.
29266
29267         [BZ #16287]
29268         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29269         calling __erfcl for arguments at least 16.
29270         * math/auto-libm-test-in: Add more tests of erf.
29271         * math/auto-libm-test-out: Regenerated.
29272
29273         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29274         individual architectures.
29275         * sysdeps/unix/sysv/linux/configure: Regenerated.
29276         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29277         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29278         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29279         (ldd_rewrite_script): Define variable.
29280         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29282         file.
29283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29284         generated file.
29285         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29286         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29287         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29288         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29289         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29290         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29291         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29292         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29293
29294 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29295
29296         [BZ #17084]
29297         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29298         Rename member __data.d to __data.__elision_data.
29299
29300 2014-06-24  Wilco  <wdijkstr@arm.com>
29301
29302         * NEWS: Add 16918 to fixed bug list.
29303
29304 2014-06-24  Wilco  <wdijkstr@arm.com>
29305
29306         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29307
29308 2014-06-24  Wilco  <wdijkstr@arm.com>
29309
29310         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29311         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29312         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29313         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29314         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29315         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29316         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29317         Use _FPU_MASK_RM.
29318
29319 2014-06-24  Wilco  <wdijkstr@arm.com>
29320
29321         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29322
29323 2014-06-24  Wilco  <wdijkstr@arm.com>
29324
29325         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29326         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29327         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29328         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29329
29330 2014-06-24  Wilco  <wdijkstr@arm.com>
29331
29332         [BZ #16918]
29333         * sysdeps/arm/feupdateenv.c (feupdateenv):
29334         Rewrite to reduce FPSCR accesses and fix return value.
29335
29336 2014-06-24  Wilco  <wdijkstr@arm.com>
29337
29338         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29339         Optimize to avoid unnecessary FPSCR writes.
29340         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29341         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29342         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29343         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29344
29345 2014-06-24  Wilco  <wdijkstr@arm.com>
29346
29347         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29348         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29349         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29350         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29351         Call libc_fetestexcept_vfp.
29352         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29353         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29354         __SOFTFP__ ifdef so that they can be built for softfp.
29355
29356 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29357
29358         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29359         argument type signed char.
29360
29361         * Makerules (check-abi): Dump diff of symlist if the test
29362         fails.
29363
29364 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29365
29366         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29367         using abort.
29368
29369         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29370         Remove unused variable ST.
29371
29372 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29373
29374         [BZ #16354]
29375         [BZ #17061]
29376         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29377         small arguments before calling __expm1.
29378         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29379         small arguments before calling __expm1f.
29380         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29381         small arguments before calling __expm1l.
29382         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29383         Likewise.
29384         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29385         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29386         spurious underflow for some cosh tests.
29387         * math/auto-libm-test-out: Regenerated.
29388         * sysdeps/i386/fpu/libm-test-ulps: Update.
29389
29390         [BZ #17050]
29391         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29392         (__ieee754_y1): Set errno if return value overflows.
29393         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29394         (__ieee754_y1f): Set errno if return value overflows.
29395         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29396         (__ieee754_y1l): Set errno if return value overflows.
29397         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29398         (__ieee754_y1l): Set errno if return value overflows.
29399         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29400         * math/auto-libm-test-out: Regenerated.
29401
29402         * math/gen-auto-libm-tests.c: Document use of
29403         ignore-zero-inf-sign.
29404         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29405         (input_flags): Add ignore-zero-inf-sign.
29406         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29407         * math/gen-libm-test.pl (generate_testfile): Handle
29408         ignore-zero-inf-sign.
29409         * math/auto-libm-test-in: Mark some cpow tests with
29410         ignore-zero-inf-sign and some with xfail-rounding.
29411         * math/auto-libm-test-out: Regenerated.
29412         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29413         * sysdeps/i386/fpu/libm-test-ulps: Update.
29414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29415
29416         [BZ #16315]
29417         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29418         overflowing or underflowing operations take place with sign of
29419         result.
29420         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29421         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29422         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29423         (__ieee754_pow): Recompute overflowing and underflowing results in
29424         original rounding mode.
29425         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29426         (__powl_helper): Allow negative argument X and scale negated value
29427         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29428         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29429         overflowing or underflowing operations take place with sign of
29430         result.
29431         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29432         Include <math.h>.
29433         * math/auto-libm-test-in: Add more tests of pow.
29434         * math/auto-libm-test-out: Regenerated.
29435         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29436         (pow_tonearest_test_data): Remove.
29437         (pow_test_tonearest): Likewise.
29438         (pow_towardzero_test_data): Likewise.
29439         (pow_test_towardzero): Likewise.
29440         (pow_downward_test_data): Likewise.
29441         (pow_test_downward): Likewise.
29442         (pow_upward_test_data): Likewise.
29443         (pow_test_upward): Likewise.
29444         (main): Don't call removed functions.
29445         * sysdeps/i386/fpu/libm-test-ulps: Update.
29446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29447
29448 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29449
29450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29451         Moved ...
29452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29454         Moved ...
29455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29457         Moved ...
29458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29460         Moved ...
29461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29463         File removed.
29464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29465         File removed.
29466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29467         File removed.
29468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29469         File removed.
29470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29471         File removed.
29472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29473         File removed.
29474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29475         File removed.
29476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29477         File removed.
29478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29479         File removed.
29480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29481         File removed.
29482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29483         File removed.
29484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29485         File removed.
29486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29487         Moved ...
29488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29490         Moved ...
29491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29492         ... here.
29493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29494         Moved ...
29495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29497         Moved ...
29498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29500         Moved ...
29501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29503         Moved ...
29504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29506         Moved ...
29507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29509         Moved ...
29510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29512         Moved ...
29513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29516         ... here.
29517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29518         Moved ...
29519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29521         Moved ...
29522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29523         ... here.
29524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29525         Moved ...
29526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29527         ... here.
29528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29529         Moved ...
29530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29531         ... here.
29532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29533         Moved ...
29534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29536         Moved ...
29537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29541         Moved ...
29542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29543         ... here.
29544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29545         Moved ...
29546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29547         ... here.
29548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29549         Moved ...
29550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29552         Moved ...
29553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29555         Moved ...
29556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29558         Moved ...
29559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29561         Moved ...
29562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29563         ... here.
29564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29565         Moved ...
29566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29568         Moved ...
29569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29571         Moved ...
29572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29574         Moved ...
29575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29579         Moved ...
29580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29582         Moved ...
29583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29585         Moved ...
29586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29587         ... here.
29588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29589         Moved ...
29590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29591         ... here.
29592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29593         Moved ...
29594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29595         ... here.
29596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29597         Moved ...
29598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29600         Moved ...
29601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29603         Moved ...
29604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29606         Moved ...
29607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29608         ... here.
29609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29610         Moved ...
29611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29612         ... here.
29613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29614         Moved ...
29615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29616         ... here.
29617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29618         Moved ...
29619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29621         Moved ...
29622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29623
29624 2014-06-23  Will Newton  <will.newton@linaro.org>
29625             Wilco  <wdijkstr@arm.com>
29626
29627         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29628         implementation.  Include get-rounding-mode.h.
29629         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29630         [!libc_feholdsetround_noex_ctx]: Define
29631         libc_feholdsetround_noex_ctx.
29632         [!libc_feholdsetround_noexf_ctx]: Define
29633         libc_feholdsetround_noexf_ctx.
29634         [!libc_feholdsetround_noexl_ctx]: Define
29635         libc_feholdsetround_noexl_ctx.
29636         (libc_feholdsetround_ctx): New function.
29637         (libc_feresetround_ctx): New function.
29638         (libc_feholdsetround_noex_ctx): New function.
29639         (libc_feresetround_noex_ctx): New function.
29640
29641 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29642
29643         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29644         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29645         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29646         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29647         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29648         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29649
29650         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29651         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29652         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29653         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29654         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29655         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29656         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29657         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29658         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29659         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29660         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29661         Moved ...
29662         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29663         ... here.
29664         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29665         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29666         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29667         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29668         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29669         Moved ...
29670         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29671         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29672         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29673         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29674         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29675         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29676         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29677         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29678         Moved ...
29679         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29680         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29681         Moved ...
29682         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29683         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29684         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29685         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29686         Moved ...
29687         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29688         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29689         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29690         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29691         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29692         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29693         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29694         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29695         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29696         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29697         Moved ...
29698         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29699         ... here.
29700         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29701         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29702         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29703         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29704         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29705         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29706         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29707         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29708         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29709         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29710         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29711         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29712         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29713         Moved ...
29714         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29715         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29716         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29717         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29718         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29719         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29720         Moved ...
29721         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29722         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29723         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29724         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29725         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29726
29727         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29728         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29729         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29730         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29731         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29732         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29733         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29734         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29735         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29736         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29737         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29738         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29739         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29740         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29741         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29742         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29743         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29744         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29745         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29746         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29747         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29748         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29749         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29750         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29751         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29752         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29753         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29754         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29755
29756 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29757
29758         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29759         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29760         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29761         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29762         (IPV6_PMTUDISC_INTERFACE): Likewise.
29763         (IPV6_PMTUDISC_OMIT): Likewise.
29764
29765 2014-06-23  Andreas Schwab  <schwab@suse.de>
29766
29767         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29768         Remove unused errout label.
29769
29770 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29771
29772         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29773         macro: hardware supports Vector Crypto instructions.
29774
29775 2014-06-23  Will Newton  <will.newton@linaro.org>
29776
29777         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29778         rather than __builtin_expect.
29779
29780         * elf/dl-lookup.c (undefined_msg): Remove variable.
29781         (_dl_lookup_symbol_x): Replace undefined_msg with string
29782         literal.
29783
29784         * elf/dl-lookup.c (do_lookup_unique): New function.
29785         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29786         to a separate function.
29787
29788 2014-06-23  Andreas Schwab  <schwab@suse.de>
29789
29790         [BZ #17079]
29791         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29792         before reading the next line.
29793
29794 2014-06-23  Will Newton  <will.newton@linaro.org>
29795
29796         * test-skeleton.c (signal_handler): Use printf and %m
29797         rather than perror.  Use printf rather than fprintf to
29798         stderr.  Use puts rather than fputs to stderr.
29799         (main): Likewise.
29800
29801 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29802
29803         * nscd/nscd.c (thread_info_t): Remove typedef.
29804         (thread_info): Remove variable.
29805
29806 2014-06-21  Allan McRae  <allan@archlinux.org>
29807
29808         * NEWS: Mention CVE-2014-4043.
29809
29810 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29811
29812         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29813         * nptl/smp.h: ... here.
29814
29815         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29816
29817         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29818         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29819         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29820         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29821
29822         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29823         * nptl/stack-aliasing.h: New file.
29824         * sysdeps/i386/i686/stack-aliasing.h: New file.
29825         * sysdeps/i386/i686/nptl/Makefile: File removed.
29826         * sysdeps/x86_64/stack-aliasing.h: New file.
29827         * sysdeps/x86_64/nptl/Makefile
29828         (CFLAGS-pthread_create.c): Variable removed.
29829
29830         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29831         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29832         old file.
29833         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29834         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29835         old file.
29836
29837 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29838
29839         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29840         (__ASSUME_SIGFRAME_V2): Remove macro.
29841         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
29842         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
29843         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
29844         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
29845         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
29846         Declare as function.  Remove conditional macro definitions.
29847         (__default_rt_sa_restorer): Likewise.
29848         (__default_sa_restorer_v1): Remove declaration.
29849         (__default_sa_restorer_v2): Likewise.
29850         (__default_rt_sa_restorer_v1): Likewise.
29851         (__default_rt_sa_restorer_v2): Likewise.
29852         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
29853         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
29854         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
29855
29856 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29857
29858         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
29859         (libpthread-routines): Add sysdep.
29860         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
29861         * sysdeps/unix/sysv/linux/sparc/Versions
29862         (libpthread: GLIBC_2.3.3): New version set.
29863         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
29864         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
29865         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
29866         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
29867         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
29868         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
29869         Moved ...
29870         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
29871         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
29872         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
29873         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
29874         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
29875         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
29876         * sysdeps/sparc/nptl/sem_init.c: ... here.
29877         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
29878         * sysdeps/sparc/nptl/sem_post.c: ... here.
29879         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
29880         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
29881         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
29882         * sysdeps/sparc/nptl/sem_wait.c: ... here.
29883         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
29884         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
29885         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
29886         (libpthread-routines): Add cpu_relax.
29887         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
29888         File removed.
29889         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
29890         (librt: GLIBC_2.3.3): New version set.
29891         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
29892         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
29893         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
29894         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
29895         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
29896         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
29897         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
29898         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
29899         Moved ...
29900         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
29901         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
29902         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
29903         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
29904         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
29905         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
29906         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
29907         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
29908         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
29909         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
29910         Moved ...
29911         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
29912         Update #include.
29913         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
29914         Moved ...
29915         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
29916         Update #include.
29917         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
29918         Moved ...
29919         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
29920         Update #include.
29921         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
29922         Moved ...
29923         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
29924         Update #include.
29925         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
29926         Moved ...
29927         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
29928         Update #include.
29929         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
29930         Moved ...
29931         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
29932         Update #include.
29933         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
29934         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
29935         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
29936         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
29937         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
29938         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
29939         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
29940         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
29941         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
29942         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
29943         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
29944         Moved ...
29945         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
29946         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
29947         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
29948         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
29949         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
29950
29951 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
29952
29953         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
29954         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
29955         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
29956         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
29957         * nscd/nscd.c: Likewise.
29958         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
29959         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
29960         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
29961         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
29962
29963         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
29964         <kernel-features.h>.
29965         (init_mq_netlink): Remove conditional have_sock_cloexec
29966         definitions.  Remove code conditional on have_sock_cloexec < 0.
29967         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
29968         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
29969         * sysdeps/unix/sysv/linux/opensock.c: Do not include
29970         <kernel-features.h>.
29971         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
29972         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
29973
29974 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
29975
29976         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
29977         Add tests for memset_chk and memset.
29978
29979         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
29980         with AVX2_Usable.
29981
29982 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
29983
29984         [BZ #16046]
29985         * elf/tst-dl-iter-static.c: New file.
29986         * elf/Makefile (tests-static): Add tst-dl-iter-static.
29987
29988         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
29989         error.
29990
29991 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
29992
29993         * sysdeps/unix/sysv/linux/kernel-features.h
29994         (__ASSUME_F_GETOWN_EX): Remove macro.
29995         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
29996         <kernel-features.h>.
29997         (miss_F_GETOWN_EX): Remove variable or macro.
29998         (do_fcntl): Do not check miss_F_GETOWN_EX.
29999         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30000
30001         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30002         Remove macro.
30003         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30004         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30005         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30006
30007         * sysdeps/unix/sysv/linux/kernel-features.h
30008         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30009         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30010         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30011         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30012
30013 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30014
30015         [BZ #17075]
30016         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30017         Fix calculation of the symbol's value.
30018         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30019         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30020         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30021         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30022         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30023         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30024         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30025         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30026         (modules-names): Add `tst-armtlsdescmod',
30027         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30028         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30029         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30030         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30031         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30032         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30033         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30034         ($(objpfx)tst-armtlsdescloc): New dependency.
30035         ($(objpfx)tst-armtlsdescextnow): Likewise.
30036         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30037         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30038         TLS scheme support.
30039         * sysdeps/arm/configure: Regenerate.
30040
30041 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30042
30043         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30044         (__atfct_seterrno_2): Likewise.
30045         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30046         <kernel-features.h>.
30047         (__ASSUME_ATFCTS): Do not undefine and redefine.
30048         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30049         (__have_atfcts): Remove conditional definition.
30050         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30051         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30052         unreachable if [__ASSUME_ATFCTS].
30053         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30054         not undefine and redefine.
30055         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30056         <kernel-features.h>.
30057         (faccessat) [__NR_faccessat]: Make code unconditional.
30058         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30059         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30060         <kernel-features.h>.
30061         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30062         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30063         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30064         <kernel-features.h>.
30065         (fchownat) [__NR_fchownat]: Make code unconditional.
30066         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30067         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30068         <kernel-features.h>.
30069         (futimesat) [__NR_futimesat]: Make code unconditional.
30070         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30071         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30072         <kernel-features.h>.
30073         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30074         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30075         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30076         <kernel-features.h>.
30077         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30078         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30079         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30080         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30081         <kernel-features.h>.
30082         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30083         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30084         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30085         <kernel-features.h>.
30086         (linkat) [__NR_linkat]: Make code unconditional.
30087         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30088         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30089         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30090         <kernel-features.h>.
30091         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30092         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30093         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30094         <kernel-features.h>.
30095         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30096         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30097         * sysdeps/unix/sysv/linux/openat.c: Do not include
30098         <kernel-features.h>.
30099         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30100         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30101         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30102         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30103         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30104         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30105         <kernel-features.h>.
30106         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30107         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30108         result of INLINE_SYSCALL directly, not via int variable.
30109         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30110         <kernel-features.h>.
30111         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30112         (renameat) [__NR_renameat]: Make code unconditional.
30113         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30114         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30115         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30116         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30117         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30118         (__ASSUME_ATFCTS): Do not undefine and redefine.
30119         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30120         <kernel-features.h>.
30121         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30122         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30123         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30124         <kernel-features.h>.
30125         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30126         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30127         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30128         (__ASSUME_ATFCTS): Do not undefine and redefine.
30129         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30130         <kernel-features.h>.
30131         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30132         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30133         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30134         <kernel-features.h>.
30135         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30136         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30137
30138 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30139
30140         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30141
30142 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30143
30144         [BZ #17069]
30145         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30146         constructed tree before returning error.
30147         * posix/bug-regexp36.c: Expand test case.
30148
30149 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30150
30151         [BZ #6803]
30152         * math/libm-test.inc (scalbln_test_date):
30153         Add errno expectations.
30154         * math/w_scalblnf.c: New File.
30155         Add wrapper which checks for setting errno to ERANGE.
30156         Add weak_alias for corresponding scalbln function.
30157         * math/w_scalbln.c: Likewise.
30158         * math/w_scalblnl.c: Likewise.
30159         * math/Makefile (libm-calls): Add w_scalbln.
30160         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30161         Remove weak_alias for corresponding scalbln function.
30162         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30163         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30164         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30165         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30166         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30167         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30168         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30169         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30170         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30171         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30172         Remove long_double_symbol for scalblnl function in libm, libc.
30173         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30174         Add wrapper which checks for setting errno to ERANGE.
30175         Add long_double_symbol for scalblnl function in libm, libc.
30176         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30177         Remove long_double_symbol for scalblnl in libm.
30178         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30179         Add wrapper which checks for setting errno to ERANGE.
30180         Add long_double_symbol for scalblnl function in libm.
30181         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30182         Do not use wrapper because of own implementation.
30183
30184 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30185
30186         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30187         3 bytes for __pad1 for x32.
30188         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30189
30190 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30191             H.J. Lu  <hongjiu.lu@intel.com>
30192
30193         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30194         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30195         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30196         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30197         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30198
30199 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30200
30201         [BZ #17069]
30202         * posix/regcomp.c (parse_expression): Deallocate partially
30203         constructed tree before returning error.
30204         * posix/Makefile.c (tests): Add bug-regex36.
30205         (generated): Add bug-regex36.mtrace.
30206         (tests-special): Add $(objpfx)bug-regex36-mem.out
30207         (bug-regex36-ENV): New variable.
30208         ($(objpfx)bug-regex36-mem.out): New rule.
30209         * posix/bug-regex36.c: New file.
30210
30211 2014-06-19  Will Newton  <will.newton@linaro.org>
30212
30213         * malloc/malloc.c (systrim): If extra is zero then return
30214         early.
30215
30216 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30217
30218         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30219
30220 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30221
30222         * sysdeps/aarch64/strchr.S: New file.
30223
30224 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30225
30226         [BZ #17022]
30227         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30228         from arguments -2 or below.
30229         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30230         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30231
30232 2014-06-18  Andreas Schwab  <schwab@suse.de>
30233
30234         [BZ #17062]
30235         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30236         of a bracket expr not to run off the end of the string.
30237         * posix/Makefile (tests): Add tst-fnmatch3.
30238         * posix/tst-fnmatch3.c: New file.
30239
30240 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30241
30242         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30243         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30244         [$(cross-compiling) = no]: Likewise.
30245         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30246         [$(cross-compiling) = no]: Likewise.
30247
30248 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30249
30250         [BZ #17031]
30251         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30252         double, adjusted for any remainder from the high double.
30253         * math/libm-test.inc (nearbyint): Add tests.
30254         (rint): Likewise.
30255
30256 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30257
30258         * nptl/sysdeps/powerpc/Makefile: Moved ...
30259         * sysdeps/powerpc/nptl/Makefile: ... here.
30260         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30261         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30262         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30263         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30264         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30265         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30266         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30267         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30268         * nptl/sysdeps/powerpc/tls.h: Moved ...
30269         * sysdeps/powerpc/nptl/tls.h: ... here.
30270
30271 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30272
30273         [BZ #16681]
30274         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30275         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30276         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30277         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30278         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30279         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30280         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30281         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30282         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30283
30284 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30285
30286         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30287
30288 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30289
30290         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30291         defined operator.
30292
30293         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30294         $TIMEOUTFACTOR.
30295
30296 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30297
30298         [BZ #17058]
30299         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30300         non-executed part of the test.
30301
30302 2014-06-16  Andreas Schwab  <schwab@suse.de>
30303
30304         * string/bits/string2.h (strdup, strndup): Update feature guard.
30305
30306 2014-06-14  David S. Miller  <davem@davemloft.net>
30307
30308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30309
30310 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30311
30312         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30313         that was previously under [RESET_PID].
30314         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30315
30316         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30317         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30318         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30319         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30320         (__libc_vfork): New strong alias.
30321         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30322
30323 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30324
30325         * sysdeps/generic/elide.h: New file.
30326
30327 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30328
30329         * Makefile (installed-headers): Adjust path of pthread.h header.
30330
30331 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30332
30333         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30334         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30335         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30336         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30337
30338         * nptl/sysdeps/s390/Makefile: Moved ...
30339         * sysdeps/s390/nptl/Makefile: ... here.
30340         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30341         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30342         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30343         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30344         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30345         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30346         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30347         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30348         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30349         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30350         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30351         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30352         * nptl/sysdeps/s390/tls.h: Moved ...
30353         * sysdeps/s390/nptl/tls.h: ... here.
30354
30355         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30356         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30357
30358 2014-06-13  David S. Miller  <davem@davemloft.net>
30359
30360         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30361         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30362         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30363         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30364         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30365         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30366         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30367         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30368         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30369         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30370         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30371         Remove RESET_PID cpp guards.
30372         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30373         Remove RESET_PID cpp guards.
30374         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30375
30376 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30377
30378         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30379         __sp to uintptr_t.
30380
30381 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30382
30383         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30384         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30385         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30386         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30387         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30388         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30389         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30390         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30391         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30392         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30393         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30394         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30395         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30396         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30397         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30398         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30399         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30400         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30401         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30402         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30403
30404         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30405         (pthread_rwlock_rdlock): Add elision.
30406         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30407         (pthread_rwlock_wrlock): Add elision.
30408         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30409         (pthread_rwlock_trywrlock): Add elision.
30410         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30411         (pthread_rwlock_tryrdlock): Add elision.
30412         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30413         (pthread_rwlock_tryrdlock): Add elision unlock.
30414         * nptl/sysdeps/pthread/pthread.h:
30415         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30416         (PTHREAD_RWLOCK_INITIALIZER,
30417         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30418         Handle new elision field.
30419         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30420         * sysdeps/arm/nptl/bits/pthreadtypes.h
30421         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30422         * sysdeps/sh/nptl/bits/pthreadtypes.h
30423         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30424         * sysdeps/tile/nptl/bits/pthreadtypes.h
30425         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30426         * sysdeps/a/nptl/bits/pthreadtypes.h
30427         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30428         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30429         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30430         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30431         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30432         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30433         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30434         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30435         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30436         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30437         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30438         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30439         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30440         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30441         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30442         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30443         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30444         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30445         (elision_init): Set try_xbegin to zero when no RTM.
30446         * sysdeps/x86/nptl/bits/pthreadtypes.h
30447         (pthread_rwlock_t): Change __pad1 to __rwelision.
30448         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30449
30450 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30451
30452         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30453         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30454         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30455         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30456
30457 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30458
30459         [BZ #16996]
30460         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30461         that the cached result has been set before returning it.
30462
30463 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30464
30465         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30466         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30467         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30468         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30469         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30470         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30471
30472         * nptl/sysdeps/sparc/Makefile: Moved ...
30473         * sysdeps/sparc/nptl/Makefile: ... here.
30474         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30475         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30476         * nptl/sysdeps/sparc/tls.h: Moved ...
30477         * sysdeps/sparc/nptl/tls.h: ... here.
30478         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30479         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30480         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30481         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30482         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30483         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30484         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30485         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30486         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30487         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30488         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30489         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30490         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30491         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30492         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30493         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30494         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30495         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30496         Update #include.
30497         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30498         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30499         Update #include.
30500         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30501         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30502         Update #include.
30503         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30504         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30505         Update #include.
30506
30507         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30508
30509         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30510         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30511
30512         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30513         (struct list_links): Type removed.
30514         (struct thread_node, struct timer_node): Replace struct list_links
30515         with struct list_head.
30516         (list_unlink_ip): Likewise.
30517         * sysdeps/pthread/timer_routines.c
30518         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30519         (list_append, list_insbefore): Likewise.
30520         (list_init): Function removed.
30521         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30522         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30523         * sysdeps/pthread/Makefile: ... here, new file.
30524
30525         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30526         * sysdeps/nptl/Implies: ... here.
30527         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30528         * nptl/sysdeps/pthread/list.h: Moved ...
30529         * include/list.h: ... here.
30530         * nptl/sysdeps/pthread/createthread.c: Moved ...
30531         * nptl/createthread.c: ... here.
30532         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30533         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30534         * nptl/pt-longjmp.c: ... here.
30535         * nptl/sysdeps/pthread/Makefile: Moved ...
30536         * sysdeps/nptl/Makefile: ... here.
30537         * nptl/sysdeps/pthread/Subdirs: Moved ...
30538         * sysdeps/nptl/Subdirs: ... here.
30539         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30540         * sysdeps/nptl/aio_misc.h: ... here.
30541         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30542         * sysdeps/nptl/bits/libc-lock.h: ... here.
30543         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30544         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30545         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30546         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30547         * nptl/sysdeps/pthread/configure: Moved ...
30548         * sysdeps/nptl/configure: ... here.
30549         * nptl/sysdeps/pthread/configure.ac: Moved ...
30550         * sysdeps/nptl/configure.ac: ... here.
30551         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30552         * sysdeps/nptl/gai_misc.h: ... here.
30553         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30554         * sysdeps/nptl/librt-cancellation.c: ... here.
30555         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30556         * sysdeps/nptl/malloc-machine.h: ... here.
30557         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30558         * sysdeps/nptl/pthread-functions.h: ... here.
30559         * nptl/sysdeps/pthread/pthread.h: Moved ...
30560         * sysdeps/nptl/pthread.h: ... here.
30561         * nptl/sysdeps/pthread/setxid.h: Moved ...
30562         * sysdeps/nptl/setxid.h: ... here.
30563         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30564         * sysdeps/nptl/sigfillset.c: ... here.
30565         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30566         * sysdeps/nptl/tcb-offsets.h: ... here.
30567         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30568         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30569         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30570         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30571         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30572         * sysdeps/pthread/allocalim.h: ... here.
30573         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30574         * sysdeps/pthread/bits/sigthread.h: ... here.
30575         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30576         * sysdeps/pthread/flockfile.c: ... here.
30577         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30578         * sysdeps/pthread/ftrylockfile.c: ... here.
30579         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30580         * sysdeps/pthread/funlockfile.c: ... here.
30581         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30582         * sysdeps/pthread/posix-timer.h: ... here.
30583         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30584         * sysdeps/pthread/timer_create.c: ... here.
30585         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30586         * sysdeps/pthread/timer_delete.c: ... here.
30587         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30588         * sysdeps/pthread/timer_getoverr.c: ... here.
30589         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30590         * sysdeps/pthread/timer_gettime.c: ... here.
30591         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30592         * sysdeps/pthread/timer_routines.c: ... here.
30593         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30594         * sysdeps/pthread/timer_settime.c: ... here.
30595         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30596         * sysdeps/pthread/tst-timer.c: ... here.
30597         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30598         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30599
30600         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30601         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30602
30603         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30604         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30605         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30606         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30607         Update #include target.
30608         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30609         * sysdeps/i386/i686/nptl/Makefile: ... here.
30610         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30611         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30612         Update #include target.
30613         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30614         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30615         * nptl/sysdeps/i386/Makefile: Moved ...
30616         * sysdeps/i386/nptl/Makefile: ... here.
30617         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30618         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30619         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30620         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30621         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30622         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30623         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30624         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30625         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30626         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30627         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30628         * nptl/sysdeps/i386/tls.h: Moved ...
30629         * sysdeps/i386/nptl/tls.h: ... here.
30630
30631         * sysdeps/sh/Makefile [$(subdir) = csu]
30632         (gen-as-const-headers): Add tcb-offsets.sym.
30633         * nptl/sysdeps/sh/Makefile: File removed.
30634         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30635         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30636         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30637         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30638         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30639         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30640         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30641         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30642         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30643         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30644         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30645         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30646         * nptl/sysdeps/sh/tls.h: Moved ...
30647         * sysdeps/sh/nptl/tls.h: ... here.
30648         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30649         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30650         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30651         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30652         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30653         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30654         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30655         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30656         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30657         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30658         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30659         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30660         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30661         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30662         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30663         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30664         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30665         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30666         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30667         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30668         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30669         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30670         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30671         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30672         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30673         Moved ...
30674         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30675         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30676         Moved ...
30677         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30678         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30679         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30680         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30681         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30682         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30683         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30684         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30685         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30686         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30687         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30688         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30689         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30690         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30691         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30692         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30693         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30694         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30695         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30696
30697 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30698
30699         * posix/spawn_faction_addopen.c: Include string.h.
30700
30701 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30702
30703         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30704         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30705         * nptl/sysdeps/x86_64/Makefile: Moved ...
30706         * sysdeps/x86_64/nptl/Makefile: ... here.
30707         * nptl/sysdeps/x86_64/configure: Moved ...
30708         * sysdeps/x86_64/nptl/configure: ... here.
30709         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30710         * sysdeps/x86_64/nptl/configure.ac: ... here.
30711         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30712         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30713         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30714         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30715         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30716         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30717         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30718         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30719         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30720         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30721         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30722         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30723         * nptl/sysdeps/x86_64/tls.h: Moved ...
30724         * sysdeps/x86_64/nptl/tls.h: ... here.
30725         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30726         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30727         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30728         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30729
30730         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30731
30732 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30733
30734         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30735
30736 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30737
30738         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30739         type.
30740         [POSIX] (off_t): Likewise.
30741         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30742         [POSIX] (S_ISBLK): Require macro.
30743         [POSIX] (S_ISCHR): Likewise.
30744         [POSIX] (S_ISDIR): Likewise.
30745         [POSIX] (S_ISFIFO): Likewise.
30746         [POSIX] (S_ISREG): Likewise.
30747         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30748         optional-macro.
30749         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30750         type.
30751         [POSIX] (time_t): Likewise.
30752         [POSIX] (timer_t): Likewise.
30753
30754 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30755
30756         [BZ #17048]
30757         * posix/spawn_int.h (struct __spawn_action): Make the path string
30758         non-const to support deallocation.
30759         * posix/spawn_faction_addopen.c
30760         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30761         * posix/spawn_faction_destroy.c
30762         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30763         path in all spawn_do_open actions.
30764         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30765         posix_spawn_file_actions_addopen.
30766
30767 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30768
30769         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30770         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30771         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30772         conditional code always true.
30773         (__libc_vfork): New alias.
30774
30775 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30776
30777         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30778         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30779
30780         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30781
30782         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30783         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30784
30785         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30786         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30787
30788         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30789         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30790
30791 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30792
30793         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30794         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30795         multiarch strcmp for PPC64.
30796         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30797         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30798         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30799         multiarch optimizations.
30800         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30801         (__libc_ifunc_impl_list): Likewise.
30802
30803 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30804
30805         * benchtests/scripts/validate_benchout.py: New script.
30806         * benchtests/Makefile (bench-func): Call it.
30807         * benchtests/scripts/benchout.schema.json: New file.
30808
30809 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30810
30811         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30812         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30813         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30814         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30815         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30816         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30817         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30818         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30819         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30820         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30821         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30822         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30823         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30824         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30825         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30826         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30827         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30828         Moved ...
30829         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30830         ... here.
30831         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30832         Moved ...
30833         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30834         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30835         Moved ...
30836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30837         ... here.
30838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30839         Moved ...
30840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
30841         ... here.
30842         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
30843         Moved ...
30844         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
30845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
30846         Moved ...
30847         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
30848         ... here.
30849         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
30850         Moved ...
30851         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
30852         ... here.
30853         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
30854         Moved ...
30855         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
30856         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
30857         Moved ...
30858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
30859         ... here.
30860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
30861         Moved ...
30862         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
30863         ... here.
30864         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
30865         Moved ...
30866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
30867         ... here.
30868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
30869         Moved ...
30870         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
30871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
30872         Moved ...
30873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
30874         ... here.
30875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
30876         Moved ...
30877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
30878         ... here.
30879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
30880         Moved ...
30881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
30882         ... here.
30883         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
30884         Moved ...
30885         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
30886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
30887         Moved ...
30888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
30889         ... here.
30890         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
30891         Moved ...
30892         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
30893         ... here.
30894         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
30895         Moved ...
30896         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
30897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
30898         Moved ...
30899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
30900         ... here.
30901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
30902         Moved ...
30903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
30904         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
30905         Moved ...
30906         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
30907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
30908         Moved ...
30909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
30910         ... here.
30911         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
30912         Moved ...
30913         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
30914         ... here.
30915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
30916         Moved ...
30917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
30918         ... here.
30919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
30920         Moved ...
30921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
30922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
30923         Moved ...
30924         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
30925         ... here.
30926         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
30927         Moved ...
30928         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
30929         ... here.
30930         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
30931         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
30932         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
30933         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
30934         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
30935         Moved ...
30936         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
30937         ... here.
30938         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
30939         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
30940         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
30941         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
30942         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
30943         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
30944         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
30945         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
30946         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
30947         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
30948         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
30949         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
30950         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
30951         Moved ...
30952         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
30953         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
30954         Moved ...
30955         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
30956         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
30957         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
30958         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
30959         Moved ...
30960         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
30961         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
30962         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
30963         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
30964         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
30965         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
30966         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
30967
30968 2014-06-10  Wilco  <wdijkstr@arm.com>
30969
30970         * math/test-fenv-return.c: New file.
30971         * math/Makefile: Add new test test-fenv-return.
30972
30973 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
30974
30975         [BZ #17042]
30976         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
30977         when x - 1 is zero.
30978         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
30979         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
30980         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
30981         0.0L for an argument of 1.0L.
30982         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
30983         Likewise.
30984         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
30985         value when x - 1 is zero.
30986         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
30987         * sysdeps/i386/fpu/libm-test-ulps: Update.
30988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30989
30990 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
30991
30992         [BZ #15119]
30993         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
30994
30995 2014-06-09  Roland McGrath  <roland@hack.frob.com>
30996
30997         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
30998         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
30999
31000 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31001
31002         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31003         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31004
31005         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31006         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31007
31008         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31009         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31010
31011         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31012         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31013
31014         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31015         if not already defined.
31016         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31017         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31018         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31019         (TLS_INIT_TP): Use it.
31020         (TLS_DEFINE_INIT_TP): New macro.
31021         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31022
31023 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31024
31025         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31026         constant.
31027         [POSIX] (IXANY): Likewise.
31028         [POSIX] (OLCUC): Likewise.
31029         [POSIX || POSIX2008] (CBAUD): Do not allow.
31030         [POSIX || POSIX2008] (DEFECHO): Likewise.
31031         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31032         [POSIX || POSIX2008] (ECHOKE): Likewise.
31033         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31034         [POSIX || POSIX2008] (EXTA): Likewise.
31035         [POSIX || POSIX2008] (EXTB): Likewise.
31036         [POSIX || POSIX2008] (FLUSHO): Likewise.
31037         [POSIX || POSIX2008] (LOBLK): Likewise.
31038         [POSIX || POSIX2008] (PENDIN): Likewise.
31039         [POSIX || POSIX2008] (SWTCH): Likewise.
31040         [POSIX || POSIX2008] (VDISCARD): Likewise.
31041         [POSIX || POSIX2008] (VDSUSP): Likewise.
31042         [POSIX || POSIX2008] (VLNEXT): Likewise.
31043         [POSIX || POSIX2008] (VREPRINT): Likewise.
31044         [POSIX || POSIX2008] (VSTATUS): Likewise.
31045         [POSIX || POSIX2008] (VWERASE): Likewise.
31046         (B*): Change to B[0123456789]*.
31047         * conform/data/time.h-data [POSIX || UNIX98]
31048         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31049         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31050         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31051         [POSIX] (tm_*): Do not allow.
31052
31053 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31054
31055         * Makefile (install): Don't set LANGUAGE.
31056         * Makefile.in (install): Likewise.
31057         * assert/Makefile (test-assert-ENV): Remove variable.
31058         (test-assert-perr-ENV): Likewise.
31059         * elf/Makefile (neededtest4-ENV): Likewise.
31060         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31061         [$(cross-compiling) = no]: Don't set LANGUAGE.
31062         * io/ftwtest-sh (LANG): Remove variable.
31063         * libio/Makefile (tst-widetext-ENV): Likewise.
31064         * manual/install.texi (Running make install): Don't refer to
31065         environment settings for make install.
31066         * INSTALL: Regenerated.
31067         * nptl/tst-tls6.sh: Don't set LANG.
31068         * posix/globtest.sh (LANG): Remove variable.
31069         * string/Makefile (tester-ENV): Likewise.
31070         (inl-tester-ENV): Likewise.
31071         (noinl-tester-ENV): Likewise.
31072         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31073         [$(cross-compiling) = no]: Don't set LANGUAGE.
31074         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31075         without explicit environment settings.
31076
31077 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31078
31079         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31080         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31081         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31082         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31083
31084 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31085
31086         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31087         other files in the crypt directory.
31088         * crypt/crypt.c: Remove duplicate includes.
31089         * crypt/crypt-entry.c: Likewise.
31090         * crypt/crypt_util.c: Likewise.
31091
31092 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31093
31094         * Makeconfig (run-program-env): New variable.
31095         (run-program-prefix-before-env): Likewise.
31096         (run-program-prefix-after-env): Likewise.
31097         (run-program-prefix): Define in terms of new variables.
31098         (built-program-cmd-before-env): New variable.
31099         (built-program-cmd-after-env): Likewise.
31100         (built-program-cmd): Define in terms of new variables.
31101         (test-program-prefix-before-env): New variable.
31102         (test-program-prefix-after-env): Likewise.
31103         (test-program-prefix): Define in terms of new variables.
31104         (test-program-cmd-before-env): New variable.
31105         (test-program-cmd-after-env): Likewise.
31106         (test-program-cmd): Define in terms of new variables.
31107         * Rules (make-test-out): Use $(run-program-env).
31108         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31109         (help): Do not mention environment variables.  Mention
31110         --timeoutfactor option.
31111         (timeoutfactor): New variable.
31112         (blacklist_exports): Remove function.
31113         (exports): Remove variable.
31114         (command): Do not include ${exports}.
31115         * manual/install.texi (Configuring and compiling): Do not mention
31116         test wrappers preserving environment variables.  Mention that last
31117         assignment to a variable must take precedence.
31118         * INSTALL: Regenerated.
31119         * benchtests/Makefile (run-bench): Use $(run-program-env).
31120         * catgets/Makefile ($(objpfx)test1.cat): Use
31121         $(built-program-cmd-before-env), $(run-program-env) and
31122         $(built-program-cmd-after-env).
31123         ($(objpfx)test2.cat): Do not specify environment variables
31124         explicitly.
31125         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31126         $(run-program-env) and $(built-program-cmd-after-env).
31127         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31128         $(run-program-env) and $(test-program-cmd-after-env).
31129         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31130         explicitly.
31131         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31132         run_program_env and test_program_cmd_after_env arguments.
31133         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31134         * elf/tst-pathopt.sh: Use run_program_env argument.
31135         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31136         $(test-wrapper-env) and $(run-program-env).
31137         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31138         run_program_env arguments.
31139         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31140         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31141         $(test-program-prefix-before-env), $(run-program-env) and
31142         $(test-program-prefix-after-env).
31143         ($(objpfx)tst-gettext2.out): Likewise.
31144         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31145         run_program_env and test_program_prefix_after_env arguments.
31146         * intl/tst-gettext2.sh: Likewise.
31147         * intl/tst-gettext4.sh: Do not set environment variables
31148         explicitly.
31149         * intl/tst-gettext6.sh: Likewise.
31150         * intl/tst-translit.sh: Likewise.
31151         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31152         $(test-program-prefix-before-env), $(run-program-env) and
31153         $(test-program-prefix-after-env).
31154         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31155         run_program_env and test_program_prefix_after_env arguments.
31156         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31157         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31158         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31159         explicitly with each use of ${test_wrapper_env}.
31160         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31161         $(test-program-prefix-before-env), $(run-program-env) and
31162         $(test-program-prefix-after-env).
31163         * posix/tst-getconf.sh: Do not set environment variables
31164         explicitly.
31165         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31166         run_program_env and test_program_prefix_after_env arguments.
31167         * stdio-common/tst-printf.sh: Do not set environment variables
31168         explicitly.
31169         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31170         $(test-program-prefix-before-env), $(run-program-env) and
31171         $(test-program-prefix-after-env).
31172         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31173         run_program_env and test_program_prefix_after_env arguments.
31174         Split $test calls into $test_pre and $test.
31175         * timezone/Makefile (build-testdata): Use
31176         $(built-program-cmd-before-env), $(run-program-env) and
31177         $(built-program-cmd-after-env).
31178
31179 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31180
31181         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31182         strlen for non SHARED builds.
31183
31184 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31185
31186         * nptl/allocatestack.c (check_list): Inlined function...
31187         (__reclaim_stacks): ... here.
31188
31189 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31190
31191         [BZ #15698]
31192         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31193         memory overrun.
31194
31195 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31196
31197         * Rules (make-test-out): Include
31198         LOCPATH=$(common-objpfx)localedata in default environment.
31199         * debug/Makefile (tst-chk1-ENV): Remove variable.
31200         (tst-chk2-ENV): Likewise.
31201         (tst-chk3-ENV): Likewise.
31202         (tst-chk4-ENV): Likewise.
31203         (tst-chk5-ENV): Likewise.
31204         (tst-chk6-ENV): Likewise.
31205         (tst-lfschk1-ENV): Likewise.
31206         (tst-lfschk2-ENV): Likewise.
31207         (tst-lfschk3-ENV): Likewise.
31208         (tst-lfschk4-ENV): Likewise.
31209         (tst-lfschk5-ENV): Likewise.
31210         (tst-lfschk6-ENV): Likewise.
31211         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31212         (tst-iconv7-ENV): Likewise.
31213         * intl/Makefile (LOCPATH-ENV): Likewise.
31214         (tst-codeset-ENV): Likewise.
31215         (tst-gettext3-ENV): Likewise.
31216         (tst-gettext5-ENV): Likewise.
31217         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31218         (tst-fopenloc-ENV): Likewise.
31219         (tst-fgetws-ENV): Remove variable.
31220         (tst-ungetwc1-ENV): Likewise.
31221         (tst-ungetwc2-ENV): Likewise.
31222         (bug-ungetwc2-ENV): Likewise.
31223         (tst-swscanf-ENV): Likewise.
31224         (bug-ftell-ENV): Likewise.
31225         (tst-fgetwc-ENV): Likewise.
31226         (tst-fseek-ENV): Likewise.
31227         (tst-ftell-partial-wide-ENV): Likewise.
31228         (tst-ftell-active-handler-ENV): Likewise.
31229         (tst-ftell-append-ENV): Likewise.
31230         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31231         (tst-regexloc-ENV): Likewise.
31232         (bug-regex1-ENV): Likewise.
31233         (tst-regex-ENV): Likewise.
31234         (tst-regex2-ENV): Likewise.
31235         (bug-regex5-ENV): Likewise.
31236         (bug-regex6-ENV): Likewise.
31237         (bug-regex17-ENV): Likewise.
31238         (bug-regex18-ENV): Likewise.
31239         (bug-regex19-ENV): Likewise.
31240         (bug-regex20-ENV): Likewise.
31241         (bug-regex22-ENV): Likewise.
31242         (bug-regex23-ENV): Likewise.
31243         (bug-regex25-ENV): Likewise.
31244         (bug-regex26-ENV): Likewise.
31245         (bug-regex30-ENV): Likewise.
31246         (bug-regex32-ENV): Likewise.
31247         (bug-regex33-ENV): Likewise.
31248         (bug-regex34-ENV): Likewise.
31249         (bug-regex35-ENV): Likewise.
31250         (tst-rxspencer-ENV): Likewise.
31251         (tst-rxspencer-no-utf8-ENV): Likewise.
31252         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31253         (tst-sscanf-ENV): Likewise.
31254         (tst-swprintf-ENV): Likewise.
31255         (tst-swscanf-ENV): Likewise.
31256         (test-vfprintf-ENV): Likewise.
31257         (scanf13-ENV): Likewise.
31258         (bug14-ENV): Likewise.
31259         (tst-grouping-ENV): Likewise.
31260         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31261         (tst-strtod3-ENV): Likewise.
31262         (tst-strtod4-ENV): Likewise.
31263         (tst-strtod5-ENV): Likewise.
31264         (testmb2-ENV): Likewise./
31265         * string/Makefile (tst-strxfrm-ENV): Likewise.
31266         (tst-strxfrm2-ENV): Likewise.
31267         (bug-strcoll1-ENV): Likewise.
31268         (test-strcasecmp-ENV): Likewise.
31269         (test-strncasecmp-ENV): Likewise.
31270         * time/Makefile (tst-strptime-ENV): Likewise.
31271         (tst-ftime_l-ENV): Likewise.
31272         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31273         (tst-mbrtowc-ENV): Likewise.
31274         (tst-wcrtomb-ENV): Likewise.
31275         (tst-mbrtowc2-ENV): Likewise.
31276         (tst-c16c32-1-ENV): Likewise.
31277         (tst-mbsnrtowcs-ENV): Likewise.
31278
31279 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31280
31281         * manual/resource.texi (How to get information about the memory
31282         subsystem?): Fix typo.
31283         Reported by Peon de la Parra Ivan <peon@keba.com>
31284
31285 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31286
31287         [BZ #16882]
31288         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31289         (pthread_spin_lock): Branch out of spin loop to proper location.
31290         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31291         (pthread_spin_lock): Likewise.
31292
31293         * nptl/tst-spin4.c: New test.
31294         * nptl/Makefile (tests): Add tst-spin4.
31295
31296 2014-06-03  Andreas Schwab  <schwab@suse.de>
31297
31298         [BZ #15946]
31299         * resolv/res_send.c (send_dg): Reload file descriptor after
31300         calling reopen.
31301
31302 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31303
31304         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31305
31306 2014-06-03  Richard Henderson  <rth@redhat.com>
31307
31308         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31309         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31310         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31311         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31312         in the SAVE_PID block.
31313         (__libc_vfork): New alias.
31314         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31315
31316         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31317         child in registers, not on the stack.  Remove RESET_PID conditionals.
31318         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31319
31320 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31321
31322         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31323
31324 2014-06-03  Wilco  <wdijkstr@arm.com>
31325
31326         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31327         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31328         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31329         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31330         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31331         Likewise.
31332
31333 2014-06-03  Wilco  <wdijkstr@arm.com>
31334
31335         * sysdeps/aarch64/fpu/math_private.h
31336         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31337         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31338         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31339         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31340         Fix declarations.
31341
31342 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31343
31344         * crypt/crypt-private.h: Include ufc-crypt.h.
31345         (__b64_from_24bit): Declare extern.
31346         * crypt/crypt_util.c(__b64_from_24bit): New function.
31347         (b64t): New static const variable.
31348         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31349         (b64t): Remove variable.
31350         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31351         * crypt/sha256-crypt.c: Include crypt-private.h.
31352         (b64t): Remove variable.
31353         (__sha256_crypt_r): Remove b64_from_24bit and replace
31354         with __b64_from_24bit.
31355         * crypt/sha512-crypt.c: Likewise.
31356
31357 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31358
31359         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31360         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31361         Label the code __libc_vfork rather than __vfork.
31362         [!NOT_IN_libc] (vfork): Define as weak alias.
31363         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31364         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31365         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31366
31367 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31368
31369         * malloc/malloc.c (malloc_info): Fix format specifier for
31370         n_mmaps.
31371
31372 2014-06-02  Wilco  <wdijkstr@arm.com>
31373
31374         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31375         FPCR write.
31376
31377 2014-06-02  Wilco  <wdijkstr@arm.com>
31378
31379         [BZ #17009]
31380         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31381         Rewrite to reduce FPCR/FPSR accesses.
31382
31383 2014-06-01  David S. Miller  <davem@davemloft.net>
31384
31385         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31386
31387 2014-05-31  David S. Miller  <davem@davemloft.net>
31388
31389         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31390         to occur in round to nearest mode when |x| >= 2.0
31391
31392 2014-05-30  Richard Henderson  <rth@twiddle.net>
31393
31394         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31395         (PSEUDO_RET_NOERRNO): Remove.
31396         (ret): Don't redefine.
31397         (ret_NOERRNO): Define in terms of ret.
31398         (ret_ERRVAL): Likewise.
31399
31400         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31401         use of PSEUDO_RET; perform the error check directly.
31402
31403 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31404
31405         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31406         with __int128_t.
31407
31408 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31409
31410         * malloc/malloc (malloc_info): Fix formatting.
31411
31412 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31413             Roland McGrath  <roland@hack.frob.com>
31414
31415         * malloc/malloc (malloc_info): Also print mmapped statistics.
31416
31417 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31418
31419         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31420         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31421
31422 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31423
31424         * malloc/malloc.c (malloc_info): Inline mi_arena.
31425
31426 2014-05-29  Richard Henderson  <rth@twiddle.net>
31427
31428         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31429         Remove comma before expanding ASM_ARGS_##nr.
31430         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31431         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31432         of ASM_ARGS_##nr.
31433         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31434         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31435         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31436         (ASM_ARGS_1): Add leading comma.
31437
31438         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31439         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31440         to __errno_location.
31441         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31442         Remove the expected plt for __errno_location.
31443
31444         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31445         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31446         call to __read_tp.
31447
31448         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31449         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31450         it and break it down.
31451         (DOCARGS_0, DOCARGS_1): Do nothing.
31452         (DOCARGS_2): Update to store into the new stack frame.
31453         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31454         (UNDOCARGS_1): Update to restore from the new stack frame.
31455         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31456         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31457
31458         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31459         (SINGLE_THREAD_P): New parameter for result regno.
31460         (PSEUDO): Update to match; use cbz instead of beq.
31461
31462         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31463         Use ENTRY to define the _nocancel entry point.  Share the syscall
31464         and syscall error check paths with the cancel path.
31465         (PSEUDO_END): New.
31466
31467         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31468         whitespace; tabs before and after asm mnemonics.
31469
31470 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31471
31472         [BZ #15132]
31473         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31474         Call fstat64 or stat64 internally, depending on arguments passed.
31475         Replace stat buffer argument with file descriptor argument.
31476         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31477         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31478         Pass fd to __internal_statvfs instead of calling fstat64.
31479         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31480         Pass fd to __internal_statvfs64 instead of calling fstat64.
31481         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31482         Pass -1 to __internal_statvfs instead of calling stat64.
31483         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31484         Pass -1 to __internal_statvfs64 instead of calling stat64.
31485
31486 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31487
31488         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31489         that was previously under [RESET_PID].
31490         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31491
31492         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31493         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31494
31495 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31496
31497         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31498
31499         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31500         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31501
31502 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31503
31504         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31505
31506 2014-05-27  Andreas Schwab  <schwab@suse.de>
31507
31508         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31509         TLS_INIT_TP macro.
31510         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31511         * elf/rtld.c (init_tls, dl_main): Likewise.
31512         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31513         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31514         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31515         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31516         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31517         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31518         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31519         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31520         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31521         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31522         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31523         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31524         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31525         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31526         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31527         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31528         * sysdeps/generic/tls.h: Update description.
31529
31530 2014-05-27  Will Newton  <will.newton@linaro.org>
31531
31532         [BZ #16990]
31533         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31534         and restore r2 rather than just restoring.
31535
31536 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31537
31538         [BZ #16724]
31539         * libio/tst-ftell-append.c: New test case.
31540         * libio/Makefile (tests): Add test case.
31541         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31542         append mode.
31543         * libio/wfileops.c (do_ftell_wide): Likewise.
31544
31545 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31546
31547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31548
31549         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31550         ...
31551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31553         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31554         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31555         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31556         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31557         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31558         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31559         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31560         Moved ...
31561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31562         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31563         Moved ...
31564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31565         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31566         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31567         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31568         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31569         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31570         ...
31571         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31572         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31573         Moved ...
31574         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31575         here.
31576         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31577         ...
31578         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31579         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31580         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31581
31582         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31583         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31584         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31585         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31586
31587         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31588         merge into ...
31589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31590         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31591         ...
31592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31593         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31594         ...
31595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31596         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31597         Moved ...
31598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31599         here.
31600         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31601         Moved ...
31602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31603         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31604         Moved ...
31605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31606
31607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31608         conditional [RESET_PID].
31609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31610         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31611         removed.
31612         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31613         removed.
31614
31615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31616         <tcb-offsets.h>.
31617         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31618         (__libc_vfork): New strong alias.
31619         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31620         removed.
31621         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31622         Removed.
31623
31624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31625         <tcb-offsets.h>.
31626         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31627         (__libc_vfork): New strong alias.
31628         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31629         removed.
31630         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31631         removed.
31632
31633 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31634
31635         * malloc/malloc.c (mi_arena): New function.
31636         (malloc_info): Remove nested function mi_arena. Call non-nosted
31637         function mi_arena.
31638
31639 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31640
31641         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31642         by insrwi.
31643         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31644         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31645         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31646         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31647         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31648         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31649         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31650
31651 2014-05-26  Andreas Schwab  <schwab@suse.de>
31652
31653         [BZ #16984]
31654         * locale/programs/repertoire.c (repertoire_read): Add slash
31655         between I18NPATH element and file name.
31656         * locale/programs/locfile.c (locfile_read): Likewise.
31657
31658 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31659
31660         * nptl/pthread_mutexattr_settype.c
31661         (__pthread_mutexattr_settype):
31662         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31663
31664 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31665
31666         * nptl/tst-mutex5 (do_test):
31667         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31668
31669 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31670
31671         * benchtests/README: Document 'init' directive.
31672         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31673         BENCH_INIT.
31674         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31675         (parse_file): Recognize 'init' directive.
31676
31677 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31678
31679         [BZ #16796]
31680         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31681         alignment of struct pthread.
31682
31683 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31684
31685         [BZ #16878]
31686         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31687         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31688         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31689         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31690
31691 2014-05-25  Richard Henderson  <rth@twiddle.net>
31692
31693         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31694         (SINGLE_THREAD_P_PIC): Remove.
31695         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31696         (SINGLE_THREAD_P_PIC): Remove.
31697
31698         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31699         branch to syscall error ...
31700         (PSEUDO): ... here.
31701         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31702         from __local_syscall_error to .Lsyscall_error.
31703         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31704         (SYSCALL_ERROR): Update label name.
31705
31706         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31707         Do not use DOARGS/UNDOARGS.
31708         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31709         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31710         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31711         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31712         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31713
31714         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31715         block comment.
31716
31717         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31718         define if !NOT_IN_libc.
31719         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31720         define with non-default symbol versions.
31721
31722 2014-05-23  Richard Henderson  <rth@twiddle.net>
31723
31724         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31725         (vfork, __vfork): Define via compat_symbol.
31726
31727         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31728         [!HAVE_IFUNC] (vfork_compat): Remove.
31729         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31730
31731 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31732
31733         [BZ #16978]
31734         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31735         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31736         variable.
31737
31738 2014-05-23  Richard Henderson  <rth@twiddle.net>
31739
31740         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31741         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31742         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31743         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31744
31745         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31746         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31747         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31748         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31749         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31750         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31751         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31752         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31753         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31754         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31755         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31756         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31757         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31758         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31759         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31760         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31761         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31762         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31763         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31764         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31765         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31766         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31767         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31768         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31769         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31770         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31771         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31772         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31773         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31774         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31775         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31776         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31777         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31778         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31779         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31780         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31781         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31782         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31783         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31784         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31785         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31786         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31787         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31788         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31789         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31790         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31791         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31792         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31793         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31794         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31795         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31796         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31797         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31798         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31799         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31800         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31801
31802         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31803         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31804         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31805         before exiting on error.
31806         (__libc_vfork): New strong alias.
31807         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31808         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31809
31810         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31811         that was previously under [RESET_PID].
31812         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31813
31814         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31815
31816 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31817
31818         [BZ #16977]
31819         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31820         value when x - 1 is zero.
31821         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31822         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31823         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31824         0.0L for an argument of 1.0L.
31825         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31826         Likewise.
31827         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31828         value when x - 1 is zero.
31829         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31830         * sysdeps/i386/fpu/libm-test-ulps: Update.
31831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31832
31833 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31834
31835         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31836         alphasort and versionsort.
31837
31838 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31839
31840         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
31841         macro.
31842         [copysignf]: Likewise.
31843
31844 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
31845
31846         * crypt/md5-crypt.c: Fix formatting.
31847
31848 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31849
31850         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
31851         (b64_from_24bit): New function.
31852
31853 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31854
31855         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
31856         libc_hidden_builtin_def to ifunc.
31857         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
31858         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
31859
31860 2014-05-21  Roland McGrath  <roland@hack.frob.com>
31861
31862         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
31863         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
31864
31865 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
31866
31867         * nscd/Depend (linuxthreads): Remove.
31868         (nptl): Add.
31869         * resolv/Depend (linuxthreads): Remove.
31870         * rt/Depend (linuxthreads): Remove.
31871
31872         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
31873         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
31874         $(common-objpfx)elf/.
31875         (link-libc-before-gnulib): Likewise.
31876         (elfobjdir): Remove variable.
31877         * Makefile (install): Use $(elf-objpfx) instead of
31878         $(common-objpfx)elf/.
31879         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
31880         $(elfobjdir)/.
31881         (link-libc-deps): Likewise.
31882         ($(common-objpfx)libc.so): Likewise.
31883         ($(common-objpfx)linkobj/libc.so): Likewise.
31884         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
31885         instead of $(common-objpfx)elf/.
31886         (symbolic-link-list): Likewise.
31887         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31888         [$(cross-compiling) = no]: Likewise.
31889         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
31890         $(elfobjdir)/.
31891         (static-gnulib-arch): Likewise.
31892         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31893         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
31894         $(common-objpfx)elf/.
31895
31896 2014-05-21  Richard Henderson  <rth@redhat.com>
31897
31898         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31899         (SINGLE_THREAD_P): Use the correct width load.  Fold
31900         into the ldr offset.
31901
31902         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
31903         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
31904
31905 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
31906
31907         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
31908         (libgcc_s_resume): Use __attribute_used__.
31909         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
31910         Likewise.
31911
31912 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31913
31914         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
31915         optimization when used with float constants.
31916
31917         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31918
31919 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
31920
31921         [BZ #16915]
31922         * locale/nl_langinfo_l.c: Make direct reference to every
31923         _nl_current_CATEGORY symbol.
31924         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
31925         (tests-static): Add tst-langinfo-static.
31926         (tests-special): Add tst-langinfo-static.out.
31927         ($(objpfx)tst-langinfo.out): Redirect output.
31928         ($(objpfx)tst-langinfo-static.out): New.
31929         * localedata/tst-langinfo.sh: Send output to stdout.
31930         * localedata/tst-langinfo-static.c: New file.
31931
31932         [BZ #16965]
31933         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
31934         when the shift amount is modulo the limb size.
31935
31936 2014-05-20  Richard Henderson  <rth@redhat.com>
31937
31938         [BZ #16967]
31939         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
31940         Change type of sa_flags from unsigned int to int.
31941
31942         [BZ #16966]
31943         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
31944
31945         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
31946
31947 2014-05-20  Will Newton  <will.newton@linaro.org>
31948
31949         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31950         Test the return value of the system call in the nocancel case.
31951
31952 2014-05-20  Will Newton  <will.newton@linaro.org>
31953             Yvan Roux  <yvan.roux@linaro.org>
31954
31955         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
31956         #include of asm/ptrace.h.
31957         (PTRACE_GET_THREAD_AREA): Remove #undef.
31958         (PTRACE_GETHBPREGS): Likewise.
31959         (PTRACE_SETHBPREGS): Likewise.
31960         (struct user_regs_struct): New structure.
31961         (struct user_fpsimd_struct): New structure.
31962         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
31963         #include of asm/ptrace.h and second #include of sys/user.h.
31964         (PTRACE_GET_THREAD_AREA): Remove #undef.
31965         (PTRACE_GETHBPREGS): Likewise.
31966         (PTRACE_SETHBPREGS): Likewise.
31967         (ELF_NGREG): Use new struct user_regs_struct.
31968         (elf_fpregset_t): Use new struct user_fpsimd_struct.
31969
31970 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31971
31972         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
31973         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
31974
31975 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
31976
31977         [BZ #16958]
31978         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
31979         membar to avoid block loads/stores to overlap previous stores.
31980
31981 2014-05-17  Richard Henderson  <rth@redhat.com>
31982
31983         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
31984         Create the __##syscall_name##_nocancel entry point.
31985         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
31986         Remove; let the sysdep-cancel.h code create it.
31987
31988 2014-05-17  David S. Miller  <davem@davemloft.net>
31989
31990         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
31991         Protect with __USE_GNU.
31992         (TIOCSET_TEMPT): Likewise.
31993         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
31994         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
31995         these are already provided in bits/ioctl-types.h
31996
31997 2014-05-16  Roland McGrath  <roland@hack.frob.com>
31998
31999         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32000         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32001
32002         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32003         Use wait4 regardless of [__NR_waitpid].
32004
32005 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32006
32007         PR libgcc/60166
32008         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32009         (_FP_NANSIGN_Q): Set the quiet bit.
32010
32011 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32012
32013         * benchtests/Makefile
32014         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32015         not $(common-objpfx)math/libm.so.
32016         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32017         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32018         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32019         $(common-objpfx)dlfcn/libdl.so.
32020         ($(objpfx)tst-audit8): Depend on $(libm), not
32021         $(common-objpfx)math/libm.so.
32022         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32023         not $(common-objpfx)dlfcn/libdl.so.
32024         * math/Makefile
32025         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32026         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32027         [$(build-shared) = yes].
32028         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32029         $(common-objpfx)nptl/libpthread.so.
32030         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32031         $(common-objpfx)math/libm.so$(libm.so-version) or
32032         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32033         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32034         $(common-objpfx)dlfcn/libdl.so.
32035         * setjmp/Makefile (link-libm): Remove variable.
32036         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32037         * stdio-common/Makefile (link-libm): Remove variable.
32038         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32039         * stdlib/Makefile (link-libm): Remove variable.
32040         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32041         ($(objpfx)tst-strtod-round): Likewise.
32042         ($(objpfx)tst-tininess): Likewise.
32043         ($(objpfx)tst-strtod-underflow): Likewise.
32044         ($(objpfx)tst-strtod6): Likewise.
32045         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32046         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32047         $(common-objpfx)dlfcn/libdl.so.
32048
32049 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32050
32051         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32052         BSD terminal modes definitions.
32053
32054 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32055
32056         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32057         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32058
32059         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32060         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32061         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32062         Don't do #include_next.
32063         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32064         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32065         Don't do #include_next.
32066         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32067         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32068         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32069         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32070
32071 2014-05-16  Allan McRae  <allan@archlinux.org>
32072
32073         * po/sv.po: Update Swedish translation from translation project.
32074
32075         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32076         in sed expression.
32077
32078 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32079
32080         [BZ #16917]
32081         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32082         errno if the TIOCGPTN ioctl fails with an error different than
32083         EINVAL.
32084         * login/tst-ptsname.c: New file.
32085         * login/Makefile (tests): Add tst-ptsname.
32086
32087         [BZ #16943]
32088         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32089         and prlimit64.
32090
32091 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32092
32093         [BZ #16849]
32094         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32095         herrno to return EAI_AGAIN.
32096
32097 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32098
32099         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32100         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32101         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32102         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32103         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32104         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32105         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32106         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32107         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32108         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32109         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32110         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32111         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32112         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32113         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32114         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32115         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32116         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32117         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32118         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32119         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32120         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32121         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32122         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32123         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32124         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32125         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32126         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32127         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32128         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32130         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32131         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32132         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32133         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32134         Moved ...
32135         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32137         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32139         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32141         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32143         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32145         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32147         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32149         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32151         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32153         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32154         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32155         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32156         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32157         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32159         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32161         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32163         Moved ...
32164         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32165         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32166         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32168         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32170         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32171         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32172         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32173         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32174         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32175         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32176         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32177         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32178         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32180         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32181         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32182         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32183         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32184         Moved ...
32185         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32186         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32187         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32188
32189         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32190         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32191         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32192         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32193         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32194         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32195         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32196         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32197         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32198         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32199         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32200         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32201         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32202         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32203         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32204         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32205         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32206         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32207         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32208         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32209         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32210         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32211         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32212         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32213         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32214         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32215         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32216         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32217         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32218         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32219         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32220
32221         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32222         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32223
32224         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32225         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32226         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32227         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32228         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32229         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32230         Moved ...
32231         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32232         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32233         Moved ...
32234         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32235         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32236         Moved ...
32237         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32238         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32239         Moved ...
32240         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32241         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32242         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32243         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32244         Moved ...
32245         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32246         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32247         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32248         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32249         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32250         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32251         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32252         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32253         Moved ...
32254         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32255         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32256         Moved ...
32257         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32258         ... here.
32259         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32260         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32261         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32262         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32263         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32264         Moved ...
32265         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32266         ... here.
32267         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32268         Moved ...
32269         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32270         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32271         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32272         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32273         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32274         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32275         Moved ...
32276         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32277         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32278         Moved ...
32279         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32280         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32281         Moved ...
32282         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32283         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32284         Moved ...
32285         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32286         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32287         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32288         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32289         Moved ...
32290         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32291         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32292         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32293         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32294         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32295         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32296         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32297         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32298         Moved ...
32299         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32300         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32301         Moved ...
32302         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32303         ... here.
32304         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32305         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32306         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32307         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32308         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32309         Moved ...
32310         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32311         ... here.
32312         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32313         Moved ...
32314         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32315         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32316         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32317         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32318         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32319         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32320         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32321         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32322         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32323         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32324         Moved ...
32325         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32326         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32327         Moved ...
32328         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32329         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32330         Moved ...
32331         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32332         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32333         Moved ...
32334         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32335         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32336         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32337         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32338         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32339         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32340         Moved ...
32341         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32342         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32343         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32344         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32345         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32346         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32347         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32348         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32349         Moved ...
32350         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32351         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32352         Moved ...
32353         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32354         ... here.
32355         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32356         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32357         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32358         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32359         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32360         Moved ...
32361         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32362         ... here.
32363         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32364         Moved ...
32365         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32366         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32367         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32368         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32369         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32370         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32371         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32372         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32373         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32374         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32375         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32376
32377         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32378         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32379
32380         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32381         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32382
32383         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32384         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32385         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32386         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32387         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32388         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32389         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32390         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32391         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32392         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32393         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32394         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32395         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32396         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32397         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32398         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32399         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32400         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32401         Moved ...
32402         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32403         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32404         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32405         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32406         Moved ...
32407         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32408         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32409         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32410         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32411         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32412         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32413         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32414         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32415         Moved ...
32416         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32417         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32418         Moved ...
32419         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32420         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32421         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32422         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32423         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32424         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32425         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32426         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32427         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32428         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32429         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32430         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32431         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32432         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32433         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32434         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32435         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32436
32437         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32438         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32439         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32440         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32441         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32442
32443         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32444         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32445         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32446         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32447         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32448         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32449         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32450         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32451         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32452         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32453
32454         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32455         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32456
32457         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32458         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32459         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32460         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32461         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32462         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32463         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32464         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32465         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32466         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32467         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32468         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32469         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32470         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32471         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32472         Update #include.
32473         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32474         Likewise.
32475         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32476         Likewise.
32477         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32478         Likewise.
32479         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32480         Likewise.
32481         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32482         Likewise.
32483         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32484         Likewise.
32485         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32486         Likewise.
32487         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32488         Likewise.
32489         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32490         Likewise.
32491         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32492         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32493         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32494         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32495         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32496         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32497         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32498         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32499         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32500         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32501         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32502         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32503         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32504         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32505         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32506
32507         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32508         that was previously under [RESET_PID].
32509         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32510         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32511         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32512
32513         * sysdeps/i386/nptl/Implies: New file.
32514         * sysdeps/x86_64/nptl/Implies: New file.
32515         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32516         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32517         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32518         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32519
32520         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32521         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32522         (__libc_vfork): New strong alias.
32523         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32524         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32525
32526         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32527         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32528         (__libc_vfork): New strong alias.
32529         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32530         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32531
32532         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32533         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32534         (__libc_vfork): New strong alias.
32535         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32536         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32537         * nptl/pt-vfork.c: New file.
32538         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32539         (libpthread: GLIBC_2.20): New version set (empty).
32540
32541 2014-05-14  Will Newton  <will.newton@linaro.org>
32542
32543         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32544         rather than #if.
32545
32546 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32547
32548         [BZ #16564]
32549         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32550         arguments with exponent 65 or above.
32551         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32552         arguments 0x1p113L or above.
32553         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32554         to arguments 0x1p107L or above.
32555         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32556         positive arguments with exponent 65 or above.
32557         * math/auto-libm-test-in: Add more tests of log1p.
32558         * math/auto-libm-test-out: Regenerated.
32559
32560         [BZ #16928]
32561         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32562         non-finite arguments is +0.
32563         * math/s_cacosf.c (__cacosf): Likewise.
32564         * math/s_cacosl.c (__cacosl): Likewise.
32565         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32566         * sysdeps/i386/fpu/libm-test-ulps: Update.
32567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32568
32569         [BZ #16927]
32570         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32571         value.
32572         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32573         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32574         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32575         for explicit high bit of mantissa when testing for argument equal
32576         to 1.
32577         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32578         * sysdeps/i386/fpu/libm-test-ulps: Update.
32579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32580
32581         [BZ #16516]
32582         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32583         (__erf): Scale by 16 instead of 8 in potentially underflowing
32584         case.  Ensure exception if result actually underflows.
32585         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32586         (__erff): Scale by 16 instead of 8 in potentially underflowing
32587         case.  Ensure exception if result actually underflows.
32588         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32589         (efx8): Remove variable.
32590         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32591         case.  Ensure exception if result actually underflows.
32592         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32593         (efx8): Remove variable.
32594         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32595         case.  Ensure exception if result actually underflows.
32596         * sysdeps/ieee754/ldbl-96/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         * math/auto-libm-test-in: Add more tests of erf.
32601         * math/auto-libm-test-out: Regenerated.
32602
32603 2014-05-14  Andreas Schwab  <schwab@suse.de>
32604
32605         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32606         Remove code conditionalized on USE___THREAD.
32607
32608         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32609         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32610         not definedness.
32611
32612 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32613
32614         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32615         Define unconditionally.
32616         (__ASSUME_O_CLOEXEC): Likewise.
32617         (__ASSUME_SOCK_CLOEXEC): Likewise.
32618         (__ASSUME_IN_NONBLOCK): Likewise.
32619         (__ASSUME_PIPE2): Likewise.
32620         (__ASSUME_EVENTFD2): Likewise.
32621         (__ASSUME_SIGNALFD4): Likewise.
32622         (__ASSUME_DUP3): Likewise.
32623         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32624         (__ASSUME_DUP3): Do not define.
32625         (__ASSUME_EVENTFD2): Likewise.
32626         (__ASSUME_IN_NONBLOCK): Likewise.
32627         (__ASSUME_O_CLOEXEC): Likewise.
32628         (__ASSUME_PIPE2): Likewise.
32629         (__ASSUME_SIGNALFD4): Likewise.
32630         (__ASSUME_SOCK_CLOEXEC): Likewise.
32631         (__ASSUME_UTIMES): Undefine.
32632         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32633         (__ASSUME_UTIMES): Do not define.
32634         (__ASSUME_O_CLOEXEC): Likewise.
32635         (__ASSUME_SOCK_CLOEXEC): Likewise.
32636         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32637         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32638         0x020621].
32639         (__ASSUME_PIPE2): Likewise.
32640         (__ASSUME_EVENTFD2): Likewise.
32641         (__ASSUME_SIGNALFD4): Likewise.
32642         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32643         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32644         Do not define.
32645         (__ASSUME_EVENTFD2): Likewise.
32646         (__ASSUME_SIGNALFD4): Likewise.
32647         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32648         (__ASSUME_32BITUIDS): Likewise.
32649         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32650         (__ASSUME_IPC64): Likewise.
32651         (__ASSUME_ST_INO_64_BIT): Likewise.
32652         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32653         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32654         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32655         (__ASSUME_UTIMES): Do not define.
32656         (__ASSUME_PSELECT): Likewise.
32657         (__ASSUME_PPOLL): Likewise.
32658         (__ASSUME_O_CLOEXEC): Likewise.
32659         (__ASSUME_SOCK_CLOEXEC): Likewise.
32660         (__ASSUME_IN_NONBLOCK): Likewise.
32661         (__ASSUME_PIPE2): Likewise.
32662         (__ASSUME_EVENTFD2): Likewise.
32663         (__ASSUME_SIGNALFD4): Likewise.
32664         (__ASSUME_DUP3): Likewise.
32665         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32666         (__ASSUME_UTIMES): Likewise.
32667         (__ASSUME_O_CLOEXEC): Likewise.
32668         (__ASSUME_SOCK_CLOEXEC): Likewise.
32669         (__ASSUME_IN_NONBLOCK): Likewise.
32670         (__ASSUME_PIPE2): Likewise.
32671         (__ASSUME_EVENTFD2): Likewise.
32672         (__ASSUME_SIGNALFD4): Likewise.
32673         (__ASSUME_DUP3): Likewise.
32674         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32675         (__ASSUME_UTIMES): Likewise.
32676         (__ASSUME_O_CLOEXEC): Likewise.
32677         (__ASSUME_SOCK_CLOEXEC): Likewise.
32678         (__ASSUME_IN_NONBLOCK): Likewise.
32679         (__ASSUME_PIPE2): Likewise.
32680         (__ASSUME_EVENTFD2): Likewise.
32681         (__ASSUME_SIGNALFD4): Likewise.
32682         (__ASSUME_DUP3): Likewise.
32683         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32684         Likewise.
32685         (__ASSUME_UTIMES): Likewise.
32686         (__ASSUME_EVENTFD2): Likewise.
32687         (__ASSUME_SIGNALFD4): Likewise.
32688         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32689         (__ASSUME_O_CLOEXEC): Likewise.
32690         (__ASSUME_SOCK_CLOEXEC): Likewise.
32691         (__ASSUME_IN_NONBLOCK): Likewise.
32692         (__ASSUME_PIPE2): Likewise.
32693         (__ASSUME_EVENTFD2): Likewise.
32694         (__ASSUME_SIGNALFD4): Likewise.
32695         (__ASSUME_DUP3): Likewise.
32696         (__ASSUME_UTIMES): Undefine.
32697
32698         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32699         feclearexcept.  Remove symbol versioning code.
32700         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32701         symbol versioning code.
32702         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32703         symbol versioning code.
32704         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32705         feupdateenv.  Remove symbol versioning code.
32706         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32707         fegetexceptflag.  Remove symbol versioning code.
32708         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32709         fesetexceptflag.  Remove symbol versioning code.
32710         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32711         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32712         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32713         (__posix_fadvise64_l32): Remove prototype.
32714         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32715         code.
32716
32717 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32718
32719         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32720         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32721         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32722         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32723
32724 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32725
32726         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32727         current working directory
32728
32729 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32730
32731         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32732         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32733         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32734         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32735         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32736         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32737         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32738         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32739         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32740         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32741         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32742         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32743         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32744         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32745         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32746         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32747         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32748         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32749         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32750         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32751         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32752         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32753         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32754         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32755         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32756         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32757         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32758         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32759         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32760         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32761         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32762         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32763         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32764         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32765         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32766         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32767         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32768         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32769         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32770         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32771         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32772         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32773
32774         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32775         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32776
32777         * sysdeps/unix/sysv/linux/arm/Makefile
32778         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32779         Add rt-aeabi_unwind_cpp_pr1.
32780         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32781         Add nptl-aeabi_unwind_cpp_pr1.
32782         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32783         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32784         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32785         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32786         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32787         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32788
32789         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32790         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32791         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32792         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32793
32794         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32795         Deconditionalize the code that was previously under [RESET_PID].
32796         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32797
32798         * sysdeps/generic/exit-thread.h: New file.
32799         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32800         * include/unistd.h (__exit_thread): Remove declaration.
32801         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32802         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32803         * csu/libc-start.c: Include <exit-thread.h>.
32804         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32805         * nptl/pthread_create.c: Include <exit-thread.h>.
32806         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32807         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32808         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32809         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32810         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32811         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32812         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32813         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32814         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32815         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32816         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32817         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32818         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32819         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32820         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32821         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32822         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32823
32824 2014-05-13  Andreas Schwab  <schwab@suse.de>
32825
32826         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32827
32828 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32829
32830         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32831         (__ASSUME_UTIMES): Do not condition on kernel version.
32832         (__ASSUME_PSELECT): Define unconditionally.
32833         (__ASSUME_PPOLL): Likewise.
32834         (__ASSUME_ATFCTS): Likewise.
32835         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32836         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32837         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32838         (__ASSUME_UTIMENSAT): Define unconditionally.
32839         (__ASSUME_PRIVATE_FUTEX): Likewise.
32840         (__ASSUME_FALLOCATE): Likewise.
32841         (__ASSUME_O_CLOEXEC): Likewise.
32842         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
32843         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
32844         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
32845         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
32846         (__ASSUME_IN_NONBLOCK): Likewise.
32847         (__ASSUME_PIPE2): Likewise.
32848         (__ASSUME_EVENTFD2): Likewise.
32849         (__ASSUME_SIGNALFD4): Likewise.
32850         (__ASSUME_DUP3): Likewise.
32851         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32852         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
32853         (__ASSUME_AT_RANDOM): Likewise.
32854         (__ASSUME_PREADV): Likewise.
32855         (__ASSUME_PWRITEV): Likewise.
32856         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
32857         (__ASSUME_F_GETOWN_EX): Define unconditionally.
32858         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
32859         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
32860         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
32861         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32862         (__ASSUME_O_CLOEXEC): Define unconditionally.
32863         (__ASSUME_PSELECT): Do not undefine conditionally.
32864         (__ASSUME_PPOLL): Likewise.
32865         (__ASSUME_ATFCTS): Likewise.
32866         (__ASSUME_SET_ROBUST_LIST): Likewise.
32867         (__ASSUME_UTIMENSAT): Likewise.
32868         (__ASSUME_FDATASYNC): Define unconditionally.
32869         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32870         (__ASSUME_SIGFRAME_V2): Likewise.
32871         )__ASSUME_EVENTFD2): Likewise.
32872         (__ASSUME_SIGNALFD4): Likewise.
32873         (__ASSUME_PSELECT): Do not undefine conditionally.
32874         (__ASSUME_PPOLL): Likewise.
32875         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32876         (__ASSUME_PSELECT): Define unconditionally.
32877         (__ASSUME_PPOLL): Likewise.
32878         (__ASSUME_O_CLOEXEC): Likewise.
32879         (__ASSUME_SOCK_CLOEXEC): Likewise.
32880         (__ASSUME_IN_NONBLOCK): Likewise.
32881         (__ASSUME_PIPE2): Likewise.
32882         (__ASSUME_EVENTFD2): Likewise.
32883         (__ASSUME_SIGNALFD4): Likewise.
32884         (__ASSUME_DUP3): Likewise.
32885         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
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/mips/kernel-features.h
32894         (__ASSUME_EVENTFD2): Likewise.
32895         (__ASSUME_SIGNALFD4): Likewise.
32896         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32897
32898 2014-05-12  Andreas Schwab  <schwab@suse.de>
32899
32900         [BZ #16932]
32901         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
32902         (_nss_nis_gethostbyname4_r): Return error if item length is larger
32903         than maximum RPC packet size.
32904         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
32905         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
32906         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
32907         (_nss_nis_getservbyport_r): Likewise.
32908
32909 2014-05-12  Will Newton  <will.newton@linaro.org>
32910
32911         * malloc/Makefile (tests): Add tst-mallopt.
32912         * malloc/tst-mallopt.c: New file.
32913
32914 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32915
32916         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
32917         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
32918
32919 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32920
32921         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
32922         (tst-tlsmod6.so): Likewise.
32923
32924 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32925
32926         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
32927
32928 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
32929
32930         [BZ #16064]
32931         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
32932         and <dl-procinfo.h>.
32933         (__fegetenv): Save SSE state in envp->__eip if supported.
32934         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
32935         envp->__eip if supported.
32936         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
32937         and <dl-procinfo.h>.
32938         (__fesetenv): Always set __eip, __cs_selector, __opcode,
32939         __data_offset and __data_selector in environment to 0.  Set SSE
32940         state if supported.
32941         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
32942         test-fenv-sse.
32943         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
32944         -mfpmath=sse.
32945         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
32946
32947 2014-05-09  Will Newton  <will.newton@linaro.org>
32948
32949         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
32950         and libc_relro_required for ARM.
32951         * sysdeps/arm/preconfigure: Regenerate.
32952
32953 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32954             Stefan Liebler  <stli@linux.vnet.ibm.com>
32955
32956         * config.make.in (enable-lock-elision): New Makefile variable.
32957         * configure.ac: Likewise.
32958         * configure: Regenerate.
32959         * sysdeps/s390/configure.ac:
32960         Add check for gcc transactions support.
32961         * sysdeps/s390/configure: Regenerate.
32962         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
32963         Build elision files if enabled.
32964         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
32965         Add lock elision support for s390.
32966         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
32967         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
32968         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
32969         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
32970         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
32971         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
32972         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
32973         Likewise.
32974         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
32975         Likewise.
32976         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
32977         Likewise.
32978         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
32979         Likewise.
32980         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
32981         (__lll_timedlock_elision, __lll_lock_elision)
32982         (__lll_unlock_elision, __lll_trylock_elision)
32983         (lll_timedlock_elision, lll_lock_elision)
32984         (lll_unlock_elision, lll_trylock_elision): Add.
32985         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
32986         (pthread_mutex_t): Add lock elision support for s390.
32987
32988 2014-05-14  Wilco  <wdijkstr@arm.com>
32989
32990         * sysdeps/arm/fclrexcpt.c: Cleanup.
32991         * sysdeps/arm/fedisblxcpt.c: Cleanup.
32992         * sysdeps/arm/feenablxcpt.c: Cleanup.
32993         * sysdeps/arm/fegetenv.c: Cleanup.
32994         * sysdeps/arm/fegetexcept.c: Cleanup.
32995         * sysdeps/arm/fegetround.c: Cleanup.
32996         * sysdeps/arm/feholdexcpt.c: Cleanup.
32997         * sysdeps/arm/fesetenv.c: Cleanup.
32998         * sysdeps/arm/fesetround.c: Cleanup.
32999         * sysdeps/arm/feupdateenv.c: Cleanup.
33000         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33001         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33002         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33003         * sysdeps/arm/ftestexcept.c: Cleanup.
33004         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33005         * sysdeps/arm/setfpucw.c: Cleanup.
33006
33007 2014-05-09  Will Newton  <will.newton@linaro.org>
33008
33009         * sysdeps/arm/armv7/strcmp.S: New file.
33010         * NEWS: Mention addition of ARMv7 optimized strcmp.
33011
33012 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33013
33014         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33015         look for %.ac rather than %.in.
33016
33017         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33018         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33019         * sysdeps/mach/hurd/configure: Regenerated.
33020         * sysdeps/unix/sysv/linux/configure: Regenerated.
33021
33022         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33023
33024 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33025
33026         [BZ# 16922]
33027         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33028         (LONG_SUB): Ditto.
33029         (PTR_SUB): Ditto.
33030
33031 2014-05-07  Andreas Schwab  <schwab@suse.de>
33032
33033         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33034         when skipping over non-matching result from nscd.
33035
33036 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33037
33038         [BZ #16876]
33039         * nptl/sockperf.c (client): Check socket return value.
33040
33041         [BZ #16877]
33042         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33043         nscd security class.
33044
33045 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33046
33047         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33048         * sysdeps/arm/unwind.h: ... here.
33049
33050 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33051
33052         [BZ# 16916]
33053         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33054         Define.
33055
33056 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33057
33058         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33059         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33060         multiarch strncpy for PPC64.
33061         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33062         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33063         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33064         multiarch optimizations.
33065         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33066         (__libc_ifunc_impl_list): Likewise.
33067         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33068         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33069         multiarch stpncpy for PPC64.
33070         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33071         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33072
33073 2014-05-06  Andreas Schwab  <schwab@suse.de>
33074
33075         [BZ #16912]
33076         * gmon/mcount.c (_MCOUNT_DECL): Use
33077         atomic_compare_and_exchange_bool_acq instead of
33078         catomic_compare_and_exchange_bool_acq.
33079
33080 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33081
33082         * elf/Makefile (others, install-bin): Remove pldd.
33083         (pldd-modules): Variable removed.
33084         ($(objpfx)pldd): Target removed.
33085         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33086         (others, install-bin): Append pldd here.
33087         ($(objpfx)pldd): New target.
33088
33089         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33090         to 0, so the first #if test emitted later doesn't see it undefined.
33091         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33092         * sysdeps/gnu/errlist.c: Regenerated.
33093
33094 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33095
33096         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33097         [libc_hidden_builtin_def]: Define to empty value.
33098         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33099         [libc_hidden_builtin_def]: Likewise.
33100         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33101         [libc_hidden_builtin_def]: Likewise.
33102         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33103         [libc_hidden_builtin_def]: Likewise.
33104         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33105         __redirect_memcpy and define ifunc as default hidden symbol.
33106         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33107         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33108
33109 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33110
33111         * locale/iso-4217.def: Reintroduce XDR currency.
33112
33113 2014-05-04  Allan McRae  <allan@archlinux.org>
33114
33115         * po/eo.po: Update Esperanto translation from translation project.
33116
33117 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33118
33119         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33120         and FEATURE_INDEX_MAX to 1.
33121         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33122
33123 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33124
33125         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33126         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33127         * iconvdata/big5.c (ONE_DIRECTION): Define.
33128         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33129         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33130         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33131         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33132         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33133         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33134         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33135         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33136         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33137         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33138         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33139         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33140         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33141         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33142         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33143         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33144         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33145         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33146         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33147         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33148         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33149         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33150         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33151         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33152         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33153         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33154         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33155         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33156         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33157         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33158         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33159         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33160         * iconvdata/johab.c (ONE_DIRECTION): Define.
33161         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33162         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33163         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33164         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33165         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33166         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33167         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33168         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33169         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33170         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33171
33172 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33173
33174         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33175         (_IO_JUMPS_OFFSET): Define to 0.
33176
33177         * nptl/sysdeps/pthread/bits/libc-lock.h
33178         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33179         (__libc_lock_define_initialized_recursive): Always define using
33180         initializer.  Modern compilers treat uninitialized (implicit zero) and
33181         explicit zero initializers the same (i.e. put the datum in bss).
33182
33183 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33184
33185         * nscd/nscd-client.h: Include <string.h>.
33186
33187 2014-05-01  David S. Miller  <davem@davemloft.net>
33188
33189         [BZ #16885]
33190         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33191         multiple zero bytes exist at the end of a string.
33192         Reported by Aurelien Jarno <aurelien@aurel32.net>
33193
33194         * string/test-strcmp.c (check): Add explicit test for situations where
33195         there are multiple zero bytes after the first.
33196
33197 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33198
33199         [BZ #16890]
33200         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33201         when compiling wprintf.
33202         * stdio-common/tstdiomisc.c (t3): New function.
33203         (main): Call it.
33204
33205 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33206
33207         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33208         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33209         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33210         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33211
33212 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33213
33214         * stdlib/longlong.h: Updated from GCC.
33215
33216 2014-05-01  Will Newton  <will.newton@linaro.org>
33217             Bernard Ogden  <bernie.ogden@linaro.org>
33218
33219         * NEWS: Update fixed bug list.
33220
33221         [BZ #15119]
33222         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33223
33224 2014-04-30  David S. Miller  <davem@davemloft.net>
33225
33226         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33227         (libc_feholdexcept_setround_sparc_ctx): New function.
33228         (libc_fesetenv_sparc_ctx): Likewise.
33229         (libc_feupdateenv_sparc_ctx): Likewise.
33230         (libc_feholdsetround_sparc_ctx): Likewise.
33231         (libc_feholdexcept_setround_ctx): Define.
33232         (libc_feholdexcept_setroundf_ctx): Likewise.
33233         (libc_feholdexcept_setroundl_ctx): Likewise.
33234         (libc_fesetenv_ctx): Likewise.
33235         (libc_fesetenvf_ctx): Likewise.
33236         (libc_fesetenvl_ctx): Likewise.
33237         (libc_feupdateenv_ctx): Likewise.
33238         (libc_feupdateenvf_ctx): Likewise.
33239         (libc_feupdateenvl_ctx): Likewise.
33240         (libc_feresetround_ctx): Likewise.
33241         (libc_feresetroundf_ctx): Likewise.
33242         (libc_feresetroundl_ctx): Likewise.
33243         (libc_feholdsetround_ctx): Likewise.
33244         (libc_feholdsetroundf_ctx): Likewise.
33245         (libc_feholdsetroundl_ctx): Likewise.
33246
33247         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33248         with __USE_GNU instead of XOPEN cpp guards.
33249
33250         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33251         0.
33252
33253         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33254         with XOPEN cpp guards.
33255
33256 2014-04-30  Julian Brown  <julian@codesourcery.com>
33257
33258         [BZ #16888]
33259         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33260         handling.
33261
33262 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33263
33264         [BZ #9894]
33265         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33266         Change to 2.6.32.
33267         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33268         * sysdeps/unix/sysv/linux/configure: Regenerated.
33269         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33270         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33271         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33272         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33273         * README: Update reference to required Linux kernel version.
33274         * manual/install.texi (Linux): Update reference to required Linux
33275         kernel headers version.
33276         * INSTALL: Regenerated.
33277
33278         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33279         header inclusion.
33280         [POSIX] (limits.h): Likewise.
33281         [POSIX] (math.h): Likewise.
33282         [POSIX] (sys/wait.h): Likewise.
33283         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33284         function.
33285         [POSIX] (stddef.h): Do not allow header inclusion.
33286
33287 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33288
33289         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33290
33291 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33292
33293         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33294         Return immediately after lll_futex_wake.
33295
33296 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33297
33298         [BZ #16791]
33299         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33300         structure.
33301         (datahead_init_pos): Call datahead_init_common early.
33302         (datahead_init_neg): Likewise.
33303
33304         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33305         datahead_init_neg): New functions.
33306         * nscd/aicache.c (addhstaiX): Use them.
33307         * nscd/grpcache.c (cache_addgr): Likewise.
33308         * nscd/hstcache.c (cache_addhst): Likewise.
33309         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33310         * nscd/netgroupcache.c (do_notfound): Likewise.
33311         (addgetnetgrentX): Likewise.
33312         (addinnetgrX): Likewise.
33313         * nscd/pwdcache.c (cache_addpw): Likewise.
33314         * nscd/servicescache.c (cache_addserv): Likewise.
33315
33316 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33317             Atsushi Onoe  <atsushi@onoe.org>
33318
33319         [BZ #14308]
33320         [BZ #12994]
33321         [BZ #13651]
33322         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33323         one response is valid.
33324         * resolv/res_send.c (send_dg): Check for validity of other
33325         response if the current response is a referral.
33326
33327 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33328
33329         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33330
33331 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33332
33333         [BZ #16823]
33334         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33335         Always divide by positive zero when computing -Inf result.
33336         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33337         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33338
33339 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33340
33341         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33342         FPSCR if value do not change.
33343         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33344         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33345         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33346         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33347         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33348         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33349         function.
33350
33351 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33352
33353         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33354         * sysdeps/unix/sysv/linux/hppa: Move directory from
33355         ports/systeps/unix/sysv/linux/hppa.
33356         * README: Update listing for hppa-*-linux-gnu.
33357
33358 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33359
33360         [BZ #16754]
33361         * manual/stdio.texi (Hook functions): Fix types of stream hook
33362         functions.
33363         [BZ #16854]
33364         * socket/sys/socket.h: Fix typo in comment.
33365
33366 2014-04-28  Wilco  <wdijkstr@arm.com>
33367
33368         * sysdeps/arm/fenv_private.h: New file.
33369         * sysdeps/arm/math_private.h: New file.
33370         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33371
33372 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33373
33374         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33375         with __int128_t.
33376         (La_x86_64_retval): Likewise.
33377
33378 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33379
33380         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33381         fpsr if value didn't change.
33382         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33383         to fpcr if value didn't change.
33384         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33385         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33386         fpsr or fpcr if value didn't change.
33387         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33388         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33389         fpcr if value didn't change.
33390         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33391         to fpsr if value didn't change.
33392
33393 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33394
33395         * nptl/tst-sem3.c: Use test-skeleton.c
33396         (main): Rename to do_test.  Use return instead of
33397         exit.
33398         * nptl/tst-sem4.c: Use test-skeleton.c
33399         (main): Rename to do_test.
33400
33401 2014-04-22  David S. Miller  <davem@davemloft.net>
33402
33403         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33404         (struct sigaction): New struct member __glibc_reserved0, change
33405         type of sa_flags to int.
33406
33407 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33408
33409         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33410         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33411
33412 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33413
33414         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33415         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33416
33417 2014-04-22  Will Newton  <will.newton@linaro.org>
33418             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33419
33420         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33421         (__longjmp): Add longjmp and longjmp_target SystemTap
33422         probes.
33423         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33424         (__sigsetjmp): Add setjmp SystemTap probe.
33425
33426 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33427
33428         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33429         match manual order.
33430
33431 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33432
33433         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33434
33435         * sysdeps/powerpc/fpu/fenv_private.h
33436         (libc_feholdexcept_setroundl_ctx): Define to
33437         libc_feholdexcept_setround_ppc_ctx.
33438         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33439         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33440         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33441         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33442
33443 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33444
33445         * sysdeps/aarch64/math-tests.h: New file.
33446
33447 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33448
33449         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33450         New.
33451         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33452         Check and set bit_AVX2_Usable.
33453         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33454         macro.
33455         (bit_AVX2): Likewise.
33456         (index_AVX2_Usable): Likewise.
33457         (CPUID_AVX2): Likewise.
33458         (HAS_AVX2): Likewise.
33459
33460 2014-04-17  Will Newton  <will.newton@linaro.org>
33461
33462         * manual/setjmp.texi (System V contexts): Add note that
33463         calling setcontext on a context created by a call to a
33464         signal handler is undefined.  Update text to note that
33465         setcontext from a signal handler is possible but not
33466         recommended.
33467
33468         [BZ #16629]
33469         * stdlib/tst-setcontext.c: Include signal.h.
33470         (main): Check that the signal stack before and
33471         after swapcontext is the same.
33472
33473         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33474         Re-implement to restore registers in user code and avoid
33475         rt_sigreturn system call.
33476
33477 2014-04-17  Wilco  <wdijkstr@arm.com>
33478
33479         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33480         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33481         * math/test-fenv.c: Skip exception trap tests on targets which only
33482         support non-stop mode.
33483
33484 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33485             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33486
33487         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33488         (libc_feholdsetround_aarch64_ctx)
33489         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33490         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33491         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33492         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33493         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33494         (libc_feresetround_noexl_ctx): Define.
33495
33496 2014-04-16  Richard Henderson  <rth@redhat.com>
33497
33498         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33499
33500         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33501         unwind tables.
33502
33503         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33504         const from the non-libc, non-ldso copy.
33505
33506         * sysdeps/alpha/libm-test-ulps: Regenerate.
33507
33508 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33509             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33510
33511         * sysdeps/aarch64/fpu/math_private.h: New file.
33512
33513 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33514
33515         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33516
33517 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33518
33519         [BZ #16275]
33520         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33521         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33522         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33523         Intel MPX bound registers before _dl_profile_fixup.
33524         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33525         registers after _dl_profile_fixup.  Save and restore bound
33526         registers bnd0/bnd1 when calling _dl_call_pltexit.
33527         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33528         (LR_BND_OFFSET): Likewise.
33529         (LRV_BND0_OFFSET): Likewise.
33530         (LRV_BND1_OFFSET): Likewise.
33531
33532 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33533
33534         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33535         to...
33536         * sysdeps/mach/hurd/i386/tls.h: ... here.
33537         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33538         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33539         fields.
33540
33541 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33542
33543         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33544
33545 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33546
33547         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33548
33549 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33550
33551         [BZ #14770]
33552         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33553         * sysdeps/s390/configure: Regenerate.
33554
33555         [BZ #16824]
33556         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33557         Set round-to-nearest internally to reduce error accumulation.
33558
33559 2014-04-16  Alan Modra  <amodra@gmail.com>
33560
33561         [BZ #16740]
33562         [BZ #16619]
33563         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33564         * math/libm-test.inc (frexp_test_data): Add tests.
33565         * NEWS: Update fixed bug list.
33566
33567 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33568
33569         * benchtests/Makefile: Depend on libraries in build directory.
33570         (bench-math): Separate out math tests.
33571         (bench-pthread): Separate out pthread tests.
33572         (bench): Include math and pthread tests.
33573
33574 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33575
33576         [BZ #16831]
33577         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33578         _dl_debug_initialize.
33579
33580         * configure.ac: Remove SELinux header check.
33581         * configure: Regenerate.
33582         * nscd/selinux.c (perms): Array of const char* to permission names.
33583         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33584         default policy. Call string_to_security_class and string_to_av_perm to
33585         translate strings. Enforce default policy and call avs_has_perm with
33586         results of translated strings.
33587
33588 2014-04-13  David S. Miller  <davem@davemloft.net>
33589
33590         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33591
33592 2014-04-12  Allan McRae  <allan@archlinux.org>
33593
33594         [BZ #16838]
33595         * manual/string.texi (Collation Functions): Fix qsort argument
33596         order in example.
33597         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33598
33599 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33600
33601         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33602         Make the test a no-op if there are no exceptions defined.
33603
33604 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33605
33606         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33607         enable-hardcoded-path-in-tests
33608
33609 2014-04-11  Will Newton  <will.newton@linaro.org>
33610
33611         * benchtests/Makefile (extra-objs): Add json-lib.o.
33612         (bench-func): Tidy up JSON output.
33613         * benchtests/bench-skeleton.c: Include json-lib.h.
33614         (main): Use JSON library functions to do output of
33615         benchmark results.
33616         * benchtests/bench-timing-type.c (main): Output the
33617         timing type simply, leaving formatting to the user.
33618         * benchtests/json-lib.c: New file.
33619         * benchtests/json-lib.h: Likewise.
33620
33621 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33622
33623         [BZ #15215]
33624         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33625         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33626         memory barriers.  Add comments.
33627         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33628         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33629         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33630         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33631         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33632         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33633
33634 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33635
33636         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33637         * sysdeps/s390/s390-64/configure.ac: ... this ...
33638         * sysdeps/s390/configure.ac: ... to here.
33639         * sysdeps/s390/s390-32/configure: Delete file.
33640         * sysdeps/s390/s390-64/configure: Delete file.
33641         * sysdeps/s390/configure: Regenerate.
33642
33643 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33644
33645         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33646
33647 2014-04-11  Will Newton  <will.newton@linaro.org>
33648
33649         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33650         to zero if it is not defined elsewhere.  (mtrim): Test
33651         the value of MALLOC_DEBUG with #if rather than #ifdef.
33652
33653 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33654
33655         * benchtests/pthread_once-inputs: New file.
33656         * benchtests/pthread_once-source.c: New file.
33657         * benchtests/README: Update documentation.
33658
33659 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33660             H.J. Lu  <hongjiu.lu@intel.com>
33661
33662         [BZ #16275]
33663         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33664         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33665         * sysdeps/x86_64/configure: Regenerated.
33666         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33667         macro.
33668         (REGISTER_SAVE_RAX): Likewise.
33669         (REGISTER_SAVE_RCX): Likewise.
33670         (REGISTER_SAVE_RDX): Likewise.
33671         (REGISTER_SAVE_RSI): Likewise.
33672         (REGISTER_SAVE_RDI): Likewise.
33673         (REGISTER_SAVE_R8): Likewise.
33674         (REGISTER_SAVE_R9): Likewise.
33675         (REGISTER_SAVE_BND0): Likewise.
33676         (REGISTER_SAVE_BND1): Likewise.
33677         (REGISTER_SAVE_BND2): Likewise.
33678         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33679         bound registers when calling _dl_fixup.
33680
33681 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33682
33683         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33684         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33685         of its definition.
33686         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33687         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33688         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33689         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33690         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33691         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33692         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33693
33694 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33695
33696         [BZ #15514]
33697         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33698         pathconf(_PC_NAME_MAX).
33699
33700 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33701
33702         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33703         Remove macro usage.
33704         (__PTHREAD_SPINS): Move definition to ...
33705         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33706         (__PTHREAD_SPINS): ... here.
33707         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33708         (__PTHREAD_SPIN): Likewise.
33709         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33710         (__PTHREAD_SPIN): Likewise.
33711         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33712         (__PTHREAD_SPIN): Likewise.
33713         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33714         (__PTHREAD_SPIN): Likewise.
33715         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33716         (__PTHREAD_SPIN): Likewise.
33717         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33718         (__PTHREAD_SPIN): Likewise.
33719         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33720         (__PTHREAD_SPIN): Likewise.
33721         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33722         (__PTHREAD_SPIN): Likewise.
33723         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33724         (__PTHREAD_SPIN): Likewise.
33725         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33726         (__PTHREAD_SPIN): Likewise.
33727         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33728         (__PTHREAD_SPIN): Likewise.
33729         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33730         (__PTHREAD_SPIN): Likewise.
33731
33732         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33733         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33734         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33735         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33736         imply folder.
33737         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33738         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33739         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33740         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33741         correct imply path.
33742         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33743         strlen symbol for non multi-arch builds.
33744         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33745         missing hidden_def and weak_alias.
33746
33747 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33748
33749         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33750
33751 2014-04-07  Will Newton  <will.newton@linaro.org>
33752
33753         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33754         and contents.  [!_LIBC] Remove #ifndef and contents.
33755         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33756         * string/memccpy.c (__memccpy): Use ANSI prototype.
33757         * string/memfrob.c (memfrob): Likewise.
33758         * string/strcoll.c (STRCOLL): Likewise.
33759         * string/strlen.c (strlen): Likewise.
33760         * string/strtok.c (STRTOK): Likewise.
33761         * string/strcat.c: Remove unused #include of memcopy.h.
33762         (strcat): Use ANSI prototype.
33763         * string/strchr.c: Remove unused #include of memcopy.h.
33764         (strchr): Use ANSI prototype.
33765         * string/strcmp.c: Remove unused #include of memcopy.h.
33766         (strcmp): Use ANSI prototype.
33767         * string/strcpy.c: Remove unused #include of memcopy.h.
33768         (strcpy): Use ANSI prototype.
33769
33770 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33771
33772         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33773         * config.make.in (config-extra-cppflags): Set it from
33774         libc_extra_cppflags.
33775         * configure.ac (libc_extra_cflags): Make it accumulate over
33776         configure fragments.
33777         (libc_extra_cppflags): New flag.
33778         * configure. Regenerate.
33779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33780         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33781         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33783
33784         [BZ #16815]
33785         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33786         result for FE_DOWNWARD rounding mode.
33787         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33788         Likewise.
33789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33790
33791 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33792
33793         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33794         in function argument name.
33795
33796 2014-04-03  David Svoboda  <svoboda@cert.org>
33797
33798         [BZ #5666]
33799         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33800         explicitly.
33801
33802 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33803
33804         * elf/dl-unmap-segments.h: New file.
33805         * sysdeps/generic/ldsodefs.h
33806         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33807         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33808         * elf/dl-fptr.c: Likewise.
33809         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33810         * sysdeps/aarch64/tlsdesc.c: Likewise.
33811         * sysdeps/arm/tlsdesc.c: Likewise.
33812         * sysdeps/i386/tlsdesc.c: Likewise.
33813         * sysdeps/tile/dl-runtime.c: Likewise.
33814         * sysdeps/x86_64/tlsdesc.c: Likewise.
33815         * elf/dl-load.h: New file.
33816         * elf/dl-load.c: Include it.
33817         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33818         Macros moved to dl-load.h.
33819         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33820         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33821         Use _dl_unmap_segments in place of __munmap.
33822         Break out segment-mapping loop into ...
33823         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33824
33825 2014-04-03  Will Newton  <will.newton@linaro.org>
33826
33827         * elf/dl-lookup.c (do_lookup_x): Remove comment
33828         referring to nested function and move variable
33829         declarations down to before first use.
33830
33831 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33832
33833         [BZ #16799]
33834         [BZ #16800]
33835         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33836         with 0 numerator.
33837         * math/s_catanf.c (__catanf): Likewise.
33838         * math/s_catanh.c (__catanh): Likewise.
33839         * math/s_catanhf.c (__catanhf): Likewise.
33840         * math/s_catanhl.c (__catanhl): Likewise.
33841         * math/s_catanl.c (__catanl): Likewise.
33842         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
33843         by positive zero when computing -Inf result.
33844         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
33845         (catanh_test): Likewise.
33846         * sysdeps/i386/fpu/libm-test-ulps: Update.
33847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33848
33849         [BZ #16789]
33850         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
33851         instead of using underflowing value in computing result.
33852         * math/s_clog10.c (__clog10): Likewise.
33853         * math/s_clog10f.c (__clog10f): Likewise.
33854         * math/s_clog10l.c (__clog10l): Likewise.
33855         * math/s_clogf.c (__clogf): Likewise.
33856         * math/s_clogl.c (__clogl): Likewise.
33857         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
33858         (clog10_test): Likewise.
33859         * sysdeps/i386/fpu/libm-test-ulps: Update.
33860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33861
33862 2014-04-02  Alan Modra  <amodra@gmail.com>
33863
33864         [BZ #16739]
33865         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
33866         output when value is near a power of two.  Use int64_t for lx and
33867         remove casts.  Use decimal rather than hex exponent constants.
33868         Don't use long double multiplication when double will suffice.
33869         * math/libm-test.inc (nextafter_test_data): Add tests.
33870         * NEWS: Add 16739 and 16786 to bug list.
33871
33872         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
33873
33874         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
33875
33876 2014-04-01  Will Newton  <will.newton@linaro.org>
33877
33878         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
33879         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
33880
33881 2014-04-01  Florian Weimer  <fweimer@redhat.com>
33882
33883         [BZ #13347]
33884         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
33885         * nptl/tst-setuid2.c: New file.
33886         * nptl/Makefile (xtests): Add tst-setuid2.
33887
33888 2014-04-01  Alan Modra  <amodra@gmail.com>
33889
33890         [BZ #16786]
33891         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
33892
33893 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33894
33895         [BZ #6803]
33896         [BZ #6804]
33897         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
33898         set errno as appropriate.
33899         * math/w_scalbf.c (__scalbf): Likewise.
33900         * math/w_scalbl.c (__scalbl): Likewise.
33901         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
33902         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
33903         * math/libm-test.inc (scalb_test_data): Add errno expectations.
33904         Add more NaN tests.
33905
33906         [BZ #16349]
33907         * math/w_atan2.c: Include <errno.h>.
33908         (__atan2): Set errno for result underflowing to zero.
33909         * math/w_atan2f.c: Include <errno.h>.
33910         (__atan2f): Set errno for result underflowing to zero.
33911         * math/w_atan2l.c: Include <errno.h>.
33912         (__atan2l): Set errno for result underflowing to zero.
33913         * math/auto-libm-test-in: Don't allow missing errno for some atan2
33914         tests.
33915         * math/auto-libm-test-out: Regenerated.
33916
33917 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33918
33919         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
33920         Encode instruction correctly in little endian.
33921         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
33922         Likewise.
33923         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
33924         Likewise.
33925         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
33926         Likewise.
33927         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
33928         Likewise.
33929
33930 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33931
33932         [BZ #9894]
33933         * sysdeps/unix/sysv/linux/kernel-features.h
33934         [__sparc__ && !__arch64__ && !__sparc_v9__]
33935         (__ASSUME_SET_ROBUST_LIST): Do not define.
33936         [__sparc__ && !__arch64__ && !__sparc_v9__]
33937         (__ASSUME_FUTEX_LOCK_PI): Likewise.
33938         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
33939         Likewise.
33940         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33941         (__ASSUME_FUTEX_LOCK_PI): Undefine.
33942         (__ASSUME_REQUEUE_PI): Likewise.
33943         (__ASSUME_SET_ROBUST_LIST): Likewise.
33944         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33945         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
33946         Undefine.
33947         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33948         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
33949         Likewise.
33950         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
33951         Likewise.
33952         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
33953         Likewise.
33954         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33955         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
33956         Undefine.
33957         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
33958         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
33959         Likewise.
33960
33961         [BZ #16648]
33962         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33963         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
33964         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
33965
33966 2014-03-31  Will Newton  <will.newton@linaro.org>
33967
33968         * benchtests/Makefile (bench): Add ffs and ffsll to list
33969         of tests.
33970         * benchtests/ffs-inputs: New file.
33971         * benchtests/ffsll-inputs: Likewise.
33972
33973 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
33974
33975         [BZ #16770]
33976         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
33977         too large before casting to int.
33978         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
33979         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
33980         * math/libm-test.inc (scalb_test_data): Add more tests.
33981
33982 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
33983
33984         * benchtests/Makefile (DETAILED_OPT): New make option.
33985         (bench-func): Run benchmark program with -d if DETAILED_OPT is
33986         set.
33987         * benchtests/bench-skeleton.c: Include stdbool.h.
33988         (main): Store and print timings per input.
33989         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
33990         member to each argument value.
33991         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
33992         (_print_arg_data): Initialize per-input timing to 0.
33993
33994         * benchtests/Makefile (timing-type): New binary.
33995         (bench-clean): Also remove bench-timing-type.
33996         (bench): New target for timing-type.
33997         (bench-func): Print output in JSON format.
33998         * benchtests/bench-skeleton.c (main): Print output in JSON
33999         format.
34000         * benchtests/bench-timing-type.c: New file.
34001         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34002         (TIMING_PRINT_STATS): Remove.
34003         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34004         name separately.
34005
34006         * benchtests/bench-modf.c: Remove.
34007         * benchtests/modf-inputs: New inputs file.
34008
34009 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34010
34011         [BZ #16362]
34012         * math/s_clog10.c (M_PI_LOG10E): New macro.
34013         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34014         imaginary parts are 0.
34015         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34016         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34017         imaginary parts are 0.
34018         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34019         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34020         imaginary parts are 0.
34021         * math/libm-test.inc (clog10_test_data): Update expected results
34022         for when real and imaginary parts are 0.
34023
34024 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34025
34026         * elf/dl-load.c: Finish conversion of __builtin_expect into
34027         __glibc_{un}likely.
34028
34029 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34030
34031         [BZ #16348]
34032         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34033         1+x for argument with exponent below -67.
34034         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34035         Likewise.
34036         * math/auto-libm-test-in: Add more tests of exp.
34037         * math/auto-libm-test-out: Regenerated.
34038
34039 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34040
34041         [BZ #16759]
34042         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34043         (nscd_getnetgrent): Use it.
34044
34045         [BZ #16760]
34046         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34047         of stpcpy.
34048
34049 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34050
34051         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34052         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34053         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34054         (lll_robust_unlock): Remove out of line section. Use cfi
34055         intrinsics.
34056         (LLL_STUB_UNWIND_INFO*): Remove.
34057         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34058         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34059         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34060         (lll_robust_unlock): Remove out of line section. Use cfi
34061         intrinsics.
34062         (LLL_STUB_UNWIND_INFO*): Remove.
34063
34064 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34065
34066         [BZ #16758]
34067         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34068         blank values.
34069
34070 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34071
34072         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34073
34074 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34075
34076         [BZ #16198]
34077         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34078         fnstenv.
34079         * math/test-fenv-preserve.c: New file.
34080         * math/Makefile (tests): Add test-fenv-preserve.
34081
34082 2014-03-26  Will Newton <will.newton@linaro.org>
34083
34084         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34085
34086 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34087
34088         * scripts/versionlist.awk: Partition the version sets and emit all
34089         GLIBC_* (sorted) before all others (sorted).
34090
34091 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34092
34093         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34094         GLIBC_2.2.5 version.
34095
34096 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34097
34098         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34099         calls.
34100
34101         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34102         previous change.
34103
34104         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34105
34106 2014-03-25  Andreas Schwab  <schwab@suse.de>
34107
34108         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34109         label to be used after in6ailist is initialized.
34110
34111 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34112
34113         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34114         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34115
34116 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34117
34118         [BZ #16357]
34119         [BZ #16599]
34120         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34121         min_plus_half.
34122         (fp_formats): Update initializers.
34123         (init_fp_formats): Initialize new field.
34124         (output_for_one_input_case): Allow underflow for results up to
34125         min_plus_half.
34126         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34127         * math/auto-libm-test-in: Don't mark some underflows from asin and
34128         atanh as spurious.
34129         * math/auto-libm-test-out: Regenerated.
34130         * sysdeps/i386/fpu/libm-test-ulps: Update.
34131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34132
34133 2014-03-25  Andreas Schwab  <schwab@suse.de>
34134
34135         * libio/Makefile (tst-ftell-partial-wide-ENV)
34136         (tst-ftell-active-handler-ENV): Define.
34137
34138 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34139
34140         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34141
34142 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34143
34144         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34145
34146 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34147
34148         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34149         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34150         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34151
34152 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34153
34154         [BZ #16634]
34155         * elf/dl-load.c (open_verify): Add mode parameter.
34156         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34157         (open_path): Change from boolean 'secure' to complete flag 'mode'
34158         (_dl_map_object): Adjust.
34159         * elf/Makefile (tests): Add tst-dlopen-aout.
34160         * elf/tst-dlopen-aout.c: New test.
34161
34162 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34163
34164         [BZ #16714]
34165         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34166         (struct stat): Rename member pad0 to __glibc_reserved0.
34167
34168         [BZ #16712]
34169         * sysdeps/s390/s390-32/bits/wordsize.h
34170         (__WORDSIZE32_SIZE_ULONG): New define.
34171         * sysdeps/s390/s390-64/bits/wordsize.h
34172         (__WORDSIZE32_SIZE_ULONG): Likewise.
34173         * sysdeps/generic/stdint.h (SIZE_MAX):
34174         Define as UL if __WORDSIZE32_SIZE_ULONG.
34175
34176         [BZ #16713]
34177         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34178         (__glibc_reserved0): New variable.
34179         (sa_flags): Change type to int.
34180
34181         * posix/Makefile (before-compile): Use += before-compile instead
34182         of a :=.
34183
34184         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34185         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34186
34187 2014-03-20  Andreas Schwab  <schwab@suse.de>
34188
34189         [BZ #16743]
34190         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34191         non-matching result from nscd.
34192
34193 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34194
34195         * scripts/bench.py: Moved to ...
34196         * benchtests/scripts/bench.py: ... here.
34197         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34198
34199 2014-03-24  Andreas Schwab  <schwab@suse.de>
34200
34201         [BZ #16002]
34202         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34203         alloca_account and account alloca use for struct in6ailist.
34204
34205 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34206
34207         [BZ #16284]
34208         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34209         rounding mode to recompute results that overflow to infinity or
34210         underflow to zero.
34211         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34212         bug 16284.
34213         * math/auto-libm-test-out: Regenerated.
34214         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34215         (ccosh_test): Likewise.
34216         (csin_test_data): Use plus_oflow.
34217         (csin_test): Use ALL_RM_TEST.
34218         (csinh_test_data): Use plus_oflow.
34219         (csinh_test): Use ALL_RM_TEST.
34220         * sysdeps/i386/fpu/libm-test-ulps: Update.
34221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34222
34223 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34224
34225         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34226         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34227         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34228
34229         [BZ #16731]
34230         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34231         when x - 1 is zero.
34232         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34233         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34234         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34235         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34236         argument is 1.
34237         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34238         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34239         zero.
34240         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34241         * sysdeps/i386/fpu/libm-test-ulps: Update.
34242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34243
34244 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34245
34246         * scripts/bench.pl: Remove file.
34247         * scripts/bench.py: New benchmark script.
34248         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34249         * benchtests/README: Mention python dependency.
34250         * scripts/pylintrc: New file.
34251         * scripts/pylint: New file.
34252
34253         * bits/mathdef.h: Use #ifdef instead of #if.
34254         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34255         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34256         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34257         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34258         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34259         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34260
34261 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34262             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34263
34264         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34265         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34266         and strpbrk-ppc64 objects.
34267         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34268         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34269         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34270         multiarch strpbrk for POWER7.
34271         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34272         multiarch strpbrk for PPC64.
34273         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34274         ifunc selector.
34275         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34276         strpbrk for POWER7.
34277
34278 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34279
34280         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34281         (atan_test): Likewise.
34282         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34283         (atanh_test): Use ALL_RM_TEST.
34284         (atan2_test_data): Likewise.
34285         (cabs_test): Likewise.
34286         (cacosh_test): Likewise.
34287         (carg_test): Likewise.
34288         (casin_test): Likewise.
34289         (casinh_test): Likewise.
34290         (cbrt_test): Likewise.
34291         (csqrt_test): Likewise.
34292         (erf_test): Likewise.
34293         (erfc_test): Likewise.
34294         (pow10_test): Likewise.
34295         (exp2_test): Likewise.
34296         (hypot_test): Likewise.
34297         (j0_test): Likewise.
34298         (j1_test): Likewise.
34299         (lgamma_test): Likewise.
34300         (gamma_test): Likewise.
34301         (sincos_test): Likewise.
34302         (tanh_test): Likewise.
34303         (y0_test): Likewise.
34304         (y1_test): Likewise.
34305         * sysdeps/i386/fpu/libm-test-ulps: Update.
34306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34307
34308 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34309
34310         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34311         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34312         and strcspn-ppc64 objects.
34313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34314         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34315         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34316         multiarch strcspn for POWER7.
34317         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34318         multiarch strcspn for PPC64.
34319         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34320         ifunc selector.
34321         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34322         strcspn for POWER7.
34323
34324 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34325
34326         * math/gen-libm-test.pl (generate_testfile): Expect only function
34327         name as argument to AUTO_TESTS_* and pass results for all rounding
34328         modes to parse_args.
34329         (parse_auto_input): Separate inputs of automatic tests from
34330         outputs before storing in %auto_tests.
34331         * math/libm-test.inc (acos_test_data): Update call to
34332         AUTO_TESTS_f_f.
34333         (acos_test): Use ALL_RM_TEST.
34334         (acos_tonearest_test_data): Remove.
34335         (acos_test_tonearest): Likewise.
34336         (acos_towardzero_test_data): Likewise.
34337         (acos_test_towardzero): Likewise.
34338         (acos_downward_test_data): Likewise.
34339         (acos_test_downward): Likewise.
34340         (acos_upward_test_data): Likewise.
34341         (acos_test_upward): Likewise.
34342         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34343         (asin_test_data): Likewise.
34344         (asin_test): Use ALL_RM_TEST.
34345         (asin_tonearest_test_data): Remove.
34346         (asin_test_tonearest): Likewise.
34347         (asin_towardzero_test_data): Likewise.
34348         (asin_test_towardzero): Likewise.
34349         (asin_downward_test_data): Likewise.
34350         (asin_test_downward): Likewise.
34351         (asin_upward_test_data): Likewise.
34352         (asin_test_upward): Likewise.
34353         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34354         (atan_test_data): Likewise.
34355         (atanh_test_data): Likewise.
34356         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34357         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34358         (carg_test_data): Likewise.
34359         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34360         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34361         (ccosh_test_data): Likewise.
34362         (cexp_test_data): Likewise.
34363         (clog_test_data): Likewise.
34364         (clog10_test_data): Likewise.
34365         (cos_test_data): Update call to AUTO_TESTS_f_f.
34366         (cos_test): Use ALL_RM_TEST.
34367         (cos_tonearest_test_data): Remove.
34368         (cos_test_tonearest): Likewise.
34369         (cos_towardzero_test_data): Likewise.
34370         (cos_test_towardzero): Likewise.
34371         (cos_downward_test_data): Likewise.
34372         (cos_test_downward): Likewise.
34373         (cos_upward_test_data): Likewise.
34374         (cos_test_upward): Likewise.
34375         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34376         (cosh_test): Use ALL_RM_TEST.
34377         (cosh_tonearest_test_data): Remove.
34378         (cosh_test_tonearest): Likewise.
34379         (cosh_towardzero_test_data): Likewise.
34380         (cosh_test_towardzero): Likewise.
34381         (cosh_downward_test_data): Likewise.
34382         (cosh_test_downward): Likewise.
34383         (cosh_upward_test_data): Likewise.
34384         (cosh_test_upward): Likewise.
34385         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34386         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34387         (ctan_test_data): Likewise.
34388         (ctan_test): Use ALL_RM_TEST.
34389         (ctan_tonearest_test_data): Remove.
34390         (ctan_test_tonearest): Likewise.
34391         (ctan_towardzero_test_data): Likewise.
34392         (ctan_test_towardzero): Likewise.
34393         (ctan_downward_test_data): Likewise.
34394         (ctan_test_downward): Likewise.
34395         (ctan_upward_test_data): Likewise.
34396         (ctan_test_upward): Likewise.
34397         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34398         (ctanh_test): Use ALL_RM_TEST.
34399         (ctanh_tonearest_test_data): Remove.
34400         (ctanh_test_tonearest): Likewise.
34401         (ctanh_towardzero_test_data): Likewise.
34402         (ctanh_test_towardzero): Likewise.
34403         (ctanh_downward_test_data): Likewise.
34404         (ctanh_test_downward): Likewise.
34405         (ctanh_upward_test_data): Likewise.
34406         (ctanh_test_upward): Likewise.
34407         (erf_test_data): Update call to AUTO_TESTS_f_f.
34408         (erfc_test_data): Likewise.
34409         (exp_test_data): Likewise.
34410         (exp_test): Use ALL_RM_TEST.
34411         (exp_tonearest_test_data): Remove.
34412         (exp_test_tonearest): Likewise.
34413         (exp_towardzero_test_data): Likewise.
34414         (exp_test_towardzero): Likewise.
34415         (exp_downward_test_data): Likewise.
34416         (exp_test_downward): Likewise.
34417         (exp_upward_test_data): Likewise.
34418         (exp_test_upward): Likewise.
34419         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34420         (exp10_test): Use ALL_RM_TEST.
34421         (exp10_tonearest_test_data): Remove.
34422         (exp10_test_tonearest): Likewise.
34423         (exp10_towardzero_test_data): Likewise.
34424         (exp10_test_towardzero): Likewise.
34425         (exp10_downward_test_data): Likewise.
34426         (exp10_test_downward): Likewise.
34427         (exp10_upward_test_data): Likewise.
34428         (exp10_test_upward): Likewise.
34429         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34430         (expm1_test_data): Likewise.
34431         (expm1_test): Use ALL_RM_TEST.
34432         (expm1_tonearest_test_data): Remove.
34433         (expm1_test_tonearest): Likewise.
34434         (expm1_towardzero_test_data): Likewise.
34435         (expm1_test_towardzero): Likewise.
34436         (expm1_downward_test_data): Likewise.
34437         (expm1_test_downward): Likewise.
34438         (expm1_upward_test_data): Likewise.
34439         (expm1_test_upward): Likewise.
34440         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34441         (fma_test): Use ALL_RM_TEST.
34442         (fma_towardzero_test_data): Remove.
34443         (fma_test_towardzero): Likewise.
34444         (fma_downward_test_data): Likewise.
34445         (fma_test_downward): Likewise.
34446         (fma_upward_test_data): Likewise.
34447         (fma_test_upward): Likewise.
34448         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34449         (j0_test_data): Update call to AUTO_TESTS_f_f.
34450         (j1_test_data): Likewise.
34451         (jn_test_data): Update call to AUTO_TESTS_if_f.
34452         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34453         (log_test_data): Update call to AUTO_TESTS_f_f.
34454         (log10_test_data): Likewise.
34455         (log1p_test_data): Likewise.
34456         (log2_test_data): Likewise.
34457         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34458         (pow_tonearest_test_data): Likewise.
34459         (sin_test_data): Update call to AUTO_TESTS_f_f.
34460         (sin_test): Use ALL_RM_TEST.
34461         (sin_tonearest_test_data): Remove.
34462         (sin_test_tonearest): Likewise.
34463         (sin_towardzero_test_data): Likewise.
34464         (sin_test_towardzero): Likewise.
34465         (sin_downward_test_data): Likewise.
34466         (sin_test_downward): Likewise.
34467         (sin_upward_test_data): Likewise.
34468         (sin_test_upward): Likewise.
34469         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34470         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34471         (sinh_test): Use ALL_RM_TEST.
34472         (sinh_tonearest_test_data): Remove.
34473         (sinh_test_tonearest): Likewise.
34474         (sinh_towardzero_test_data): Likewise.
34475         (sinh_test_towardzero): Likewise.
34476         (sinh_downward_test_data): Likewise.
34477         (sinh_test_downward): Likewise.
34478         (sinh_upward_test_data): Likewise.
34479         (sinh_test_upward): Likewise.
34480         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34481         (sqrt_test): Use ALL_RM_TEST.
34482         (sqrt_tonearest_test_data): Remove.
34483         (sqrt_test_tonearest): Likewise.
34484         (sqrt_towardzero_test_data): Likewise.
34485         (sqrt_test_towardzero): Likewise.
34486         (sqrt_downward_test_data): Likewise.
34487         (sqrt_test_downward): Likewise.
34488         (sqrt_upward_test_data): Likewise.
34489         (sqrt_test_upward): Likewise.
34490         (tan_test_data): Update call to AUTO_TESTS_f_f.
34491         (tan_test): Use ALL_RM_TEST.
34492         (tan_tonearest_test_data): Remove.
34493         (tan_test_tonearest): Likewise.
34494         (tan_towardzero_test_data): Likewise.
34495         (tan_test_towardzero): Likewise.
34496         (tan_downward_test_data): Likewise.
34497         (tan_test_downward): Likewise.
34498         (tan_upward_test_data): Likewise.
34499         (tan_test_upward): Likewise.
34500         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34501         (tgamma_test_data): Likewise.
34502         (y0_test_data): Likewise.
34503         (y1_test_data): Likewise.
34504         (yn_test_data): Update call to AUTO_TESTS_if_f.
34505         (main): Do not call removed functions.
34506
34507 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34508
34509         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34510         (ldexp_test_data): Remove.
34511         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34512         scalbn_test_data.
34513         (scalb_test): Use ALL_RM_TEST.
34514
34515 2014-03-19  Andreas Schwab  <schwab@suse.de>
34516
34517         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34518
34519 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34520
34521         [BZ #16649]
34522         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34523         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34524         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34525         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34526         (__ASSUME_PREADV): Undefine.
34527         (__ASSUME_PWRITEV): Likewise.
34528
34529 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34530
34531         * bits/mman-linux.h: Add comment about non-Linux use.
34532         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34533         bits/mman-linux.h resting place.
34534
34535         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34536         * bits/mman-linux.h: ... here.
34537
34538 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34539
34540         * conform/conformtest.pl: Add standard definition when calling C
34541         preprocessor on data files.
34542         (checknamespace): Remove unused variable.
34543
34544 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34545
34546         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34547         minus_oflow, plus_uflow and minus_uflow in expected results.
34548         * math/libm-test.inc (scalbn_test_data): Add more tests of
34549         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34550         minus_uflow.
34551         (scalbn_test): Use ALL_RM_TEST.
34552         (scalbln_test_data): Add more tests of negative arguments.  Use
34553         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34554         (scalbln_test): Use ALL_RM_TEST.
34555
34556 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34557
34558         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34559
34560 2014-03-18  Will Newton  <will.newton@linaro.org>
34561
34562         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34563         inaccurate comment.
34564
34565 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34566
34567         * Makerules [!subdir] (check-abi): Exit with error status if a
34568         test failed.
34569
34570 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34571
34572         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34573         for rint.  Include results for all rounding modes.
34574         (nearbyint_test): Use ALL_RM_TEST.
34575         (rint_test_data): Include all tests used for nearbyint.
34576
34577 2014-03-17  Will Newton  <will.newton@linaro.org>
34578
34579         * nptl/sysdeps/pthread/pthread.h: Revert previous
34580         change.
34581
34582         * sysdeps/generic/ldsodefs.h: Revert previous
34583         change.
34584
34585         * libio/genops.c: Revert previous change.
34586         * libio/libioP.h: Likewise.
34587         * stdio-common/vfprintf.c: Likewise.
34588
34589         * sysdeps/generic/math_private.h: Revert previous
34590         change.
34591
34592         * sysdeps/generic/math_private.h: Check whether
34593         HAVE_RM_CTX is defined with #ifdef rather
34594         than #if.
34595
34596         * argp/argp-fmtstream.h: Check whether
34597         __STRICT_ANSI__ is defined with #ifdef rather
34598         than #if.
34599         * argp/argp.h: Likewise.
34600
34601         * libio/genops.c: Check whether
34602         _IO_JUMPS_OFFSET is defined with #ifdef rather
34603         than #if.
34604         * libio/libioP.h: Likewise.
34605         * stdio-common/vfprintf.c: Likewise.
34606
34607         * sysdeps/generic/ldsodefs.h: Check whether
34608         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34609         than #if.
34610
34611         * nptl/sysdeps/pthread/pthread.h: Check
34612         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34613         its value.
34614
34615 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34616
34617         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34618         setting O_APPEND.
34619         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34620         test case.
34621
34622         [BZ #16680]
34623         * libio/fileops.c (_IO_file_open): Seek to end of file but
34624         don't cache the offset.
34625         (get_file_offset): Remove function.
34626         (do_ftell): Use cached offset when available.
34627         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34628         don't cache the offset.
34629         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34630         case.
34631         (do_one_test): Call it.
34632         (do_ftell_test): Fix up expected old offset for a+ mode.
34633         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34634         available.
34635
34636         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34637         up test status with function return status.
34638         (do_write_test): Likewise.
34639         (do_append_test): Likewise.
34640
34641         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34642         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34643         Remove.
34644
34645 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34646
34647         * math/gen-libm-test.pl (parse_args): Handle results specified for
34648         each rounding mode separately.
34649         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34650         tests and results from lrint_tonearest_test_data,
34651         lrint_towardzero_test_data, lrint_downward_test_data and
34652         lrint_upward_test_data.
34653         (lrint_test): Use ALL_RM_TEST.
34654         (lrint_tonearest_test_data): Remove.
34655         (lrint_test_tonearest): Likewise.
34656         (lrint_towardzero_test_data): Likewise.
34657         (lrint_test_towardzero): Likewise.
34658         (lrint_downward_test_data): Likewise.
34659         (lrint_test_downward): Likewise.
34660         (lrint_upward_test_data): Likewise.
34661         (lrint_test_upward): Likewise.
34662         (llrint_test_data): Merge in per-rounding-mode tests and results
34663         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34664         llrint_downward_test_data and llrint_upward_test_data.
34665         (llrint_test): Use ALL_RM_TEST.
34666         (llrint_tonearest_test_data): Remove.
34667         (llrint_test_tonearest): Likewise.
34668         (llrint_towardzero_test_data): Likewise.
34669         (llrint_test_towardzero): Likewise.
34670         (llrint_downward_test_data): Likewise.
34671         (llrint_test_downward): Likewise.
34672         (llrint_upward_test_data): Likewise.
34673         (llrint_test_upward): Likewise.
34674         (rint_test_data): Merge in per-rounding-mode tests and results
34675         from rint_tonearest_test_data, rint_towardzero_test_data,
34676         rint_downward_test_data and rint_upward_test_data.  Add
34677         per-rounding-mode results for tests not in those arrays.
34678         (rint_test): Use ALL_RM_TEST.
34679         (rint_tonearest_test_data): Remove.
34680         (rint_test_tonearest): Likewise.
34681         (rint_towardzero_test_data): Likewise.
34682         (rint_test_towardzero): Likewise.
34683         (rint_downward_test_data): Likewise.
34684         (rint_test_downward): Likewise.
34685         (rint_upward_test_data): Likewise.
34686         (rint_test_upward): Likewise.
34687         (main): Don't call removed functions.
34688
34689 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34690
34691         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34692         "Compiled on ..." crapola.  It is anti-useful.
34693
34694 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34695
34696         * scripts/evaluate-test.sh: Handle fourth argument to determine
34697         whether test run should stop on failure.
34698         * Makeconfig (stop-on-test-failure): New variable.
34699         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34700         $(stop-on-test-failure).
34701         * Makefile (tests): Give a summary of results from testing and
34702         exit with failure status if they include an ERROR or FAIL.
34703         (xtests): Likewise.
34704         * manual/install.texi (Configuring and compiling): Mention
34705         stop-on-test-failure=y.
34706         * INSTALL: Regenerated.
34707
34708 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34709
34710         * scripts/versionlist.awk: New file.
34711         * Makerules [$(build-shared) = yes]
34712         (postclean-generated): Add Versions.def, not Versions.def.v and
34713         Versions.def.v.i.
34714         ($(common-objpfx)Versions.def.v.i): Target removed.
34715         ($(common-objpfx)Versions.def): New target.
34716         ($(common-objpfx)Versions.all): Depend on that rather that
34717         $(common-objpfx)Versions.def.v.
34718         * Versions.def: File removed.
34719
34720         * Makeconfig (+gccwarn): Add -Wundef.
34721         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34722         a dl-sysdep.h breaking its contract.
34723         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34724         * include/stackinfo.h: New file.
34725         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34726         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34727         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34728         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34729         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34730         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34731         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34732         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34733         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34734         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34735         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34736         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34737         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34738         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34739         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34740
34741 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34742
34743         [BZ #16707]
34744         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34745         implementation.
34746         * math/libm-test.inc (round_test_data): Add more tests.
34747
34748         [BZ #16706]
34749         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34750         implementation.
34751         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34752
34753         [BZ #16701]
34754         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34755         implementation.
34756         * math/libm-test.inc (ceil_test_data): Add more tests.
34757
34758         * math/libm-test.inc (trunc_test_data): Add more tests related to
34759         BZ#16414.
34760
34761 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34762
34763         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34764         with #if rather than #ifdef.
34765         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34766
34767 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34768
34769         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34770         first.  Disable AVX-512 GCC support if assembler doesn't support
34771         it.
34772         * sysdeps/x86_64/configure: Regenerated.
34773
34774 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34775
34776         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34777         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34778         (__old_pthread_attr_setstack): Likewise.
34779         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34780         [!_STACK_GROWS_DOWN]: Likewise.
34781
34782 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34783
34784         * config.make.in (have-bash2): Delete.
34785         * configure.ac (libc_cv_have_bash2): Delete.
34786         * configure: Regenerate.
34787         * elf/Makefile (common-ldd-rewrite): Rename to ...
34788         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34789         (sh-ldd-rewrite): Delete.
34790         (bash-ldd-rewrite): Delete.
34791         (have-bash2): Delete checks.
34792         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34793         ldd-rewrite.
34794
34795         * config.make.in (have-ksh): Delete.
34796         (KSH): Delete.
34797         * configure.ac (libc_cv_have_ksh): Delete.
34798         * configure: Regenerate.
34799
34800         * elf/Makefile: Delete $(have-ksh) check.
34801         ($(objpfx)sotruss): Change KSH to BASH.
34802         * elf/sotruss.ksh: Rename to ...
34803         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34804         function style to match POSIX.  Drop ksh vim mode setting.
34805
34806         * manual/time.texi (Specifying the Time Zone with TZ): Change
34807         Tuesday to Thursday.
34808
34809         * debug/tst-longjmp_chk2.c: Update header comment.
34810         (stackoverflow_handler): Add comment.  Call assert on pass value.
34811
34812 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34813
34814         [BZ #16194]
34815         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34816         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34817         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34818         (La_x86_64_vector): Add zmm.
34819         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34820         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34821         ($(objpfx)tst-audit10): New target.
34822         ($(objpfx)tst-audit10.out): Likewise.
34823         (tst-audit10-ENV): New.
34824         (AVX512-CFLAGS): Likewise.
34825         (CFLAGS-tst-audit10.c): Likewise.
34826         (CFLAGS-tst-auditmod10a.c): Likewise.
34827         (CFLAGS-tst-auditmod10b.c): Likewise.
34828         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34829         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34830         * sysdeps/x86_64/configure: Regenerated.
34831         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34832         AVX-512 zmm register support.
34833         (_dl_x86_64_save_sse): Likewise.
34834         (_dl_x86_64_restore_sse): Likewise.
34835         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34836         size vector registers.
34837         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34838         (ZMM_SIZE): Likewise.
34839         * sysdeps/x86_64/tst-audit10.c: New file.
34840         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
34841         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
34842
34843 2014-03-13  Roland McGrath  <roland@hack.frob.com>
34844
34845         * configure.ac (HAVE_EHDR_START): New check.
34846         * configure: Regenerated.
34847         * config.h.in (HAVE_EHDR_START): New #undef.
34848         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
34849         assuming the lowest-addressed segment maps the start of the file.
34850
34851 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
34852
34853         * INSTALL: Regenerated.
34854
34855 2014-03-13  Will Newton  <will.newton@linaro.org>
34856
34857         * manual/setjmp.texi (System V contexts): Improve
34858         clarity and grammar of documentation.
34859
34860 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
34861
34862         [BZ #16381]
34863         * elf/Makefile (tests): Add tst-pie2.
34864         (tests-pie): Add tst-pie2.
34865         * elf/tst-pie2.c: New file.
34866         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
34867         for ET_EXEC.
34868         * elf/rtld.c (map_doit): Load executable as lt_executable.
34869         (dl_main): Likewise.
34870
34871 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
34872
34873         [BZ #16642]
34874         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34875         (__ASSUME_PSELECT): Undefine.
34876
34877 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34878
34879         [BZ #16689]
34880         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
34881         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
34882         static build.
34883         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
34884         selector for static builds.
34885
34886 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34887
34888         [BZ #16695]
34889         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
34890         key in the buffer.
34891
34892 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34893
34894         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
34895         IFUNC selector for static builds.
34896
34897 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
34898
34899         * sysdeps/mips/math_private.h [__mips_hard_float]
34900         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
34901         libc_feresetround_mips_ctx.
34902         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
34903         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
34904         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
34905
34906         [BZ #16677]
34907         * math/s_nextafter.c (__nextafter): Do not return value from
34908         overflowing computation.
34909         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34910         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
34911         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34912         Likewise.
34913         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
34914         Likewise.
34915         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34916         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
34917
34918 2014-03-11  Roland McGrath  <roland@hack.frob.com>
34919
34920         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
34921         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
34922         Move sfi_sp use from the load-multiple (that no longer sets sp) to
34923         the new mov targetting sp.
34924
34925 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34926
34927         [BZ #16683]
34928         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
34929         Define it for static builds as well.
34930         (NO_BZERO_IMPL): Likewise.
34931
34932 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34933
34934         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
34935         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
34936         multiarch strspn for PPC64.
34937         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
34938         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
34939         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34940         (__libc_ifunc_impl_list): Likewise.
34941         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
34942         multiarch optimizations
34943         * string/strspn.c (strspn): Using macro to redefine symbol name.
34944
34945 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34946             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34947
34948         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
34949         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
34950         multiarch strncat for PPC64.
34951         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
34952         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
34953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
34954         (__libc_ifunc_impl_list): Likewise.
34955         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
34956         multiarch optimizations
34957
34958 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34959
34960         [BZ #16639]
34961         * nscd/nscd.service: Make service type forking.
34962
34963 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34964
34965         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
34966         sign in non default rounding modes.
34967         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
34968
34969 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
34970
34971         * math/libm-test.inc (ALL_RM_TEST): New macro.
34972         (ceil_test): Use ALL_RM_TEST.
34973         (cimag_test): Likewise.
34974         (conj_test): Likewise.
34975         (copysign_test): Likewise.
34976         (cproj_test): Likewise.
34977         (creal_test): Likewise.
34978         (fabs_test): Likewise.
34979         (floor_test): Likewise.
34980         (fmax_test): Likewise.
34981         (fmin_test): Likewise.
34982         (fmod_test): Likewise.
34983         (fpclassify_test): Likewise.
34984         (frexp_test): Likewise.
34985         (ilogb_test): Likewise.
34986         (isfinite_test): Likewise.
34987         (finite_test): Likewise.
34988         (isgreater_test): Likewise.
34989         (isgreaterequal_test): Likewise.
34990         (isinf_test): Likewise.
34991         (isless_test): Likewise.
34992         (islessequal_test): Likewise.
34993         (islessgreater_test): Likewise.
34994         (isnan_test): Likewise.
34995         (isnormal_test): Likewise.
34996         (issignaling_test): Likewise.
34997         (isunordered_test): Likewise.
34998         (logb_test): Likewise.
34999         (logb_downward_test_data): Remove.
35000         (logb_test_downward): Likewise.
35001         (lround_test): Use ALL_RM_TEST.
35002         (llround_test): Likewise.
35003         (modf_test): Likewise.
35004         (nexttoward_test): Likewise.
35005         (remainder_test): Likewise.
35006         (drem_test): Likewise.
35007         (remainder_tonearest_test_data): Likewise.
35008         (remainder_test_tonearest): Likewise.
35009         (drem_test_tonearest): Likewise.
35010         (remainder_towardzero_test_data): Likewise.
35011         (remainder_test_towardzero): Likewise.
35012         (drem_test_towardzero): Likewise.
35013         (remainder_downward_test_data): Likewise.
35014         (remainder_test_downward): Likewise.
35015         (drem_test_downward): Likewise.
35016         (remainder_upward_test_data): Likewise.
35017         (remainder_test_upward): Likewise.
35018         (drem_test_upward): Likewise.
35019         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35020         (round_test): Use ALL_RM_TEST.
35021         (signbit_test): Likewise.
35022         (trunc_test): Likewise.
35023         (significand_test): Likewise.
35024         (main): Don't call removed functions.
35025
35026 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35027
35028         [BZ #16674]
35029         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35030         || __USE_XOPEN2K8].
35031         (ILL_ILLOPN): Likewise.
35032         (ILL_ILLADR): Likewise.
35033         (ILL_ILLTRP): Likewise.
35034         (ILL_PRVOPC): Likewise.
35035         (ILL_PRVREG): Likewise.
35036         (ILL_COPROC): Likewise.
35037         (ILL_BADSTK): Likewise.
35038         (FPE_INTDIV): Likewise.
35039         (FPE_INTOVF): Likewise.
35040         (FPE_FLTDIV): Likewise.
35041         (FPE_FLTOVF): Likewise.
35042         (FPE_FLTUND): Likewise.
35043         (FPE_FLTRES): Likewise.
35044         (FPE_FLTINV): Likewise.
35045         (FPE_FLTSUB): Likewise.
35046         (SEGV_MAPERR): Likewise.
35047         (SEGV_ACCERR): Likewise.
35048         (BUS_ADRALN): Likewise.
35049         (BUS_ADRERR): Likewise.
35050         (BUS_OBJERR): Likewise.
35051         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35052         (TRAP_TRACE): Likewise.
35053         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35054         __USE_XOPEN2K8].
35055         (CLD_KILLED): Likewise.
35056         (CLD_DUMPED): Likewise.
35057         (CLD_TRAPPED): Likewise.
35058         (CLD_STOPPED): Likewise.
35059         (CLD_CONTINUED): Likewise.
35060         (POLL_IN): Likewise.
35061         (POLL_OUT): Likewise.
35062         (POLL_MSG): Likewise.
35063         (POLL_ERR): Likewise.
35064         (POLL_PRI): Likewise.
35065         (POLL_HUP): Likewise.
35066         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35067         Likewise.
35068         (ILL_ILLOPN): Likewise.
35069         (ILL_ILLADR): Likewise.
35070         (ILL_ILLTRP): Likewise.
35071         (ILL_PRVOPC): Likewise.
35072         (ILL_PRVREG): Likewise.
35073         (ILL_COPROC): Likewise.
35074         (ILL_BADSTK): Likewise.
35075         (FPE_INTDIV): Likewise.
35076         (FPE_INTOVF): Likewise.
35077         (FPE_FLTDIV): Likewise.
35078         (FPE_FLTOVF): Likewise.
35079         (FPE_FLTUND): Likewise.
35080         (FPE_FLTRES): Likewise.
35081         (FPE_FLTINV): Likewise.
35082         (FPE_FLTSUB): Likewise.
35083         (SEGV_MAPERR): Likewise.
35084         (SEGV_ACCERR): Likewise.
35085         (BUS_ADRALN): Likewise.
35086         (BUS_ADRERR): Likewise.
35087         (BUS_OBJERR): Likewise.
35088         (BUS_MCEERR_AR): Likewise.
35089         (BUS_MCEERR_AO): Likewise.
35090         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35091         (TRAP_TRACE): Likewise.
35092         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35093         __USE_XOPEN2K8].
35094         (CLD_KILLED): Likewise.
35095         (CLD_DUMPED): Likewise.
35096         (CLD_TRAPPED): Likewise.
35097         (CLD_STOPPED): Likewise.
35098         (CLD_CONTINUED): Likewise.
35099         (POLL_IN): Likewise.
35100         (POLL_OUT): Likewise.
35101         (POLL_MSG): Likewise.
35102         (POLL_ERR): Likewise.
35103         (POLL_PRI): Likewise.
35104         (POLL_HUP): Likewise.
35105         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35106         (ILL_ILLOPN): Likewise.
35107         (ILL_ILLADR): Likewise.
35108         (ILL_ILLTRP): Likewise.
35109         (ILL_PRVOPC): Likewise.
35110         (ILL_PRVREG): Likewise.
35111         (ILL_COPROC): Likewise.
35112         (ILL_BADSTK): Likewise.
35113         (FPE_INTDIV): Likewise.
35114         (FPE_INTOVF): Likewise.
35115         (FPE_FLTDIV): Likewise.
35116         (FPE_FLTOVF): Likewise.
35117         (FPE_FLTUND): Likewise.
35118         (FPE_FLTRES): Likewise.
35119         (FPE_FLTINV): Likewise.
35120         (FPE_FLTSUB): Likewise.
35121         (SEGV_MAPERR): Likewise.
35122         (SEGV_ACCERR): Likewise.
35123         (BUS_ADRALN): Likewise.
35124         (BUS_ADRERR): Likewise.
35125         (BUS_OBJERR): Likewise.
35126         (BUS_MCEERR_AR): Likewise.
35127         (BUS_MCEERR_AO): Likewise.
35128         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35129         (TRAP_TRACE): Likewise.
35130         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35131         __USE_XOPEN2K8].
35132         (CLD_KILLED): Likewise.
35133         (CLD_DUMPED): Likewise.
35134         (CLD_TRAPPED): Likewise.
35135         (CLD_STOPPED): Likewise.
35136         (CLD_CONTINUED): Likewise.
35137         (POLL_IN): Likewise.
35138         (POLL_OUT): Likewise.
35139         (POLL_MSG): Likewise.
35140         (POLL_ERR): Likewise.
35141         (POLL_PRI): Likewise.
35142         (POLL_HUP): Likewise.
35143         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35144         Likewise.
35145         (ILL_ILLOPN): Likewise.
35146         (ILL_ILLADR): Likewise.
35147         (ILL_ILLTRP): Likewise.
35148         (ILL_PRVOPC): Likewise.
35149         (ILL_PRVREG): Likewise.
35150         (ILL_COPROC): Likewise.
35151         (ILL_BADSTK): Likewise.
35152         (ILL_BADIADDR): Likewise.
35153         (ILL_BREAK): Likewise.
35154         (FPE_INTDIV): Likewise.
35155         (FPE_INTOVF): Likewise.
35156         (FPE_FLTDIV): Likewise.
35157         (FPE_FLTOVF): Likewise.
35158         (FPE_FLTUND): Likewise.
35159         (FPE_FLTRES): Likewise.
35160         (FPE_FLTINV): Likewise.
35161         (FPE_FLTSUB): Likewise.
35162         (FPE_DECOVF): Likewise.
35163         (FPE_DECDIV): Likewise.
35164         (FPE_DECERR): Likewise.
35165         (FPE_INVASC): Likewise.
35166         (FPE_INVDEC): Likewise.
35167         (SEGV_MAPERR): Likewise.
35168         (SEGV_ACCERR): Likewise.
35169         (SEGV_PSTKOVF): Likewise.
35170         (BUS_ADRALN): Likewise.
35171         (BUS_ADRERR): Likewise.
35172         (BUS_OBJERR): Likewise.
35173         (BUS_MCEERR_AR): Likewise.
35174         (BUS_MCEERR_AO): Likewise.
35175         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35176         (TRAP_TRACE): Likewise.
35177         (TRAP_BRANCH): Likewise.
35178         (TRAP_HWBKPT): Likewise.
35179         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35180         __USE_XOPEN2K8].
35181         (CLD_KILLED): Likewise.
35182         (CLD_DUMPED): Likewise.
35183         (CLD_TRAPPED): Likewise.
35184         (CLD_STOPPED): Likewise.
35185         (CLD_CONTINUED): Likewise.
35186         (POLL_IN): Likewise.
35187         (POLL_OUT): Likewise.
35188         (POLL_MSG): Likewise.
35189         (POLL_ERR): Likewise.
35190         (POLL_PRI): Likewise.
35191         (POLL_HUP): Likewise.
35192         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35193         (ILL_ILLOPN): Likewise.
35194         (ILL_ILLADR): Likewise.
35195         (ILL_ILLTRP): Likewise.
35196         (ILL_PRVOPC): Likewise.
35197         (ILL_PRVREG): Likewise.
35198         (ILL_COPROC): Likewise.
35199         (ILL_BADSTK): Likewise.
35200         (FPE_INTDIV): Likewise.
35201         (FPE_INTOVF): Likewise.
35202         (FPE_FLTDIV): Likewise.
35203         (FPE_FLTOVF): Likewise.
35204         (FPE_FLTUND): Likewise.
35205         (FPE_FLTRES): Likewise.
35206         (FPE_FLTINV): Likewise.
35207         (FPE_FLTSUB): Likewise.
35208         (SEGV_MAPERR): Likewise.
35209         (SEGV_ACCERR): Likewise.
35210         (BUS_ADRALN): Likewise.
35211         (BUS_ADRERR): Likewise.
35212         (BUS_OBJERR): Likewise.
35213         (BUS_MCEERR_AR): Likewise.
35214         (BUS_MCEERR_AO): Likewise.
35215         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35216         (TRAP_TRACE): Likewise.
35217         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35218         __USE_XOPEN2K8].
35219         (CLD_KILLED): Likewise.
35220         (CLD_DUMPED): Likewise.
35221         (CLD_TRAPPED): Likewise.
35222         (CLD_STOPPED): Likewise.
35223         (CLD_CONTINUED): Likewise.
35224         (POLL_IN): Likewise.
35225         (POLL_OUT): Likewise.
35226         (POLL_MSG): Likewise.
35227         (POLL_ERR): Likewise.
35228         (POLL_PRI): Likewise.
35229         (POLL_HUP): Likewise.
35230         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35231         (ILL_ILLOPN): Likewise.
35232         (ILL_ILLADR): Likewise.
35233         (ILL_ILLTRP): Likewise.
35234         (ILL_PRVOPC): Likewise.
35235         (ILL_PRVREG): Likewise.
35236         (ILL_COPROC): Likewise.
35237         (ILL_BADSTK): Likewise.
35238         (FPE_INTDIV): Likewise.
35239         (FPE_INTOVF): Likewise.
35240         (FPE_FLTDIV): Likewise.
35241         (FPE_FLTOVF): Likewise.
35242         (FPE_FLTUND): Likewise.
35243         (FPE_FLTRES): Likewise.
35244         (FPE_FLTINV): Likewise.
35245         (FPE_FLTSUB): Likewise.
35246         (SEGV_MAPERR): Likewise.
35247         (SEGV_ACCERR): Likewise.
35248         (BUS_ADRALN): Likewise.
35249         (BUS_ADRERR): Likewise.
35250         (BUS_OBJERR): Likewise.
35251         (BUS_MCEERR_AR): Likewise.
35252         (BUS_MCEERR_AO): Likewise.
35253         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35254         (TRAP_TRACE): Likewise.
35255         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35256         __USE_XOPEN2K8].
35257         (CLD_KILLED): Likewise.
35258         (CLD_DUMPED): Likewise.
35259         (CLD_TRAPPED): Likewise.
35260         (CLD_STOPPED): Likewise.
35261         (CLD_CONTINUED): Likewise.
35262         (POLL_IN): Likewise.
35263         (POLL_OUT): Likewise.
35264         (POLL_MSG): Likewise.
35265         (POLL_ERR): Likewise.
35266         (POLL_PRI): Likewise.
35267         (POLL_HUP): Likewise.
35268         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35269         (ILL_ILLOPN): Likewise.
35270         (ILL_ILLADR): Likewise.
35271         (ILL_ILLTRP): Likewise.
35272         (ILL_PRVOPC): Likewise.
35273         (ILL_PRVREG): Likewise.
35274         (ILL_COPROC): Likewise.
35275         (ILL_BADSTK): Likewise.
35276         (FPE_INTDIV): Likewise.
35277         (FPE_INTOVF): Likewise.
35278         (FPE_FLTDIV): Likewise.
35279         (FPE_FLTOVF): Likewise.
35280         (FPE_FLTUND): Likewise.
35281         (FPE_FLTRES): Likewise.
35282         (FPE_FLTINV): Likewise.
35283         (FPE_FLTSUB): Likewise.
35284         (SEGV_MAPERR): Likewise.
35285         (SEGV_ACCERR): Likewise.
35286         (BUS_ADRALN): Likewise.
35287         (BUS_ADRERR): Likewise.
35288         (BUS_OBJERR): Likewise.
35289         (BUS_MCEERR_AR): Likewise.
35290         (BUS_MCEERR_AO): Likewise.
35291         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35292         (TRAP_TRACE): Likewise.
35293         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35294         __USE_XOPEN2K8].
35295         (CLD_KILLED): Likewise.
35296         (CLD_DUMPED): Likewise.
35297         (CLD_TRAPPED): Likewise.
35298         (CLD_STOPPED): Likewise.
35299         (CLD_CONTINUED): Likewise.
35300         (POLL_IN): Likewise.
35301         (POLL_OUT): Likewise.
35302         (POLL_MSG): Likewise.
35303         (POLL_ERR): Likewise.
35304         (POLL_PRI): Likewise.
35305         (POLL_HUP): Likewise.
35306         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35307         (ILL_ILLOPN): Likewise.
35308         (ILL_ILLADR): Likewise.
35309         (ILL_ILLTRP): Likewise.
35310         (ILL_PRVOPC): Likewise.
35311         (ILL_PRVREG): Likewise.
35312         (ILL_COPROC): Likewise.
35313         (ILL_BADSTK): Likewise.
35314         (ILL_DBLFLT): Likewise.
35315         (ILL_HARDWALL): Likewise.
35316         (FPE_INTDIV): Likewise.
35317         (FPE_INTOVF): Likewise.
35318         (FPE_FLTDIV): Likewise.
35319         (FPE_FLTOVF): Likewise.
35320         (FPE_FLTUND): Likewise.
35321         (FPE_FLTRES): Likewise.
35322         (FPE_FLTINV): Likewise.
35323         (FPE_FLTSUB): Likewise.
35324         (SEGV_MAPERR): Likewise.
35325         (SEGV_ACCERR): Likewise.
35326         (BUS_ADRALN): Likewise.
35327         (BUS_ADRERR): Likewise.
35328         (BUS_OBJERR): Likewise.
35329         (BUS_MCEERR_AR): Likewise.
35330         (BUS_MCEERR_AO): Likewise.
35331         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35332         (TRAP_TRACE): Likewise.
35333         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35334         __USE_XOPEN2K8].
35335         (CLD_KILLED): Likewise.
35336         (CLD_DUMPED): Likewise.
35337         (CLD_TRAPPED): Likewise.
35338         (CLD_STOPPED): Likewise.
35339         (CLD_CONTINUED): Likewise.
35340         (POLL_IN): Likewise.
35341         (POLL_OUT): Likewise.
35342         (POLL_MSG): Likewise.
35343         (POLL_ERR): Likewise.
35344         (POLL_PRI): Likewise.
35345         (POLL_HUP): Likewise.
35346         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35347         (ILL_ILLOPN): Likewise.
35348         (ILL_ILLADR): Likewise.
35349         (ILL_ILLTRP): Likewise.
35350         (ILL_PRVOPC): Likewise.
35351         (ILL_PRVREG): Likewise.
35352         (ILL_COPROC): Likewise.
35353         (ILL_BADSTK): Likewise.
35354         (FPE_INTDIV): Likewise.
35355         (FPE_INTOVF): Likewise.
35356         (FPE_FLTDIV): Likewise.
35357         (FPE_FLTOVF): Likewise.
35358         (FPE_FLTUND): Likewise.
35359         (FPE_FLTRES): Likewise.
35360         (FPE_FLTINV): Likewise.
35361         (FPE_FLTSUB): Likewise.
35362         (SEGV_MAPERR): Likewise.
35363         (SEGV_ACCERR): Likewise.
35364         (BUS_ADRALN): Likewise.
35365         (BUS_ADRERR): Likewise.
35366         (BUS_OBJERR): Likewise.
35367         (BUS_MCEERR_AR): Likewise.
35368         (BUS_MCEERR_AO): Likewise.
35369         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35370         (TRAP_TRACE): Likewise.
35371         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35372         __USE_XOPEN2K8].
35373         (CLD_KILLED): Likewise.
35374         (CLD_DUMPED): Likewise.
35375         (CLD_TRAPPED): Likewise.
35376         (CLD_STOPPED): Likewise.
35377         (CLD_CONTINUED): Likewise.
35378         (POLL_IN): Likewise.
35379         (POLL_OUT): Likewise.
35380         (POLL_MSG): Likewise.
35381         (POLL_ERR): Likewise.
35382         (POLL_PRI): Likewise.
35383         (POLL_HUP): Likewise.
35384         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35385         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35386
35387         [BZ #16670]
35388         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35389         before #include of <time.h>.
35390         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35391         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35392         (test-xfail-UNIX98/sched.h/conform): Likewise.
35393
35394 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35395
35396         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35397         error absence of trapping exception support.
35398         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35399
35400 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35401
35402         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35403         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35404         * timezone/Makefile (testdata): Move definition above include of
35405         Rules.
35406         (test-zones): New variable.
35407         (tests-special): Add zone files.
35408         (build-testdata): Use $(evaluate-test).
35409
35410         * elf/Makefile (tests-special): Rename tests to end with .out.
35411         ($(objpfx)noload-mem): Likewise.
35412         ($(objpfx)tst-leaks1-mem): Likewise.
35413         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35414         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35415         $(objpfx)test-iconvconfig.out.
35416         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35417         set -e inside subshell and redirect output to file.
35418         * iconvdata/Makefile (generated): Rename tests to end with .out.
35419         Correct type.
35420         (tests-special): Rename tests to end with .out.
35421         ($(objpfx)mtrace-tst-loading): Likewise.
35422         * intl/Makefile (generated): Likewise.
35423         (tests-special): Likewise.
35424         ($(objpfx)mtrace-tst-gettext): Likewise.
35425         * misc/Makefile (generated): Likewise.
35426         (tests-special): Likewise.
35427         ($(objpfx)tst-error1-mem): Likewise.
35428         * nptl/Makefile (tests-special): Likewise.
35429         ($(objpfx)tst-stack3-mem): Likewise.
35430         (generated): Likewise.
35431         * posix/Makefile (generated): Likewise.
35432         (tests-special): Likewise.
35433         (xtests-special): Likewise.
35434         ($(objpfx)tst-fnmatch-mem): Likewise.
35435         ($(objpfx)bug-regex2-mem): Likewise.
35436         ($(objpfx)bug-regex14-mem): Likewise.
35437         ($(objpfx)bug-regex21-mem): Likewise.
35438         ($(objpfx)bug-regex31-mem): Likewise.
35439         ($(objpfx)tst-vfork3-mem): Likewise.
35440         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35441         ($(objpfx)tst-pcre-mem): Likewise.
35442         ($(objpfx)tst-boost-mem): Likewise.
35443         ($(objpfx)bug-ga2-mem): Likewise.
35444         ($(objpfx)bug-glob2-mem): Likewise.
35445         * resolv/Makefile (generate): Likewise.
35446         (tests-special): Likewise.
35447         (xtests-special): Likewise.
35448         (generated): Likewise.
35449         ($(objpfx)mtrace-tst-leaks): Likewise.
35450         ($(objpfx)mtrace-tst-leaks2): Likewise.
35451
35452         * scripts/merge-test-results.sh: New file.
35453         * Makefile (tests-special-notdir): New variable.
35454         (tests): Run merge-test-results.sh.
35455         (xtests): Likewise.
35456         * Rules (tests-special-notdir): New variable.
35457         (xtests-special-notdir): Likewise.
35458         (tests): Run merge-test-results.sh
35459         (xtests): Likewise.
35460
35461         * Makeconfig (test-xfail-name): New variable.
35462         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35463         compute variable name for expected failures.
35464         * conform/Makefile (conformtest-headers-data): New variable.
35465         (conformtest-standards): Likewise.
35466         (conformtest-headers-ISO): Likewise.
35467         (conformtest-headers-ISO99): Likewise.
35468         (conformtest-headers-ISO11): Likewise.
35469         (conformtest-headers-POSIX): Likewise.
35470         (conformtest-headers-XPG3): Likewise.
35471         (conformtest-headers-XPG4): Likewise.
35472         (conformtest-headers-UNIX98): Likewise.
35473         (conformtest-headers-XOPEN2K): Likewise.
35474         (conformtest-headers-POSIX2008): Likewise.
35475         (conformtest-headers-XOPEN2K8): Likewise.
35476         (conformtest-header-list-base): Likewise.
35477         (conformtest-header-list-tests): Likewise.
35478         (conformtest-header-base): Likewise.
35479         (conformtest-header-tests): Likewise.
35480         (tests-special): Add $(conformtest-header-list-tests).  If
35481         [$(fast-check) && !$(cross-compiling)], add
35482         $(conformtest-header-tests) instead of
35483         $(objpfx)run-conformtest.out.
35484         (generated): Add $(conformtest-header-list-base).  If
35485         [$(fast-check) && !$(cross-compiling)], add
35486         $(conformtest-header-base).  Remove previous setting.
35487         ($(conformtest-header-list-tests)): New target.
35488         (test-xfail-run-conformtest): Remove variable.
35489         ($(objpfx)run-conformtest.out): Remove target.
35490         (test-xfail-ISO11/complex.h/conform): New variable.
35491         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35492         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35493         (test-xfail-XPG3/varargs.h/conform): Likewise.
35494         (test-xfail-XPG4/varargs.h/conform): Likewise.
35495         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35496         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35497         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35498         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35499         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35500         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35501         (test-xfail-XPG3/ftw.h/conform): Likewise.
35502         (test-xfail-XPG3/grp.h/conform): Likewise.
35503         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35504         (test-xfail-XPG3/limits.h/conform): Likewise.
35505         (test-xfail-XPG3/pwd.h/conform): Likewise.
35506         (test-xfail-XPG3/search.h/conform): Likewise.
35507         (test-xfail-XPG3/signal.h/conform): Likewise.
35508         (test-xfail-XPG3/stdio.h/conform): Likewise.
35509         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35510         (test-xfail-XPG3/string.h/conform): Likewise.
35511         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35512         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35513         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35514         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35515         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35516         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35517         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35518         (test-xfail-XPG3/termios.h/conform): Likewise.
35519         (test-xfail-XPG3/time.h/conform): Likewise.
35520         (test-xfail-XPG3/unistd.h/conform): Likewise.
35521         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35522         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35523         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35524         (test-xfail-XPG4/netdb.h/conform): Likewise.
35525         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35526         (test-xfail-XPG4/signal.h/conform): Likewise.
35527         (test-xfail-XPG4/stdio.h/conform): Likewise.
35528         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35529         (test-xfail-XPG4/stropts.h/conform): Likewise.
35530         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35531         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35532         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35533         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35534         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35535         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35536         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35537         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35538         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35539         (test-xfail-XPG4/termios.h/conform): Likewise.
35540         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35541         (test-xfail-XPG4/unistd.h/conform): Likewise.
35542         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35543         (test-xfail-POSIX/sched.h/conform): Likewise.
35544         (test-xfail-POSIX/signal.h/conform): Likewise.
35545         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35546         (test-xfail-POSIX/tar.h/conform): Likewise.
35547         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35548         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35549         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35550         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35551         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35552         (test-xfail-UNIX98/sched.h/conform): Likewise.
35553         (test-xfail-UNIX98/signal.h/conform): Likewise.
35554         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35555         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35556         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35557         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35558         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35559         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35560         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35561         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35562         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35563         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35564         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35565         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35566         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35567         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35568         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35569         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35570         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35571         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35572         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35573         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35574         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35575         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35576         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35577         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35578         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35579         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35580         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35581         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35582         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35583         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35584         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35585         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35586         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35587         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35588         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35589         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35590         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35591         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35592         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35593         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35594         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35595         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35596         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35597         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35598         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35599         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35600         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35601         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35602         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35603         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35604         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35605         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35606         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35607         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35608         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35609         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35610         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35611         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35612         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35613         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35614         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35615         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35616         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35617         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35618         (conformtest-cc-flags): Likewise.
35619         ($(conformtest-header-tests): New target.
35620         * conform/check-header-lists.sh: New file.
35621         * conform/run-conformtest.sh: Remove.
35622
35623         * conform/conformtest.pl: Allow ' and \ in values given for
35624         constants.
35625         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35626         inclusion.
35627         [POSIX] (sys/types.h): Likewise.
35628         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35629         inclusion.
35630         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35631         inclusion.
35632         * conform/data/signal.h-data (SIGIO): Remove expectation.
35633         [XPG3] (SIGBUS): Do not expect.
35634         [POSIX || XPG3] (SIGPOLL): Likewise.
35635         [POSIX || XPG3] (SIGPROF): Likewise.
35636         [POSIX || XPG3] (SIGSYS): Likewise.
35637         [XPG3] (SIGTRAP): Likewise.
35638         [POSIX || XPG3] (SIGURG): Likewise.
35639         [POSIX || XPG3] (SIGVTALRM): Likewise.
35640         [POSIX || XPG3] (SIGXCPU): Likewise.
35641         [POSIX || XPG3] (SIGXFSZ): Likewise.
35642         [POSIX] (SA_SIGINFO): Expect.
35643         [XPG3] (siginfo_t): Do not expect type or contents.
35644         [POSIX] (si_pid): Do not expect element.
35645         [POSIX] (si_uid): Likewise.
35646         [POSIX] (si_addr): Likewise.
35647         [POSIX] (si_status): Likewise.
35648         [POSIX] (si_band): Likewise.
35649         [XPG4] (si_value): Likewise.
35650         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35651         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35652         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35653         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35654         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35655         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35656         [POSIX || XPG3] (ILL_COPROC): Likewise.
35657         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35658         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35659         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35660         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35661         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35662         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35663         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35664         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35665         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35666         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35667         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35668         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35669         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35670         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35671         [POSIX || XPG3] (CLD_EXITED): Likewise.
35672         [POSIX || XPG3] (CLD_KILLED): Likewise.
35673         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35674         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35675         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35676         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35677         [POSIX || XPG3] (POLL_IN): Likewise.
35678         [POSIX || XPG3] (POLL_OUT): Likewise.
35679         [POSIX || XPG3] (POLL_MSG): Likewise.
35680         [POSIX || XPG3] (POLL_ERR): Likewise.
35681         [POSIX || XPG3] (POLL_PRI): Likewise.
35682         [POSIX || XPG3] (POLL_HUP): Likewise.
35683         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35684         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35685         (SIG*): Do not allow.
35686         [XPG3] (si_*): Likewise.
35687         [XPG3] (SI_*): Likewise.
35688         [XPG3 || XPG4] (sigev_*): Likewise.
35689         [XPG3 || XPG4] (SIGEV_*): Likewise.
35690         [XPG3 || XPG4] (sival_*): Likewise.
35691         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35692         [POSIX || XPG3] (BUS_*): Likewise.
35693         [POSIX || XPG3] (CLD_*): Likewise.
35694         [POSIX || XPG3] (FPE_*): Likewise.
35695         [POSIX || XPG3] (ILL_*): Likewise.
35696         [POSIX || XPG3] (POLL_*): Likewise.
35697         [POSIX || XPG3] (SEGV_*): Likewise.
35698         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35699         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35700         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35701         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35702         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35703         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35704         Specify type and value.
35705         (TVERSLEN): Likewise.
35706         (REGTYPE): Likewise.
35707         (AREGTYPE): Likewise.
35708         (LNKTYPE): Likewise.
35709         (SYMTYPE): Likewise.
35710         (CHRTYPE): Likewise.
35711         (BLKTYPE): Likewise.
35712         (DIRTYPE): Likewise.
35713         (FIFOTYPE): Likewise.
35714         (CONTTYPE): Likewise.
35715         (TSUID): Likewise.
35716         (TSGID): Likewise.
35717         (TSVTX): Likewise.
35718         (TUREAD): Likewise.
35719         (TUWRITE): Likewise.
35720         (TUEXEC): Likewise.
35721         (TGREAD): Likewise.
35722         (TGWRITE): Likewise.
35723         (TGEXEC): Likewise.
35724         (TOREAD): Likewise.
35725         (TOWRITE): Likewise.
35726         (TOEXEC): Likewise.
35727         [POSIX] (TSVTX): Expect constant.
35728
35729 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35730
35731         * Makefile (tests): Change dependencies to ....
35732         (tests-special): ... additions to this variable.
35733         (tests): Depend on $(tests-special).
35734         * Makerules (check-abi-list): New variable.
35735         (check-abi): Depend on $(check-abi-list).
35736         [$(subdir) = elf] (tests-special): Add
35737         $(objpfx)check-abi-libc.out.
35738         [$(build-shared) = yes && subdir] (tests-special): Add
35739         $(check-abi-list).
35740         [$(build-shared) = yes && subdir] (tests): Do not depend on
35741         check-abi.
35742         * Rules (tests): Depend on $(tests-special).
35743         (xtests): Depend on $(xtests-special).
35744         * catgets/Makefile (tests): Change dependencies to ....
35745         (tests-special): ... additions to this variable.
35746         * conform/Makefile (tests): Change dependencies to ....
35747         (tests-special): ... additions to this variable.
35748         * elf/Makefile (tests): Change dependencies to ....
35749         (tests-special): ... additions to this variable.
35750         * grp/Makefile (tests): Change dependencies to ....
35751         (tests-special): ... additions to this variable.
35752         * iconv/Makefile (xtests): Change dependencies to ....
35753         (xtests-special): ... additions to this variable.
35754         * iconvdata/Makefile (tests): Change dependencies to ....
35755         (tests-special): ... additions to this variable.
35756         * intl/Makefile (tests): Change dependencies to ....
35757         (tests-special): ... additions to this variable.  Also add
35758         $(objpfx)tst-gettext.out.
35759         * io/Makefile (tests): Change dependencies to ....
35760         (tests-special): ... additions to this variable.
35761         * libio/Makefile (tests): Change dependencies to ....
35762         (tests-special): ... additions to this variable.
35763         * malloc/Makefile (tests): Change dependencies to ....
35764         (tests-special): ... additions to this variable.
35765         * misc/Makefile (tests): Change dependencies to ....
35766         (tests-special): ... additions to this variable.
35767         * nptl/Makefile (tests): Change dependencies to ....
35768         (tests-special): ... additions to this variable.
35769         * nptl_db/Makefile (tests): Change dependencies to ....
35770         (tests-special): ... additions to this variable.
35771         * posix/Makefile (tests): Change dependencies to ....
35772         (tests-special): ... additions to this variable.
35773         (xtests): Change dependencies to ....
35774         (xtests-special): ... additions to this variable.
35775         * resolv/Makefile (tests): Change dependencies to ....
35776         (tests-special): ... additions to this variable.
35777         (xtests): Change dependencies to ....
35778         (xtests-special): ... additions to this variable.
35779         * stdio-common/Makefile (tests): Change dependencies to ....
35780         (tests-special): ... additions to this variable.
35781         (do-tst-unbputc): Remove target.
35782         (do-tst-printf): Likewise.
35783         * stdlib/Makefile (tests): Change dependencies to ....
35784         (tests-special): ... additions to this variable.
35785         * string/Makefile (tests): Change dependencies to ....
35786         (tests-special): ... additions to this variable.
35787         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35788         (tests-special): ... additions to this variable.
35789
35790         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35791         whole file.
35792         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35793         whole file.
35794         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35795         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35796
35797         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35798         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35799         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35800         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35801         * conform/data/libgen.h-data [XPG3]: Likewise.
35802         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35803         * conform/data/ndbm.h-data [XPG3]: Likewise.
35804         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35805         * conform/data/netdb.h-data [XPG3]: Likewise.
35806         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35807         * conform/data/poll.h-data [XPG3]: Likewise.
35808         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35809         * conform/data/strings.h-data [XPG3]: Likewise.
35810         * conform/data/stropts.h-data [XPG3]: Likewise.
35811         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35812         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35813         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35814         Likewise.
35815         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35816         * conform/data/sys/time.h-data [XPG3]: Likewise.
35817         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35818         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35819         * conform/data/sys/un.h-data [XPG3]: Likewise.
35820         * conform/data/syslog.h-data [XPG3]: Likewise.
35821         * conform/data/ucontext.h-data [XPG3]: Likewise.
35822         * conform/data/utmpx.h-data [XPG3]: Likewise.
35823         * conform/data/varargs.h-data [UNIX98]: Enable file.
35824
35825         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35826
35827         * math/libm-test.inc (struct test_f_f_data): Move expected results
35828         into structure for each rounding mode.
35829         (struct test_ff_f_data): Likewise.
35830         (struct test_ff_f_data_nexttoward): Likewise.
35831         (struct test_fi_f_data): Likewise.
35832         (struct test_fl_f_data): Likewise.
35833         (struct test_if_f_data): Likewise.
35834         (struct test_fff_f_data): Likewise.
35835         (struct test_c_f_data): Likewise.
35836         (struct test_f_f1_data): Likewise.
35837         (struct test_fF_f1_data): Likewise.
35838         (struct test_ffI_f1_data): Likewise.
35839         (struct test_c_c_data): Likewise.
35840         (struct test_cc_c_data): Likewise.
35841         (struct test_f_i_data): Likewise.
35842         (struct test_ff_i_data): Likewise.
35843         (struct test_f_l_data): Likewise.
35844         (struct test_f_L_data): Likewise.
35845         (struct test_fFF_11_data): Likewise.
35846         (RM_): New macro.
35847         (RM_FE_DOWNWARD): Likewise.
35848         (RM_FE_TONEAREST): Likewise.
35849         (RM_FE_TOWARDZERO): Likewise.
35850         (RM_FE_UPWARD): Likewise.
35851         (RUN_TEST_LOOP_f_f): Update references to expected results.
35852         (RUN_TEST_LOOP_2_f): Likewise.
35853         (RUN_TEST_LOOP_fff_f): Likewise.
35854         (RUN_TEST_LOOP_c_f): Likewise.
35855         (RUN_TEST_LOOP_f_f1): Likewise.
35856         (RUN_TEST_LOOP_fF_f1): Likewise.
35857         (RUN_TEST_LOOP_fI_f1): Likewise.
35858         (RUN_TEST_LOOP_ffI_f1): Likewise.
35859         (RUN_TEST_LOOP_c_c): Likewise.
35860         (RUN_TEST_LOOP_cc_c): Likewise.
35861         (RUN_TEST_LOOP_f_i): Likewise.
35862         (RUN_TEST_LOOP_f_i_tg): Likewise.
35863         (RUN_TEST_LOOP_ff_i_tg): Likewise.
35864         (RUN_TEST_LOOP_f_b): Likewise.
35865         (RUN_TEST_LOOP_f_b_tg): Likewise.
35866         (RUN_TEST_LOOP_f_l): Likewise.
35867         (RUN_TEST_LOOP_f_L): Likewise.
35868         (RUN_TEST_LOOP_fFF_11): Likewise.
35869         * math/gen-libm-test.pl (parse_args): Output four copies of
35870         expected results for each test.
35871
35872         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35873         (__ASSUME_UTIMES): Remove.
35874         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35875         (__ASSUME_UTIMES): Likewise.
35876
35877         * math/gen-auto-libm-tests.c: Update comment on output format.
35878         (output_for_one_input_case): Generate before-rounding and
35879         after-rounding information as conditions on output flags not
35880         floating-point format.
35881         * math/auto-libm-test-out: Regenerated.
35882         * math/gen-libm-test.pl (cond_value): New function.
35883         (or_cond_value): Use cond_value.
35884         (generate_testfile): Handle conditional exceptions.
35885
35886 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
35887
35888         * math/libm-test.inc (max_valid_error): New variable.
35889         (init_max_error): Take new argument specifying whether function
35890         results are exactly determined.  Set max_valid_error and bound
35891         other variables for errors based on this argument.
35892         (set_max_error): Do not record results above max_valid_error.
35893         (check_float_internal): Only accept errors of up to 0.5ulps if
35894         also at most max_valid_error.
35895         (START): Take new argument EXACT and pass it to init_max_error.
35896         (acos_test): Update call to START.
35897         (acos_test_tonearest): Likewise.
35898         (acos_test_towardzero): Likewise.
35899         (acos_test_downward): Likewise.
35900         (acos_test_upward): Likewise.
35901         (acosh_test): Likewise.
35902         (asin_test): Likewise.
35903         (asin_test_tonearest): Likewise.
35904         (asin_test_towardzero): Likewise.
35905         (asin_test_downward): Likewise.
35906         (asin_test_upward): Likewise.
35907         (asinh_test): Likewise.
35908         (atan_test): Likewise.
35909         (atanh_test): Likewise.
35910         (atan2_test): Likewise.
35911         (cabs_test): Likewise.
35912         (cacos_test): Likewise.
35913         (cacosh_test): Likewise.
35914         (carg_test): Likewise.
35915         (casin_test): Likewise.
35916         (casinh_test): Likewise.
35917         (catan_test): Likewise.
35918         (catanh_test): Likewise.
35919         (cbrt_test): Likewise.
35920         (ccos_test): Likewise.
35921         (ccosh_test): Likewise.
35922         (ceil_test): Likewise.
35923         (cexp_test): Likewise.
35924         (cimag_test): Likewise.
35925         (clog_test): Likewise.
35926         (clog10_test): Likewise.
35927         (conj_test): Likewise.
35928         (copysign_test): Likewise.
35929         (cos_test): Likewise.
35930         (cos_test_tonearest): Likewise.
35931         (cos_test_towardzero): Likewise.
35932         (cos_test_downward): Likewise.
35933         (cos_test_upward): Likewise.
35934         (cosh_test): Likewise.
35935         (cosh_test_tonearest): Likewise.
35936         (cosh_test_towardzero): Likewise.
35937         (cosh_test_downward): Likewise.
35938         (cosh_test_upward): Likewise.
35939         (cpow_test): Likewise.
35940         (cproj_test): Likewise.
35941         (creal_test): Likewise.
35942         (csin_test): Likewise.
35943         (csinh_test): Likewise.
35944         (csqrt_test): Likewise.
35945         (ctan_test): Likewise.
35946         (ctan_test_tonearest): Likewise.
35947         (ctan_test_towardzero): Likewise.
35948         (ctan_test_downward): Likewise.
35949         (ctan_test_upward): Likewise.
35950         (ctanh_test): Likewise.
35951         (ctanh_test_tonearest): Likewise.
35952         (ctanh_test_towardzero): Likewise.
35953         (ctanh_test_downward): Likewise.
35954         (ctanh_test_upward): Likewise.
35955         (erf_test): Likewise.
35956         (erfc_test): Likewise.
35957         (exp_test): Likewise.
35958         (exp_test_tonearest): Likewise.
35959         (exp_test_towardzero): Likewise.
35960         (exp_test_downward): Likewise.
35961         (exp_test_upward): Likewise.
35962         (exp10_test): Likewise.
35963         (exp10_test_tonearest): Likewise.
35964         (exp10_test_towardzero): Likewise.
35965         (exp10_test_downward): Likewise.
35966         (exp10_test_upward): Likewise.
35967         (pow10_test): Likewise.
35968         (exp2_test): Likewise.
35969         (expm1_test): Likewise.
35970         (expm1_test_tonearest): Likewise.
35971         (expm1_test_towardzero): Likewise.
35972         (expm1_test_downward): Likewise.
35973         (expm1_test_upward): Likewise.
35974         (fabs_test): Likewise.
35975         (fdim_test): Likewise.
35976         (floor_test): Likewise.
35977         (fma_test): Likewise.
35978         (fma_test_towardzero): Likewise.
35979         (fma_test_downward): Likewise.
35980         (fma_test_upward): Likewise.
35981         (fmax_test): Likewise.
35982         (fmin_test): Likewise.
35983         (fmod_test): Likewise.
35984         (fpclassify_test): Likewise.
35985         (frexp_test): Likewise.
35986         (hypot_test): Likewise.
35987         (ilogb_test): Likewise.
35988         (isfinite_test): Likewise.
35989         (finite_test): Likewise.
35990         (isgreater_test): Likewise.
35991         (isgreaterequal_test): Likewise.
35992         (isinf_test): Likewise.
35993         (isless_test): Likewise.
35994         (islessequal_test): Likewise.
35995         (islessgreater_test): Likewise.
35996         (isnan_test): Likewise.
35997         (isnormal_test): Likewise.
35998         (issignaling_test): Likewise.
35999         (isunordered_test): Likewise.
36000         (j0_test): Likewise.
36001         (j1_test): Likewise.
36002         (jn_test): Likewise.
36003         (ldexp_test): Likewise.
36004         (lgamma_test): Likewise.
36005         (gamma_test): Likewise.
36006         (lrint_test): Likewise.
36007         (lrint_test_tonearest): Likewise.
36008         (lrint_test_towardzero): Likewise.
36009         (lrint_test_downward): Likewise.
36010         (lrint_test_upward): Likewise.
36011         (llrint_test): Likewise.
36012         (llrint_test_tonearest): Likewise.
36013         (llrint_test_towardzero): Likewise.
36014         (llrint_test_downward): Likewise.
36015         (llrint_test_upward): Likewise.
36016         (log_test): Likewise.
36017         (log10_test): Likewise.
36018         (log1p_test): Likewise.
36019         (log2_test): Likewise.
36020         (logb_test): Likewise.
36021         (logb_test_downward): Likewise.
36022         (lround_test): Likewise.
36023         (llround_test): Likewise.
36024         (modf_test): Likewise.
36025         (nearbyint_test): Likewise.
36026         (nextafter_test): Likewise.
36027         (nexttoward_test): Likewise.
36028         (pow_test): Likewise.
36029         (pow_test_tonearest): Likewise.
36030         (pow_test_towardzero): Likewise.
36031         (pow_test_downward): Likewise.
36032         (pow_test_upward): Likewise.
36033         (remainder_test): Likewise.
36034         (drem_test): Likewise.
36035         (remainder_test_tonearest): Likewise.
36036         (drem_test_tonearest): Likewise.
36037         (remainder_test_towardzero): Likewise.
36038         (drem_test_towardzero): Likewise.
36039         (remainder_test_downward): Likewise.
36040         (drem_test_downward): Likewise.
36041         (remainder_test_upward): Likewise.
36042         (drem_test_upward): Likewise.
36043         (remquo_test): Likewise.
36044         (rint_test): Likewise.
36045         (rint_test_tonearest): Likewise.
36046         (rint_test_towardzero): Likewise.
36047         (rint_test_downward): Likewise.
36048         (rint_test_upward): Likewise.
36049         (round_test): Likewise.
36050         (scalb_test): Likewise.
36051         (scalbn_test): Likewise.
36052         (scalbln_test): Likewise.
36053         (signbit_test): Likewise.
36054         (sin_test): Likewise.
36055         (sin_test_tonearest): Likewise.
36056         (sin_test_towardzero): Likewise.
36057         (sin_test_downward): Likewise.
36058         (sin_test_upward): Likewise.
36059         (sincos_test): Likewise.
36060         (sinh_test): Likewise.
36061         (sinh_test_tonearest): Likewise.
36062         (sinh_test_towardzero): Likewise.
36063         (sinh_test_downward): Likewise.
36064         (sinh_test_upward): Likewise.
36065         (sqrt_test): Likewise.
36066         (sqrt_test_tonearest): Likewise.
36067         (sqrt_test_towardzero): Likewise.
36068         (sqrt_test_downward): Likewise.
36069         (sqrt_test_upward): Likewise.
36070         (tan_test): Likewise.
36071         (tan_test_tonearest): Likewise.
36072         (tan_test_towardzero): Likewise.
36073         (tan_test_downward): Likewise.
36074         (tan_test_upward): Likewise.
36075         (tanh_test): Likewise.
36076         (tgamma_test): Likewise.
36077         (trunc_test): Likewise.
36078         (y0_test): Likewise.
36079         (y1_test): Likewise.
36080         (yn_test): Likewise.
36081         (significand_test): Likewise.
36082
36083         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36084         individual tests in comment.
36085         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36086         (prev_max_error): New variable.
36087         (prev_real_max_error): Likewise.
36088         (prev_imag_max_error): Likewise.
36089         (compare_ulp_data): Don't refer to test names in comment.
36090         (find_test_ulps): Remove function.
36091         (find_function_ulps): Likewise.
36092         (find_complex_function_ulps): Likewise.
36093         (init_max_error): Take function name as argument.  Look up ulps
36094         for that function.
36095         (print_ulps): Remove function.
36096         (print_max_error): Use prev_max_error instead of calling
36097         find_function_ulps.
36098         (print_complex_max_error): Use prev_real_max_error and
36099         prev_imag_max_error instead of calling find_complex_function_ulps.
36100         (check_float_internal): Take max_ulp parameter instead of calling
36101         find_test_ulps.  Don't call print_ulps.
36102         (check_float): Update call to check_float_internal.
36103         (check_complex): Update calls to check_float_internal.
36104         (START): Pass argument to init_max_error.
36105         * math/gen-libm-test.pl (%results): Don't include "kind"
36106         information.
36107         (parse_ulps): Don't handle ulps of individual tests.
36108         (print_ulps_file): Likewise.
36109         (output_ulps): Likewise.
36110         * math/README.libm-test: Update.
36111         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36112         individual tests.
36113         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36114         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36115         * sysdeps/arm/libm-test-ulps: Likewise.
36116         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36117         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36118         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36119         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36120         * sysdeps/microblaze/libm-test-ulps: Likewise.
36121         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36122         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36123         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36124         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36125         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36126         * sysdeps/sh/libm-test-ulps: Likewise.
36127         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36128         * sysdeps/tile/libm-test-ulps: Likewise.
36129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36130
36131 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36132
36133         * math/libm-test.inc (print_complex_max_error): Check separately
36134         whether real and imaginary errors are within allowed range and
36135         pass 0 to print_complex_function_ulps instead of value within
36136         allowed range.
36137
36138 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36139
36140         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36141         formatting.
36142         (get_handles_fopen): Likewise.
36143         (do_write_test): Likewise.
36144
36145         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36146
36147         * libio/fileops.c (do_ftell): Use cached offset when
36148         available.
36149         * libio/iofwide.c (do_ftell_wide): Likewise.
36150         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36151         _IO_file_attach.
36152         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36153
36154         [BZ #16532]
36155         * libio/libioP.h (get_file_offset): New function.
36156         * libio/fileops.c (get_file_offset): Likewise.
36157         (do_ftell): Likewise.
36158         (_IO_new_file_seekoff): Split out ftell logic.
36159         * libio/wfileops.c (do_ftell_wide): Likewise.
36160         (_IO_wfile_seekoff): Split out ftell logic.
36161         * libio/tst-ftell-active-handler.c: New test case.
36162         * libio/Makefile (tests): Add it.
36163
36164 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36165
36166         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36167         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36168
36169 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36170
36171         [BZ #16639]
36172         * nscd/connections.c (nscd_init): Call do_exit.
36173         (start_threads): Call do_exit and notify_parent.
36174         (begin_drop_privileges): Call do_exit.
36175         (finish_drop_privileges): Likewise.
36176         * nscd/selinux.c (preserve_capabilities): Likewise.
36177         (install_real_capabilities): Likewise.
36178         (nscd_selinux_enabled): Likewise.
36179         (avc_create_thread): Likewise.
36180         (avc_alloc_lock): Likewise.
36181         (nscd_avc_init): Likewise.
36182         * nscd/nscd.c (parent_fd): New static variable.
36183         (main): Create a pipe between parent and child processes.
36184         Skip closing parent_fd.
36185         (monitor_child): New function.
36186         (do_exit): Likewise.
36187         (notify_parent): Likewise.
36188         * nscd/nscd.h (notify_parent): Likewise.
36189         (do_exit): Likewise.
36190
36191 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36192
36193         * malloc/malloc.c (__libc_calloc): Revert last change.
36194
36195 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36196
36197         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36198
36199 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36200
36201         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36202         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36203         implementation.
36204         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36205         (__libc_ifunc_impl_list): Likewise.
36206         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36207         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36208         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36209         * string/strrchr.c: Define STRRCHR.
36210
36211 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36212
36213         * benchtest/bench-strtok.c (simple_strtok): Delete.
36214         (strtok_string): Use as benchmark.
36215         * string/strtok (STRTOK): New macro.
36216
36217 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36218
36219         * manual/threads.texi: Add header and standard comments to all
36220         functions.
36221
36222         * elf/dl-lookup.c (check_match): New function.
36223         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36224         (do_lookup_x): Remove nested function check_match. Use non-nested
36225         function check_match.
36226
36227 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36228
36229         * csu/Makefile (generated, before-compile): Use += rather than =.
36230         * catgets/Makefile (generated, generated-dirs): Likewise.
36231         * debug/Makefile (generated): Likewise.
36232         * dlfcn/Makefile (generated): Likewise.
36233         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36234         * iconvdata/Makefile (before-compile, generated): Likewise.
36235         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36236         * libio/Makefile (generated): Likewise.
36237         * malloc/Makefile (generated): Likewise.
36238         * manual/Makefile (generated, generated-dirs): Likewise.
36239         * misc/Makefile (generated): Likewise.
36240         * posix/Makefile (generated): Likewise.
36241         * resolv/Makefile (generated): Likewise.
36242         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36243         * timezone/Makefile (generated, generated-dirs): Likewise.
36244
36245         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36246
36247 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36248
36249         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36250         power8 implementation.
36251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36252         file: POWER8 llround ifunc implementation.
36253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36254         (__lllround): Add POWER8 implementation.
36255         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36256         POWER8 llround implementation.
36257
36258         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36259         power8 implementation.
36260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36261         file: POWER8 llrint ifunc implementation.
36262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36263         Add POWER8 implementation.
36264         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36265         POWER8 llrint implementation.
36266
36267         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36268         power8 implementation.
36269         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36270         file: POWER8 finite ifunc implementation.
36271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36272         Add POWER8 implementation.
36273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36274         Likewise.
36275         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36276         POWER8 finite implementation.
36277         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36278
36279         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36280         power8 implementation.
36281         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36282         file: POWER8 isinf ifunc implementation.
36283         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36284         POWER8 implementation.
36285         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36286         Likewise.
36287         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36288         isinf implementation.
36289         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36290
36291         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36292         (INIT_ARCH): Add hwcap2 initialization.
36293         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36294         power8 implementation.
36295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36296         file: POWER8 isnan ifunc implementation.
36297         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36298         POWER8 implementation.
36299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36300         Likewise.
36301         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36302         isnan implementation.
36303         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36304
36305 2014-02-27  Joey Ye  <joey.ye@arm.com>
36306
36307         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36308         (_FP_NANFRAC_Q): Set to zero.
36309
36310 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36311
36312         [BZ #16623]
36313         * math/auto-libm-test-in: New test inputs.
36314         * math/auto-libm-test-out: Regenerate.
36315         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36316         and DA.
36317         (__cos): Likewise.
36318         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36319
36320 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36321
36322         * scripts/evaluate-test.sh: Take new argument indicating whether
36323         failure is expected.
36324         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36325         indicating whether failure is expected.
36326         * conform/Makefile (test-xfail-run-conformtest): New variable.
36327         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36328         level.
36329         * posix/Makefile (test-xfail-annexc): New variable.
36330         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36331
36332 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36333
36334         * argp/Makefile: Include Makeconfig immediately after defining
36335         subdir.
36336         * assert/Makefile: Likewise.
36337         * benchtests/Makefile: Likewise.
36338         * catgets/Makefile: Likewise.
36339         * conform/Makefile: Likewise.
36340         * crypt/Makefile: Likewise.
36341         * csu/Makefile: Likewise.
36342         (all): Remove target.
36343         * ctype/Makefile: Include Makeconfig immediately after defining
36344         subdir.
36345         * debug/Makefile: Likewise.
36346         * dirent/Makefile: Likewise.
36347         * dlfcn/Makefile: Likewise.
36348         * gmon/Makefile: Likewise.
36349         * gnulib/Makefile: Likewise.
36350         * grp/Makefile: Likewise.
36351         * gshadow/Makefile: Likewise.
36352         * hesiod/Makefile: Likewise.
36353         * hurd/Makefile: Likewise.
36354         (all): Remove target.
36355         * iconvdata/Makefile: Include Makeconfig immediately after
36356         defining subdir.
36357         * inet/Makefile: Likewise.
36358         * intl/Makefile: Likewise.
36359         * io/Makefile: Likewise.
36360         * libio/Makefile: Likewise.
36361         (all): Remove target.
36362         * locale/Makefile: Include Makeconfig immediately after defining
36363         subdir.
36364         * login/Makefile: Likewise.
36365         * mach/Makefile: Likewise.
36366         (all): Remove target.
36367         * malloc/Makefile: Include Makeconfig immediately after defining
36368         subdir.
36369         (all): Remove target.
36370         * manual/Makefile: Include Makeconfig immediately after defining
36371         subdir.
36372         * math/Makefile: Likewise.
36373         * misc/Makefile: Likewise.
36374         * nis/Makefile: Likewise.
36375         * nss/Makefile: Likewise.
36376         * po/Makefile: Likewise.
36377         (all): Remove target.
36378         * posix/Makefile: Include Makeconfig immediately after defining
36379         subdir.
36380         * pwd/Makefile: Likewise.
36381         * resolv/Makefile: Likewise.
36382         * resource/Makefile: Likewise.
36383         * rt/Makefile: Likewise.
36384         * setjmp/Makefile: Likewise.
36385         * shadow/Makefile: Likewise.
36386         * signal/Makefile: Likewise.
36387         * socket/Makefile: Likewise.
36388         * soft-fp/Makefile: Likewise.
36389         * stdio-common/Makefile: Likewise.
36390         * stdlib/Makefile: Likewise.
36391         * streams/Makefile: Likewise.
36392         * string/Makefile: Likewise.
36393         * sunrpc/Makefile: Likewise.
36394         (all): Remove target.
36395         * sysvipc/Makefile: Include Makeconfig immediately after defining
36396         subdir.
36397         * termios/Makefile: Likewise.
36398         * time/Makefile: Likewise.
36399         * timezone/Makefile: Likewise.
36400         (all): Remove target.
36401         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36402         subdir.
36403         * wctype/Makefile: Likewise.
36404
36405 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36406
36407         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36408         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36409         (libc_feholdexcept_setround_mips): Ditto.
36410         (libc_feholdsetround): New.
36411         (libc_feholdsetroundf): New.
36412         (libc_feholdsetroundl): New.
36413         (libc_feupdateenv_test_mips): New.
36414         (libc_feupdateenv_test): New.
36415         (libc_feupdateenv_testf): New.
36416         (libc_feupdateenv_testl): New.
36417         (libc_feresetround): New.
36418         (libc_feresetroundf): New.
36419         (libc_feresetroundl): New.
36420         (libc_fetestexcept_mips): New.
36421         (libc_fetestexcept): New.
36422         (libc_fetestexceptf): New.
36423         (libc_fetestexceptl): New.
36424         (HAVE_RM_CTX): New.
36425         (libc_feholdexcept_setround_mips_ctx): New.
36426         (libc_feholdexcept_setround_ctx): New.
36427         (libc_feholdexcept_setroundf_ctx): New.
36428         (libc_feholdexcept_setroundl_ctx): New.
36429         (libc_fesetenv_mips_ctx): New.
36430         (libc_fesetenv_ctx): New.
36431         (libc_fesetenv_ctxf): New.
36432         (libc_fesetenv_ctxl): New.
36433         (libc_feupdateenv_mips_ctx): New.
36434         (libc_feupdateenv_ctx): New.
36435         (libc_feupdateenvf_ctx): New.
36436         (libc_feupdateenvl_ctx): New.
36437         (libc_feholdsetround_mips_ctx): New.
36438         (libc_feholdsetround_ctx): New.
36439         (libc_feholdsetroundf_ctx): New.
36440         (libc_feholdsetroundl_ctx): New.
36441         (libc_feresetround_mips_ctx): New.
36442         (libc_feresetround_ctx): New.
36443         (libc_feresetroundf_ctx): New.
36444         (libc_feresetroundl_ctx): New.
36445
36446 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36447
36448         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36449
36450         * manual/ipc.texi: New file.
36451         * manual/Makefile (chapters): Add ipc.
36452         * manual/job.texi: Add "Inter-Process Communication" to next.
36453         * manual/process.texi: Add "Inter-Process Communication" to prev.
36454
36455 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36456
36457         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36458
36459 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36460
36461         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36462
36463         * manual/arith.texi: Fix spaces after sentences.
36464         * manual/charset.texi: Likewise.
36465         * manual/errno.texi: Likewise.
36466         * manual/install.texi: Likewise.
36467         * manual/llio.texi: Likewise.
36468         * manual/locale.texi: Likewise.
36469         * manual/maint.texi: Likewise.
36470         * manual/math.texi: Likewise.
36471         * manual/memory.texi: Likewise.
36472         * manual/message.texi: Likewise.
36473         * manual/probes.texi: Likewise.
36474         * manual/resource.texi: Likewise.
36475         * manual/signal.texi: Likewise.
36476         * manual/socket.texi: Likewise.
36477         * manual/stdio.texi: Likewise.
36478         * manual/string.texi: Likewise.
36479         * manual/time.texi: Likewise.
36480         * manual/users.texi: Likewise.
36481
36482 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36483
36484         [BZ #16632]
36485         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36486         _DEFAULT_SOURCE is defined.
36487
36488 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36489             Carlos O'Donell  <carlos@redhat.com>
36490
36491         [BZ #16613]
36492         * elf/dl-tls.c (_dl_count_modids): New function.
36493         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36494         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36495         audit library and increment generation counter.
36496         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36497         * elf/tst-audit9.c: New file.
36498         * elf/tst-auditmod9a.c: New file.
36499         * elf/tst-auditmod9b.c: New file.
36500         * elf/Makefile: Add rules to build and run tst-audit9.
36501
36502 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36503
36504         [BZ #15347]
36505         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36506
36507 2014-02-25  Will Newton  <will.newton@linaro.org>
36508
36509         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36510         (__longjmp): Restore sp and lr before restoring callee
36511         saved registers.  Add longjmp and longjmp_target
36512         SystemTap probe point.
36513         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36514         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36515         Define to zero to match jmpbuf layout.
36516         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36517         (__sigsetjmp): Save sp and lr before saving callee
36518         saved registers.  Add setjmp SystemTap probe point.
36519
36520 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36521
36522         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36523
36524 2014-02-24  Andreas Schwab  <schwab@suse.de>
36525
36526         [BZ #15804]
36527         * elf/pldd.c (wait_for_ptrace_stop): New function.
36528         (main): Call it after attaching.
36529
36530 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36531
36532         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36533         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36534         Versions files is now verboten.
36535         * hurd/Versions (libc: GLIBC_2.0):
36536         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36537         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36538         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36539         * mach/Versions: Likewise.
36540
36541         * csu/Versions: Remove unused %include.
36542         * resolv/Versions: Likewise.
36543
36544 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36545
36546         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36547         ($(objpfx)check-local-headers.out): Likewise.
36548         ($(objpfx)begin-end-check.out): Likewise.
36549         * Makerules (check-abi-%.out): Likewise.
36550         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36551         ($(objpfx)test2.cat): Likewise.
36552         ($(objpfx)de/libc.cat): Likewise.
36553         ($(objpfx)test-gencat.out): Likewise.
36554         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36555         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36556         ($(objpfx)noload-mem): Likewise.
36557         ($(objpfx)tst-pathopt.out): Likewise.
36558         ($(objpfx)tst-rtld-load-self.out): Likewise.
36559         ($(objpfx)tst-array1-cmp.out): Likewise.
36560         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36561         ($(objpfx)tst-array2-cmp.out): Likewise.
36562         ($(objpfx)tst-array3-cmp.out): Likewise.
36563         ($(objpfx)tst-array4-cmp.out): Likewise.
36564         ($(objpfx)tst-array5-cmp.out): Likewise.
36565         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36566         ($(objpfx)check-textrel.out): Likewise.
36567         ($(objpfx)check-execstack.out): Likewise.
36568         ($(objpfx)check-localplt.out): Likewise.
36569         ($(objpfx)order2-cmp.out): Likewise.
36570         ($(objpfx)tst-leaks1-mem): Likewise.
36571         ($(objpfx)tst-leaks1-static-mem): Likewise.
36572         ($(objpfx)tst-initorder-cmp.out): Likewise.
36573         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36574         ($(objpfx)tst-unused-dep.out): Likewise.
36575         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36577         * iconv/Makefile (test-iconvconfig): Likewise.
36578         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36579         ($(objpfx)iconv-test.out): Likewise.
36580         ($(objpfx)tst-tables.out): Likewise.
36581         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36582         ($(objpfx)tst-gettext.out): Likewise.
36583         ($(objpfx)tst-translit.out): Likewise.
36584         ($(objpfx)tst-gettext2.out): Likewise.
36585         ($(objpfx)tst-gettext4.out): Likewise.
36586         ($(objpfx)tst-gettext6.out): Likewise.
36587         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36588         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36589         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36590         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36591         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36592         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36593         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36594         ($(objpfx)wordexp-tst.out): Likewise.
36595         ($(objpfx)annexc.out): Likewise.
36596         ($(objpfx)tst-fnmatch-mem): Likewise.
36597         ($(objpfx)bug-regex2-mem): Likewise.
36598         ($(objpfx)bug-regex14-mem): Likewise.
36599         ($(objpfx)bug-regex21-mem): Likewise.
36600         ($(objpfx)bug-regex31-mem): Likewise.
36601         ($(objpfx)tst-vfork3-mem): Likewise.
36602         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36603         ($(objpfx)tst-pcre-mem): Likewise.
36604         ($(objpfx)tst-boost-mem): Likewise.
36605         ($(objpfx)tst-getconf.out): Likewise.
36606         ($(objpfx)bug-ga2-mem): Likewise.
36607         ($(objpfx)bug-glob2-mem): Likewise.
36608         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36609         ($(objpfx)mtrace-tst-leaks2): Likewise.
36610         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36611         ($(objpfx)tst-printf.out): Likewise.
36612         ($(objpfx)tst-setvbuf1.out): Likewise.
36613         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36614         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36615         ($(objpfx)tst-fmtmsg.out): Likewise.
36616         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36617         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36618
36619         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36620         * bits/sigaction.h [__USE_MISC]: Likewise.
36621         * bits/waitstatus.h: Update #endif comments.
36622         * ctype/ctype.h: Likewise.
36623         * dirent/dirent.h: Likewise.
36624         [__USE_MISC]: Remove redundant conditionals.
36625         * grp/grp.h: Update #endif comments.
36626         [__USE_GNU]: Remove redundant conditionals.
36627         [__USE_MISC]: Likewise.
36628         * inet/netinet/in.h [__USE_GNU]: Likewise.
36629         * io/sys/stat.h [__USE_MISC]: Likewise.
36630         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36631         * libio/bits/stdio.h: Update #endif comments.
36632         [__USE_MISC]: Remove redundant conditionals.
36633         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36634         * libio/stdio.h: Update #endif comments.
36635         [__USE_MISC]: Remove redundant conditionals.
36636         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36637         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36638         * math/math.h: Update #else and #endif comments.
36639         [__USE_MISC]: Remove redundant conditionals.
36640         * misc/sys/uio.h: Update #endif comments.
36641         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36642         * posix/glob.h [__USE_MISC]: Likewise.
36643         * posix/sys/types.h: Update #endif comments.
36644         [__USE_MISC]: Remove redundant conditionals.
36645         * posix/sys/wait.h: Update #endif comments.
36646         [__USE_MISC]: Remove redundant conditionals.
36647         * posix/unistd.h: Update #endif comments.
36648         [__USE_MISC]: Remove redundant conditionals.
36649         * pwd/pwd.h [__USE_GNU]: Likewise.
36650         [__USE_MISC]: Likewise.
36651         * resolv/netdb.h [__USE_GNU]: Likewise.
36652         * signal/signal.h: Update #endif comments.
36653         [__USE_MISC]: Remove redundant conditionals.
36654         * stdlib/stdlib.h: Update #else and #endif comments.
36655         [__USE_MISC]: Remove redundant conditionals.
36656         [__USE_GNU]: Likewise.
36657         * string/bits/string2.h [__USE_MISC]: Likewise.
36658         * string/string.h: Update #endif comments.
36659         [__USE_MISC]: Remove redundant conditionals.
36660         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36661         Likewise.
36662         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36663         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36664         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36665         Likewise.
36666         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36667         Likewise.
36668         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36669         comments.
36670         [__USE_MISC]: Remove redundant conditionals.
36671         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36672         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36673         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36674         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36675         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36676         Likewise.
36677         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36678         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36679         Likewise.
36680         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36681         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36682         Likewise.
36683         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36684         Likewise.
36685         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36686         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36687         Likewise.
36688         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36689         Likewise.
36690         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36691         * sysdeps/x86/bits/string.h: Update #endif comments.
36692         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36693         conditionals.
36694         * time/sys/time.h: Update #endif comments.
36695         * time/time.h: Likewise.
36696         [__USE_MISC]: Remove redundant conditionals.
36697
36698 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36699
36700         [BZ #16600]
36701         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36702
36703 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36704
36705         * Versions.def (librt): Add GLIBC_2.17.
36706
36707 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36708
36709         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36710         synonym for _SYS_AUXV_H to allow direct inclusion.
36711         * sysdeps/sparc/bits/hwcap.h: Likewise.
36712         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36713         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36714         * sysdeps/sparc/sysdep.h: Likewise.
36715
36716 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36717
36718         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36719
36720 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36721
36722         * benchtests/bench-strrchr.c: Print length instead of position.
36723
36724 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36725
36726         [BZ #16611]
36727         * sysdeps/unix/sysv/linux/kernel-features.h
36728         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36729         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36730         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36731         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36732         Likewise.
36733         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36734         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36735         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36736         (__ASSUME_SENDMMSG): Define instead of using previous
36737         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36738         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36739         (__ASSUME_SENDMMSG_SYSCALL): Define.
36740         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36741         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36742         Likewise.
36743         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36744         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36745         Likewise.
36746         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36747         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36748         Likewise.
36749         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36750         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36751         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36752         [__ASSUME_SENDMMSG]: Change conditionals to
36753         [__ASSUME_SENDMMSG_SOCKETCALL].
36754         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36755         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36756         Define.
36757         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36758         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36759         Likewise.
36760         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36761         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36762         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36763         [!__ASSUME_SENDMMSG]: Change conditional to
36764         [!__ASSUME_SENDMMSG_SOCKETCALL].
36765         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36766         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36767         Define.
36768
36769         [BZ #16610]
36770         * sysdeps/unix/sysv/linux/kernel-features.h
36771         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36772         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36773         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36774         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36775         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36776         [__i386__ || __sparc__]
36777         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36778         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36779         (__ASSUME_RECVMMSG): Define instead of using previous
36780         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36781         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36782         (__ASSUME_RECVMMSG_SYSCALL): Define.
36783         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36784         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36785         Likewise.
36786         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36787         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36788         Likewise.
36789         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36790         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36791         Likewise.
36792         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36793         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36794         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36795         [__ASSUME_RECVMMSG]: Change condition to
36796         [__ASSUME_RECVMMSG_SOCKETCALL].
36797         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36798         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36799         Define.
36800         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36801         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36802         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36803         Likewise.
36804         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
36805         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36806         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36807         [!__ASSUME_RECVMMSG]: Change condition to
36808         [!__ASSUME_RECVMMSG_SOCKETCALL].
36809         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36810         (__ASSUME_RECVMMSG_SYSCALL): Define.
36811
36812         [BZ #16609]
36813         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36814         __powerpc__ || __s390__ || __sh__ || __sparc__]
36815         (__ASSUME_SOCKETCALL): Define.
36816         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36817         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36818         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36819         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36820         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36821         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36822         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36823         (__ASSUME_ACCEPT4): Define instead of using previous
36824         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36825         __powerpc__ || __sparc__ || __s390__)] condition.
36826         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36827         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36828         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36829         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36830         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36831         [!__ASSUME_ACCEPT4]: Change condition to
36832         [!__ASSUME_ACCEPT4_SOCKETCALL].
36833         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36834         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36835         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36836         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36837         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36838         __ASSUME_ACCEPT4_SYSCALL.
36839         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36840         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
36841         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36842         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
36843         __ASSUME_ACCEPT4_SYSCALL.
36844         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
36845         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36846         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36847         [__ASSUME_ACCEPT4]: Change condition to
36848         [__ASSUME_ACCEPT4_SOCKETCALL].
36849         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36850         (__ASSUME_SOCKETCALL): Define.
36851         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
36852         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36853         (__ASSUME_SOCKETCALL): Define.
36854         (__ASSUME_ACCEPT4): Remove.
36855         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
36856         Define.
36857         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36858         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
36859         Likewise.
36860         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36861         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36862
36863         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
36864         macro.
36865         (HWCAP_ARM_LPAE): Likewise.
36866         (HWCAP_ARM_EVTSTRM): Likewise.
36867         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
36868         Add vpfd32, lpae and evtstrm.
36869         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
36870         Increase to 22.
36871
36872 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
36873
36874         * math/auto-libm-test-in: Add tests of clog10.
36875         * math/auto-libm-test-out: Regenerated.
36876         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
36877         * sysdeps/i386/fpu/libm-test-ulps: Update.
36878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36879
36880 2014-02-18  Andreas Schwab  <schwab@suse.de>
36881
36882         [BZ #16574]
36883         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
36884         Store non-zero if the second buffer was newly allocated.
36885         (send_dg): Likewise.
36886         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
36887         to send_vc and send_dg.
36888         (res_nsend): Pass NULL for ansp2_malloced.
36889         * resolv/res_query.c (__libc_res_nquery): Add parameter
36890         answerp2_malloced and pass it down to __libc_res_nsend.
36891         (res_nquery): Pass additional NULL to __libc_res_nquery.
36892         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
36893         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
36894         second answer buffer if answerp2_malloced was set.
36895         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
36896         (__libc_res_nquerydomain): Add parameter
36897         answerp2_malloced and pass it down to __libc_res_nquery.
36898         (res_nquerydomain): Pass additional NULL to
36899         __libc_res_nquerydomain.
36900         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
36901         additional NULL to __libc_res_nsend and __libc_res_nquery.
36902         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
36903         additional NULL to __libc_res_nsearch.
36904         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
36905         parameter of __libc_res_nsearch to check for separately allocated
36906         second buffer.
36907         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
36908         __libc_res_nquery.
36909         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
36910         additional NULL to __libc_res_nquery.
36911         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
36912         __libc_res_nsearch.
36913         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
36914         * include/resolv.h: Update prototypes of __libc_res_nquery,
36915         __libc_res_nsearch, __libc_res_nsend.
36916
36917 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
36918
36919         * math/auto-libm-test-in: Add tests of fma.
36920         * math/auto-libm-test-out: Regenerated.
36921         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
36922         (fma_towardzero_test_data): Likewise.
36923         (fma_downward_test_data): Likewise.
36924         (fma_upward_test_data): Likewise.
36925         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
36926         mpc_mode.
36927         (rounding_modes): Add values for new field.
36928         (func_calc_method): Add value mpfr_fff_f.
36929         (func_calc_desc): Add mpfr_fff_f union field.
36930         (test_function): Add field exact_args.
36931         (FUNC): Add macro argument EXACT_ARGS.
36932         (FUNC_mpfr_f_f): Update call to FUNC.
36933         (FUNC_mpfr_f_f): Likewise.
36934         (FUNC_mpfr_ff_f): Likewise.
36935         (FUNC_mpfr_if_f): Likewise.
36936         (FUNC_mpc_c_f): Likewise.
36937         (FUNC_mpc_c_c): Likewise.
36938         (test_functions): Add fma.  Update calls to FUNC.
36939         (handle_input_arg): Add argument exact_args.
36940         (add_test): Update call to handle_input_arg.
36941         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
36942         (output_for_one_input_case): Update call to calc_generic_results.
36943         Recalculate exact zero results in each rounding mode.
36944
36945         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
36946         non-negative before setting low bit.
36947         * math/auto-libm-test-in: Mark one asin test possibly having
36948         spurious underflow.
36949         * math/auto-libm-test-out: Regenerated.
36950         * sysdeps/i386/fpu/libm-test-ulps: Update.
36951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36952
36953 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
36954
36955         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
36956         * sysdeps/unix/sysv/linux/microblaze: Move directory from
36957         ports/sysdeps/unix/sysv/linux/microblaze.
36958         * README: Add missing listing for microblaze*-*-linux-gnu.
36959
36960 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
36961
36962         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
36963         duplicate code
36964
36965 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
36966
36967         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
36968         * sysdeps/unix/sysv/linux/ia64: Move directory from
36969         ports/sysdeps/unix/sysv/linux/ia64.
36970         * README: Update listing for ia64-*-linux-gnu.
36971
36972 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
36973             Joseph Myers  <joseph@codesourcery.com>
36974
36975         * Makeconfig (test-name): New variable.
36976         (evaluate-test): Likewise.
36977         * Makerules (do-test-clean): Remove .test-result files.
36978         (common-mostlyclean): Likewise.
36979         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
36980         * scripts/evaluate-test.sh: New file.
36981
36982 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
36983
36984         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
36985         separate $(objpfx)tst-fopenloc-cmp.out and
36986         $(objpfx)tst-fopenloc-mem.out targets.
36987         (tests): Update dependencies.
36988         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
36989         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
36990         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
36991         (tst-rxspencer-no-utf8-ARGS): New variable.
36992         (tst-rxspencer-no-utf8-ENV): Likewise.
36993         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
36994         instead of $(objpfx)tst-rxspencer-mem.
36995         ($(objpfx)tst-rxspencer-mem): Change target to
36996         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
36997         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
36998         * posix/tst-rxspencer-no-utf8.c: New file.
36999
37000         * elf/Makefile ($(objpfx)order.out): Remove rule.
37001         [$(run-built-tests) = yes] (tests): Depend on
37002         $(objpfx)order-cmp.out.
37003         ($(objpfx)order-cmp.out): New rule.
37004         [$(run-built-tests) = yes] (tests): Depend on
37005         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37006         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37007         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37008         $(objpfx)tst-array5-static-cmp.out.
37009         ($(objpfx)tst-array1.out): Remove rule.
37010         ($(objpfx)tst-array1-cmp.out): New rule.
37011         ($(objpfx)tst-array1-static.out): Remove rule.
37012         ($(objpfx)tst-array1-static-cmp.out): New rule.
37013         ($(objpfx)tst-array2.out): Remove rule.
37014         ($(objpfx)tst-array2-cmp.out): New rule.
37015         ($(objpfx)tst-array3.out): Remove rule.
37016         ($(objpfx)tst-array3-cmp.out): New rule.
37017         ($(objpfx)tst-array4.out): Remove rule.
37018         ($(objpfx)tst-array4-cmp.out): New rule.
37019         ($(objpfx)tst-array5.out): Remove rule.
37020         ($(objpfx)tst-array5-cmp.out): New rule.
37021         ($(objpfx)tst-array5-static.out): Remove rule.
37022         ($(objpfx)tst-array5-static-cmp.out): New rule.
37023         [$(run-built-tests) = yes] (tests): Depend on
37024         $(objpfx)order2-cmp.out.
37025         ($(objpfx)order2.out): Remove rule.
37026         ($(objpfx)order2-cmp.out): New rule.
37027         ($(objpfx)tst-initorder.out): Remove rule.
37028         [$(run-built-tests) = yes] (tests): Depend on
37029         $(objpfx)tst-initorder-cmp.out.
37030         ($(objpfx)tst-initorder-cmp.out): New rule.
37031         ($(objpfx)tst-initorder2.out): Remove rule.
37032         [$(run-built-tests) = yes] (tests): Depend on
37033         $(objpfx)tst-initorder2-cmp.out.
37034         ($(objpfx)tst-initorder2-cmp.out): New rule.
37035         [$(run-built-tests) = yes] (tests): Depend on
37036         $(objpfx)tst-unused-dep-cmp.out.
37037         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37038         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37039         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37040         on $(objpfx)tst-setvbuf1-cmp.out.
37041         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37042         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37043         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37044         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37045         ($(objpfx)tst-svc.out): Remove rule.
37046         ($(objpfx)tst-svc-cmp.out): New rule.
37047
37048 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37049
37050         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37051         * ctype/ctype.h [__USE_MISC]: Likewise.
37052         * dirent/dirent.h [__USE_MISC]: Likewise.
37053         * grp/grp.h [__USE_MISC]: Likewise.
37054         * io/fcntl.h [__USE_MISC]: Likewise.
37055         * io/sys/stat.h [__USE_MISC]: Likewise.
37056         * libio/stdio.h [__USE_MISC]: Likewise.
37057         * posix/unistd.h [__USE_MISC]: Likewise.
37058         * pwd/pwd.h [__USE_MISC]: Likewise.
37059         * stdlib.h [__USE_MISC]: Likewise.
37060         * string/bits/string2.h [__USE_MISC]: Likewise.
37061         * string/string.h [__USE_MISC]: Likewise.
37062         * time/time.h [__USE_MISC]: Likewise.
37063
37064 2014-02-13  Andreas Schwab  <schwab@suse.de>
37065
37066         [BZ #16574]
37067         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37068         second answer buffer if it was separately allocated.
37069
37070 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37071
37072         * sysdeps/mips/math-tests.h: Include <features.h>.
37073         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37074         (ROUNDING_TESTS_long_double): Do not define.
37075         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37076         (EXCEPTION_TESTS_long_double): Likewise.
37077         * sysdeps/mips/mips64/libm-test-ulps: Update.
37078
37079         * include/features.h (__USE_BSD): Remove macro definitions.
37080         (__USE_SVID): Likewise.
37081         (_BSD_SOURCE): Likewise.
37082         (_SVID_SOURCE): Likewise.
37083         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37084         from definition of _DEFAULT_SOURCE.
37085         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37086         [_DEFAULT_SOURCE].
37087         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37088         * bits/mman.h [__USE_BSD]: Likewise.
37089         * bits/termios.h [__USE_BSD]: Likewise.
37090         * bits/waitstatus.h [__USE_BSD]: Likewise.
37091         * ctype/ctype.h [__USE_SVID]: Likewise.
37092         * dirent/dirent.h [__USE_BSD]: Likewise.
37093         * grp/grp.h [__USE_SVID]: Likewise.
37094         [__USE_BSD]: Likewise.
37095         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37096         * io/fcntl.h [__USE_BSD]: Likewise.
37097         * io/ftw.h [__USE_BSD]: Likewise.
37098         * io/sys/stat.h [__USE_BSD]: Likewise.
37099         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37100         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37101         * libio/stdio.h [__USE_SVID]: Likewise.
37102         [__USE_BSD]: Likewise.
37103         * math/math.h [__USE_SVID]: Likewise.
37104         [__USE_BSD]: Likewise.
37105         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37106         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37107         * misc/search.h [__USE_SVID]: Likewise.
37108         * misc/sys/mman.h [__USE_BSD]: Likewise.
37109         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37110         * misc/sys/uio.h [__USE_BSD]: Likewise.
37111         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37112         * posix/glob.h [__USE_BSD]: Likewise.
37113         * posix/regex.h [__USE_BSD]: Likewise.
37114         * posix/sys/types.h [__USE_BSD]: Likewise.
37115         [__USE_SVID]: Likewise.
37116         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37117         * posix/sys/wait.h [__USE_BSD]: Likewise.
37118         [__USE_SVID]: Likewise.
37119         * posix/unistd.h [__USE_BSD]: Likewise.
37120         [__USE_SVID]: Likewise.
37121         * pwd/pwd.h [__USE_SVID]: Likewise.
37122         * resolv/netdb.h [__USE_BSD]: Likewise.
37123         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37124         * signal/signal.h [__USE_BSD]: Likewise.
37125         [__USE_SVID]: Likewise.
37126         * socket/sys/socket.h [__USE_BSD]: Likewise.
37127         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37128         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37129         [__USE_SVID]: Likewise.
37130         * string/bits/string2.h [__USE_BSD]: Likewise.
37131         [__USE_SVID]: Likewise.
37132         * string/bits/string3.h [__USE_BSD]: Likewise.
37133         * string/endian.h [__USE_BSD]: Likewise.
37134         * string/string.h [__USE_SVID]: Likewise.
37135         [__USE_BSD]: Likewise.
37136         * string/strings.h [__USE_BSD]: Likewise.
37137         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37138         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37139         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37140         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37141         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37142         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37143         Likewise.
37144         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37145         Likewise.
37146         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37147         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37148         Likewise.
37149         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37150         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37151         Likewise.
37152         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37153         Likewise.
37154         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37155         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37156         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37157         Likewise.
37158         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37159         Likewise.
37160         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37161         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37162         * termios/termios.h [__USE_BSD]: Likewise.
37163         * time/sys/time.h [__USE_BSD]: Likewise.
37164         * time/time.h [__USE_BSD]: Likewise.
37165         [__USE_SVID]: Likewise.
37166
37167         * Makefile (subdir_targets): Remove subdir_lint.out.
37168
37169         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37170         (do-tst-printf): Likewise.
37171         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37172         $(objpfx)tst-printf.out.
37173
37174         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37175
37176         * Makerules (check-abi-%): Change target to
37177         $(objpfx)check-abi-%.out.
37178         (check-abi target): Update dependencies.
37179         (check-abi-pattern variable): Redirect output of diff to $@.
37180         (check-abi variable): Likewise.
37181         * elf/Makefile (check-abi): Update dependencies.
37182
37183         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37184         unused.
37185         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37186         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37187         subnormal range.
37188         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37189         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37190         value has largest subnormal exponent.
37191         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37192         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37193         * sysdeps/aarch64/soft-fp/sfp-machine.h
37194         (_FP_TININESS_AFTER_ROUNDING): New macro.
37195         * sysdeps/alpha/soft-fp/sfp-machine.h
37196         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37197         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37198         Likewise.
37199         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37200         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37201         * sysdeps/mips/soft-fp/sfp-machine.h
37202         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37203         * sysdeps/powerpc/soft-fp/sfp-machine.h
37204         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37205         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37206         Likewise.
37207         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37208         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37209         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37210         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37211         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37212         Likewise.
37213
37214 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37215
37216         [BZ #16545]
37217         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37218         model 1.
37219
37220 2014-02-12  Richard Henderson  <rth@redhat.com>
37221
37222         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37223         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37224         * sysdeps/unix/sysv/linux/alpha: Move directory from
37225         ports/sysdeps/unix/sysv/linux/alpha.
37226         * README: Update listing for alpha-*-linux-gnu.
37227
37228 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37229
37230         * include/features.h: Update comment documenting feature test
37231         macros.
37232         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37233         _DEFAULT_SOURCE.
37234         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37235         (_SVID_SOURCE): Likewise.
37236         (_DEFAULT_SOURCE): Update description of default features.
37237         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37238         with _GNU_SOURCE.
37239         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37240         (S_ISVTX): Likewise.
37241         * manual/math.texi (Mathematical Constants): Likewise.
37242         * manual/signal.texi (Interrupted Primitives): Likewise.
37243         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37244         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37245         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37246         Don't refer to _SVID_SOURCE in warning text.
37247
37248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37249
37250         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37251         already defined.
37252         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37253         * sysdeps/mips/dl-lookup.c: Remove.
37254         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37255
37256 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37257
37258         [BZ #16447]
37259         * math/auto-libm-test-in: Add testcase for expl.
37260         * math/auto-libm-test-out: Regenerate.
37261         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37262         calculation of unsafe.
37263         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37264
37265 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37266
37267         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37268         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37269         ports/sysdeps/unix/sysv/linux/aarch64.
37270         * README: Update listing for aarch64*-*-linux-gnu.
37271
37272 2014-02-11  Will Newton  <will.newton@linaro.org>
37273
37274         * manual/probes.texi (Mathematical Function Probes): Use
37275         "triggered" instead of "hit".
37276
37277         * manual/probes.texi (Internal Probes): Add documentation
37278         of setjmp, longjmp and longjmp_target probes.
37279
37280         * include/stap-probe.h: Add comment about probe argument
37281         format.
37282
37283         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37284         definition.  (tr_where, tr_freehook, tr_mallochook,
37285         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37286
37287 2014-02-11  David S. Miller  <davem@davemloft.net>
37288
37289         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37290         processing int_tests.
37291
37292 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37293
37294         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37295         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37296         * sysdeps/unix/sysv/linux/mips: Move directory from
37297         ports/sysdeps/unix/sysv/linux/mips.
37298         * README: Update listing for mips-*-linux-gnu and
37299         mips64-*-linux-gnu.
37300
37301 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37302
37303         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37304         * sysdeps/unix/sysv/linux/m68k: Move directory from
37305         ports/sysdeps/unix/sysv/linux/m68k.
37306         * README: Update listing for m68k-*-linux-gnu.
37307
37308 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37309
37310         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37311         * sysdeps/unix/sysv/linux/generic: Move directory from
37312         ports/sysdeps/unix/sysv/linux/generic.
37313         * sysdeps/unix/sysv/linux/tile: Move directory from
37314         ports/sysdeps/unix/sysv/linux/tile.
37315         * README: Update listing for tile*-*-linux-gnu.
37316
37317 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37318
37319         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37320         __builtin_expect.
37321         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37322         * catgets/open_catalog.c (__open_catalog): Likewise.
37323         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37324         * debug/confstr_chk.c: Likewise.
37325         * debug/fread_chk.c (__fread_chk): Likewise.
37326         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37327         * debug/getgroups_chk.c: Likewise.
37328         * debug/mbsnrtowcs_chk.c: Likewise.
37329         * debug/mbsrtowcs_chk.c: Likewise.
37330         * debug/mbstowcs_chk.c: Likewise.
37331         * debug/memcpy_chk.c: Likewise.
37332         * debug/memmove_chk.c: Likewise.
37333         * debug/mempcpy_chk.c: Likewise.
37334         * debug/memset_chk.c: Likewise.
37335         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37336         * debug/strcat_chk.c (__strcat_chk): Likewise.
37337         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37338         * debug/strncat_chk.c (__strncat_chk): Likewise.
37339         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37340         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37341         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37342         * debug/wcpncpy_chk.c: Likewise.
37343         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37344         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37345         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37346         * debug/wcsncpy_chk.c: Likewise.
37347         * debug/wcsnrtombs_chk.c: Likewise.
37348         * debug/wcsrtombs_chk.c: Likewise.
37349         * debug/wcstombs_chk.c: Likewise.
37350         * debug/wmemcpy_chk.c: Likewise.
37351         * debug/wmemmove_chk.c: Likewise.
37352         * debug/wmempcpy_chk.c: Likewise.
37353         * debug/wmemset_chk.c: Likewise.
37354         * dirent/scandirat.c (SCANDIRAT): Likewise.
37355         * dlfcn/dladdr1.c (dladdr1): Likewise.
37356         * dlfcn/dladdr.c (dladdr): Likewise.
37357         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37358         * dlfcn/dlerror.c (__dlerror): Likewise.
37359         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37360         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37361         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37362         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37363         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37364         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37365         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37366         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37367         Likewise.
37368         * elf/dl-conflict.c: Likewise.
37369         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37370         * elf/dl-dst.h: Likewise.
37371         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37372         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37373         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37374         * elf/dl-init.c (call_init, _dl_init): Likewise.
37375         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37376         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37377         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37378         Likewise.
37379         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37380         Likewise.
37381         * elf/dl-minimal.c (__libc_memalign): Likewise.
37382         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37383         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37384         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37385         * elf/dl-sym.c (do_sym): Likewise.
37386         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37387         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37388         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37389         * elf/dl-writev.h (_dl_writev): Likewise.
37390         * elf/ldconfig.c (search_dir): Likewise.
37391         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37392         (dl_main): Likewise.
37393         * elf/setup-vdso.h (setup_vdso): Likewise.
37394         * grp/compat-initgroups.c (compat_call): Likewise.
37395         * grp/fgetgrent.c (fgetgrent): Likewise.
37396         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37397         * grp/putgrent.c (putgrent): Likewise.
37398         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37399         Likewise.
37400         * hurd/hurdinit.c: Likewise.
37401         * iconvdata/8bit-gap.c (struct): Likewise.
37402         * iconvdata/ansi_x3.110.c : Likewise.
37403         * iconvdata/big5.c : Likewise.
37404         * iconvdata/big5hkscs.c : Likewise.
37405         * iconvdata/cp1255.c: Likewise.
37406         * iconvdata/cp1258.c : Likewise.
37407         * iconvdata/cp932.c : Likewise.
37408         * iconvdata/euc-cn.c: Likewise.
37409         * iconvdata/euc-jisx0213.c : Likewise.
37410         * iconvdata/euc-jp.c: Likewise.
37411         * iconvdata/euc-jp-ms.c : Likewise.
37412         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37413         * iconvdata/gb18030.c : Likewise.
37414         * iconvdata/gbbig5.c (const): Likewise.
37415         * iconvdata/gbgbk.c: Likewise.
37416         * iconvdata/gbk.c : Likewise.
37417         * iconvdata/ibm1364.c : Likewise.
37418         * iconvdata/ibm930.c : Likewise.
37419         * iconvdata/ibm932.c: Likewise.
37420         * iconvdata/ibm933.c : Likewise.
37421         * iconvdata/ibm935.c : Likewise.
37422         * iconvdata/ibm937.c : Likewise.
37423         * iconvdata/ibm939.c : Likewise.
37424         * iconvdata/ibm943.c: Likewise.
37425         * iconvdata/iso_11548-1.c: Likewise.
37426         * iconvdata/iso-2022-cn.c : Likewise.
37427         * iconvdata/iso-2022-cn-ext.c : Likewise.
37428         * iconvdata/iso-2022-jp-3.c: Likewise.
37429         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37430         * iconvdata/iso-2022-kr.c : Likewise.
37431         * iconvdata/iso646.c (gconv_end): Likewise.
37432         * iconvdata/iso_6937-2.c : Likewise.
37433         * iconvdata/iso_6937.c : Likewise.
37434         * iconvdata/iso8859-1.c: Likewise.
37435         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37436         * iconvdata/shift_jisx0213.c : Likewise.
37437         * iconvdata/sjis.c : Likewise.
37438         * iconvdata/t.61.c : Likewise.
37439         * iconvdata/tcvn5712-1.c : Likewise.
37440         * iconvdata/tscii.c: Likewise.
37441         * iconvdata/uhc.c : Likewise.
37442         * iconvdata/unicode.c (gconv_end): Likewise.
37443         * iconvdata/utf-16.c (gconv_end): Likewise.
37444         * iconvdata/utf-32.c (gconv_end): Likewise.
37445         * iconvdata/utf-7.c (base64): Likewise.
37446         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37447         * iconv/gconv_close.c (__gconv_close): Likewise.
37448         * iconv/gconv_open.c (__gconv_open): Likewise.
37449         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37450         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37451         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37452         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37453         (ucs4le_internal_loop_single): Likewise.
37454         * iconv/iconv.c (iconv): Likewise.
37455         * iconv/iconv_close.c: Likewise.
37456         * iconv/loop.c (SINGLE): Likewise.
37457         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37458         * include/atomic.h: Likewise.
37459         * inet/inet6_option.c (option_alloc): Likewise.
37460         * intl/bindtextdom.c (set_binding_values): Likewise.
37461         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37462         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37463         * intl/localealias.c (read_alias_file): Likewise.
37464         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37465         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37466         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37467         * libio/fmemopen.c (fmemopen): Likewise.
37468         * libio/iofgets.c (_IO_fgets): Likewise.
37469         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37470         * libio/iofgetws.c (fgetws): Likewise.
37471         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37472         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37473         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37474         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37475         * locale/findlocale.c (_nl_find_locale): Likewise.
37476         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37477         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37478         Likewise.
37479         * locale/setlocale.c (setlocale): Likewise.
37480         * login/programs/pt_chown.c (main): Likewise.
37481         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37482         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37483         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37484         (mmap, mmap64, mremap, munmap): Likewise.
37485         * math/e_exp2l.c: Likewise.
37486         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37487         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37488         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37489         * math/s_catan.c (__catan): Likewise.
37490         * math/s_catanf.c (__catanf): Likewise.
37491         * math/s_catanh.c (__catanh): Likewise.
37492         * math/s_catanhf.c (__catanhf): Likewise.
37493         * math/s_catanhl.c (__catanhl): Likewise.
37494         * math/s_catanl.c (__catanl): Likewise.
37495         * math/s_ccosh.c (__ccosh): Likewise.
37496         * math/s_ccoshf.c (__ccoshf): Likewise.
37497         * math/s_ccoshl.c (__ccoshl): Likewise.
37498         * math/s_cexp.c (__cexp): Likewise.
37499         * math/s_cexpf.c (__cexpf): Likewise.
37500         * math/s_cexpl.c (__cexpl): Likewise.
37501         * math/s_clog10.c (__clog10): Likewise.
37502         * math/s_clog10f.c (__clog10f): Likewise.
37503         * math/s_clog10l.c (__clog10l): Likewise.
37504         * math/s_clog.c (__clog): Likewise.
37505         * math/s_clogf.c (__clogf): Likewise.
37506         * math/s_clogl.c (__clogl): Likewise.
37507         * math/s_csin.c (__csin): Likewise.
37508         * math/s_csinf.c (__csinf): Likewise.
37509         * math/s_csinh.c (__csinh): Likewise.
37510         * math/s_csinhf.c (__csinhf): Likewise.
37511         * math/s_csinhl.c (__csinhl): Likewise.
37512         * math/s_csinl.c (__csinl): Likewise.
37513         * math/s_csqrt.c (__csqrt): Likewise.
37514         * math/s_csqrtf.c (__csqrtf): Likewise.
37515         * math/s_csqrtl.c (__csqrtl): Likewise.
37516         * math/s_ctan.c (__ctan): Likewise.
37517         * math/s_ctanf.c (__ctanf): Likewise.
37518         * math/s_ctanh.c (__ctanh): Likewise.
37519         * math/s_ctanhf.c (__ctanhf): Likewise.
37520         * math/s_ctanhl.c (__ctanhl): Likewise.
37521         * math/s_ctanl.c (__ctanl): Likewise.
37522         * math/w_pow.c: Likewise.
37523         * math/w_powf.c: Likewise.
37524         * math/w_powl.c: Likewise.
37525         * math/w_scalb.c (sysv_scalb): Likewise.
37526         * math/w_scalbf.c (sysv_scalbf): Likewise.
37527         * math/w_scalbl.c (sysv_scalbl): Likewise.
37528         * misc/error.c (error_tail): Likewise.
37529         * misc/pselect.c (__pselect): Likewise.
37530         * nis/nis_callback.c (__nis_create_callback): Likewise.
37531         * nis/nis_call.c (__nisfind_server): Likewise.
37532         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37533         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37534         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37535         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37536         * nis/nis_lookup.c (nis_lookup): Likewise.
37537         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37538         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37539         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37540         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37541         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37542         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37543         * nis/nss_compat/compat-initgroups.c (add_group)
37544         (internal_getgrent_r): Likewise.
37545         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37546         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37547         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37548         (internal_getspnam_r): Likewise.
37549         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37550         (_nss_nis_getaliasbyname_r): Likewise.
37551         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37552         (_nss_nis_getntohost_r): Likewise.
37553         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37554         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37555         (_nss_nis_getgrgid_r): Likewise.
37556         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37557         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37558         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37559         (_nss_nis_gethostbyname4_r): Likewise.
37560         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37561         (initgroups_netid): Likewise.
37562         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37563         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37564         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37565         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37566         (_nss_nis_getprotobynumber_r): Likewise.
37567         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37568         (_nss_nis_getsecretkey): Likewise.
37569         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37570         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37571         (_nss_nis_getpwuid_r): Likewise.
37572         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37573         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37574         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37575         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37576         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37577         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37578         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37579         Likewise.
37580         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37581         (_nss_nisplus_getntohost_r): Likewise.
37582         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37583         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37584         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37585         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37586         Likewise.
37587         * nis/nss_nisplus/nisplus-initgroups.c
37588         (_nss_nisplus_initgroups_dyn): Likewise.
37589         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37590         (_nss_nisplus_getnetbyaddr_r): Likewise.
37591         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37592         (_nss_nisplus_getprotobynumber_r): Likewise.
37593         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37594         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37595         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37596         Likewise.
37597         * nis/nss_nisplus/nisplus-service.c
37598         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37599         (_nss_nisplus_getservbyport_r): Likewise.
37600         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37601         (_nss_nisplus_getspnam_r): Likewise.
37602         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37603         Likewise.
37604         * nscd/aicache.c (addhstaiX): Likewise.
37605         * nscd/cache.c (cache_search, prune_cache): Likewise.
37606         * nscd/connections.c (register_traced_file, send_ro_fd)
37607         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37608         (main_loop_epoll): Likewise.
37609         * nscd/grpcache.c (addgrbyX): Likewise.
37610         * nscd/hstcache.c (addhstbyX): Likewise.
37611         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37612         * nscd/mem.c (gc, mempool_alloc): Likewise.
37613         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37614         (addinnetgrX): Likewise.
37615         * nscd/nscd-client.h (__nscd_acquire_maplock)
37616         (__nscd_drop_map_ref): Likewise.
37617         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37618         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37619         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37620         Likewise.
37621         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37622         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37623         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37624         (__nscd_get_map_ref): Likewise.
37625         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37626         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37627         Likewise.
37628         * nscd/pwdcache.c (addpwbyX): Likewise.
37629         * nscd/selinux.c (preserve_capabilities): Likewise.
37630         * nscd/servicescache.c (addservbyX): Likewise.
37631         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37632         * posix/fnmatch.c (fnmatch): Likewise.
37633         * posix/getopt.c (_getopt_internal_r): Likewise.
37634         * posix/glob.c (glob, glob_in_dir): Likewise.
37635         * posix/wordexp.c (exec_comm_child): Likewise.
37636         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37637         (getanswer_r, gaih_getanswer_slice): Likewise.
37638         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37639         * resolv/res_init.c: Likewise.
37640         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37641         * resolv/res_query.c (__libc_res_nquery): Likewise.
37642         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37643         Likewise.
37644         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37645         * stdio-common/perror.c (perror): Likewise.
37646         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37647         * stdio-common/tmpnam.c (tmpnam): Likewise.
37648         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37649         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37650         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37651         Likewise.
37652         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37653         * stdlib/putenv.c (putenv): Likewise.
37654         * stdlib/setenv.c (__add_to_environ): Likewise.
37655         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37656         * stdlib/strtol_l.c (INTERNAL): Likewise.
37657         * string/memmem.c (memmem): Likewise.
37658         * string/strerror.c (strerror): Likewise.
37659         * string/strnlen.c (__strnlen): Likewise.
37660         * string/test-memmem.c (simple_memmem): Likewise.
37661         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37662         * sunrpc/pm_getport.c (__get_socket): Likewise.
37663         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37664         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37665         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37666         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37667         Likewise.
37668         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37669         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37670         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37671         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37672         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37673         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37674         Likewise.
37675         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37676         Likewise.
37677         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37678         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37679         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37680         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37681         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37682         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37683         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37684         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37685         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37686         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37687         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37688         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37689         Likewise.
37690         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37691         Likewise.
37692         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37693         Likewise.
37694         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37695         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37696         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37697         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37698         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37699         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37700         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37701         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37702         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37703         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37704         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37705         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37706         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37707         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37708         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37709         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37710         Likewise.
37711         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37712         Likewise.
37713         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37714         Likewise.
37715         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37716         Likewise.
37717         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37718         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37719         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37720         Likewise.
37721         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37722         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37723         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37724         * sysdeps/posix/sleep.c: Likewise.
37725         * sysdeps/posix/tempname.c: Likewise.
37726         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37727         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37728         Likewise.
37729         * sysdeps/powerpc/powerpc32/dl-machine.h
37730         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37731         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37732         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37733         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37734         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37735         Likewise.
37736         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37737         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37738         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37739         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37740         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37741         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37742         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37743         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37744         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37745         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37746         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37747         (elf_machine_lazy_rel): Likewise.
37748         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37749         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37750         (elf_machine_lazy_rel): Likewise.
37751         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37752         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37753         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37754         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37755         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37756         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37757         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37758         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37759         Likewise.
37760         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37761         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37762         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37763         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37764         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37765         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37766         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37767         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37768         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37769         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37770         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37771         Likewise.
37772         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37773         (__posix_fallocate64_l64): Likewise.
37774         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37775         (posix_fallocate): Likewise.
37776         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37777         Likewise.
37778         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37779         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37780         (getifaddrs_internal): Likewise.
37781         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37782         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37783         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37784         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37785         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37786         (__posix_fallocate64_l64): Likewise.
37787         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37788         Likewise.
37789         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37790         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37791         (__get_clockfreq): Likewise.
37792         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37793         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37794         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37795         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37796         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37797         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37798         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37799         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37800         Likewise.
37801         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37802         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37803         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37804         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37805         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37806         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37807         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37808         Likewise.
37809         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37810         (posix_fallocate): Likewise.
37811         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37812         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37813         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37814         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37815         (elf_machine_rela, elf_machine_rela_relative)
37816         (elf_machine_lazy_rel): Likewise.
37817         * time/asctime.c (asctime_internal): Likewise.
37818         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37819         * time/tzset.c (__tzset_parse_tz): Likewise.
37820         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37821         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37822         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37823         * wcsmbs/wcsmbsload.h: Likewise.
37824
37825         [BZ #15894]
37826         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37827
37828         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37829         (arena_get2): Remove THREAD_STATS conditionals.
37830         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37831         (__malloc_stats, int): Likewise.
37832
37833 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37834
37835         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37836         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37837
37838         * manual/setjmp.texi: Fix typos/grammar errors.
37839
37840         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
37841         Only return early when n is <= 0.  Delete unused return statement.
37842
37843         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
37844         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
37845         * debug/tst-longjmp_chk3.c: New file.
37846
37847         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
37848         (test_main): Replace code with set_fortify_handler call.
37849         * debug/test-strcpy_chk.c: Likewise.
37850         * debug/tst-chk1.c: Likewise.
37851         * debug/tst-longjmp_chk.c: Likewise.
37852         * test-skeleton.c: Include fcntl.h & paths.h
37853         (set_fortify_handler): Define.
37854
37855         * debug/tst-longjmp_chk.c: Add header comment and include
37856         ../test-skeleton.c.
37857         (do_test): Mark static.
37858         (TEST_FUNCTION): Define.
37859
37860         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
37861         (IP_PMTUDISC_INTERFACE): Likewise.
37862         (IP_MULTICAST_IF): Likewise.
37863         (IP_MULTICAST_TTL): Likewise.
37864         (IP_MULTICAST_LOOP): Likewise.
37865         (IP_ADD_MEMBERSHIP): Likewise.
37866         (IP_DROP_MEMBERSHIP): Likewise.
37867         (IP_UNBLOCK_SOURCE): Likewise.
37868         (IP_BLOCK_SOURCE): Likewise.
37869         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
37870         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
37871         (IP_MSFILTER): Likewise.
37872         (MCAST_JOIN_GROUP): Likewise.
37873         (MCAST_BLOCK_SOURCE): Likewise.
37874         (MCAST_UNBLOCK_SOURCE): Likewise.
37875         (MCAST_LEAVE_GROUP): Likewise.
37876         (MCAST_JOIN_SOURCE_GROUP): Likewise.
37877         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
37878         (MCAST_MSFILTER): Likewise.
37879         (IP_MULTICAST_ALL): Likewise.
37880         (IP_UNICAST_IF): Likewise.
37881
37882         * timezone/Makefile: Delete $(have-ksh) check.
37883         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
37884         * timezone/tzselect.ksh: Add +x mode bits.
37885
37886         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
37887         (ANON_INODE_FS_MAGIC): Likewise.
37888         (BDEVFS_MAGIC): Likewise.
37889         (BINFMTFS_MAGIC): Likewise.
37890         (BTRFS_TEST_MAGIC): Likewise.
37891         (CRAMFS_MAGIC_WEND): Likewise.
37892         (DEBUGFS_MAGIC): Likewise.
37893         (ECRYPTFS_SUPER_MAGIC): Likewise.
37894         (EXT3_SUPER_MAGIC): Likewise.
37895         (EXT4_SUPER_MAGIC): Likewise.
37896         (FUTEXFS_SUPER_MAGIC): Likewise.
37897         (HOSTFS_SUPER_MAGIC): Likewise.
37898         (HUGETLBFS_MAGIC): Likewise.
37899         (MINIX3_SUPER_MAGIC): Likewise.
37900         (MTD_INODE_FS_MAGIC): Likewise.
37901         (NILFS_SUPER_MAGIC): Likewise.
37902         (OPENPROM_SUPER_MAGIC): Likewise.
37903         (PIPEFS_MAGIC): Likewise.
37904         (PSTOREFS_MAGIC): Likewise.
37905         (QNX6_SUPER_MAGIC): Likewise.
37906         (RAMFS_MAGIC): Likewise.
37907         (REISERFS_SUPER_MAGIC_STRING): Likewise.
37908         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
37909         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
37910         (SECURITYFS_MAGIC): Likewise.
37911         (SELINUX_MAGIC): Likewise.
37912         (SMACK_MAGIC): Likewise.
37913         (SOCKFS_MAGIC): Likewise.
37914         (SQUASHFS_MAGIC): Likewise.
37915         (STACK_END_MAGIC): Likewise.
37916         (TMPFS_MAGIC): Likewise.
37917         (USBDEVICE_SUPER_MAGIC): Likewise.
37918         (V9FS_MAGIC): Likewise.
37919         (XENFS_SUPER_MAGIC): Likewise.
37920         (CRAMFS_MAGIC): Fix typo in comment.
37921         (EXT2_SUPER_MAGIC): Update comment.
37922         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
37923
37924 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
37925
37926         * sysdeps/arm: Move directory from ports/sysdeps/arm.
37927         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
37928         * sysdeps/unix/sysv/linux/arm: Move directory from
37929         ports/sysdeps/unix/sysv/linux/arm.
37930         * README: Update listing for arm-*-linux-gnueabi.
37931
37932         * README: Remove mention of am33.
37933
37934 2014-02-07  Roland McGrath  <roland@hack.frob.com>
37935
37936         * bits/sigset.h (__sigemptyset): Use a statement expression rather
37937         than the comma operator, to avoid "rhs of comma has no effect"
37938         compiler warnings.
37939         (__sigfillset, __sigandset, __sigorset): Likewise.
37940         * include/signal.h (__sigemptyset): Likewise.
37941         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
37942
37943 2014-02-07  Allan McRae  <allan@archlinux.org>
37944
37945         * version.h (RELEASE): Set to "development".
37946         (VERSION): Set to "2.19.90"
37947         * NEWS: Add 2.20 section.
37948
37949 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
37950
37951         [BZ #16529]
37952         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
37953
37954 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
37955
37956         * manual/contrib.texi: Update entry for Carlos O'Donell,
37957         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
37958
37959 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
37960
37961         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
37962
37963         * sysdeps/unix/sysv/linux/kernel-features.h
37964         [__LINUX_KERNEL_VERSION >= 0x020621]
37965         (__ASSUME_PROC_PID_TASK_COMM): Define.
37966
37967 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
37968
37969         [BZ #16398]
37970         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
37971         conversion when destination buffer does not have enough space.
37972         * libio/tst-ftell-partial-wide.c: New test case.
37973         * libio/Makefile (tests): Add tst-ftell-partial-wide.
37974
37975         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
37976         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
37977         Leonard and Allan McRae.
37978
37979 2014-02-04  David S. Miller  <davem@davemloft.net>
37980
37981         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
37982         32-bit.
37983
37984 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37985
37986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
37987         New file
37988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
37989         New file
37990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
37991         New file.
37992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
37993         New file.
37994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
37995         New file.
37996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
37997         New file.
37998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
37999         New file.
38000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38001         New file.
38002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38003         New file.
38004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38005         New file.
38006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38007         New file.
38008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38009         New file.
38010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38011         New file.
38012
38013 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38014
38015         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38016         * shlib-versions: Likewise.
38017
38018 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38019             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38020
38021         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38022         (abilist-pattern): New variable, set to %-le.abilist.
38023
38024         * Makerules (abilist-pattern): New variable.
38025         (vpath): Use $(abilist-pattern) in place of %.abilist.
38026         (check-abi-% pattern rule): Likewise.
38027         (check-abi, update-abi): Likewise.
38028
38029 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38030
38031         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38032
38033 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38034
38035         * manual/startup.texi: Add next, previous, and top entries for
38036         the `Program Arguments' and `Environment Variables' nodes.
38037
38038 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38039
38040         * manual/macros.texi: Add comments before MTASC-safety macros.
38041
38042         * manual/users.texi: Document MTASC-safety properties.
38043
38044         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38045         (pthread_getspecific, pthread_setspecific): Format with
38046         @deftypefun, and add @safety note.
38047         * manual/signal.texi: Move comments that analyze the above
38048         functions to their home place.
38049
38050 2014-02-03  Allan McRae  <allan@archlinux.org>
38051
38052         * po/sl.po: Update Slovenian translation from translation project.
38053
38054 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38055
38056         * manual/time.texi (timegm): Add missing blank after @c.
38057         Reported by Joseph Myers <joseph@codesourcery.com>.
38058
38059 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38060
38061         * manual/check-safety.sh: New.
38062         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38063
38064         * manual/terminal.texi: Document MTASC-safety properties.
38065
38066         * manual/filesys.texi: Document MTASC-safety properties.
38067
38068         * manual/errno.texi: Document MTASC-safety properties.
38069
38070         * manual/intro.texi: Document safety identifiers and
38071         conditionals.
38072
38073         * manual/string.texi (wcstok): Fix prototype.
38074         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38075
38076         * manual/time.texi: Document MTASC-safety properties.
38077
38078         * manual/string.texi: Document MTASC-safety properties.
38079
38080         * manual/threads.texi: Document MTASC-safety properties.
38081
38082         * manual/stdio.texi: Document MTASC-safety properties.
38083
38084         * manual/syslog.texi: Document MTASC-safety properties.
38085
38086         * manual/sysinfo.texi: Document MTASC-safety properties.
38087
38088         * manual/startup.texi: Document MTASC-safety properties.
38089
38090         * manual/socket.texi: Document MTASC-safety properties.
38091
38092         * manual/signal.texi: Document MTASC-safety properties.
38093
38094 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38095
38096         * manual/setjmp.texi: Document MTASC-safety properties.
38097
38098         * manual/search.texi: Document MTASC-safety properties.
38099
38100         * manual/resource.texi: Document MTASC-safety properties.
38101
38102         * manual/process.texi: Document MTASC-safety properties.
38103
38104         * manual/platform.texi: Document MTASC-safety properties.
38105
38106         * manual/pipe.texi: Document MTASC-safety properties.
38107
38108         * manual/pattern.texi: Document MTASC-safety properties.
38109
38110         * manual/message.texi: Document MTASC-safety properties.
38111
38112         [BZ #12751]
38113         * manual/memory.texi: Document MTASC-safety properties.
38114
38115         * manual/math.texi: Document MTASC-safety properties.
38116
38117         * manual/locale.texi: Document MTASC-safety properties.
38118
38119         * manual/llio.texi: Document MTASC-safety properties.
38120
38121         * manual/libdl.texi: New.
38122
38123         * manual/lang.texi: Document MTASC-safety properties.
38124
38125         * manual/job.texi: Document MTASC-safety properties.
38126
38127         * manual/getopt.texi: Document MTASC-safety properties.
38128
38129         * manual/ctype.texi: Document MTASC-safety properties.
38130
38131 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38132
38133         [BZ #16046]
38134         * csu/libc-tls.c (static_map): Remove variable.
38135         (__libc_setup_tls): Use main executable's link map for TLS data.
38136         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38137         casing for LM_ID_BASE and GL(dl_nns).
38138         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38139         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38140         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38141         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38142         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38143         member.
38144         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38145         l_phnum members.
38146
38147 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38148
38149         * manual/debug.texi: Document MTASC-safety properties.
38150
38151 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38152
38153         [BZ #16510]
38154         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38155         of __x86_64__ when disabling x87 inline functions.
38156
38157 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38158
38159         * manual/charset.texi: Document MTASC-safety properties.
38160
38161         * manual/crypt.texi: Document MTASC-safety properties.
38162
38163         * manual/conf.texi: Document MTASC-safety properties.
38164
38165         * manual/arith.texi: Document MTASC-safety properties.
38166
38167         * manual/argp.texi: Document MTASC-safety properties.
38168
38169         * manual/macros.texi: Introduce macros to document multi
38170         thread, asynchronous signal and asynchronous cancellation
38171         safety properties.
38172         * manual/intro.texi: Introduce the properties themselves.
38173
38174 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38175
38176         * sysdeps/sh/sh4/Makefile: New file.
38177
38178 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38179
38180         * math/gen-libm-test.pl ($srcdir): New variable.
38181         ($auto_input): Use it.
38182
38183 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38184
38185         [BZ #16506]
38186         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38187         access beyond array bounds when parsing netgroups file.
38188
38189         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38190         the old buffer before realloc.
38191
38192 2014-01-27  Allan McRae  <allan@archlinux.org>
38193
38194         * po/fr.po: Update French translation from translation project.
38195
38196 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38197
38198         * sysdeps/sh/libm-test-ulps: Regenerate.
38199
38200 2014-01-24  David S. Miller  <davem@davemloft.net>
38201
38202         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38203
38204 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38205
38206         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38207         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38208
38209 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38210
38211         [BZ #16474]
38212         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38213         string pointers after reallocation.
38214
38215 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38216
38217         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38218         __SH4A__ instead of __SH_FPU_ANY__.
38219
38220 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38221
38222         * sysdeps/sh/fpu_control.h: New file.
38223         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38224         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38225         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38226         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38227         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38228         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38229         * sysdeps/sh/sys/ucontext.h: Remove.
38230         * sysdeps/sh/sys: Remove directory.
38231
38232 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38233
38234         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38235         s390/sys/ucontext.h.
38236         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38237         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38238
38239 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38240
38241         [BZ #15605]
38242         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38243
38244 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38245
38246         [BZ#16431]
38247         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38248         Adjust the vDSO correctly for internal calls.
38249         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38250
38251 2014-01-20  Allan McRae  <allan@archlinux.org>
38252
38253         * po/ca.po: Update Catalan translation from translation project.
38254
38255 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38256
38257         * sysdeps/s390/sotruss-lib.c: New file.
38258
38259 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38260
38261         [BZ#16430]
38262         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38263         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38264         local calls issues by not having a PLT stub required for IFUNC calls.
38265         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38266
38267 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38268
38269         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38270         * math/test-fpucw-static.c: Likewise.
38271
38272 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38273
38274         [BZ #16453]
38275         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38276
38277 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38278
38279         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38280         implementation for powerpc.
38281
38282 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38283
38284         [BZ #14782]
38285         * sysdeps/posix/system.c (__libc_system): Do not enable
38286         asynchronous cancellation.
38287
38288 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38289
38290         [BZ #16427]
38291         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38292         handling only for numbers special also in the IEEE case.
38293
38294 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38295
38296         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38297
38298 2014-01-11  Allan McRae  <allan@archlinux.org>
38299
38300         * po/bg.po: Update Bulgarian translation from translation project.
38301
38302         * po/de.po: Update German translation from translation project.
38303
38304 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38305
38306         * sysdeps/generic/gcc-compat.h: New file.
38307
38308 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38309
38310         * benchtests/asin-inputs: Correct slow inputs.
38311         * benchtests/acos-inputs: Likewise.
38312
38313 2014-01-10  Allan McRae  <allan@archlinux.org>
38314
38315         * po:sv.po: Update Swedish translation from translation project.
38316
38317         * po/vi.po: Update Vietnamese translation from translation project.
38318
38319         * po/eo.po: Update Esperanto translation from translation project.
38320
38321         * po/cs.po: Update Czech translation from translation project.
38322
38323         * po/nl.po: Update Dutch translation from translation project.
38324
38325         * po/pl.po: Update Polish translation from translation project.
38326
38327         * po/ru.po: Update Russian translation from translation project.
38328
38329         * po/uk.po: Update Ukrainian translation from translation project.
38330
38331 2014-01-08  Brooks Moses  <bmoses@google.com>
38332
38333         * elf/dl-load.c: Fix comment typo.
38334
38335 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38336
38337         * po/header.pot: Rename to...
38338         * po/pot.header: ... this.
38339         * po/Makefile: Use pot.header.
38340
38341 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38342             Maxim Kuvyrkov  <maxim@kugelworks.com>
38343
38344         [BZ #16394]
38345         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38346         SRC and DEST against LEN.
38347
38348 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38349
38350         [BZ #16414]
38351         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38352         implementation.
38353         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38354
38355 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38356
38357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38358
38359 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38360
38361         [BZ #16408]
38362         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38363         for large positive arguments.
38364
38365 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38366
38367         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38368
38369         * math/auto-libm-test-in: Mark various tests with
38370         xfail-rounding:ldbl-128ibm.
38371         * math/auto-libm-test-out: Regenerated.
38372
38373         [BZ #16407]
38374         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38375         Increase overflow threshold.
38376
38377 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38378
38379         [BZ #14286]
38380         * stdio-common/vfprintf.c: Check for integer overflow.
38381
38382 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38383
38384         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38385         the first argument and return value of __tls_get_addr_internal.
38386
38387 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38388
38389         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38390         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38391
38392 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38393
38394         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38395         * sysdeps/s390/rtld-global-offsets.sym: New file.
38396         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38397         GLIBC_2.19 symbol.
38398         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38399         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38400         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38401         ... this.
38402         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38403         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38404         ... this.
38405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38406         Regenerate.
38407         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38408         Regenerate.
38409         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38410         halfs of GPRs for high_gprs contexts.
38411         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38412         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38413         field.
38414         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38415         uc_flags field.
38416         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38417         64 bit versions:
38418         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38419         for high GPRs (uc_high_gprs) and for future extensions
38420         (__reserved).
38421         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38422         for future extensions (__reserved).
38423         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38424         64 bit versions:
38425         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38426         SC_HIGHGPRS offset definition.
38427         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38428         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38429
38430         * Versions.def: Add GLIBC_2.19 for libpthread.
38431         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38432         siglongjmp for libpthread with GLIBC_2.19 symver.
38433         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38434         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38435         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38436         * sysdeps/s390/__longjmp.c: New file.
38437         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38438         * sysdeps/s390/longjmp.c: New file.
38439         * sysdeps/s390/setjmp.S: New file.
38440         * sysdeps/s390/sigjmp.S: New file.
38441         * sysdeps/s390/v1-longjmp.c: New file.
38442         * sysdeps/s390/v1-setjmp.h: New file.
38443         * sysdeps/s390/v1-sigjmp.c: New file.
38444         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38445         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38446         GLIBC_2.19 version.
38447         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38448         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38449         versioned symbols for ____longjmp_chk.
38450         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38451         Likewise.
38452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38453         Regenerate.
38454         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38455         Regenerate.
38456         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38457         Regenerate.
38458         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38459         Regenerate.
38460         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38461         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38462         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38463         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38464         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38465         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38466         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38467         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38468         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38469         * sysdeps/s390/rtld-__longjmp.c: New file.
38470         * sysdeps/s390/rtld-setjmp.S: New file.
38471
38472 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38473
38474         [BZ #16400]
38475         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38476         Return -__logl (x) for small positive arguments without evaluating
38477         a polynomial.
38478
38479 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38480
38481         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38482         Rename to ...
38483         (__ptrace_peeksiginfo_args): ... this.
38484         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38485         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38486         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38487
38488 2014-01-06  Allan McRae  <allan@archlinux.org>
38489
38490         * inet/netinet/in.h: Fix typo in comment.
38491
38492 2014-01-05  Andreas Jaeger  <aj@suse.de>
38493
38494         * sysdeps/i386/fpu/libm-test-ulps: Update.
38495
38496 2014-01-05  Allan McRae  <allan@archlinux.org>
38497
38498         * po/libc.pot: Regenerated.
38499
38500         * malloc/memusagestat.c: Fix gettext call formatting.
38501
38502 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38503
38504         * nscd/nscd.c: Improve usage() output.
38505
38506 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38507
38508         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38509         * sysdeps/unix/sysv/linux/configure: Regenerated.
38510         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38511         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38512
38513 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38514
38515         [BZ #16390]
38516         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38517         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38518
38519 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38520
38521         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38522         extra tokens at end of #undef directive.
38523         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38524         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38525         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38526
38527 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38528
38529         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38530
38531         * math/auto-libm-test-in: Mark various tests with
38532         xfail-rounding:ldbl-128ibm.
38533         * math/auto-libm-test-out: Regenerated.
38534
38535 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38536
38537         [BZ #16386]
38538         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38539         numbers with subnormal high part when calculating exponent.
38540
38541         [BZ #16385]
38542         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38543         fabs.
38544
38545         [BZ #16384]
38546         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38547         M_LN2l.
38548         (__ieee754_acoshl): Use __log1pl not __log1p.
38549
38550 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38551
38552         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38553         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38554         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38555         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38556         (reused_arena, arena_get2): Convert to GNU style.
38557         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38558         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38559         (memalign_check, __malloc_set_state): Likewise.
38560         * malloc/mallocbug.c (main): Likewise.
38561         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38562         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38563         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38564         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38565         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38566         (__posix_memalign, malloc_info): Likewise.
38567         * malloc/malloc.h: Likewise.
38568         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38569         (mallochook, memalignhook, reallochook, mabort): Likewise.
38570         * malloc/mcheck.h: Likewise.
38571         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38572         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38573         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38574         * malloc/morecore.c (__default_morecore): Likewise.
38575         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38576         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38577         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38578         (print_and_abort): Likewise.
38579         * malloc/obstack.h: Likewise.
38580         * malloc/set-freeres.c (__libc_freeres): Likewise.
38581         * malloc/tst-mallocstate.c (main): Likewise.
38582         * malloc/tst-mtrace.c (main): Likewise.
38583         * malloc/tst-realloc.c (do_test): Likewise.
38584
38585 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38586
38587         [BZ #16366]
38588         * nscd/netgroupcache.c (do_notfound): New function.
38589         (addgetnetgrentX): Use it.
38590
38591         [BZ # 16365]
38592         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38593         NSS_STATUS_NOTFOUND.
38594
38595 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38596
38597         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38599
38600 2014-01-01  Allan McRae  <allan@archlinux.org>
38601
38602         * scripts/update-copyrights: Update configure input file suffix.
38603
38604         * NEWS: Update copyright year.
38605         * catgets/gencat.c: Likewise.
38606         * csu/version.c: Likewise.
38607         * debug/catchsegv.sh: Likewise.
38608         * debug/pcprofiledump.c: Likewise.
38609         * debug/xtrace.sh: Likewise.
38610         * elf/ldconfig.c: Likewise.
38611         * elf/ldd.bash.in: Likewise.
38612         * elf/pldd.c: Likewise.
38613         * elf/sotruss.ksh: Likewise.
38614         * elf/sprof.c: Likewise.
38615         * iconv/iconv_prog.c: Likewise.
38616         * iconv/iconvconfig.c: Likewise.
38617         * locale/programs/locale.c: Likewise.
38618         * locale/programs/localedef.c: Likewise.
38619         * login/programs/pt_chown.c: Likewise.
38620         * malloc/memusage.sh: Likewise.
38621         * malloc/memusagestat.c: Likewise.
38622         * malloc/mtrace.pl: Likewise.
38623         * manual/libc.texinfo: Likewise.
38624         * nscd/nscd.c: Likewise.
38625         * nss/getent.c: Likewise.
38626         * nss/makedb.c: Likewise.
38627         * posix/getconf.c: Likewise.
38628         * scripts/test-installation.pl: Likewise.
38629
38630         * All files with FSF copyright notices: Update copyright dates
38631         using scripts/update-copyrights.
38632         * intl/plural.c: Regenerated.
38633         * locale/programs/charmap-kw.h: Likewise.
38634         * locale/programs/locfile-kw.h: Likewise.
38635
38636 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38637
38638         * sysdeps/unix/sysv/linux/configure: Regenerated.
38639         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38640         the linux/fanotify.h header.
38641         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38642         HAVE_LINUX_FANOTIFY_H is defined.
38643
38644 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38645
38646         * benchtests/cos-inputs: New inputs.
38647         * benchtests/sin-inputs: Likewise.
38648
38649         * benchtests/atan-inputs: New inputs. Fix name of multiple
38650         precision fallback inputs.
38651
38652         * benchtests/atanh-inputs: New inputs.
38653         * benchtests/tanh-inputs: Likewise.
38654
38655         * benchtests/acosh-inputs: New inputs.
38656         * benchtests/asinh-inputs: Likewise.
38657
38658         * benchtests/cosh-inputs: New inputs.
38659         * benchtests/sinh-inputs: Likewise.
38660
38661         * benchtests/acos-inputs: Add more inputs.
38662         * benchtests/asin-inputs: Likewise.
38663
38664 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38665
38666         [BZ #16375]
38667         * manual/arith.texi: Fix spelling.
38668         * manual/charset.texi: Likewise.
38669         * manual/errno.texi: Likewise.
38670         * manual/filesys.texi: Likewise.
38671         * manual/lang.texi: Likewise.
38672         * manual/llio.texi: Likewise.
38673         * manual/locale.texi: Likewise.
38674         * manual/message.texi: Likewise.
38675         * manual/resource.texi: Likewise.
38676         * manual/search.texi: Likewise.
38677         * manual/setjmp.texi: Likewise.
38678         * manual/stdio.texi: Likewise.
38679         * manual/string.texi: Likewise.
38680         * manual/sysinfo.texi: Likewise.
38681         * manual/time.texi: Likewise.
38682
38683 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38684
38685         * po/sl.po: New file.
38686
38687 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38688
38689         * .gitignore: Add core/.gdbinit/.gdb_history.
38690
38691 2013-12-27  Allan McRae  <allan@archlinux.org>
38692
38693         [BZ #16369]
38694         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38695         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38696
38697 2013-12-24  Brooks Moses  <bmoses@google.com>
38698
38699         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38700         all compilers that claim C++98 compliance, not just GCC.
38701         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38702         Likewise.
38703
38704 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38705
38706         * NEWS: Restore accidentally deleted bug-fix entries.
38707
38708 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38709             Ondřej Bílka  <neleai@seznam.cz>
38710
38711         [BZ #15073]
38712         * malloc/malloc.c (_int_free): Perform sanity check only if we
38713         have_lock.
38714
38715 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38716
38717         [BZ #12986]
38718         * manual/stdio.texi (String Input Conversions): Clarify that character
38719         classes are not supported.
38720
38721 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38722
38723         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38724
38725 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38726
38727         [BZ #16337]
38728         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38729         Calculate results for small negative arguments directly rather
38730         than using reflection formula with special underflow handling.
38731
38732         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38733         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38734         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38735         (fchflags): Likewise.
38736         (revoke): Likewise.
38737         (setlogin): Likewise.
38738         (sigaltstack): Likewise.
38739         (wait4): Likewise.
38740         (sigblock): Remove.
38741         (sigsetmask): Likewise.
38742         (wait3): Likewise.
38743         (waitpid): Likewise.
38744         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38745         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38746         file.
38747         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38748         * sysdeps/unix/bsd/Makefile: ... here.
38749         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38750         * sysdeps/unix/bsd/Versions: ... here.
38751         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38752         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38753         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38754         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38755         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38756         * sysdeps/unix/bsd/sigblock.c: ... here.
38757         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38758         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38759         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38760         * sysdeps/unix/bsd/sigvec.c: ... here.
38761         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38762         * sysdeps/unix/bsd/tcdrain.c: ... here.
38763         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38764         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38765         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38766         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38767         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38768         * sysdeps/unix/bsd/wait.c: ... here.
38769         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38770         * sysdeps/unix/bsd/wait3.c: ... here.
38771         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38772         * sysdeps/unix/bsd/waitpid.c: ... here.
38773
38774 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38775
38776         [BZ #16356]
38777         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38778         round-to-nearest for [!USE_AS_EXPM1L].
38779         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38780         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38781         more tests of exp and exp10.  Expect some exp10 tests to miss
38782         exceptions or fail in directed rounding modes.
38783         * math/auto-libm-test-out: Regenerated.
38784         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38785         (exp10_test_tonearest): New function.
38786         (exp10_towardzero_test_data): New array.
38787         (exp10_test_towardzero): New function.
38788         (exp10_downward_test_data): New array.
38789         (exp10_test_downward): New function.
38790         (exp10_upward_test_data): New array.
38791         (exp10_test_upward): New function.
38792         (main): Call the new functions.
38793         * sysdeps/i386/fpu/libm-test-ulps: Update.
38794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38795
38796 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38797
38798         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38799         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38800         * math/auto-libm-test-out: Regenerated.
38801         * math/libm-test.inc (acosh_test_data): Add more tests.
38802         (atanh_test_data): Likewise.
38803         (ceil_test_data): Likewise.
38804         (copysign_test_data): Likewise.
38805         * sysdeps/i386/fpu/libm-test-ulps: Update.
38806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38807
38808         * timezone/checktab.awk: Update from tzcode 2013i.
38809         * timezone/private.h: Likewise.
38810         * timezone/scheck.c: Likewise.
38811         * timezone/tzfile.h: Likewise.
38812         * timezone/tzselect.ksh: Likewise.
38813         * timezone/zdump.c: Likewise.
38814         * timezone/zic.c: Likewise.
38815
38816         * math/auto-libm-test-in: Add tests of cpow.
38817         * math/auto-libm-test-out: Regenerated.
38818         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38819         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38820         mpc_cc_c.
38821         (func_calc_desc): Add mpc_cc_c union field.
38822         (test_functions): Add cpow.
38823         (special_fill_2pi): New function.
38824         (special_real_inputs): Add 2pi.
38825         (calc_generic_results): Handle mpc_cc_c.
38826         * sysdeps/i386/fpu/libm-test-ulps: Update.
38827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38828
38829         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38830         csqrt, ctan and ctanh.
38831         * math/auto-libm-test-out: Regenerated.
38832         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38833         (TEST_COND_x86): Likewise.
38834         (ccos_test_data): Use AUTO_TESTS_c_c.
38835         (ccosh_test_data): Likewise.
38836         (cexp_test_data): Likewise.
38837         (clog_test_data): Likewise.
38838         (csqrt_test_data): Likewise.
38839         (ctan_test_data): Likewise.
38840         (ctan_tonearest_test_data): Likewise.
38841         (ctan_towardzero_test_data): Likewise.
38842         (ctan_downward_test_data): Likewise.
38843         (ctan_upward_test_data): Likewise.
38844         (ctanh_test_data): Likewise.
38845         (ctanh_tonearest_test_data): Likewise.
38846         (ctanh_towardzero_test_data): Likewise.
38847         (ctanh_downward_test_data): Likewise.
38848         (ctanh_upward_test_data): Likewise.
38849         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38850         mpc_c_c.
38851         (func_calc_desc): Add mpc_c_c union field.
38852         (FUNC_mpc_c_c): New macro.
38853         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
38854         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
38855         ctanh.
38856         (special_fill_min_subnorm_p120): New function.
38857         (special_real_inputs): Add min_subnorm_p120.
38858         (calc_generic_results): Handle mpc_c_c.
38859         * sysdeps/i386/fpu/libm-test-ulps: Update.
38860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38861
38862 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
38863
38864         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
38865         (do_sin_slow): New functions.
38866         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
38867         (cslow2, csloww1, csloww2): Use the new functions.
38868
38869         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
38870         Use M to change sign of result instead of X.  Assume X is
38871         positive.
38872         (csloww1): Likewise.
38873         (__sin): Adjust.
38874         (__cos): Adjust.
38875
38876         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
38877         arguments A and DA.
38878         (__sin): Adjust.
38879         (__cos): Likewise.
38880
38881         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
38882         (__cos): Likewise.
38883         (sloww1): Don't adjust sign of DX.
38884         (csloww1): Likewise.
38885         (sloww2): Use X directly and don't adjust sign of DX.
38886         (csloww2): Likewise.
38887
38888 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38889
38890         * math/auto-libm-test-in: Add tests of cabs and carg.
38891         * math/auto-libm-test-out: Regenerated.
38892         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
38893         (carg_test_data): Likewise.
38894         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38895         mpc_c_f.
38896         (func_calc_desc): Add mpc_c_f union field.
38897         (test_functions): Add cabs and carg.
38898         (calc_generic_results): Handle mpc_c_f.
38899
38900         * sysdeps/powerpc/powerpc32/libgcc-compat.S
38901         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
38902         as a macro and a compat symbol.
38903         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
38904         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
38905         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
38906         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
38907         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
38908         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
38909         not use .hidden.
38910         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
38911         Likewise.
38912         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
38913         Likewise.
38914         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
38915         Likewise.
38916         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
38917         Likewise.
38918         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
38919         Likewise.
38920         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
38921         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
38922         from GLIBC_2.3.2.
38923
38924 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38925
38926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38927
38928 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38929
38930         * manual/texinfo.tex: Update to version 2013-11-26.10 with
38931         trailing whitespace removed.
38932         * scripts/config.guess: Update to version 2013-11-29.
38933         * scripts/config.sub: Update to version 2013-10-01.
38934
38935         * math/auto-libm-test-in: Add tests of sincos.
38936         * math/auto-libm-test-out: Regenerated.
38937         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
38938         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38939         mpfr_f_11.
38940         (func_calc_desc): Add mpfr_f_11 union field.
38941         (test_functions): Add sincos.
38942         (calc_generic_results): Handle mpfr_f_11.
38943         * sysdeps/i386/fpu/libm-test-ulps: Update.
38944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38945
38946 2013-12-19  Andreas Schwab  <schwab@suse.de>
38947
38948         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
38949         CALL_MCOUNT.
38950         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
38951         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
38952         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
38953
38954 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38955
38956         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
38957         * sysdeps/i386/fpu/libm-test-ulps: Update.
38958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38959
38960         [BZ #16293]
38961         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
38962         round-to-nearest mode when using frndint.
38963         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
38964         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
38965         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
38966         Likewise.
38967         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
38968         sinh test to fail.
38969         * math/auto-libm-test-out: Regenerated.
38970         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
38971         (TEST_COND_x86): Likewise.
38972         (expm1_tonearest_test_data): New array.
38973         (expm1_test_tonearest): New function.
38974         (expm1_towardzero_test_data): New array.
38975         (expm1_test_towardzero): New function.
38976         (expm1_downward_test_data): New array.
38977         (expm1_test_downward): New function.
38978         (expm1_upward_test_data): New array.
38979         (expm1_test_upward): New function.
38980         (main): Run the new test functions.
38981         * sysdeps/i386/fpu/libm-test-ulps: Update.
38982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38983
38984         * include/features.h: Update comment documenting feature test
38985         macros.  Mention _DEFAULT_SOURCE in comment.
38986         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
38987         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
38988         _BSD_SOURCE and _SVID_SOURCE.
38989         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
38990         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
38991         !_SVID_SOURCE]: Likewise.
38992         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38993         (__USE_POSIX_IMPLICITLY): Define.
38994         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38995         (_POSIX_SOURCE): Undefine and redefine.
38996         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
38997         (_POSIX_C_SOURCE): Likewise.
38998         * manual/creature.texi (_DEFAULT_SOURCE): Document.
38999         (Feature Test Macros): Update documentation of default features.
39000
39001 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39002
39003         * benchtests/Makefile: Add bench-strtok.
39004         * benchtests/bench-strtok.c: New file: strtok benchtest.
39005
39006 2013-12-19  Allan McRae  <allan@archlinux.org>
39007
39008         * manual/install.texi: Suppress menu for plain text output.
39009         * INSTALL: Regenerated.
39010
39011 2013-12-18  Brooks Moses  <bmoses@google.com>
39012
39013         [BZ #15846]
39014         * misc/getauxval.c: Include errno.h.
39015         (__getauxval): Set errno to ENOENT if the requested type is not
39016         found.
39017         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39018         don't declare with __attribute_const__.
39019         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39020         * manual/startup.texi: Document that getauxval sets errno.
39021
39022 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39023
39024         * math/auto-libm-test-in: Add tests of jn and yn.
39025         * math/auto-libm-test-out: Regenerated.
39026         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39027         (yn_test_data): Likewise.
39028         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39029         mpfr_if_f.
39030         (func_calc_desc): Add mpfr_if_f union field.
39031         (FUNC_mpfr_if_f): New macro.
39032         (test_functions): Add jn and yn.
39033         (calc_generic_results): Assert type of second input for
39034         mpfr_ff_f.  Handle mpfr_if_f.
39035         (output_for_one_input_case): Disable all checking for arguments
39036         fitting floating-point types in case of an integer argument.
39037         * sysdeps/i386/fpu/libm-test-ulps: Update.
39038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39039
39040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39041         Don't expect fegetround reference in libm.so.
39042
39043 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39044
39045         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39046         $(config-cflags-nofma).
39047
39048 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39049
39050         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39051         * math/auto-libm-test-out: Regenerated.
39052
39053         [BZ #16338]
39054         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39055         to determine exponent and adjust argument to have exponent of -1.
39056         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39057         log2.
39058         * math/auto-libm-test-out: Regenerated.
39059         * sysdeps/i386/fpu/libm-test-ulps: Update.
39060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39061
39062 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39063
39064         * manual/probes.texi: Remove cases when per-thread arenas are
39065         disabled.
39066
39067 2013-12-18  Andreas Schwab  <schwab@suse.de>
39068
39069         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39070         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39071         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39072         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39073         * sysdeps/i386/i686/multiarch/Makefile: Update.
39074         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39075
39076 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39077
39078         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39079         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39080
39081 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39082
39083         [BZ #15968]
39084         Support TZ transition times < 00:00:00.
39085         This is needed for version-3 tz-format files; it supports time
39086         stamps past 2037 for America/Godthab (the only entry in the tz
39087         database for which this change is relevant).
39088         * manual/time.texi (TZ Variable): Document transition times
39089         from -167:59:59 through -00:00:01.
39090         * time/tzset.c (tz_rule): Time of day is now signed.
39091         (__tzset_parse_tz): Parse negative time of day.
39092
39093         Document TZ transition times >= 25:00:00.
39094         * manual/time.texi (TZ Variable): Document transition times from
39095         25:00:00 through 167:59:59.  These are already supported, and this
39096         support will help with version-3 tz-format files.
39097
39098         * manual/time.texi (TZ Variable): Modernize North America example
39099         to reflect current (i.e., 2007-and-later) daylight saving rules.
39100
39101         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39102
39103 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39104
39105         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39106         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39107         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39108         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39109         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39110         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39111         * sysdeps/unix/bsd/clock.c: Likewise.
39112         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39113         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39114         * sysdeps/unix/bsd/init-posix.c: Likewise.
39115         * sysdeps/unix/bsd/poll.c: Likewise.
39116         * sysdeps/unix/bsd/ptsname.c: Likewise.
39117         * sysdeps/unix/bsd/seekdir.c: Likewise.
39118         * sysdeps/unix/bsd/setegid.c: Likewise.
39119         * sysdeps/unix/bsd/seteuid.c: Likewise.
39120         * sysdeps/unix/bsd/setgid.c: Likewise.
39121         * sysdeps/unix/bsd/setrgid.c: Likewise.
39122         * sysdeps/unix/bsd/setruid.c: Likewise.
39123         * sysdeps/unix/bsd/setsid.c: Likewise.
39124         * sysdeps/unix/bsd/setuid.c: Likewise.
39125         * sysdeps/unix/bsd/sigaction.c: Likewise.
39126         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39127         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39128         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39129         * sysdeps/unix/bsd/telldir.c: Likewise.
39130         * sysdeps/unix/bsd/times.c: Likewise.
39131         * sysdeps/unix/bsd/usleep.c: Likewise.
39132
39133         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39134         ($(objpfx)libbsd-compat.a): Remove rule.
39135
39136         * include/features.h (__FAVOR_BSD): Do not define.
39137         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39138         features conflicting with POSIX.
39139         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39140         (_BSD_SOURCE): Remove description of not being a subset of other
39141         feature test macros.
39142         * manual/job.texi (getpgrp): Do not document BSD version.
39143         (getpgid): Do not document by reference to BSD getpgrp.
39144         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39145         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39146         * signal/signal.h [__FAVOR_BSD]: Likewise.
39147         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39148         instead of making contents conditional on [__FAVOR_BSD].
39149         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39150
39151 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39152
39153         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39154
39155 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39156
39157         [BZ #16314]
39158         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39159         values below 2**-450, not 2**-500.
39160         * math/auto-libm-test-in: Don't allow spurious underflow from
39161         hypot.
39162         * math/auto-libm-test-out: Regenerated.
39163
39164         [BZ #16316]
39165         [BZ #16330]
39166         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39167         values of ha and hb and sort them after adjusting subnormal
39168         arguments.
39169         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39170         Likewise.
39171         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39172         values of ea and eb and sort them after adjusting subnormal
39173         arguments.
39174         * math/auto-libm-test-in: Do not expect some hypot tests of
39175         subnormals to fail.  Add more hypot tests.
39176         * math/auto-libm-test-out: Regenerated.
39177
39178 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39179
39180         [BZ #13304]
39181         * sysdeps/sh/s_fma.c: New file.
39182         * sysdeps/sh/s_fmaf.c: New file.
39183         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39184         version.
39185         * sysdeps/sh/Implies: Add sh/soft-fp.
39186
39187 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39188
39189         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39190         level of indirection to members `objname', `errstring', `malloced'.
39191         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39192         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39193         it as the __longjmp argument (just pass 1 instead).
39194         (_dl_catch_error): Initialize C with argument pointers and address of
39195         volatile local ERRCODE rather than copying values out of C at return.
39196
39197 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39198
39199         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39200         * math/auto-libm-test-out: Regenerated.
39201         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39202         (hypot_test_data): Likewise.
39203         (pow_test_data): Likewise.
39204         (pow_tonearest_test_data): Likewise.
39205         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39206         mpfr_ff_f.
39207         (func_calc_desc): Add mpfr_ff_f union field.
39208         (FUNC_mpfr_ff_f): New macro.
39209         (test_functions): Add atan2, hypot and pow.
39210         (special_fill_min): New function.
39211         (special_fill_minus_min): Likewise.
39212         (special_fill_min_subnorm): Likewise.
39213         (special_fill_minus_min_subnorm): Likewise.
39214         (special_real_inputs): Add min, -min, min_subnorm and
39215         -min_subnorm.
39216         (calc_generic_results): Handle mpfr_ff_f.
39217         * sysdeps/i386/fpu/libm-test-ulps: Update.
39218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39219
39220 2013-12-16  Will Newton  <will.newton@linaro.org>
39221
39222         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39223         (Aligned Memory Blocks): Add documentation for aligned_alloc
39224         and suggest it as an alternative to posix_memalign.
39225         (Hooks for Malloc): Document __memalign_hook is also called
39226         for aligned_alloc.  (Summary of Malloc): Add summary for
39227         aligned alloc.  Document __memalign_hook is also called
39228         for aligned_alloc.
39229
39230 2013-12-16  Will Newton  <will.newton@linaro.org>
39231
39232         * manual/memory.texi (Malloc Examples): Clarify default
39233         alignment documentation.  Suggest posix_memalign rather
39234         than memalign or valloc.
39235         (Aligned Memory Blocks): Remove suggestion to use memalign
39236         or valloc.  Remove obsolete comment about BSD.
39237         Document memalign errno values and mark the function obsolete.
39238         Document posix_memalign returned error codes.  Mark valloc
39239         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39240         called for posix_memalign and valloc.
39241         (Summary of Malloc): Add posix_memalign to function summary.
39242         __memalign_hook is also called for posix_memalign and valloc.
39243
39244 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39245
39246         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39247         TAYLOR_SIN.
39248         (__sin): Adjust.
39249         (__cos): Likewise.
39250         (sloww): Use mynumber union.  Expand ternary operator into
39251         if-else statements.
39252         (cslow): use mynumber union.
39253
39254 2013-12-16  Allan McRae  <allan@archlinux.org>
39255
39256         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39257         * configure: Regenerated.
39258
39259         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39260
39261         [BZ #14120]
39262         * configure.ac: Added --enable-maintainer-mode. Check for
39263         autoconf when enabled.
39264         * configure: Regenerated.
39265
39266         * nscd/nscd.service: New file.
39267         * nscd/nscd.tmpfiles: New file.
39268
39269 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39270
39271         [BZ #12100]
39272         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39273         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39274         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39275         (strstr): Add __strstr_sse2_unaligned ifunc.
39276         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39277         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39278         (strcasestr): Remove __strcasestr_sse42 ifunc.
39279         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39280         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39281         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39282
39283 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39284
39285         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39286         * sysdeps/sh/bits/fenv.h: ... here.
39287         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39288
39289 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39290
39291         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39292
39293         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39294         hypotf multiarch implementations.
39295         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39296         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39297         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39298         multiarch hypot for PPC64.
39299         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39300         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39301         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39302         multiarch hypotf for PPC64.
39303
39304         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39305         modff multiarch implementations.
39306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39308         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39309         multiarch modf for PPC64.
39310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39312         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39313         multiarch modff for PPC64.
39314
39315         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39316         and logl multiarch implementations.
39317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39320         multiarch logb for PPC64.
39321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39324         multiarch logb for PPC64.
39325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39328         multiarch logb for PPC64.
39329
39330         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39331         isinff multiarch implementation.
39332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39333         file.
39334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39336         multiarch isinf for PPC64.
39337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39338         file.
39339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39340         multiarch isinff for PPC64.
39341
39342         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39343         finitef multiarch implementation.
39344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39345         file.
39346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39348         multiarch finite for PPC64.
39349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39350         file.
39351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39352         multiarch finitef for PPC64.
39353
39354         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39355         lrint multiarch implementation.
39356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39357         file.
39358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39359         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39360         multiarch llrint for PPC64.
39361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39362         multiarch lrint for PPC64.
39363
39364         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39365         copysignf multiarch implementation.
39366         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39367         file.
39368         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39369         file.
39370         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39371         multiarch copysign for PPC64.
39372         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39373         multiarch copysignf for PPC64.
39374
39375         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39376         multiarch implementation.
39377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39378         file.
39379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39380         file.
39381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39382         file.
39383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39384         file.
39385         multiarch llround for PPC64.
39386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39387         multiarch trunc for PPC64.
39388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39389         multiarch truncf for PPC64.
39390
39391         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39392         multiarch implementation.
39393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39394         file.
39395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39396         file.
39397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39398         file.
39399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39400         file.
39401         multiarch llround for PPC64.
39402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39403         multiarch round for PPC64.
39404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39405         multiarch roundf for PPC64.
39406
39407         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39408         multiarch implementation.
39409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39410         file.
39411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39412         file.
39413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39414         file.
39415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39416         file.
39417         multiarch llround for PPC64.
39418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39419         multiarch floor for PPC64.
39420         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39421         multiarch floorf for PPC64.
39422
39423         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39424         multiarch implementation.
39425         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39426         file.
39427         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39428         file.
39429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39430         file.
39431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39432         file.
39433         multiarch llround for PPC64.
39434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39435         multiarch ceil for PPC64.
39436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39437         multiarch ceilf for PPC64.
39438
39439         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39440         multiarch implementation.
39441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39442         file.
39443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39444         file.
39445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39446         file.
39447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39448         multiarch llround for PPC64.
39449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39450         multiarch lround for PPC64.
39451
39452         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39453         multiarch implementation.
39454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39457         file.
39458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39461         multiarch isnan for PPC64.
39462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39463         multiarch isnanf for PPC64.
39464
39465         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39466         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39467         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39468         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39469         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39471
39472         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39473         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39474         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39475         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39476
39477         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39478         multiarch implementations.
39479         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39480         (__libc_ifunc_impl_list): Likewise.
39481         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39482         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39483         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39484         multiarch stpcpy for PPC64.
39485
39486         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39487         multiarch implementations.
39488         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39489         (__libc_ifunc_impl_list): Likewise.
39490         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39491         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39492         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39493         multiarch strcpy for PPC64.
39494
39495         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39496         redefine function name.
39497         (_wordcopy_fwd_dest_aligned): Likewise.
39498         (_wordcopy_bwd_aligned): Likewise.
39499         (_wordcopy_bwd_dest_aligned): Likewise.
39500         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39501         multiarch implementations.
39502         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39503         (__libc_ifunc_impl_list): Likewise.
39504         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39505         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39506         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39507         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39508         multiarch wcscpy for PPC64.
39509
39510         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39511         multiarch implementations.
39512         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39513         (__libc_ifunc_impl_list): Likewise.
39514         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39515         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39516         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39517         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39518         multiarch wcscpy for PPC64.
39519
39520         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39521         multiarch implementations.
39522         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39523         (__libc_ifunc_impl_list): Likewise.
39524         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39525         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39526         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39527         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39528         multiarch wcsrchr for PPC64.
39529
39530         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39531         multiarch implementations.
39532         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39533         (__libc_ifunc_impl_list): Likewise.
39534         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39535         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39536         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39537         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39538         multiarch wcschr for PPC64.
39539
39540         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39541         multiarch implementations.
39542         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39543         (__libc_ifunc_impl_list): Likewise.
39544         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39545         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39546         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39547         multiarch strchrnul for PPC64.
39548
39549         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39550         implementations.
39551         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39552         (__libc_ifunc_impl_list): Likewise.
39553         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39554         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39555         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39556         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39557         strchr for PPC64.
39558
39559         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39560         implementations.
39561         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39562         (__libc_ifunc_impl_list): Likewise.
39563         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39564         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39565         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39566         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39567         strncmp for PPC64.
39568
39569         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39570         multiarch implementations.
39571         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39572         (__libc_ifunc_impl_list): Likewise.
39573         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39574         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39575         strncasecmp for PPC64.
39576         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39577         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39578         multiarch strncasecmp_l for PPC64.
39579
39580         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39581         multiarch implementations.
39582         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39583         (__libc_ifunc_impl_list): Likewise.
39584         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39585         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39586         multiarch strcasecmp for PPC64.
39587         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39588         file.
39589         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39590         multiarch strcasecmp_l for PPC64.
39591
39592         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39593         implementations.
39594         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39595         (__libc_ifunc_impl_list): Likewise.
39596         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39597         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39598         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39599         strnlen for PPC64.
39600
39601         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39602         implementations.
39603         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39604         (__libc_ifunc_impl_list): Likewise.
39605         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39606         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39607         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39608         strlen for PPC64.
39609
39610         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39611         implementations.
39612         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39613         (__libc_ifunc_impl_list): Likewise.
39614         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39615         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39616         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39617         rawmemrchr for PPC64.
39618
39619         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39620         implementation.
39621         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39622         (__libc_ifunc_impl_list): Likewise.
39623         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39624         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39625         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39626         memrchr for PPC64.
39627
39628         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39629         implementation.
39630         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39631         (__libc_ifunc_impl_list): Likewise.
39632         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39633         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39634         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39635         memchr for PPC64.
39636
39637         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39638         implementation.
39639         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39640         (__libc_ifunc_impl_list): Likewise.
39641         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39642         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39643         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39644         mempcpy for PPC64.
39645
39646         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39647         avoid cretion of __bzero symbol.
39648         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39649         Likewise.
39650         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39651         Likewise.
39652         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39653         Likewise.
39654         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39655         multiarch implementations.
39656         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39657         (__libc_ifunc_impl_list): Likewise.
39658         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39659         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39660         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39661         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39662         bzero for PPC32.
39663         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39664         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39665         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39666         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39667         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39668         memset for PPC64.
39669         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39670
39671         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39673         implementations.
39674         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39675         (__libc_ifunc_impl_list): Likewise.
39676         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39677         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39678         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39679         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39680         memcmp for PPC64.
39681
39682         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39683         multiarch for POWER/PPC64.
39684         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39685         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39686         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39687         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39688         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39689         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39690         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39691         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39692         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39693         memcpy for PPC64.
39694
39695         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39696         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39697         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39698         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39699         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39700         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39701         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39702         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39703         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39704         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39705         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39706         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39707         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39708         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39709         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39717
39718 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39719
39720         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39721
39722 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39723
39724         * benchtests/Makefile (bench): Add exp2 and log2.
39725         (LDLIBS-bench-exp2): Add -lm.
39726         (LDLIBS-bench-log2): Likewise.
39727         * benchtests/exp2-inputs: New inputs file.
39728         * benchtests/log2-inputs: New inputs file.
39729         * benchtests/log-inputs: Add new inputs.
39730         * benchtests/tan-inputs: Likewise.
39731
39732 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39733
39734         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39735         definition...
39736         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39737         (csloww2): ... from here.
39738
39739         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39740         instead of structures.
39741         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39742         (POLYNOMIAL): Likewise.
39743         (TAYLOR_SLOW): Likewise.
39744         (__sin): Likewise.
39745         (__cos): Likewise.
39746         (slow1): Likewise.
39747         (slow2): Likewise.
39748         (sloww): Likewise.
39749         (sloww1); Likewise.
39750         (sloww2): Likewise.
39751         (bsloww1): Likewise.
39752         (bsloww2): Likewise.
39753         (cslow2): Likewise.
39754         (csloww): Likewise.
39755         (csloww1): Likewise.
39756         (csloww2): Likewise.
39757
39758 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39759
39760         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39761         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39762         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39763         * malloc/hooks.c (realloc_check): Likewise.
39764
39765         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39766         * malloc/arena.c: Remove PER_THREAD conditional.
39767         [!PER_THREAD]: Remove code.
39768         (ptmalloc_unlock_all2): Likewise.
39769         (ptmalloc_init): Likewise.
39770         (_int_new_arena): Likewise.
39771         (arena_get2): Likewise.
39772         * malloc/hooks.c (__malloc_get_state): Likewise.
39773         (__malloc_set_state): Likewise.
39774         * malloc/malloc.c: Likewise.
39775         (struct malloc_state): Likewise.
39776         (struct malloc_par): Likewise.
39777         (__libc_realloc): Likewise.
39778         (__libc_mallopt): Likewise.
39779
39780 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39781
39782         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39783
39784 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39785
39786         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39787         macro to a function.  Check for zero perturb_byte.
39788         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39789
39790         * malloc/malloc.c: (force_reg): Remove.
39791         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39792         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39793         force_reg by atomic_forced_read.
39794         * malloc/arena.c (ptmalloc_init): Likewise.
39795         * malloc/hooks.c (top_check): Likewise.
39796
39797 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39798
39799         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39800
39801 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39802
39803         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39804
39805 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39806
39807         * math/auto-libm-test-in: Add tests of lgamma.
39808         * math/auto-libm-test-out: Regenerated.
39809         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39810         (M_LOG_2_SQRT_PIl): Likewise.
39811         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39812         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39813         mpfr_f_f1.
39814         (func_calc_desc): Add mpfr_f_f1 union field.
39815         (ARGS1): New macro.
39816         (ARGS2): Likewise.
39817         (ARGS3): Likewise.
39818         (ARGS4): Likewise.
39819         (RET1): Likewise.
39820         (RET2): Likewise.
39821         (CALC): Likewise.
39822         (FUNC): Likewise.
39823         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39824         (test_functions): Add lgamma.
39825         (calc_generic_results): Handle mpfr_f_f1.
39826         * sysdeps/i386/fpu/libm-test-ulps: Update.
39827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39828
39829 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39830
39831         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39832         __mpn_add_n for PowerPC64/POWER7.
39833         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39834         __mpn_sub_n for PowerPC64/POWER7.
39835
39836         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39837         __mpn_addmul_1 for PowerPC64.
39838         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39839         __mpn_submul_1 for PowerPC64.
39840         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
39841         for PowerPC64.
39842         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
39843         for PowerPC64.
39844
39845 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
39846
39847         [BZ #15089]
39848         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
39849
39850 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39851
39852         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
39853
39854         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
39855         add multiarch folders.
39856         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
39857         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
39858         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
39859         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
39860         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
39861         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
39862         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
39863         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
39864         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
39865         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
39866         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
39867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
39868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
39869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
39870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
39871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
39872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
39873
39874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39875         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
39876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
39877         New file.
39878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
39879         New file.
39880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
39881         multiarch __ieee754_hypot for PowerPC32.
39882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
39883         New file.
39884         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
39885         New file.
39886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
39887         multiarch __ieee754_hypotf for PowerPC32.
39888
39889         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
39890         long_double_symbol only if __logbl is defined.
39891         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
39892         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
39893         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
39894         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
39895         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
39896         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
39897         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
39898         path for implementation.
39899         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
39900         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
39901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
39902         logb, and logbl multiarch implementations for PowerPC32.
39903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
39904         file.
39905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
39906         file.
39907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
39908         multiarch logb for PowerPC32.
39909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
39910         file.
39911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
39912         file.
39913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
39914         multiarch logbf for PowerPC32.
39915         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
39916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
39917         file.
39918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
39919         multiarch logbl implementation for PowerPC32.
39920
39921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
39922         and modff multiarch implementations.
39923         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
39924         New file.
39925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
39926         New file.
39927         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
39928         multiarch modf for PowerPC32.
39929         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
39930         New file.
39931         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
39932         New file.
39933         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
39934         multiarch modff for PowerPC32.
39935
39936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
39937         and lrintf multiarch implementations.
39938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
39939         New file.
39940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
39941         New file.
39942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
39943         multiarch lrint for PowerPC32.
39944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
39945         file: multiarch lrintf for PowerPC32.
39946
39947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
39948         and lroundf multiarch implementations.
39949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
39950         New file.
39951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
39952         New file.
39953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
39954         New file.
39955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
39956         multiarch lround for PowerPC32.
39957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
39958         file: multiarch lroundf for PowerPC32.
39959
39960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39961         copysign and copysignf multiarch implementations.
39962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
39963         New file.
39964         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
39965         New file.
39966         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
39967         file: multiarch copysign for PowerPC32.
39968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
39969         file: multiarch copysignf for PowerPC32.
39970
39971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
39972         and truncf multiarch implementations.
39973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
39974         New file.
39975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
39976         file.
39977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
39978         multiarch trunc for PowerPC32.
39979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
39980         New file.
39981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
39982         New file.
39983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
39984         multiarch truncf for PowerPC32.
39985
39986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
39987         and roundf multiarch implementations.
39988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
39989         New file.
39990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
39991         file.
39992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
39993         multiarch round for PowerPC32.
39994         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
39995         New file.
39996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
39997         New file.
39998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
39999         multiarch roundf for PowerPC32.
40000
40001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40002         and floorf multiarch implementations.
40003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40004         New file.
40005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40006         file.
40007         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40008         multiarch floor for PowerPC32.
40009         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40010         New file.
40011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40012         New file.
40013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40014         multiarch floorf for PowerPC32.
40015
40016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40017         and ceilf multiarch implementations.
40018         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40019         New file.
40020         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40021         file.
40022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40023         multiarch ceil for PowerPC32.
40024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40025         New file.
40026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40027         file.
40028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40029         multiarch ceilf for PowerPC32.
40030
40031         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40032         is defined.
40033         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40034         FINITEF is defined.
40035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40036         and finitef multiarch implementations.
40037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40038         New file.
40039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40040         file.
40041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40042         multiarch finite for PowerPC32.
40043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40044         New file.
40045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40046         file: multiarch finitef for PowerPC32.
40047
40048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40049         and isinff multiarch implementations.
40050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40051         file.
40052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40053         file.
40054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40055         multiarch isinf for PowerPC32.
40056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40057         New file.
40058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40059         multiarch isinff for PowerPC32.
40060
40061         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40062         alias when __isnan is defined.
40063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40064         and isnanf multiarch implementations.
40065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40066         file.
40067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40068         file.
40069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40070         file.
40071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40072         file.
40073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40074         multiarch isnan for PowerPC32.
40075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40076         New file.
40077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40078         New file.
40079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40080         multiarch isnanf for PowerPC32.
40081
40082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40083         and sqrtf multiarch implementations.
40084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40085         file.
40086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40087         file.
40088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40089         multiarch sqrt for PowerPC32.
40090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40091         file.
40092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40093         file.
40094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40095         multiarch sqrtf for PowerPC32.
40096
40097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40098         and llroundf multiarch implementations.
40099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40100         New file.
40101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40102         New file.
40103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40104         New file.
40105         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40106         file: multiarch llround for PowerPC32.
40107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40108         file: multiarch llroundf for PowerPC32.
40109
40110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40111         multiarch PowerPC32 fpu implementations.
40112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40113         New file.
40114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40115         New file.
40116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40117         multiarch llrint for PowerPC32.
40118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40119         New file.
40120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40121         New file.
40122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40123         file.
40124
40125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40126
40127         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40128         file.
40129         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40130         file.
40131         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40132         file.
40133         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40134         multiarch wordcopy for PPC32.
40135         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40136         wordcopy objects.
40137         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40138         (__libc_ifunc_impl_list): Likewise.
40139         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40140         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40141         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40142         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40143         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40144         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40145
40146         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40147         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40148         file.
40149         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40150         file.
40151         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40152         file.
40153         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40154         multiarch wcscpy for PPC32.
40155         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40156         multiarch objects.
40157         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40158         (__libc_ifunc_impl_list): Likewise.
40159         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40160         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40161         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40162         sysdeps/powerpc/power6/wcscpy.c.
40163
40164         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40165         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40166         file.
40167         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40168         file.
40169         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40170         file.
40171         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40172         multiarch wcsrchr for PPC32.
40173         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40174         multiarch objects.
40175         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40176         (__libc_ifunc_impl_list): Likewise.
40177         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40178         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40179         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40180         sysdeps/powerpc/power6/wcsrchr.c.
40181
40182         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40183         file.
40184         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40185         file.
40186         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40187         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40188         multiarch wcschr for PPc32.
40189         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40190         multiarch objects.
40191         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40192         (__libc_ifunc_impl_list): Likewise.
40193         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40194         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40195         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40196         sysdeps/powerpc/power6/wcschr.c.
40197
40198         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40199         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40200         file.
40201         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40202         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40203         file: multiarch strchr for PPC32.
40204         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40205         multiarch objects.
40206         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40207         (__libc_ifunc_impl_list): Likewise.
40208
40209         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40210         name.
40211         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40212         file.
40213         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40214         file.
40215         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40216         multiarch strchrnul for PPC32.
40217         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40218         multiarch objects.
40219         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40220         (__libc_ifunc_impl_list): Likewise.
40221
40222         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40223         file.
40224         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40225         multiarch strncasecmp for PPC32.
40226         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40227         file.
40228         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40229         multiarch strncasecmp_l for PPC32.
40230         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40231         strncasecmp multiarch objects.
40232         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40233         (__libc_ifunc_impl_list): Likewise.
40234
40235         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40236         file.
40237         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40238         multiarch strncasecmp for PPC32.
40239         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40240         New file.
40241         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40242         multiarch strcasecmp_l for PPC32.
40243         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40244         multiarch objects.
40245         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40246         (__libc_ifunc_impl_list): Likewise.
40247
40248         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40249         file.
40250         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40251         file.
40252         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40253         multiarch strncmp for PPC32.
40254         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40255         multiarch objects.
40256         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40257         (__libc_ifunc_impl_list): Likewise.
40258
40259         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40260         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40261         file.
40262         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40263         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40264         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40265         multiarch objects.
40266         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40267         (__libc_ifunc_impl_list): Likewise.
40268
40269         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40270         file.
40271         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40272         file.
40273         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40274         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40275         multiarch objects.
40276         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40277         (__libc_ifunc_impl_list): Likewise.
40278
40279         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40280         file.
40281         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40282         file.
40283         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40284         multiarch rawmemchr for PPC32.
40285         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40286         multiarch objects.
40287         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40288         (__libc_ifunc_impl_list): Likewise.
40289
40290         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40291         file.
40292         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40293         file.
40294         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40295         file: memrchr multiarch for PPC32.
40296         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40297         multiarch objects.
40298         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40299         (__libc_ifunc_impl_list): Likewise.
40300
40301         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40302         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40303         file.
40304         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40305         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40306         multiarch memchr for PPC32.
40307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40308         multiarch objects.
40309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40310         (__libc_ifunc_impl_list): Likewise.
40311
40312         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40313         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40314         file.
40315         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40316         file.
40317         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40318         file: multiarch mempcpy for PPC32.
40319         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40320         multiarch objects.
40321         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40322         (__libc_ifunc_impl_list): Likewise.
40323
40324         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40325         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40326         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40327         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40328         multiarch bzero for PPC32.
40329         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40330         file.
40331         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40332         file.
40333         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40334         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40335         file: multiarch memset for PPC32.
40336         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40337         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40338         memset multiarch objects.
40339         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40340         (__libc_ifunc_impl_list): Likewise.
40341
40342         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40343         file.
40344         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40345         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40346         memcmp for PPC32.
40347         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40348         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40349         multiarch objects.
40350         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40351         (__libc_ifunc_impl_list): Likewise.
40352
40353         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40354         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40355         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40356         file.
40357         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40358         file.
40359         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40360         file.
40361         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40362         multiarch memcpy for PPC32.
40363         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40364         multiarch objects.
40365         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40366         (__libc_ifunc_impl_list): Likewise.
40367
40368         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40369         support multiarch for POWER/PPC32.
40370         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40371         Likewise.
40372         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40374         Implies file to make multiarch folder appers before the fpu and
40375         default folder for power4 configuration.
40376
40377 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40378
40379         * scripts/bench.pl: Append volatile keyword to type.
40380
40381 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40382
40383         * sysdeps/sh/sotruss-lib.c: New file.
40384         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40385
40386 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40387
40388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40389
40390 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40391
40392         [BZ #6810]
40393         * math/w_tgamma.c: Include <errno.h>.
40394         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40395         * math/w_tgammaf.c: Include <errno.h>.
40396         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40397         * math/w_tgammal.c: Include <errno.h>.
40398         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40399         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40400         underflow.  Add more tgamma tests.
40401         * math/auto-libm-test-out: Regenerated.
40402         * sysdeps/i386/fpu/libm-test-ulps: Update.
40403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40404
40405         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40406         sin, sinh, tan, tanh, tgamma, y0 and y1.
40407         * math/auto-libm-test-out: Regenerated.
40408         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40409         (TEST_COND_x86): Likewise.
40410         (M_E2l): Remove macro.
40411         (M_E3l): Likewise.
40412         (M_2_SQRT_PIl): Likewise.
40413         (M_SQRT_PIl): Likewise.
40414         (M_1_DIV_El): Likewise.
40415         (log_test_data): Use AUTO_TESTS_f_f.
40416         (log10_test_data): Likewise.
40417         (log1p_test_data): Likewise.
40418         (log2_test_data): Likewise.
40419         (sin_test_data): Likewise.
40420         (sin_tonearest_test_data): Likewise.
40421         (sin_towardzero_test_data): Likewise.
40422         (sin_downward_test_data): Likewise.
40423         (sin_upward_test_data): Likewise.
40424         (sinh_test_data): Likewise.
40425         (sinh_tonearest_test_data): Likewise.
40426         (sinh_towardzero_test_data): Likewise.
40427         (sinh_downward_test_data): Likewise.
40428         (sinh_upward_test_data): Likewise.
40429         (tan_test_data): Likewise.
40430         (tan_tonearest_test_data): Likewise.
40431         (tan_towardzero_test_data): Likewise.
40432         (tan_downward_test_data): Likewise.
40433         (tan_upward_test_data): Likewise.
40434         (tanh_test_data): Likewise.
40435         (tgamma_test_data): Likewise.
40436         (y0_test_data): Likewise.
40437         (y1_test_data): Likewise.
40438         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40439         (special_real_inputs): Add pi/4.
40440         * sysdeps/i386/fpu/libm-test-ulps: Update.
40441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40442
40443 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40444
40445         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40446         "longjmp_target" static probes.
40447         (__longjmp): Rename to __longjmp_symbol.
40448         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40449         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40450         on which longjmp to generate.
40451         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40452         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40453         probe.
40454         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40455         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40456         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40457         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40458         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40459         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40461         __longjmp_symbol based on which __longjmp to generate.
40462         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40463         probe.
40464         (setjmp): Rename to setjmp_symbol.
40465         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40466         (_setjmp): Rename to _setjmp_symbol.
40467         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40468         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40469         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40470         which setjmp to generate.
40471         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40472         "longjmp_target" static probes.
40473
40474 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40475
40476         * benchtests/README: Add note about output arguments.
40477         * benchtests/bench-sincos.c: Remove file.
40478         * benchtests/sincos-inputs: New file.
40479         * scripts/bench.pl: Identify output arguments and define
40480         static variables for them.
40481
40482         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40483
40484         [BZ #15941]
40485         * Makefile (INSTALL): Add install-plain.texi as the primary
40486         dependency.
40487         * manual/install-plain.texi: New file.
40488         * manual/install.texi: Include node directive only for
40489         non-plaintext output.
40490
40491 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40492
40493         * stdlib/longlong.h: Update from GCC.
40494
40495         [BZ #6807]
40496         [BZ #15901]
40497         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40498         * math/w_j0f.c (y0f): Likewise.
40499         * math/w_j0l.c (__y0l): Likewise.
40500         * math/w_j1.c (y1): Likewise.
40501         * math/w_j1f.c (y1f): Likewise.
40502         * math/w_j1l.c (__y1l): Likewise.
40503         * math/w_jn.c (yn): Likewise.
40504         * math/w_jnf.c (ynf): Likewise.
40505         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40506         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40507         value for Bessel function domain errors outside _SVID_ mode.
40508         Adjust sign of return value for yn (negative integer, 0).
40509         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40510         by zero in return for negative x and set sign appropriately for
40511         negative n.
40512         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40513         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40514         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40515         expectations in error cases.
40516         (y1_test_data): Likewise.
40517         (yn_test_data): Likewise.
40518         * sysdeps/i386/fpu/libm-test-ulps: Update.
40519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40520
40521 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40522
40523         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40524         "64" to "64-v1".  Add "64-v2".
40525         (abi-64-options): Rename to ...
40526         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40527         (abi-64-condition): Rename to ...
40528         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40529         (abi-64-ld-soname): Rename to ...
40530         (abi-64-v1-ld-soname): ... this.
40531         (abi-64-v2-options): Define.
40532         (abi-64-v2-condition): Likewise.
40533         (abi-64-v2-ld-soname): Likewise.
40534         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40535         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40539
40540 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40541             Alan Modra  <amodra@gmail.com>
40542
40543         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40544         New versions for use with the ELFv2 ABI.
40545         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40546         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40547         declaration.
40548         (struct La_ppc64v2_retval): Likewise.
40549         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40550         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40551         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40552         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40553         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40554         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40555         Do not save or restore CR.
40556         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40557         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40558         return values for ELFv2 ABI.  Fix location of FPR return registers.
40559         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40560         updated values for _CALL_ELF == 2.
40561         (La_regs, La_retval, int_retval): Likewise.
40562
40563 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40564
40565         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40566         (FRAME_MIN_SIZE_PARM): Likewise.
40567         (FRAME_BACKCHAIN): Likewise.
40568         (FRAME_CR_SAVE): Likewise.
40569         (FRAME_LR_SAVE): Likewise.
40570         (FRAME_TOC_SAVE): Likewise.
40571         (FRAME_PARM_SAVE): Likewise.
40572         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40573         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40574         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40575         (call_mcount_parm_offset): New macro.
40576         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40577         (PROF): Use symbolic stack frame offsets.
40578         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40579         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40580         Redefine in terms of FRAME_MIN_SIZE.
40581         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40582         (_dl_profile_resolve): Likewise.  Update comment.
40583         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40584         symbols stack frame offsets.
40585         (__sigsetjmp): Likewise.
40586         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40587         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40588         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40589         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40590
40591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40592         (FRAME_BACKCHAIN): Remove.
40593         (FRAME_CR_SAVE): Likewise.
40594         (FRAME_LR_SAVE): Likewise.
40595         (FRAME_COMPILER_DW): Likewise.
40596         (FRAME_LINKER_DW): Likewise.
40597         (FRAME_TOC_SAVE): Likewise.
40598         (FRAME_PARM_SAVE): Likewise.
40599         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40600         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40601         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40603         (CHECK_SP): Use symbolic stack frame offsets.
40604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40605         zone" instead of caller's parameter save area for temp storage.
40606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40607         Likewise.  Also, use symbolic stack frame offsets.
40608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40609         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40610         our own stack frame instead of the caller's.
40611         (__socket): Use symbolic stack frame offsets.
40612
40613 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40614             Alan Modra  <amodra@gmail.com>
40615
40616         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40617         Define.
40618         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40619         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40620         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40621         New function.
40622         (elf_machine_fixup_plt): Call it.
40623         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40624         reloc arguments.
40625         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40626         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40627         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40628         r2 before calling target.
40629
40630 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40631             Alan Modra  <amodra@gmail.com>
40632
40633         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40634         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40635         versions of macros to support ELFv2 ABI.
40636         (LOCALENTRY): New macro.
40637         (ENTRY, EALIGN): Use it.
40638         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40639         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40640         fall through into ENTRY entry point.
40641         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40642         Only define if _CALL_ELF != 2.
40643
40644         (elf_machine_matches_host): Verify ABI version matches.
40645         (RTLD_START): Use LOCALENTRY.
40646         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40647         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40648         (PLT_ENTRY_WORDS): New macro.
40649         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40650         (elf_machine_runtime_setup): Support ELFv2 ABI.
40651         (elf_machine_fixup_plt): Likewise.
40652         (elf_machine_plt_conflict): Likewise.
40653         (resolve_ifunc): Likewise.
40654         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40655         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40656         Likewise.
40657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40658         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40660         (makecontext): Support ELFv2 ABI.
40661         * elf/elf.h (EF_PPC64_ABI): Define.
40662
40663 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40664
40665         * sysdeps/powerpc/powerpc64/sysdep.h
40666         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40667         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40668         (ENTRY) [ASSEMBLER]: ... but instead here ...
40669         (EALIGN) [ASSEMBLER]: ... and here.
40670         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40671         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40672         (ENTRY_2) [!ASSEMBLER]: Use it.
40673         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40674         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40675         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40676         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40677         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40679         Use PPC64_LOAD_FUNCPTR.
40680
40681         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40682
40683 2013-12-04  Alan Modra  <amodra@gmail.com>
40684
40685         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40686         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40687         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40688         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40689
40690         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40691         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40692         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40693         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40694         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40695         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40696
40697 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40698
40699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40700         (__makecontext): Fix incorrect CFI when backtracing out of
40701         context created via makecontext.
40702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40703         (__setcontext): Fix incorrect CFI during switch to new context.
40704         (__novec_setcontext): Likewise.
40705
40706 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40707
40708         [BZ #4772]
40709         * time/strptime_l.c (__strptime_internal): Allow modifiers
40710         in strptime.
40711         * time/tst-strptime.c (day_tests): Add testcase.
40712
40713 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40714
40715         * scripts/bench.pl: Skip over blank lines.
40716
40717 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40718
40719         [BZ #926]
40720         * manual/time.texi (Calendar Time): Clarify what timezone functions
40721         use.
40722
40723 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40724
40725         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40726
40727 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40728
40729         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40730         implementation.
40731         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40732         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40733         * debug/memset_chk.c (__memset_chk): Likewise.
40734         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40735         * debug/strncpy_chk.c: Likewise.
40736
40737 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40738
40739         [BZ #15268]
40740         [BZ #15425]
40741         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40742         (__ieee754_exp): For possibly underflowing results, check size of
40743         result and force underflow exception if required.
40744         * math/auto-libm-test-in: Add more tests of exp.
40745         * math/auto-libm-test-out: Regenerated.
40746         * sysdeps/i386/fpu/libm-test-ulps: Update.
40747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40748
40749         [BZ #16283]
40750         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40751         * math/w_exp2f.c (__exp2f): Likewise.
40752         * math/w_exp2l.c (__exp2l): Likewise.
40753         * math/auto-libm-test-in: Do not allow missing errno on exp2
40754         underflow.
40755         * math/auto-libm-test-out: Regenerated.
40756
40757 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40758
40759         [BZ #16274]
40760         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40761         handle filename validation.
40762         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40763         (do_open): Delete.
40764
40765 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40766
40767         [BZ #6786]
40768         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40769         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40770         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40771         <float.h>.
40772         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40773         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40774         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40775         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40776         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40777         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40778         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40779         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40780         Add more erfc tests.
40781         * math/auto-libm-test-out: Regenerated.
40782         * sysdeps/i386/fpu/libm-test-ulps: Update.
40783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40784
40785         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40786         exp2, expm1, j0 and j1.
40787         * math/auto-libm-test-out: Regenerated.
40788         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40789         (erfc_test_data): Likewise.
40790         (exp_test_data): Likewise.
40791         (exp_tonearest_test_data): Likewise.
40792         (exp_towardzero_test_data): Likewise.
40793         (exp_downward_test_data): Likewise.
40794         (exp_upward_test_data): Likewise.
40795         (exp10_test_data): Likewise.
40796         (exp2_test_data): Likewise.
40797         (expm1_test_data): Likewise.
40798         (j0_test_data): Likewise.
40799         (j1_test_data): Likewise.
40800         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40801         (input_flag_type): Add flag_xfail_rounding.
40802         (input_flags): Add xfail-rounding.
40803         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40804         (output_for_one_input_case): Handle flag_xfail_rounding.
40805         * sysdeps/i386/fpu/libm-test-ulps: Update.
40806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40807
40808 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40809
40810         [BZ #16289]
40811         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40812         division by 0.
40813
40814 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40815
40816         [BZ #16195]
40817         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40818         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40819         (STAP_PROBE0): New macro.
40820         (STAP_PROBE1): Likewise.
40821         (STAP_PROBE2): Likewise.
40822         (STAP_PROBE3): Likewise.
40823         (STAP_PROBE4): Likewise.
40824
40825 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40826
40827         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40828
40829 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40830
40831         * benchtests/Makefile (bench): Add sqrt.
40832         (LDLIBS-bench-sqrt): New.
40833         * benchtests/sqrt-input: New.
40834
40835 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40836
40837         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40838         (GAIH_EAI): Likewise.
40839         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40840         (gaih_inet): Likewise.
40841         (getaddrinfo): Don't use GAIH_EAI.
40842
40843         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
40844         (struct gaih): Remove definition.
40845
40846 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
40847
40848         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
40849         Use HERRNOP directly.
40850
40851 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40852
40853         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40854
40855 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
40856
40857         * math/gen-auto-libm-tests.c (test_functions): Add more
40858         single-argument functions.
40859         (special_fill_pi_2): New function.
40860         (special_fill_minus_pi_2): Likewise.
40861         (special_fill_pi_6): Likewise.
40862         (special_fill_minus_pi_6): Likewise.
40863         (special_fill_pi_3): Likewise.
40864         (special_fill_2pi_3): Likewise.
40865         (special_fill_e): Likewise.
40866         (special_fill_1_e): Likewise.
40867         (special_fill_e_minus_1): Likewise.
40868         (special_real_inputs): Add more special inputs.
40869         (output_for_one_input_case): Do not require ERANGE on underflow to
40870         zero if round-to-nearest result does not underflow to zero, unless
40871         exact results required.
40872         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
40873         atan, atanh, cbrt, cos and cosh.
40874         * math/auto-libm-test-out: Regenerated.
40875         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
40876         (acos_tonearest_test_data): Likewise.
40877         (acos_towardzero_test_data): Likewise.
40878         (acos_downward_test_data): Likewise.
40879         (acos_upward_test_data): Likewise.
40880         (acosh_test_data): Likewise.
40881         (asin_test_data): Likewise.
40882         (asin_tonearest_test_data): Likewise.
40883         (asin_towardzero_test_data): Likewise.
40884         (asin_upward_test_data): Likewise.
40885         (asinh_test_data): Likewise.
40886         (atan_test_data): Likewise.
40887         (atanh_test_data): Likewise.
40888         (cbrt_test_data): Likewise.
40889         (cos_test_data): Likewise.
40890         (cos_tonearest_test_data): Likewise.
40891         (cos_towardzero_test_data): Likewise.
40892         (cos_downward_test_data): Likewise.
40893         (cos_upward_test_data): Likewise.
40894         (cosh_test_data): Likewise.
40895         (cosh_tonearest_test_data): Likewise.
40896         (cosh_towardzero_test_data): Likewise.
40897         (cosh_downward_test_data): Likewise.
40898         (cosh_upward_test_data): Likewise.
40899         * sysdeps/i386/fpu/libm-test-ulps: Update.
40900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40901
40902 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
40903
40904         [BZ #6787]
40905         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
40906         * math/w_exp10f.c (__exp10f): Likewise.
40907         * math/w_exp10l.c (__exp10l): Likewise.
40908         * math/libm-test.inc (exp10_test_data): Add more tests and expect
40909         errno settings in existing tests.
40910
40911         [BZ #14032]
40912         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
40913         precision control set to double precision.
40914         * sysdeps/i386/fpu/w_sqrt.c: New file.
40915         * math/auto-libm-test-in: Add more tests.
40916         * math/auto-libm-test-out: Update.
40917
40918         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
40919         (sqrt_test_tonearest): New function.
40920         (sqrt_towardzero_test_data): New variable.
40921         (sqrt_test_towardzero): New function.
40922         (sqrt_downward_test_data): New variable.
40923         (sqrt_test_downward): New function.
40924         (sqrt_upward_test_data): New variable.
40925         (sqrt_test_upward): New function.
40926         (main): Call the new functions.
40927
40928         * math/gen-auto-libm-tests.c: New file.
40929         * math/auto-libm-test-in: Likewise.
40930         * math/auto-libm-test-out: New generated file.
40931         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
40932         variables.
40933         (%beautify): Add generated representations of zero.
40934         (top level): Set $auto_input and call parse_auto_input.
40935         (beautify): Remove trailing "f" from hex float constants.
40936         (parse_args): Handle XFAIL_TEST.
40937         (convert_condition): New function.
40938         (or_value): Likewise.
40939         (or_cond_value): Likewise.
40940         (generate_testfile): Handle AUTO_TESTS_* lines.
40941         (parse_auto_input): New function.
40942         * math/libm-test.inc (XFAIL_TEST): New macro.
40943         (ERRNO_UNCHANGED): Update value.
40944         (ERRNO_EDOM): Likewise.
40945         (ERRNO_ERANGE): Likewise.
40946         (IGNORE_RESULT): Likewise.
40947         (TEST_COND_flt_32): New macro.
40948         (TEST_COND_dbl_64): Likewise.
40949         (TEST_COND_ldbl_96_intel): Likewise.
40950         (TEST_COND_ldbl_96_m68k): Likewise.
40951         (TEST_COND_ldbl_128): Likewise.
40952         (TEST_COND_ldbl_128ibm): Likewise.
40953         (TEST_COND_long32): Likewise.
40954         (TEST_COND_long64): Likewise.
40955         (TEST_COND_before_rounding): Likewise.
40956         (TEST_COND_after_rounding): Likewise.
40957         (enable_test): Handle XFAIL_TEST flag.
40958         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
40959         with finite results.
40960         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
40961         auto-libm-test-out.
40962
40963 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
40964             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40965
40966         [BZ #16214]
40967         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
40968         __tls_get_addr_internal instead of __tls_get_offset in order to
40969         avoid GOT pointer dependency.  Make rtld export
40970         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
40971         __tls_get_addr since we are a __tls_get_offset platform.
40972         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
40973         GOT pointer being set up before.
40974         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
40975
40976 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
40977
40978         * manual/math.texi (Errors in Math Functions): Document accuracy
40979         goals.
40980
40981         [BZ #15004]
40982         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
40983         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
40984         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
40985         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
40986         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
40987         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
40988         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
40989         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
40990         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
40991         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
40992         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
40993         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
40994         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
40995         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
40996         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40997         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
40998
40999         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41000         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41001         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41002         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41003         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41004         Likewise.
41005         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41006         Likewise.
41007         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41008         Likewise.
41009         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41010         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41011         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41012         atomic-feupdateenv and flt-rounds.
41013         * sysdeps/powerpc/nofpu/Versions (libc): Add
41014         __atomic_feholdexcept, __atomic_feclearexcept,
41015         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41016         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41017         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41018         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41019         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41020         here.
41021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41022         Update.
41023
41024         * manual/arith.texi (FP Exceptions): Document that exceptions may
41025         not be raised when matherr is used.
41026         (Math Error Reporting): Document overflow in directed rounding
41027         modes.  Document that errno may not be set when finite values are
41028         returned on overflow.  Document intent to set errno on underflow
41029         only for underflow to zero.
41030
41031         [BZ #16271]
41032         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41033         round-to-nearest then adjust result for other rounding modes.
41034         * include/fenv.h (fegetround): Use libm_hidden_proto.
41035         * math/fegetround.c (fegetround): Use libm_hidden_def.
41036         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41037         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41038         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41039         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41040         Likewise.
41041         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41042         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41043         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41044         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41045
41046 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41047
41048         [BZ #16077]
41049         * nss/Versions (libnss_files): Add
41050         _nss_files_gethostbyname3_r.
41051         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41052         New function.
41053         (HOST_DB_LOOKUP): Remove macro.
41054         (_nss_files_gethostbyname_r): Implement function without the
41055         HOST_DB_LOOKUP macro.
41056         (_nss_files_gethostbyname2_r): Likewise.
41057
41058 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41059
41060         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41061
41062 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41063
41064         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41065         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41066         warning.
41067
41068 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41069
41070         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41071         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41072         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41073         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41074         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41075         __fe_nomask_env_priv and attribute_hidden.
41076         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41077         (libc_feupdateenv_test_ppc): Likewise.
41078         (libc_feresetround_ppc): Likewise.
41079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41080         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41081         compat_symbol macro.
41082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41083         (__fe_nomask_env): Likewise.
41084         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41085
41086 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41087
41088         * string/Makefile: Remove ifunc tests.
41089         * string/test-string.h: Define TEST_IFUNC.
41090         * string/test-bcopy-ifunc.c: Remove.
41091         * string/test-bzero-ifunc.c: Likewise.
41092         * string/test-memccpy-ifunc.c: Likewise.
41093         * string/test-memchr-ifunc.c: Likewise.
41094         * string/test-memcmp-ifunc.c: Likewise.
41095         * string/test-memcpy-ifunc.c: Likewise.
41096         * string/test-memmem-ifunc.c: Likewise.
41097         * string/test-memmove-ifunc.c: Likewise.
41098         * string/test-mempcpy-ifunc.c: Likewise.
41099         * string/test-memrchr-ifunc.c: Likewise.
41100         * string/test-memset-ifunc.c: Likewise.
41101         * string/test-rawmemchr-ifunc.c: Likewise.
41102         * string/test-stpcpy-ifunc.c: Likewise.
41103         * string/test-stpncpy-ifunc.c: Likewise.
41104         * string/test-strcasecmp-ifunc.c: Likewise.
41105         * string/test-strcasestr-ifunc.c: Likewise.
41106         * string/test-strcat-ifunc.c: Likewise.
41107         * string/test-strchr-ifunc.c: Likewise.
41108         * string/test-strchrnul-ifunc.c: Likewise.
41109         * string/test-strcmp-ifunc.c: Likewise.
41110         * string/test-strcpy-ifunc.c: Likewise.
41111         * string/test-strcspn-ifunc.c: Likewise.
41112         * string/test-strlen-ifunc.c: Likewise.
41113         * string/test-strncasecmp-ifunc.c: Likewise.
41114         * string/test-strncat-ifunc.c: Likewise.
41115         * string/test-strncmp-ifunc.c: Likewise.
41116         * string/test-strncpy-ifunc.c: Likewise.
41117         * string/test-strnlen-ifunc.c: Likewise.
41118         * string/test-strpbrk-ifunc.c: Likewise.
41119         * string/test-strrchr-ifunc.c: Likewise.
41120         * string/test-strspn-ifunc.c: Likewise.
41121         * string/test-strstr-ifunc.c: Likewise.
41122
41123 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41124
41125         * benchtests/Makefile: Remove ifunc tests.
41126         * benchtests/bench-string.h: Define TEST_IFUNC.
41127         * benchtests/bench-bcopy-ifunc.c: Remove.
41128         * benchtests/bench-bzero-ifunc.c: Likewise.
41129         * benchtests/bench-memccpy-ifunc.c: Likewise.
41130         * benchtests/bench-memchr-ifunc.c: Likewise.
41131         * benchtests/bench-memcmp-ifunc.c: Likewise.
41132         * benchtests/bench-memcpy-ifunc.c: Likewise.
41133         * benchtests/bench-memmem-ifunc.c: Likewise.
41134         * benchtests/bench-memmove-ifunc.c: Likewise.
41135         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41136         * benchtests/bench-memrchr-ifunc.c: Likewise.
41137         * benchtests/bench-memset-ifunc.c: Likewise.
41138         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41139         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41140         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41141         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41142         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41143         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41144         * benchtests/bench-strcat-ifunc.c: Likewise.
41145         * benchtests/bench-strchr-ifunc.c: Likewise.
41146         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41147         * benchtests/bench-strcmp-ifunc.c: Likewise.
41148         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41149         * benchtests/bench-strcpy-ifunc.c: Likewise.
41150         * benchtests/bench-strcspn-ifunc.c: Likewise.
41151         * benchtests/bench-strlen-ifunc.c: Likewise.
41152         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41153         * benchtests/bench-strncat-ifunc.c: Likewise.
41154         * benchtests/bench-strncmp-ifunc.c: Likewise.
41155         * benchtests/bench-strncpy-ifunc.c: Likewise.
41156         * benchtests/bench-strnlen-ifunc.c: Likewise.
41157         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41158         * benchtests/bench-strrchr-ifunc.c: Likewise.
41159         * benchtests/bench-strsep-ifunc.c: Likewise.
41160         * benchtests/bench-strspn-ifunc.c: Likewise.
41161         * benchtests/bench-strstr-ifunc.c: Likewise.
41162
41163 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41164
41165         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41166
41167 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41168
41169         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41170         * rt/aio.h: Likewise.
41171         * sysdeps/gnu/bits/utmp.h: Likewise.
41172         * sysdeps/gnu/bits/utmpx.h: Likewise.
41173         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41174         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41175         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41176         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41177         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41178         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41179         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41180         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41181         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41182         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41183         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41184         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41185         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41187         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41188         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41189         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41190         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41191         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41192         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41193         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41194         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41195         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41196         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41197         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41198         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41199         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41200         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41201         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41202         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41203         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41204         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41205         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41206         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41207         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41208         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41209         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41210         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41211         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41212         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41213         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41214         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41215
41216 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41217
41218         [BZ #16245]
41219         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41220         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41221
41222 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41223
41224         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41225         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41226         Likewise.
41227
41228 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41229
41230         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41231         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41232         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41233         (__fesetround): Remove define.
41234         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41235         rounding and exceptions handling.
41236         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41237         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41238         (__fe_nomask_env): Likewise.
41239         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41240         __fegetround instead of fegetround.
41241         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41242         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41243
41244 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41245
41246         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41247         it's there.
41248
41249         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41250
41251 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41252
41253         [BZ #11157]
41254         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41255         (encrypt_r): Likewise.
41256         * malloc/obstack.h (obstack_free): Likewise.
41257         * posix/unistd.h (encrypt): Likewise.
41258
41259 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41260
41261         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41262         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41263         DL_CALL_DT_FINI() that call the functions directly.
41264         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41265         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41266         * elf/dl-fini.c: Likewise.
41267
41268 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41269
41270         * malloc/hooks.c (memalign_check): Add alignment rounding.
41271         * malloc/malloc.c (_mid_memalign): New function.
41272         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41273         Implement by calling _mid_memalign.
41274         * manual/probes.texi (Memory Allocation Probes): Remove
41275         memory_valloc_retry and memory_pvalloc_retry.
41276
41277 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41278
41279         * locale/programs/locarchive.c (open_archive): Add const
41280         qualifier to ARCHIVEFNAME and copy default fname to
41281         DEFAULT_FNAME.
41282
41283         [BZ #15601]
41284         * libio/tst-widetext.input: Rename Oriya to Odia.
41285         * locale/iso-639.def: Likewise.
41286
41287         * manual/probes.texi (Mathematical Function Probes): Add
41288         documentation for sin, cos, asin and acos probes.
41289         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41290         (__sin32): Add slowasin probe.
41291         (__cos32): Add slowacos probe.
41292         (__mpsin): Add slowsin probe.
41293         (__mpcos): Add slowcos probe.
41294
41295 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41296
41297         [BZ #15483]
41298         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41299         thread-local __sim_exceptions_thread and global
41300         __sim_exceptions_global.
41301         (__sim_disabled_exceptions): Change to thread-local
41302         __sim_disabled_exceptions_thread and global
41303         __sim_disabled_exceptions_global.
41304         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41305         and global __sim_round_mode_global.
41306         (__simulate_exceptions): Use thread-local floating-point state and
41307         set global state from it as needed.
41308         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41309         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41310         __sim_round_mode_thread.
41311         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41312         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41313         and global __sim_exceptions_global.
41314         (__sim_disabled_exceptions): Change to thread-local
41315         __sim_disabled_exceptions_thread and global
41316         __sim_disabled_exceptions_global.
41317         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41318         and global __sim_round_mode_global.
41319         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41320         (SIM_SET_GLOBAL): Likewise.
41321         * sysdeps/powerpc/soft-fp/sfp-machine.h
41322         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41323         __sim_round_mode_thread.
41324         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41325         __sim_disabled_exceptions_thread.
41326         (__sim_exceptions): Change to __sim_exceptions_thread.
41327         (__sim_disabled_exceptions): Change to
41328         __sim_disabled_exceptions_thread.
41329         (__sim_round_mode): Change to __sim_round_mode_thread.
41330         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41331         thread-local floating-point state and set global state from it as
41332         needed.
41333         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41334         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41335         (__sim_disabled_exceptions): Remove extern declaration.
41336         (feenableexcept): Use thread-local floating-point state and set
41337         global state from it as needed.
41338         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41339         extern declaration.
41340         (__sim_disabled_exceptions): Likewise.
41341         (__sim_round_mode): Likewise.
41342         (__fegetenv): Use thread-local floating-point state.
41343         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41344         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41345         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41346         floating-point state and set global state from it as needed.
41347         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41348         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41349         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41350         Likewise.
41351         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41352         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41353         Likewise.
41354         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41355         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41356         Use __sim_round_mode_thread.
41357         * math/test-fenv-tls.c: New file.
41358         * math/Makefile (tests): Add test-fenv-tls.
41359         ($(objpfx)test-fenv-tls): Depend on
41360         $(common-objpfx)nptl/libpthread.so.
41361
41362 2013-11-19  Andreas Schwab  <schwab@suse.de>
41363
41364         * locale/programs/locale.c (show_info): Decode wordarray elements.
41365         * locale/categories.def (LC_MONETARY): Add element for
41366         _NL_MONETARY_CRNCYSTR.
41367         * locale/C-monetary.c (conversion_rate): New variable.
41368         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41369         element.
41370
41371 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41372
41373         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41374         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41375
41376 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41377
41378         * elf/Makefile (tst-auxv): New test.
41379         * elf/tst-auxv.c: New
41380         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41381
41382 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41383
41384         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41385         (hidden_proto): Caller changed.
41386         (hidden_tls_proto): New macro.
41387         (libc_hidden_tls_proto): Likewise.
41388         (rtld_hidden_tls_proto): Likewise.
41389         (libm_hidden_tls_proto): Likewise.
41390         (libresolv_hidden_tls_proto): Likewise.
41391         (librt_hidden_tls_proto): Likewise.
41392         (libdl_hidden_tls_proto): Likewise.
41393         (libnss_files_hidden_tls_proto): Likewise.
41394         (libnsl_hidden_tls_proto): Likewise.
41395         (libnss_nisplus_hidden_tls_proto): Likewise.
41396         (libutil_hidden_tls_proto): Likewise.
41397
41398 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41399
41400         [BZ #10253]
41401         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41402         (decompose_rpath): Defer expansion to fillin_rpath.
41403         (_dl_init_paths): Pass linkmap to fillin_rpath.
41404
41405 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41406
41407         * benchtests/Makefile: Add strsep.
41408         * benchtests/bench-strsep.c: New file: strsep benchtest.
41409         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41410
41411 2013-11-18  Andreas Schwab  <schwab@suse.de>
41412
41413         * locale/programs/locale.c (show_info) [case byte]: Check for
41414         '\377' instead of '\177'.
41415         * locale/C-monetary.c (not_available): Always use "\377".
41416         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41417         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41418         detect unavailable sign_posn locale elements.
41419         * locale/localeconv.c (__localeconv): For grouping and
41420         mon_grouping handle "\177" and "\377" like no grouping.
41421         (INT_ELEM): New macro.  Use it to set all numeric members.
41422         * locale/programs/ld-monetary.c (monetary_read)
41423         <tok_mon_grouping>: Normalize single -1 to the empty string.
41424         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41425         Likewise.
41426
41427 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41428
41429         [BZ #16055]
41430         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41431         when we match (nil).
41432         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41433
41434 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41435
41436         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41437         (NO_TEST_INLINE): Update value.
41438         (ERRNO_UNCHANGED): Likewise.
41439         (ERRNO_EDOM): Likewise.
41440         (ERRNO_ERANGE): Likewise.
41441         (IGNORE_RESULT): Likewise.
41442         (check_float_internal): Check signs of NaN results if
41443         TEST_NAN_SIGN used.
41444         (check_complex): Pass TEST_NAN_SIGN flag through to second
41445         check_float_internal call.
41446         (copysign_test_data): Add tests with quiet NaNs as second
41447         argument.  Use TEST_NAN_SIGN.
41448         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41449         TEST_NAN_SIGN.
41450         (signbit_test_data): Add tests of quiet NaN argument.
41451         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41452
41453         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41454         $ignore_result.
41455         (parse_args): Handle function results specified as IGNORE.
41456         * math/libm-test.inc (IGNORE_RESULT): New macro.
41457         (check_float_internal): Do not check numerical result if flag
41458         IGNORE_RESULT set.
41459         (check_complex): Pass through IGNORE_RESULT to second
41460         check_float_internal call.
41461         (check_int): Do not check numerical result if flag IGNORE_RESULT
41462         set.
41463         (check_long): Likewise.
41464         (check_bool): Likewise.
41465         (check_longlong): Likewise.
41466         (lrint_test_data): Add tests of infinite and NaN arguments.
41467         (lrint_tonearest_test_data): Likewise.
41468         (lrint_towardzero_test_data): Likewise.
41469         (lrint_downward_test_data): Likewise.
41470         (lrint_upward_test_data): Likewise.
41471         (llrint_test_data): Likewise.
41472         (llrint_tonearest_test_data): Likewise.
41473         (llrint_towardzero_test_data): Likewise.
41474         (llrint_downward_test_data): Likewise.
41475         (llrint_upward_test_data): Likewise.
41476         (lround_test_data): Likewise.
41477         (llround_test_data): Likewise.
41478
41479         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41480         (ERRNO_UNCHANGED): Update value.
41481         (ERRNO_EDOM): Likewise.
41482         (ERRNO_ERANGE): Likewise.
41483         (NO_TEST_INLINE_FLOAT): New macro.
41484         (NO_TEST_INLINE_DOUBLE): Likewise.
41485         (enable_test): New function.
41486         (RUN_TEST_f_f): Check enable_test before running test.
41487         (RUN_TEST_2_f): Likewise.
41488         (RUN_TEST_fff_f): Likewise.
41489         (RUN_TEST_c_f): Likewise.
41490         (RUN_TEST_f_f1): Likewise.
41491         (RUN_TEST_fF_f1): Likewise.
41492         (RUN_TEST_fI_f1): Likewise.
41493         (RUN_TEST_ffI_f1): Likewise.
41494         (RUN_TEST_c_c): Likewise.
41495         (RUN_TEST_cc_c): Likewise.
41496         (RUN_TEST_f_i): Likewise.
41497         (RUN_TEST_f_i_tg): Likewise.
41498         (RUN_TEST_ff_i_tg): Likewise.
41499         (RUN_TEST_f_b): Likewise.
41500         (RUN_TEST_f_b_tg): Likewise.
41501         (RUN_TEST_f_l): Likewise.
41502         (RUN_TEST_f_L): Likewise.
41503         (RUN_TEST_fFF_11): Likewise.
41504         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41505         conditionals.
41506         (cosh_test_data): Likewise.
41507         (exp_test_data): Likewise.
41508         (expm1_test_data): Likewise.
41509         (hypot_test_data): Likewise.
41510         (pow_test_data): Likewise.
41511         (sinh_test_data): Likewise.
41512         (tanh_test_data): Likewise.
41513         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41514         flags argument.
41515
41516         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41517         tests with quiet NaN input and output.
41518         (acosh_test_data): Likewise.
41519         (asin_test_data): Likewise.
41520         (asinh_test_data): Likewise.
41521         (atan_test_data): Likewise.
41522         (atanh_test_data): Likewise.
41523         (atan2_test_data): Likewise.
41524         (cbrt_test_data): Likewise.
41525         (cos_test_data): Likewise.
41526         (cosh_test_data): Likewise.
41527         (erf_test_data): Likewise.
41528         (erfc_test_data): Likewise.
41529         (exp_test_data): Likewise.
41530         (exp10_test_data): Likewise.
41531         (exp2_test_data): Likewise.
41532         (expm1_test_data): Likewise.
41533         (hypot_test_data): Likewise.
41534         (j0_test_data): Likewise.
41535         (j1_test_data): Likewise.
41536         (jn_test_data): Likewise.
41537         (lgamma_test_data): Likewise.
41538         (log_test_data): Likewise.
41539         (log10_test_data): Likewise.
41540         (log1p_test_data): Likewise.
41541         (log2_test_data): Likewise.
41542         (pow_test_data): Likewise.
41543         (scalb_test_data): Likewise.
41544         (sin_test_data): Likewise.
41545         (sincos_test_data): Likewise.
41546         (sinh_test_data): Likewise.
41547         (tan_test_data): Likewise.
41548         (tanh_test_data): Likewise.
41549         (tgamma_test_data): Likewise.
41550         (y0_test_data): Likewise.
41551         (y1_test_data): Likewise.
41552         (yn_test_data): Likewise.
41553
41554         [BZ #16167]
41555         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41556         argument being NaN and avoid computations with second argument in
41557         that case.
41558         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41559         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41560         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41561
41562 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41563
41564         * locale/iso-639.def: Add Chitwani Tharu (the).
41565
41566 2013-11-14  Andreas Schwab  <schwab@suse.de>
41567
41568         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41569         word instead of empty string.
41570
41571 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41572
41573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41574         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41576         (__fe_nomask_env): Likewise.
41577
41578 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41579
41580         * benchtests/bench-timing.h: Include time.h.
41581
41582 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41583
41584         [BZ #15997]
41585         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41586         to 3.4.0 for x32.
41587         * sysdeps/unix/sysv/linux/configure: Regenerated.
41588
41589 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41590
41591         [BZ #16151]
41592         * stdlib/strtod_l.c (round_and_return): Do not consider
41593         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41594         exponent one less than half the least subnormal exponent.
41595         * stdlib/test-strtod-round-data: Add more tests.
41596         * stdlib/tst-strtod-round.c (tests): Regenerated.
41597
41598 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41599
41600         [BZ #14143]
41601         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41602         (__fe_mask_env): Likewise.
41603         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41604         libm_hidden_proto and add function prototype.
41605         (__fe_mask_env): Add function prototype.
41606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41607         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41609         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41611         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41612
41613 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41614
41615         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41616         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41617
41618 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41619
41620         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41621         of htab_find_slot().
41622
41623 2013-11-11  David S. Miller  <davem@davemloft.net>
41624
41625         [BZ #16150]
41626         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41627         symbol in the non-vis3 case in static builds.
41628         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41629         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41630         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41631         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41632
41633 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41634
41635         [BZ #387]
41636         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41637         it is empty.
41638
41639 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41640
41641         * benchtests/Makefile: Add bench-strtod.
41642         * benchtests/bench-strtod.c: New file: strtod benchtest
41643
41644 2013-11-11  Andreas Schwab  <schwab@suse.de>
41645
41646         [BZ #16153]
41647         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41648         terminating NUL in key length.
41649
41650 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41651
41652         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41653         Add artificial ODP entry for vDSO symbol for PPC64.
41654         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41655         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41656
41657 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41658
41659         [BZ #15374]
41660         * nss/getent.c (services_keys): Recognize services starting with digit.
41661
41662 2013-11-06  David S. Miller  <davem@davemloft.net>
41663
41664         [BZ #15985]
41665         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41666         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41667
41668 2013-11-06  Will Newton  <will.newton@linaro.org>
41669
41670         * manual/memory.texi (Malloc Examples): Remove register
41671         keyword from examples.
41672
41673 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41674
41675         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41676
41677 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41678
41679         [BZ #6981]
41680         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41681         depending on [__GCC_IEC_559 > 0].
41682         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41683         depending on [__GCC_IEC_559_COMPLEX > 0].
41684
41685 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41686
41687         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41688         to iso-639.def.
41689
41690 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41691
41692         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41693
41694 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41695
41696         [BZ #16112]
41697         * malloc/malloc (malloc_info): Do not handle first bin as
41698         special case.
41699
41700 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41701
41702         * locale/iso-639.def: Add Central Nahuatl (nhn).
41703
41704 2013-11-01  Bruno Haible  <bruno@clisp.org>
41705
41706         [BZ #7003]
41707         * manual/math.texi (BSD Random): Specify range upper bound as
41708         in POSIX.
41709
41710 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41711
41712         * locale/iso-639.def: Add Meadow Mari (mhr).
41713
41714 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41715
41716         [BZ #14752], [BZ #15763]
41717         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41718         Validate name.
41719         * rt/tst_shm.c: Add test for escaping directory.
41720
41721 2013-10-31  Andreas Schwab  <schwab@suse.de>
41722
41723         [BZ #15917]
41724         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41725         followed by 'x' as part of digit sequence.
41726         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41727
41728 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41729
41730         [BZ #16037]
41731         * configure.ac: allow GNU Make 4.0 and greater.
41732         * configure: Regenerated.
41733
41734 2013-10-30  Will Newton  <will.newton@linaro.org>
41735
41736         [BZ #16038]
41737         * malloc/hooks.c (memalign_check): Limit alignment to the
41738         maximum representable power of two.
41739         * malloc/malloc.c (__libc_memalign): Likewise.
41740         * malloc/tst-memalign.c (do_test): Add test for very
41741         large alignment values.
41742         * malloc/tst-posix_memalign.c (do_test): Likewise.
41743
41744 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41745
41746         [BZ #11087]
41747         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41748         (munmap_chunk): Likewise.
41749         (mremap_chunk): Likewise.
41750
41751 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41752
41753         [BZ #15799]
41754         * stdlib/div.c (div): Remove obsolete code.
41755         * stdlib/ldiv.c (ldiv): Likewise.
41756         * stdlib/lldiv.c (lldiv): Likewise.
41757
41758 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41759
41760         [BZ #16071]
41761         * nss/nss_files/files-XXX.c (get_contents_ret): New
41762         enumerator.
41763         (get_contents): New function.
41764         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41765
41766 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41767
41768         * configure.in: Moved to ...
41769         * configure.ac: ... here. Change reference to configure.in
41770         to configure.ac.
41771         * sysdeps/arm/preconfigure.ac: ... here.
41772         configure.in to configure.ac.
41773         * sysdeps/gnu/configure.in: Moved to ...
41774         * sysdeps/gnu/configure.ac: ... here.
41775         * sysdeps/i386/configure.in: Moved to ...
41776         * sysdeps/i386/configure.ac: ... here.
41777         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41778         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41779         * sysdeps/mach/configure.in: Moved to ...
41780         * sysdeps/mach/configure.ac: ... here.
41781         * sysdeps/mach/hurd/configure.in: Moved to ...
41782         * sysdeps/mach/hurd/configure.ac: ... here.
41783         * sysdeps/powerpc/configure.in: Moved to ...
41784         * sysdeps/powerpc/configure.ac: ... here.
41785         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41786         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41787         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41788         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41789         * sysdeps/s390/s390-32/configure.in: Moved to ...
41790         * sysdeps/s390/s390-32/configure.ac: ... here.
41791         * sysdeps/s390/s390-64/configure.in: Moved to ...
41792         * sysdeps/s390/s390-64/configure.ac: ... here.
41793         * sysdeps/sh/configure.in: Moved to ...
41794         * sysdeps/sh/configure.ac: ... here.
41795         * sysdeps/sparc/configure.in: Moved to ...
41796         * sysdeps/sparc/configure.ac: ... here.
41797         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41798         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41799         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41800         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41801         * sysdeps/x86_64/configure.in: Moved to ...
41802         * sysdeps/x86_64/configure.ac: ... here.
41803         * sysdeps/x86_64/preconfigure.in: Moved to ...
41804         * sysdeps/x86_64/preconfigure.ac: ... here.
41805         * aclocal.m4: Change reference to configure.in to configure.ac.
41806         * config.h.in: Likewise.
41807         * manual/install.texi: Likewise.
41808         * manual/maint.texi: Likewise.
41809         * Makefile: Likewise.
41810         * malloc/Makefile: Likewise.
41811         * nscd/Makefile: Likewise.
41812         * Makeconfig: Change reference to configure.in and
41813         preconfigure.in to configure.ac and preconfigure.ac
41814         respectively.
41815         * INSTALL: Regenerated.
41816         * configure: Likewise.
41817         * sysdeps/gnu/configure: Likewise.
41818         * sysdeps/i386/configure: Likewise.
41819         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41820         * sysdeps/mach/configure: Likewise.
41821         * sysdeps/mach/hurd/configure: Likewise.
41822         * sysdeps/powerpc/configure: Likewise.
41823         * sysdeps/powerpc/powerpc32/configure: Likewise.
41824         * sysdeps/powerpc/powerpc64/configure: Likewise.
41825         * sysdeps/s390/s390-32/configure: Likewise.
41826         * sysdeps/s390/s390-64/configure: Likewise.
41827         * sysdeps/sh/configure: Likewise.
41828         * sysdeps/sparc/configure: Likewise.
41829         * sysdeps/unix/sysv/linux/configure: Likewise.
41830         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41831         * sysdeps/x86_64/configure: Likewise.
41832         * sysdeps/x86_64/preconfigure: Likewise.
41833
41834 2013-10-29  Andreas Schwab  <schwab@suse.de>
41835
41836         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41837
41838 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41839
41840         * benchtests/pow-inputs: Add new inputs.
41841
41842         * benchtests/exp-inputs: Add new inputs.
41843
41844         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
41845         conditional check for return value.
41846         (__cos32): Likewise.
41847
41848 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41849
41850         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
41851         to provide a boost for large inputs with word alignment.
41852         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
41853         implementation based on optimized PPC64 strcpy.
41854         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
41855         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
41856         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
41857         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
41858
41859 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41860
41861         [BZ #2801]
41862         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
41863
41864 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41865
41866         [BZ #14876]
41867         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
41868         * time/tst-strptime.c (day_tests): Add testcase.
41869
41870 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41871
41872         [BZ #14029]
41873         * manual/pattern.texi: Acknowledge that fnmatch can fail.
41874
41875 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
41876
41877         [BZ #16074]
41878         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
41879         MAP_FAILED on error.
41880
41881 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
41882
41883         [BZ #16072]
41884         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
41885         heap for large requests.
41886
41887 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
41888
41889         [BZ #9954]
41890         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
41891         result if the result has no associated interface.
41892         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
41893         interface for all 127.X.Y.Z addresses.
41894
41895 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
41896
41897         * locale/iso-639.def: Add Ligurian (lij)
41898
41899 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
41900
41901         [BZ #15825]
41902         * sunrpc/rpc_main.c: Document rpcgen -5.
41903
41904 2013-10-19  Michael Stahl  <mstahl@redhat.com>
41905
41906         * elf/rtld.c (do_preload): Print the reason why preloading failed.
41907
41908 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41909
41910         [BZ #10278]
41911         * posix/glob.c: Match only directories when trailing slash is present.
41912         * posix/tst-gnuglob.c (my_opendir): Do not open files.
41913         (main): Add testcase.
41914
41915 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41916
41917         [BZ #15670]
41918         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
41919
41920 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
41921
41922         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
41923         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
41924         AUTH_DES and cindex for FIPS 140-2.
41925         (DES Encryption): Add cindex FIPS 46-3.
41926
41927         * locale/locarchive.h (struct locarhandle): Add fname.
41928         * locale/programs/localedef.c (main): Pass ARGV[remaining]
41929         if an optional argument was specified to --list-archive,
41930         otherwise NULL.
41931         * locale/programs/locarchive.c (show_archive_content): Take new
41932         argument fname and pass it via ah.fname to open_archive.
41933         * locale/programs/localedef.h: Update decl.
41934         (open_archive): If AH->fname is non-null, open that file
41935         rather than the default file name, and don't ignore ENOENT.
41936         (create_archive): Set AH.fname to NULL.
41937         (delete_locales_from_archive): Likewise.
41938         (add_locales_to_archive): Likewise.
41939         * locale/programs/locfile.c (write_all_categories): Likewise.
41940
41941 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
41942             Aldy Hernandez  <aldyh@redhat.com>
41943
41944         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
41945         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
41946         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
41947         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
41948         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
41949         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
41950         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
41951         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
41952         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
41953         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
41954         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
41955         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
41956         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
41957         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
41958         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
41959         Likewise.
41960         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
41961         Likewise.
41962         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
41963         Likewise.
41964         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
41965         Likewise.
41966         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
41967         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
41968         Likewise.
41969         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
41970         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
41971         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
41972         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
41973         Likewise.
41974         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
41975         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
41976         * sysdeps/powerpc/preconfigure: Likewise.
41977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
41978         Likewise.
41979         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
41980         Replace contents of file by #include of <fenv_libc.h>.
41981         * sysdeps/powerpc/soft-fp/sfp-machine.h
41982         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
41983         and <sys/prctl.h>.
41984         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
41985         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
41986         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
41987         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
41988         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
41989         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
41990         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
41991         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
41992         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
41993         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
41994         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
41995         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
41996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
41997         Allow copysignl PLT reference to be missing.
41998
41999 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42000             Joseph Myers  <joseph@codesourcery.com
42001
42002         [BZ #15948]
42003         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42004         single character.
42005         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42006
42007 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42008
42009         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42010         * elf/tst-tls1.c: Likewise.
42011         * elf/tst-tls10.h: Likewise.
42012         * elf/tst-tls14.c: Likewise.
42013         * elf/tst-tls2.c: Likewise.
42014         * elf/tst-tls3.c: Likewise.
42015         * elf/tst-tls4.c: Likewise.
42016         * elf/tst-tls5.c: Likewise.
42017         * elf/tst-tls6.c: Likewise.
42018         * elf/tst-tls7.c: Likewise.
42019         * elf/tst-tls8.c: Likewise.
42020         * elf/tst-tls9.c: Likewise.
42021         * elf/tst-tlsmod1.c: Likewise.
42022         * elf/tst-tlsmod13.c: Likewise.
42023         * elf/tst-tlsmod13a.c: Likewise.
42024         * elf/tst-tlsmod14a.c: Likewise.
42025         * elf/tst-tlsmod16a.c: Likewise.
42026         * elf/tst-tlsmod16b.c: Likewise.
42027         * elf/tst-tlsmod2.c: Likewise.
42028         * elf/tst-tlsmod3.c: Likewise.
42029         * elf/tst-tlsmod4.c: Likewise.
42030         * elf/tst-tlsmod5.c: Likewise.
42031         * elf/tst-tlsmod6.c: Likewise.
42032
42033 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42034
42035         [BZ #12486]
42036         * malloc/malloc.c: remove checks for statistics.
42037
42038 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42039
42040         [BZ #15277]
42041         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42042         * inet/tst-network.c: Add testcase.
42043
42044 2013-10-17  Andreas Schwab  <schwab@suse.de>
42045
42046         [BZ #15218]
42047         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42048         to determine canonical name.
42049
42050 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42051
42052         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42053         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42054         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42055         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42056         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42057         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42058         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42059         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42060         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42061         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42062         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42063         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42064         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42065         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42066         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42067         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42068         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42069         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42070         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42071         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42072         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42073         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42074         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42075         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42076         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42077         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42078         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42079         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42080         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42081         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42082         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42083         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42084         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42085         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42086         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42087         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42088         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42089         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42090         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42091         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42092         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42093         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42094         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42095         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42096         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42097         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42098         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42099         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42100         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42101         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42102         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42103         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42104         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42105         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42106         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42107         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42108         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42109         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42110
42111 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42112
42113         [BZ #16041]
42114         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42115         make result into a quiet NaN.
42116
42117 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42118
42119         * soft-fp/adddf3.c: Fix horizontal whitespace.
42120         * soft-fp/addsf3.c: Likewise.
42121         * soft-fp/addtf3.c: Likewise.
42122         * soft-fp/divdf3.c: Likewise.
42123         * soft-fp/divsf3.c: Likewise.
42124         * soft-fp/divtf3.c: Likewise.
42125         * soft-fp/double.h: Likewise.
42126         * soft-fp/eqdf2.c: Likewise.
42127         * soft-fp/eqsf2.c: Likewise.
42128         * soft-fp/eqtf2.c: Likewise.
42129         * soft-fp/extenddftf2.c: Likewise.
42130         * soft-fp/extended.h: Likewise.
42131         * soft-fp/extendsfdf2.c: Likewise.
42132         * soft-fp/extendsftf2.c: Likewise.
42133         * soft-fp/extendxftf2.c: Likewise.
42134         * soft-fp/fixdfdi.c: Likewise.
42135         * soft-fp/fixdfsi.c: Likewise.
42136         * soft-fp/fixdfti.c: Likewise.
42137         * soft-fp/fixsfdi.c: Likewise.
42138         * soft-fp/fixsfsi.c: Likewise.
42139         * soft-fp/fixsfti.c: Likewise.
42140         * soft-fp/fixtfdi.c: Likewise.
42141         * soft-fp/fixtfsi.c: Likewise.
42142         * soft-fp/fixtfti.c: Likewise.
42143         * soft-fp/fixunsdfdi.c: Likewise.
42144         * soft-fp/fixunsdfsi.c: Likewise.
42145         * soft-fp/fixunsdfti.c: Likewise.
42146         * soft-fp/fixunssfdi.c: Likewise.
42147         * soft-fp/fixunssfsi.c: Likewise.
42148         * soft-fp/fixunssfti.c: Likewise.
42149         * soft-fp/fixunstfdi.c: Likewise.
42150         * soft-fp/fixunstfsi.c: Likewise.
42151         * soft-fp/fixunstfti.c: Likewise.
42152         * soft-fp/floatdidf.c: Likewise.
42153         * soft-fp/floatdisf.c: Likewise.
42154         * soft-fp/floatditf.c: Likewise.
42155         * soft-fp/floatsidf.c: Likewise.
42156         * soft-fp/floatsisf.c: Likewise.
42157         * soft-fp/floatsitf.c: Likewise.
42158         * soft-fp/floattidf.c: Likewise.
42159         * soft-fp/floattisf.c: Likewise.
42160         * soft-fp/floattitf.c: Likewise.
42161         * soft-fp/floatundidf.c: Likewise.
42162         * soft-fp/floatundisf.c: Likewise.
42163         * soft-fp/floatunditf.c: Likewise.
42164         * soft-fp/floatunsidf.c: Likewise.
42165         * soft-fp/floatunsisf.c: Likewise.
42166         * soft-fp/floatunsitf.c: Likewise.
42167         * soft-fp/floatuntidf.c: Likewise.
42168         * soft-fp/floatuntisf.c: Likewise.
42169         * soft-fp/floatuntitf.c: Likewise.
42170         * soft-fp/fmadf4.c: Likewise.
42171         * soft-fp/fmasf4.c: Likewise.
42172         * soft-fp/fmatf4.c: Likewise.
42173         * soft-fp/gedf2.c: Likewise.
42174         * soft-fp/gesf2.c: Likewise.
42175         * soft-fp/getf2.c: Likewise.
42176         * soft-fp/ledf2.c: Likewise.
42177         * soft-fp/lesf2.c: Likewise.
42178         * soft-fp/letf2.c: Likewise.
42179         * soft-fp/muldf3.c: Likewise.
42180         * soft-fp/mulsf3.c: Likewise.
42181         * soft-fp/multf3.c: Likewise.
42182         * soft-fp/negdf2.c: Likewise.
42183         * soft-fp/negsf2.c: Likewise.
42184         * soft-fp/negtf2.c: Likewise.
42185         * soft-fp/op-1.h: Likewise.
42186         * soft-fp/op-2.h: Likewise.
42187         * soft-fp/op-4.h: Likewise.
42188         * soft-fp/op-8.h: Likewise.
42189         * soft-fp/op-common.h: Likewise.
42190         * soft-fp/quad.h: Likewise.
42191         * soft-fp/single.h: Likewise.
42192         * soft-fp/soft-fp.h: Likewise.
42193         * soft-fp/sqrtdf2.c: Likewise.
42194         * soft-fp/sqrtsf2.c: Likewise.
42195         * soft-fp/sqrttf2.c: Likewise.
42196         * soft-fp/subdf3.c: Likewise.
42197         * soft-fp/subsf3.c: Likewise.
42198         * soft-fp/subtf3.c: Likewise.
42199         * soft-fp/truncdfsf2.c: Likewise.
42200         * soft-fp/trunctfdf2.c: Likewise.
42201         * soft-fp/trunctfsf2.c: Likewise.
42202         * soft-fp/trunctfxf2.c: Likewise.
42203         * soft-fp/unorddf2.c: Likewise.
42204         * soft-fp/unordsf2.c: Likewise.
42205         * soft-fp/unordtf2.c: Likewise.
42206
42207 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42208
42209         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42210         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42211
42212 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42213
42214         * elf/dl-libc.c: Clear initfini list after freeing.
42215
42216 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42217
42218         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42219         * soft-fp/addsf3.c: Likewise.
42220         * soft-fp/addtf3.c: Likewise.
42221         * soft-fp/divdf3.c: Likewise.
42222         * soft-fp/divsf3.c: Likewise.
42223         * soft-fp/divtf3.c: Likewise.
42224         * soft-fp/double.h: Likewise.
42225         * soft-fp/eqdf2.c: Likewise.
42226         * soft-fp/eqsf2.c: Likewise.
42227         * soft-fp/eqtf2.c: Likewise.
42228         * soft-fp/extenddftf2.c: Likewise.
42229         * soft-fp/extended.h: Likewise.
42230         * soft-fp/extendsfdf2.c: Likewise.
42231         * soft-fp/extendsftf2.c: Likewise.
42232         * soft-fp/extendxftf2.c: Likewise.
42233         * soft-fp/fixdfdi.c: Likewise.
42234         * soft-fp/fixdfsi.c: Likewise.
42235         * soft-fp/fixdfti.c: Likewise.
42236         * soft-fp/fixsfdi.c: Likewise.
42237         * soft-fp/fixsfsi.c: Likewise.
42238         * soft-fp/fixsfti.c: Likewise.
42239         * soft-fp/fixtfdi.c: Likewise.
42240         * soft-fp/fixtfsi.c: Likewise.
42241         * soft-fp/fixtfti.c: Likewise.
42242         * soft-fp/fixunsdfdi.c: Likewise.
42243         * soft-fp/fixunsdfsi.c: Likewise.
42244         * soft-fp/fixunsdfti.c: Likewise.
42245         * soft-fp/fixunssfdi.c: Likewise.
42246         * soft-fp/fixunssfsi.c: Likewise.
42247         * soft-fp/fixunssfti.c: Likewise.
42248         * soft-fp/fixunstfdi.c: Likewise.
42249         * soft-fp/fixunstfsi.c: Likewise.
42250         * soft-fp/fixunstfti.c: Likewise.
42251         * soft-fp/floatdidf.c: Likewise.
42252         * soft-fp/floatdisf.c: Likewise.
42253         * soft-fp/floatditf.c: Likewise.
42254         * soft-fp/floatsidf.c: Likewise.
42255         * soft-fp/floatsisf.c: Likewise.
42256         * soft-fp/floatsitf.c: Likewise.
42257         * soft-fp/floattidf.c: Likewise.
42258         * soft-fp/floattisf.c: Likewise.
42259         * soft-fp/floattitf.c: Likewise.
42260         * soft-fp/floatundidf.c: Likewise.
42261         * soft-fp/floatundisf.c: Likewise.
42262         * soft-fp/floatunsidf.c: Likewise.
42263         * soft-fp/floatunsisf.c: Likewise.
42264         * soft-fp/floatuntidf.c: Likewise.
42265         * soft-fp/floatuntisf.c: Likewise.
42266         * soft-fp/floatuntitf.c: Likewise.
42267         * soft-fp/fmadf4.c: Likewise.
42268         * soft-fp/fmasf4.c: Likewise.
42269         * soft-fp/fmatf4.c: Likewise.
42270         * soft-fp/gedf2.c: Likewise.
42271         * soft-fp/gesf2.c: Likewise.
42272         * soft-fp/getf2.c: Likewise.
42273         * soft-fp/ledf2.c: Likewise.
42274         * soft-fp/lesf2.c: Likewise.
42275         * soft-fp/letf2.c: Likewise.
42276         * soft-fp/muldf3.c: Likewise.
42277         * soft-fp/mulsf3.c: Likewise.
42278         * soft-fp/multf3.c: Likewise.
42279         * soft-fp/negdf2.c: Likewise.
42280         * soft-fp/negsf2.c: Likewise.
42281         * soft-fp/negtf2.c: Likewise.
42282         * soft-fp/op-1.h: Likewise.
42283         * soft-fp/op-2.h: Likewise.
42284         * soft-fp/op-4.h: Likewise.
42285         * soft-fp/op-8.h: Likewise.
42286         * soft-fp/op-common.h: Likewise.
42287         * soft-fp/quad.h: Likewise.
42288         * soft-fp/single.h: Likewise.
42289         * soft-fp/soft-fp.h: Likewise.
42290         * soft-fp/sqrtdf2.c: Likewise.
42291         * soft-fp/sqrtsf2.c: Likewise.
42292         * soft-fp/sqrttf2.c: Likewise.
42293         * soft-fp/subdf3.c: Likewise.
42294         * soft-fp/subsf3.c: Likewise.
42295         * soft-fp/subtf3.c: Likewise.
42296         * soft-fp/truncdfsf2.c: Likewise.
42297         * soft-fp/trunctfdf2.c: Likewise.
42298         * soft-fp/trunctfsf2.c: Likewise.
42299         * soft-fp/trunctfxf2.c: Likewise.
42300         * soft-fp/unorddf2.c: Likewise.
42301         * soft-fp/unordsf2.c: Likewise.
42302         * soft-fp/unordtf2.c: Likewise.
42303
42304 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42305
42306         [BZ #15672]
42307         * misc/error.c (error_tail): Fix possible buffer overflow.
42308
42309 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42310
42311         [BZ #13028]
42312         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42313         address.
42314
42315 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42316
42317         [BZ #832]
42318         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42319         testing pipefail option.
42320
42321 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42322
42323         * soft-fp/double.h: Indent preprocessor directives inside #if.
42324         * soft-fp/extended.h: Likewise.
42325         * soft-fp/op-2.h: Likewise.
42326         * soft-fp/op-4.h: Likewise.
42327         * soft-fp/op-common.h: Likewise.
42328         * soft-fp/quad.h: Likewise.
42329         * soft-fp/single.h: Likewise.
42330         * soft-fp/soft-fp.h: Likewise.
42331
42332 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42333
42334         * iconv/iconv_prog.c: Fix typos.
42335         * stdio-common/psiginfo-data.h: Likewise.
42336
42337 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42338
42339         [BZ #15764]
42340         * locale/setlocale.c: Fix typo.
42341
42342 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42343
42344         [BZ #16036]
42345         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42346         signaling NaN arguments.
42347         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42348         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42349
42350         [BZ #14910]
42351         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42352         unordered operands.
42353         * soft-fp/gesf2.c (__gesf2): Likewise.
42354         * soft-fp/getf2.c (__getf2): Likewise.
42355         * soft-fp/ledf2.c (__ledf2): Likewise.
42356         * soft-fp/lesf2.c (__lesf2): Likewise.
42357         * soft-fp/letf2.c (__letf2): Likewise.
42358
42359         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42360         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42361         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42362         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42363         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42364         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42365         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42366         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42367         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42368         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42369         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42370         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42371         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42372         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42373         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42374         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42375         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42376         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42377         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42378         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42379         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42380         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42381         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42382         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42383         * soft-fp/floattidf.c (__floattidf): Likewise.
42384         * soft-fp/floattisf.c (__floattisf): Likewise.
42385         * soft-fp/floattitf.c (__floattitf): Likewise.
42386         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42387         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42388         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42389         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42390         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42391         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42392         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42393         * soft-fp/gesf2.c (__gesf2): Likewise.
42394         * soft-fp/getf2.c (__getf2): Likewise.
42395         * soft-fp/ledf2.c (__ledf2): Likewise.
42396         * soft-fp/lesf2.c (__lesf2): Likewise.
42397         * soft-fp/letf2.c (__letf2): Likewise.
42398
42399         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42400         Undefine and redefine.
42401         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42402         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42403         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42404         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42405         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42406         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42407         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42408         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42409         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42410         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42411         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42412         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42413         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42414         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42415         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42416
42417         [BZ #16032]
42418         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42419         without decrementing exponent if mantissa >= that for the
42420         denominator, not >.
42421         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42422         denominator, not >.  Decrement exponent in < case instead of
42423         incrementing in >= case.
42424         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42425         without decrementing exponent if mantissa >= that for the
42426         denominator, not >.
42427
42428         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42429         computing saturated result for unsigned overflow.
42430
42431 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42432             Jeff Law  <law@redhat.com>
42433
42434         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42435         (atan2Mp): Add systemtap probe marker.
42436         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42437         (__ieee754_log): Add systemtap probe marker.
42438         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42439         (atanMp): Add systemtap probe marker.
42440         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42441         (tanMp): Add systemtap probe marker.
42442         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42443         (__slowexp): Add systemtap probe marker.
42444         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42445         (__slowpow): Add systemtap probe marker.
42446         * manual/probes.texi: Document probes.
42447
42448 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42449
42450         [BZ #15362]
42451         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42452         written.
42453         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42454         written.
42455         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42456         written to buffer but not flushed.
42457         * libio/iofwrite_u.c:  Likewise.
42458         * libio/iopadn.c:  Return bytes returned even if EOF was
42459         encountered.
42460         * libio/iowpadn.c:  Likewise.
42461         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42462         if _IO_padn does not write the whole buffer.
42463         [!COMPILE_WPRINTF] (PAD): Likewise.
42464
42465 2013-10-10  David S. Miller  <davem@davemloft.net>
42466
42467         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42468         directory block.
42469
42470 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42471
42472         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42473         instead of FSF address.
42474         * soft-fp/fixdfti.c: Likewise.
42475         * soft-fp/fixsfti.c: Likewise.
42476         * soft-fp/fixtfti.c: Likewise.
42477         * soft-fp/fixunsdfti.c: Likewise.
42478         * soft-fp/fixunssfti.c: Likewise.
42479         * soft-fp/fixunstfti.c: Likewise.
42480         * soft-fp/floattidf.c: Likewise.
42481         * soft-fp/floattisf.c: Likewise.
42482         * soft-fp/floattitf.c: Likewise.
42483         * soft-fp/floatuntidf.c: Likewise.
42484         * soft-fp/floatuntisf.c: Likewise.
42485         * soft-fp/floatuntitf.c: Likewise.
42486         * soft-fp/trunctfxf2.c: Likewise.
42487
42488         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42489         * soft-fp/fixdfti.c: Likewise.
42490         * soft-fp/fixsfti.c: Likewise.
42491         * soft-fp/fixtfti.c: Likewise.
42492         * soft-fp/fixunsdfti.c: Likewise.
42493         * soft-fp/fixunssfti.c: Likewise.
42494         * soft-fp/fixunstfti.c: Likewise.
42495         * soft-fp/floattidf.c: Likewise.
42496         * soft-fp/floattisf.c: Likewise.
42497         * soft-fp/floattitf.c: Likewise.
42498         * soft-fp/floatuntidf.c: Likewise.
42499         * soft-fp/floatuntisf.c: Likewise.
42500         * soft-fp/floatuntitf.c: Likewise.
42501         * soft-fp/trunctfxf2.c: Likewise.
42502
42503 2013-10-10  David S. Miller  <davem@davemloft.net>
42504
42505         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42506
42507 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42508
42509         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42510         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42511         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42512         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42513         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42514         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42515         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42516
42517         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42518         for NaNs before doing comparisons on argument.
42519         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42520         Likewise.
42521
42522 2013-10-10  Will Newton  <will.newton@linaro.org>
42523
42524         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42525         passed to _int_memalign does not overflow.
42526
42527 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42528
42529         * scripts/bench.pl: Add include-sources directive.
42530         * benchtests/README: Update documentation.
42531
42532 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42533
42534         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42535         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42536         instead of FP_INIT_ROUNDMODE.
42537         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42538         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42539
42540         [BZ #16034]
42541         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42542         copy class of input value.
42543         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42544         not handle exceptions.
42545         * soft-fp/negsf2.c (__negsf2): Likewise.
42546         * soft-fp/negtf2.c (__negtf2): Likewise.
42547         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42548
42549 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42550
42551         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42552         semicolon.  From Linux kernel.
42553
42554 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42555
42556         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42557
42558 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42559
42560         [BZ #156]
42561         * manual/socket.texi: Added statement about buffer
42562         for gethostbyname2_r.
42563
42564 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42565
42566         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42567         Use .p2align directive instead, throughout.
42568         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42569         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42570         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42571         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42572         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42573         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42574         * sysdeps/x86_64/strchr.S: Likewise.
42575         * sysdeps/x86_64/strrchr.S: Likewise.
42576
42577 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42578
42579         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42580
42581         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42582
42583         * sysdeps/generic/math_private.h (__mpsin1): Remove
42584         declaration.
42585         (__mpcos1): Likewise.
42586         (__mpsin): New argument __range_reduce.
42587         (__mpcos): Likewise.
42588         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42589         (slow): Use __mpsin and __mpcos.
42590         (slow1): Likewise.
42591         (slow2): Likewise.
42592         (sloww): Likewise.
42593         (sloww1): Likewise.
42594         (sloww2): Likewise.
42595         (bsloww): Likewise.
42596         (bsloww1): Likewise.
42597         (bsloww2): Likewise.
42598         (cslow2): Likewise.
42599         (csloww): Likewise.
42600         (csloww1): Likewise.
42601         (csloww2): Likewise.
42602         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42603         range_reduce.  Merge in __mpsin1.
42604         (__mpcos): Likewise.
42605         (__mpsin1): Remove.
42606         (__mpcos1): Likewise.
42607
42608 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42609
42610         * locale/loadlocale.c (_nl_intern_locale_data): Use
42611         LOCFILE_ALIGNED_P.
42612         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42613         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42614         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42615         obstack data is appropriately aligned.
42616         (obstack_int32_grow_fast): Likewise.
42617         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42618         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42619         (add_locale_uint32_array): Likewise.
42620
42621 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42622
42623         * benchtests/Makefile: Remove ARGLIST and RET variables.
42624         ($(objpfx)bench-%.c): Pass only function name to the script.
42625         * benchtests/README: Update documentation.
42626         * benchtests/acos-inputs: Add new directives.
42627         * benchtests/acosh-inputs: Likewise.
42628         * benchtests/asin-inputs: Likewise.
42629         * benchtests/asinh-inputs: Likewise.
42630         * benchtests/atan-inputs: Likewise.
42631         * benchtests/atanh-inputs: Likewise.
42632         * benchtests/cos-inputs: Likewise.
42633         * benchtests/cosh-inputs: Likewise.
42634         * benchtests/exp-inputs: Likewise.
42635         * benchtests/log-inputs: Likewise.
42636         * benchtests/pow-inputs: Likewise.
42637         * benchtests/rint-inputs: Likewise.
42638         * benchtests/sin-inputs: Likewise.
42639         * benchtests/sinh-inputs: Likewise.
42640         * benchtests/tan-inputs: Likewise.
42641         * benchtests/tanh-inputs: Likewise.
42642         * scripts/bench.pl: Add support for new directives.
42643
42644 2013-10-07  Alan Modra  <amodra@gmail.com>
42645
42646         * README: Fix careless merge.
42647
42648 2013-10-05  Alan Modra  <amodra@gmail.com>
42649
42650         * NEWS: Mention powerpc64le support and bugs fixed.
42651         * README: Both big-endian and little-endian powerpc64 supported.
42652
42653 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42654
42655         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42656         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42657         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42658         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42659
42660 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42661
42662         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42663         match prototype.
42664
42665 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42666
42667         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42668         Move -mhard-float appending from
42669         ports/sysdeps/powerpc/powerpc32/Makefile.
42670         [$(with-fp) = yes] (ASFLAGS): Likewise.
42671         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42672         * sysdeps/powerpc/nofpu: Move directory from
42673         ports/sysdeps/powerpc/nofpu.
42674         * sysdeps/powerpc/soft-fp: Move directory from
42675         ports/sysdeps/powerpc/soft-fp.
42676         * sysdeps/powerpc/powerpc32/405: Move directory from
42677         ports/sysdeps/powerpc/powerpc32/405.
42678         * sysdeps/powerpc/powerpc32/440: Move directory from
42679         ports/sysdeps/powerpc/powerpc32/440.
42680         * sysdeps/powerpc/powerpc32/464: Move directory from
42681         ports/sysdeps/powerpc/powerpc32/464.
42682         * sysdeps/powerpc/powerpc32/476: Move directory from
42683         ports/sysdeps/powerpc/powerpc32/476.
42684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42685         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42687         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42689         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42691         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42693         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42694         * README: Update for powerpc-*-linux-gnu software floating point
42695         support in libc.
42696
42697         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42698         case to powerpc/powerpc32*.
42699         * sysdeps/unix/sysv/linux/configure: Regenerated.
42700
42701         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42702         (_FPU_MASK_OM): Define as 0x04.
42703         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42704         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42705         0x00c10080.
42706         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42707         0x0000003c.
42708         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42709
42710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42711         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42712         getcontext_e500.
42713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42714         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42715         setcontext_e500.
42716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42717         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42718         and setcontext_e500.
42719
42720 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42721
42722         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42723
42724 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42725
42726         * manual/threads.texi (Default Thread Attributes): Fix typo.
42727
42728 2013-10-04  Will Newton  <will.newton@linaro.org>
42729
42730         * malloc/Makefile: Add tst-memalign.
42731         * malloc/tst-memalign.c: New file.
42732
42733         * malloc/tst-posix_memalign.c: Add comments.
42734         (do_test): Add comments and call free on all potentially
42735         allocated pointers. Add space after cast.
42736
42737         * malloc/tst-pvalloc.c: Add comments.
42738         (do_test): Add comments and call free on all potentially
42739         allocated pointers. Remove duplicate check for NULL pointer.
42740         Add space after cast.
42741
42742         * malloc/tst-valloc.c: Add comments.
42743         (do_test): Add comments and call free on all potentially
42744         allocated pointers. Remove duplicate check for NULL pointer.
42745         Add space after cast.
42746
42747 2013-10-04  Alan Modra  <amodra@gmail.com>
42748
42749         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42750         Use stdint types in rather than __attribute__((mode())).
42751         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42752
42753 2013-10-04  Alan Modra  <amodra@gmail.com>
42754
42755         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42756         Correct handling of unaligned relocs for little-endian.
42757         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42758
42759 2013-10-04  Alan Modra  <amodra@gmail.com>
42760
42761         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42762         * configure: Regenerate.
42763         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42764         * shlib-versions: Likewise.
42765
42766 2013-10-04  Alan Modra  <amodra@gmail.com>
42767
42768         * string/tester.c (test_memrchr): Increment reported test cycle.
42769
42770 2013-10-04  Alan Modra  <amodra@gmail.com>
42771
42772         * string/test-memcpy.c (do_one_test): When reporting errors, print
42773         string address and don't overrun end of string.
42774
42775 2013-10-04  Alan Modra  <amodra@gmail.com>
42776
42777         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42778         insrdi.  Make better use of reg selection to speed exit slightly.
42779         Schedule entry path a little better.  Remove useless "are we done"
42780         checks on entry to main loop.  Handle wrapping around zero address.
42781         Correct main loop count.  Handle single left-over word from main
42782         loop inline rather than by using loop_small.  Remove extra word
42783         case in loop_small caused by wrong loop count.  Add little-endian
42784         support.
42785         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42786         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42787         cache hint.
42788         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42789         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42790         support.  Avoid rlwimi.
42791         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42792
42793 2013-10-04  Alan Modra  <amodra@gmail.com>
42794
42795         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42796         insrdi.  Formatting.
42797         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42798         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42799         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42800         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42801         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42802         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42803
42804 2013-10-04  Alan Modra  <amodra@gmail.com>
42805
42806         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42807         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42808         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42809         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42810         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42811         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42812         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42813         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42814         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42815         use of regs.  Use power7 mtocrf.  Tidy function tails.
42816
42817 2013-10-04  Alan Modra  <amodra@gmail.com>
42818
42819         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42820         Formatting.  Consistently use rXXX register defines or rN defines.
42821         Use early exit labels that avoid restoring unused non-volatile regs.
42822         Make cr field use more consistent with rWORDn compares.  Rename
42823         regs used as shift registers for unaligned loop, using rN defines
42824         for short lifetime/multiple use regs.
42825         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42826         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42827         addi 1,1,64 to pop stack frame.  Simplify return value code.
42828         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42829
42830 2013-10-04  Alan Modra  <amodra@gmail.com>
42831
42832         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42833         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42834         rather than rlwimi.
42835         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42836         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42837         little-endian support.  Correct typos.
42838         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42839         rather than rlwimi.
42840         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
42841         in loop and entry code to keep "and." results.
42842         (strchr): Add little-endian support.  Comment.  Move cntlzd
42843         earlier in tail.
42844         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
42845
42846 2013-10-04  Alan Modra  <amodra@gmail.com>
42847
42848         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
42849         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
42850         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
42851         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
42852
42853 2013-10-04  Alan Modra  <amodra@gmail.com>
42854
42855         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
42856         (rTMP): Define as r11.
42857         (strcmp): Add little-endian support.  Optimise tail.
42858         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
42859         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
42860         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
42861         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42862         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
42863         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42864         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42865
42866 2013-10-04  Alan Modra  <amodra@gmail.com>
42867
42868         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
42869         little-endian support.  Remove unnecessary "are we done" tests.
42870         Handle "s" wrapping around zero and extremely large "size".
42871         Correct main loop count.  Handle single left-over word from main
42872         loop inline rather than by using small_loop.  Correct comments.
42873         Delete "zero" tail, use "end_max" instead.
42874         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
42875
42876 2013-10-04  Alan Modra  <amodra@gmail.com>
42877
42878         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
42879         support.  Don't branch over align.
42880         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
42881         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
42882         support.  Rearrange tmp reg use to suit.  Comment.
42883         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
42884
42885 2013-10-04  Alan Modra  <amodra@gmail.com>
42886
42887         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
42888
42889 2013-10-04  Alan Modra  <amodra@gmail.com>
42890
42891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
42892         conditional form of branch and link when obtaining pc.
42893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42894
42895 2013-10-04  Alan Modra  <amodra@gmail.com>
42896
42897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
42898         HIWORD/LOWORD.
42899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
42900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
42901
42902 2013-10-04  Alan Modra  <amodra@gmail.com>
42903
42904         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
42905         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
42906         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
42907         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
42908         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
42909         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
42910         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
42911         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
42912         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
42913         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
42914
42915 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42916             Alistair Popple <alistair@ozlabs.au.ibm.com>
42917             Alan Modra <amodra@gmail.com>
42918
42919         [BZ #15723]
42920         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
42921         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
42922         _dl_hwcap access for little-endian.
42923         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
42924         destroy vmx regs when saving unaligned.
42925         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
42926         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
42927         destroy vmx regs when saving unaligned.
42928
42929 2013-10-04  Alan Modra  <amodra@gmail.com>
42930
42931         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
42932         Don't use a union to pack hi/low value.
42933
42934 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42935
42936         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
42937         for little-endian.
42938         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
42939         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
42940         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
42941         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
42942         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
42943
42944 2013-10-04  Alan Modra  <amodra@gmail.com>
42945
42946         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
42947         constants to usual value for .cst8 section, and remove redundant
42948         high address load.
42949         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
42950         constant for 0x1p52.  Load little-endian words of double from
42951         correct stack offsets.
42952
42953 2013-10-04  Alan Modra  <amodra@gmail.com>
42954
42955         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
42956         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
42957         words of double from correct stack offsets.
42958         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
42959         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
42960         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
42961         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
42962         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
42963         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
42964         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
42965         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
42966         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
42967         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
42968         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
42969         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
42970         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
42971         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
42972         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
42973         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
42974         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
42975
42976 2013-10-04  Alan Modra  <amodra@gmail.com>
42977
42978         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
42979         64-bit int/double union.
42980         (_FPU_SETCW): Likewise.
42981         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
42982         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
42983
42984 2013-10-04  Alan Modra  <amodra@gmail.com>
42985
42986         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
42987         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
42988
42989 2013-10-04  Alan Modra  <amodra@gmail.com>
42990
42991         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
42992         use vector int constants.
42993         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
42994
42995 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42996
42997         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
42998         array with long long.
42999         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43000         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43001         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43002         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43003         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43004         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43005         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43006         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43007         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43008         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43009         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43010         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43011         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43012
43013 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43014
43015         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43016         (__signbit): Likewise.  Correct for little-endian.
43017         (__signbitl): Call __signbit.
43018         (lrint): Correct for little-endian.
43019         (lrintf): Call lrint.
43020
43021 2013-10-04  Alan Modra  <amodra@gmail.com>
43022
43023         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43024         union 32-bit int array member with 64-bit int array.
43025         (t515, tm256): Double rather than long double.
43026         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43027
43028 2013-10-04  Alan Modra  <amodra@gmail.com>
43029
43030         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43031         Delete.
43032         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43033         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43034         version of math_ldbl.h.
43035
43036 2013-10-04  Alan Modra  <amodra@gmail.com>
43037
43038         [BZ #15734], [BZ #15735]
43039         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43040         all uses of ieee875 long double macros and unions.  Simplify test
43041         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43042         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43043         normalize after ldbl_extract_mantissa, and don't add hidden bit
43044         already handled.  Don't treat low word of ieee854 mantissa like
43045         low word of IBM long double and mask off bit when testing for
43046         zero.
43047         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43048         all uses of ieee875 long double macros and unions.  Simplify tests
43049         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43050         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43051         two1022, instead use their values.  Recognise that tests for large
43052         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43053         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43054         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43055         test for 0.0L and nan.  Correct negation.
43056         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43057         ieee875 long double macros and unions.  Correct output for large
43058         magnitude x.  Correct absolute value calculation.
43059         (__erfcl): Likewise.
43060         * math/libm-test.inc: Add tests for errors discovered in IBM long
43061         double versions of fmodl, remainderl, erfl and erfcl.
43062
43063 2013-10-04  Alan Modra  <amodra@gmail.com>
43064
43065         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43066         all uses of ieee854 long double macros and unions.  Simplify tests
43067         for long doubles that are fully specified by the high double.
43068         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43069         Likewise.
43070         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43071         Remove dead code too.
43072         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43073         (__ieee754_ynl): Likewise.
43074         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43075         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43076         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43077         Remove dead code too.
43078         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43079         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43080         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43081         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43082         Simplify.
43083         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43084         Simplify.
43085         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43086         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43087         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43088         Comment on variable precision.
43089         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43090         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43091         Likewise.
43092         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43093         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43094         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43095         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43096         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43097
43098 2013-10-04  Alan Modra  <amodra@gmail.com>
43099
43100         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43101         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43102         all uses of ieee854 long double macros and unions.
43103         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43104         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43105         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43106         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43107         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43108         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43109         Likewise.
43110         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43111         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43112         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43113         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43114         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43115         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43116         Simplify sign and nan test too.
43117         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43118         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43119         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43120         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43121         Likewise.
43122         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43123         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43124         Likewise.
43125         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43126         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43127         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43128         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43129         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43130         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43131
43132 2013-10-04  Alan Modra  <amodra@gmail.com>
43133
43134         * stdio-common/printf_size.c (__printf_size): Don't use
43135         union ieee854_long_double in fpnum union.
43136         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43137         signbit macro to retrieve sign from long double.
43138         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43139         retrieve sign from long double.
43140         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43141         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43142         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43143         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43144         * math/test-misc.c (main): Don't use union ieee854_long_double.
43145
43146 2013-10-04  Alan Modra  <amodra@gmail.com>
43147
43148         [BZ #15680]
43149         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43150         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43151         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43152         calculation.  Remove unnecessary test for denormal exponent.
43153         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43154         Correct handling of denormals.  Avoid undefined shift behaviour.
43155         Correct normalisation of low mantissa when low double is denormal.
43156         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43157         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43158         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43159         Correct normalisation of low mantissa.  Test for overflow of high
43160         mantissa and normalise.
43161         (ldbl_nearbyint): Use more readable constant for two52.
43162         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43163         (__mpn_construct_long_double): Fix test for overflow of high
43164         mantissa and correct normalisation.  Avoid undefined shift.
43165
43166 2013-10-04  Alan Modra  <amodra@gmail.com>
43167
43168         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43169         (union ibm_extended_long_double): Define as an array of ieee754_double.
43170         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43171         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43172         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43173         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43174         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43175         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43176         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43177         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43178         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43179         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43180         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43181
43182 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43183
43184         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43185         page size instead of calling getpagesize.
43186
43187         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43188         (LOCFILE_ALIGN_MASK): Likewise.
43189         (LOCFILE_ALIGN_UP): Likewise.
43190         (LOCFILE_ALIGNED_P): Likewise.
43191         * locale/programs/ld-collate.c (collate_output): Use the new
43192         macros instead of __alignof__ (int32_t).
43193         * locale/weight.h (findidx): Likewise.
43194
43195 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43196
43197         [BZ #431]
43198         * manual/string.texi: Fix strncat and wcsncat.
43199
43200 2013-10-03  Brooks Moses  <bmoses@google.com>
43201
43202         [BZ #15915]
43203         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43204         * Makerules: ...here, and adjust associated comments.
43205
43206 2013-10-02  Will Newton  <will.newton@linaro.org>
43207
43208         * malloc/Makefile: Add tst-pvalloc.
43209         * malloc/tst-pvalloc.c: New file.
43210
43211 2013-10-02  Will Newton  <will.newton@linaro.org>
43212
43213         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43214         improve test coverage.
43215
43216 2013-10-02  Will Newton  <will.newton@linaro.org>
43217
43218         * malloc/Makefile: Add tst-posix_memalign.
43219         * malloc/tst-posix_memalign.c: New file.
43220
43221 2013-10-01  Eric Blake  <eblake@redhat.com>
43222
43223         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43224         Use __THROWNL rather than __THROW on static functions.
43225
43226 2013-09-30  Petr Machata  <pmachata@redhat.com>
43227
43228         * elf/elf.h (R_AARCH64_ABS16): New macro.
43229         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43230         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43231         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43232         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43233         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43234         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43235         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43236         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43237         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43238         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43239         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43240         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43241         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43242         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43243         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43244         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43245         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43246         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43247         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43248         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43249         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43250         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43251         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43252         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43253         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43254         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43255         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43256         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43257         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43258         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43259         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43260         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43261         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43262         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43263         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43264         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43265         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43266         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43267         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43268         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43269         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43270         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43271         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43272         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43273         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43274         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43275         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43276         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43277         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43278         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43279         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43280         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43281         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43282         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43283         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43284         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43285         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43286         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43287         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43288         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43289         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43290         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43291         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43292         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43293         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43294         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43295         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43296         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43297         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43298         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43299         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43300         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43301         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43302         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43303         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43304         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43305         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43306         (R_AARCH64_TLSDESC_LDR): Likewise.
43307         (R_AARCH64_TLSDESC_ADD): Likewise.
43308         (R_AARCH64_TLSDESC_CALL): Likewise.
43309
43310 2013-09-30  Andreas Schwab  <schwab@suse.de>
43311
43312         [BZ #15048]
43313         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43314         the nss database lookup.
43315         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43316         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43317
43318 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43319
43320         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43321
43322 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43323
43324         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43325         ${Bash-specific parameter/pattern/string} parameter expansion.
43326         * sysdeps/unix/make-syscalls.sh: Likewise.
43327
43328 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43329
43330         * sysdeps/sh/stackguard-macros.h: New file.
43331
43332 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43333
43334         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43335         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43336         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43337         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43338         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43339         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43340
43341 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43342
43343         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43344         Fix thread ID register.
43345
43346 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43347
43348         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43349         [POSIX || UNIX98]: Require rather than permitting all symbols from
43350         <time.h>.
43351         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43352         element of struct sched_param.
43353         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43354         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43355         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43356         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43357         constant.
43358
43359 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43360
43361         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43362         argument calculation.
43363
43364 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43365
43366         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43367         Expect macro.
43368         [POSIX] (pthread_attr_t): Do not require type.
43369         [POSIX] (pthread_cond_t): Likewise.
43370         [POSIX] (pthread_condattr_t): Likewise.
43371         [POSIX] (pthread_key_t): Likewise.
43372         [POSIX] (pthread_mutex_t): Likewise.
43373         [POSIX] (pthread_mutexattr_t): Likewise.
43374         [POSIX] (pthread_once_t): Likewise.
43375         [POSIX] (pthread_t): Likewise.
43376         [POSIX-based standards] (pthread_atfork): Expect function.
43377
43378 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43379             Richard Sandiford  <richard@codesourcery.com>
43380
43381         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43382         (swap_endianness_p): New extern variable.
43383         (set_big_endian): New inline function.
43384         (maybe_swap_uint32): Likewise.
43385         (maybe_swap_uint32_array): Likewise.
43386         (maybe_swap_uint32_obstack): Likewise.
43387         * locale/programs/locfile.c: Include <stdbool.h>.
43388         (swap_endianness_p): New variable.
43389         (add_locale_uint32): Call maybe_swap_uint32.
43390         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43391         (write_locale_data): Call maybe_swap_uint32_array.
43392         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43393         maybe_swap_uint32.
43394         (obstack_int32_grow_fast): Likewise.
43395         (output_weightwc): Call maybe_swap_uint32_obstack.
43396         (collate_output): Likewise.
43397         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43398         (OPT_LITTLE_ENDIAN): Likewise.
43399         (options): Add --little-endian and --big-endian options.
43400         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43401         * locale/programs/locarchive.c: Include "locfile.h".
43402         (GET): New macro.
43403         (SET): Likewise.
43404         (INC): Likewise.
43405         (create_archive): Use the new macros to access fields of
43406         structures directly mapped from or written to locale archives.
43407         (oldlocrecentcmp): Likewise.
43408         (enlarge_archive): Likewise.
43409         (insert_name): Likewise.
43410         (add_alias): Likewise.
43411         (add_locale): Likewise.
43412         (delete_locales_from_archive): Likewise.
43413         (show_archive_content): Likewise.
43414         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43415         locale data.
43416
43417 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43418
43419         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43420         http://www.gnu.org/doc/freemanuals.texi.
43421         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43422
43423 2013-09-24  Will Newton  <will.newton@linaro.org>
43424
43425         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43426         macro.
43427
43428 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43429
43430         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43431         unsigned char.
43432
43433 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43434
43435         * manual/threads.texi (POSIX Threads): Fix a typo.
43436
43437 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43438
43439         [BZ #14547]
43440         * string/tst-strcoll-overflow.c: New test case.
43441         * string/Makefile (xtests): Add tst-strcoll-overflow.
43442         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43443         cache if string sizes may cause integer overflow.
43444
43445         [BZ #14547]
43446         * string/strcoll_l.c (coll_seq): New members rule, idx,
43447         save_idx and back_us.
43448         (get_next_seq_nocache): New function.
43449         (do_compare_nocache): New function.
43450         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43451         when malloc fails.
43452
43453 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43454
43455         [BZ #15754]
43456         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43457         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43458         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43459
43460         [BZ #15754]
43461         * elf/Makefile (tests): Add tst-ptrguard1.
43462         (tests-static): Add tst-ptrguard1-static.
43463         (tst-ptrguard1-ARGS): Define.
43464         (tst-ptrguard1-static-ARGS): Define.
43465         * elf/tst-ptrguard1.c: New file.
43466         * elf/tst-ptrguard1-static.c: New file.
43467         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43468         * sysdeps/i386/stackguard-macros.h: Likewise.
43469         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43470         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43471         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43472         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43473         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43474         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43475
43476 2013-09-23  Hector Marco  <hecmargi@upv.es>
43477             Ismael Ripoll  <iripoll@disca.upv.es>
43478             Carlos O'Donell  <carlos@redhat.com>
43479
43480         [BZ #15754]
43481         * sysdeps/generic/stackguard-macros.h: Define
43482         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43483         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43484         Define __pointer_chk_guard_local.
43485         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43486         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43487
43488 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43489
43490         [BZ #15859]
43491         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43492
43493 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43494
43495         * include/string.h (__ffs): Declare as hidden.
43496         * string/ffs.c (__ffs): Define as hidden.
43497         * sysdeps/i386/ffs.c (__ffs): Likewise.
43498         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43499         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43500         * sysdeps/s390/ffs.c (__ffs): Likewise.
43501         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43502
43503 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43504
43505         * NEWS: Mention malloc probes.
43506
43507         * malloc/arena.c (new_heap): New memory_heap_new probe.
43508         (grow_heap): New memory_heap_more probe.
43509         (shrink_heap): New memory_heap_less probe.
43510         (heap_trim): New memory_heap_free probe.
43511         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43512         (systrim): New memory_sbrk_less probe.
43513         * manual/probes.texi: Document them.
43514
43515         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43516         * manual/probes.texi: Document it.
43517
43518         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43519         (__libc_realloc): Add memory_realloc_retry probe.
43520         (__libc_memalign): Add memory_memalign_retry probe.
43521         (__libc_valloc): Add memory_valloc_retry probe.
43522         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43523         (__libc_calloc): Add memory_calloc_retry probe.
43524         * manual/probes.texi: Document them.
43525
43526         * malloc/arena.c (get_free_list): Add probe
43527         memory_arena_reuse_free_list.
43528         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43529         and memory_arena_reuse.
43530         (arena_get2) [!PER_THREAD]: Likewise.
43531         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43532         memory_arena_reuse_realloc.
43533         * manual/probes.texi: Document them.
43534
43535         * malloc/malloc.c (__libc_free): Add
43536         memory_mallopt_free_dyn_thresholds probe.
43537         (__libc_mallopt): Add multiple memory_mallopt probes.
43538         * manual/probes.texi: Document them.
43539
43540         * malloc/malloc.c: Include stap-probe.h.
43541         (__libc_mallopt): Add memory_mallopt probe.
43542         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43543         * manual/probes.texi: New.
43544         * manual/Makefile (chapters): Add probes.
43545         * manual/threads.texi: Set next node.
43546
43547 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43548
43549         [BZ #15963, #13985]
43550         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43551         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43552         Add `Chinese' to `nan' entry name.
43553
43554 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43555
43556         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43557         (POLYNOMIAL): Likewise.
43558         (TAYLOR_SINCOS): Likewise.
43559         (TAYLOR_SLOW): Likewise.
43560         (__sin): Use TAYLOR_SINCOS.
43561         (__cos): Likewise.
43562         (slow): Use TAYLOR_SLOW.
43563         (sloww): Likewise.
43564         (bsloww): Likewise.
43565         (csloww): Likewise.
43566
43567 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43568
43569         * stdlib/strtod_l.c: Fix buffer overrun.
43570
43571 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43572
43573         * benchtests/Makefile (bench): Add sincos.
43574         * benchtests/bench-sincos.c: New file.
43575
43576         * math/libm-test.inc (cos_test_data): New test inputs.
43577         (sin_test_data): Likewise.
43578
43579         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43580         macro.
43581         (__sin): Use it.
43582         (__cos): Likewise.
43583         (slow1): Likewise.
43584         (slow2): Likewise.
43585         (sloww1): Likewise.
43586         (sloww2): Likewise.
43587         (bsloww1): Likewise.
43588         (bsloww2): Likewise.
43589         (cslow2): Likewise.
43590         (csloww1): Likewise.
43591         (csloww2): Likewise.
43592
43593         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43594         function.
43595         (__sin): Use it.
43596         (__cos): Likewise.
43597
43598         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43599         gotos.
43600         (__cos): Likewise.
43601
43602 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43603
43604         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43605         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43606         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43607         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43608         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43609         * elf/cache.c (print_entry): Handle the new cache flags.
43610
43611 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43612             Aldy Hernandez  <aldyh@redhat.com>
43613
43614         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43615         Change condition to [_SOFT_FLOAT].
43616         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43617         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43618         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43619         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43620         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43621         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43622         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43623         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43624         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43625         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43626         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43627         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43628         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43629         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43630         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43631         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43632         declaration.
43633
43634 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43635
43636         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43637         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43638         (__longjmp): Use LOAD_GP to load saved GPRs.
43639         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43640         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43641         (__sigsetjmp): Use SAVE_GP to save GPRs.
43642
43643         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43644         Do not append -msoft-float.
43645         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43646
43647 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43648
43649         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43650
43651 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43652
43653         [BZ #15966]
43654         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43655         (_FPU_GETCW): Use initial "__" on variable and field names but not
43656         on macro parameter name.
43657         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43658         parentheses around reference to macro parameter.
43659
43660 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43661
43662         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43663         prototype.
43664         (ctype_startup): Use uint32_t in cast and sizeof for
43665         ctype->charnames.
43666
43667 2013-09-11  Jia Liu  <proljc@gmail.com>
43668
43669         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43670         __daddr_t_defined.
43671         [__FreeBSD__]: Likewise.
43672
43673 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43674
43675         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43676         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43677         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43678         (strchr): Remove __strchr_sse42 ifunc selection.
43679         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43680         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43681
43682 2013-09-11  Will Newton  <will.newton@linaro.org>
43683
43684         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43685         parameter to RES. Remove hardcoded 1000 value.
43686         * benchtests/bench-skeleton.c (main): Pass RES parameter
43687         to TIMING_INIT and multiply result by 1000.
43688
43689 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43690
43691         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43692
43693 2013-09-11  Andreas Schwab  <schwab@suse.de>
43694
43695         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43696         if not defined.
43697         (O_TMPFILE) [__USE_GNU]: Define.
43698         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43699         Define.
43700
43701 2013-09-11  Will Newton  <will.newton@linaro.org>
43702
43703         [BZ #15857]
43704         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43705         does not overflow.
43706
43707 2013-09-11  Will Newton  <will.newton@linaro.org>
43708
43709         [BZ #15856]
43710         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43711         does not overflow.
43712
43713 2013-09-11  Will Newton  <will.newton@linaro.org>
43714
43715         [BZ #15855]
43716         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43717         does not overflow.
43718
43719 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43720
43721         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43722         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43723         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43724         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43725         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43726
43727 2013-09-10  Allan McRae  <allan@archlinux.org>
43728
43729         [BZ #15748]
43730         * manual/arith.texi (Parsing of Floats): Clarify
43731         cross-reference.
43732
43733         [BZ #15849]
43734         * manual/install.texi (Running make install): Mention
43735         --enable-pt-chown.
43736         * INSTALL: Regenerated.
43737
43738 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43739
43740         * csu/init-first.c (_init): Remove the !SHARED condition around
43741         FPU control word initialization.
43742         * elf/dl-support.c (_dl_fpu_control): New variable.
43743         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43744         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43745         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43746         * math/test-fpucw-static.c: New file.
43747         * math/test-fpucw-ieee.c: New file.
43748         * math/test-fpucw-ieee-static.c: New file.
43749         * math/Makefile (tests): Add `test-fpucw-ieee' and
43750         `$(tests-static)'.
43751         (tests-static): New variable.
43752         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43753         dependency to...
43754         [($(build-shared),yes)]
43755         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43756         ... this.
43757         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43758         New dependency.
43759
43760 2013-09-09  Allan McRae  <allan@archlinux.org>
43761
43762         [BZ #15939]
43763         * manual/string.texi (Collation Functions): Fix typo in
43764         strcoll example.
43765         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43766
43767         [BZ #15893]
43768         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43769
43770         [BZ #15892]
43771         * libio/memstream.c (open_memstream): Fix memory leak.
43772         * libio/wmemstream.c (open_wmemstream): Likewise.
43773
43774         [BZ #15895]
43775         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43776
43777 2013-09-09  Will Newton  <will.newton@linaro.org>
43778
43779         * malloc/Makefile: Add tst-realloc to tests.
43780         * malloc/tst-realloc.c: New file.
43781
43782 2013-09-09  Allan McRae  <allan@archlinux.org>
43783
43784         [BZ #15844]
43785         * COPYING: Update from GNU website to fix FSF address.
43786         * COPYING.LIB: Likewise.
43787
43788 2013-09-06  David S. Miller  <davem@davemloft.net>
43789
43790         * po/zh_TW.po: Update Chinese (traditional) translation from
43791         translation project.
43792
43793 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43794             Joseph Myers  <joseph@codesourcery.com>
43795
43796         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43797         "localeinfo.h".
43798         (obstack_chunk_alloc): New macro.
43799         (obstack_chunk_free): Likewise.
43800         (record_offset): New function.
43801         (init_locale_data): Likewise.
43802         (align_locale_data): Likewise.
43803         (add_locale_empty): Likewise.
43804         (add_locale_raw_data): Likewise.
43805         (add_locale_raw_obstack): Likewise.
43806         (add_locale_string): Likewise.
43807         (add_locale_wstring): Likewise.
43808         (add_locale_uint32): Likewise.
43809         (add_locale_uint32_array): Likewise.
43810         (add_locale_char): Likewise.
43811         (start_locale_structure): Likewise.
43812         (end_locale_structure): Likewise.
43813         (start_locale_prelude): Likewise.
43814         (end_locale_prelude): Likewise.
43815         (write_locale_data): Take locale_file structure rather than an
43816         iovec.
43817         * locale/programs/locfile.h: Include "obstack.h".
43818         (struct locale_file): Change to store locale file contents instead
43819         of header.
43820         (init_locale_data): New prototype.
43821         (align_locale_data): Likewise.
43822         (add_locale_empty): Likewise.
43823         (add_locale_raw_data): Likewise.
43824         (add_locale_raw_obstack): Likewise.
43825         (add_locale_string): Likewise.
43826         (add_locale_wstring): Likewise.
43827         (add_locale_uint32): Likewise.
43828         (add_locale_uint32_array): Likewise.
43829         (add_locale_char): Likewise.
43830         (start_locale_structure): Likewise.
43831         (end_locale_structure): Likewise.
43832         (start_locale_prelude): Likewise.
43833         (end_locale_prelude): Likewise.
43834         (write_locale_data): Update prototype.
43835         * locale/programs/3level.h (struct TABLE): Remove result field.
43836         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43837         Use new locale_file interface.
43838         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43839         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43840         * locale/programs/ld-address.c (address_output): Use new
43841         locale_file interface.
43842         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
43843         NO_ADD_LOCALE.
43844         (collate_finish): Don't call collseq_table_finalize.
43845         (collate_output): Use new locale_file interface.
43846         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
43847         in file.
43848         (NO_FINALIZE): Change to NO_ADD_LOCALE.
43849         (TABLE): Move defines earlier in file.
43850         (ELEMENT): Likewise.
43851         (DEFAULT): Likewise.
43852         (wctrans_table_add): Move macro and inline function earlier in
43853         file.
43854         (struct wctype_table): Move type earlier in file.
43855         (add_locale_wctype_table): New static prototype.
43856         (struct locale_ctype_t): Use logical types instead of struct iovec
43857         pointers for members.
43858         (ctype_output): Use new locale_file interface.
43859         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
43860         new locale_file interface.
43861         (allocate_arrays): Update for use of new locale_file interface.
43862         * locale/programs/ld-identification.c (identification_output): Use
43863         new locale_file interface.
43864         * locale/programs/ld-measurement.c (measurement_output): Likewise.
43865         * locale/programs/ld-messages.c (messages_output): Likewise.
43866         * locale/programs/ld-monetary.c (monetary_output): Likewise.
43867         * locale/programs/ld-name.c (name_output): Likewise.
43868         * locale/programs/ld-numeric.c (numeric_output): Likewise.
43869         * locale/programs/ld-paper.c (paper_output): Likewise.
43870         * locale/programs/ld-telephone.c (telephone_output): Likewise.
43871         * locale/programs/ld-time.c (time_output): Likewise.
43872
43873 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43874
43875         * benchtests/Makefile: Add memrchr benchmark.
43876         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
43877         benchmark as memrchr.
43878         * benchtests/bench-memrchr-ifunc.c: New file.
43879         * benchtests/bench-memrchr.c: New file.
43880
43881 2013-09-06   Will Newton  <will.newton@linaro.org>
43882
43883         * benchtests/Makefile (string-bench): Add memcpy.
43884
43885 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
43886             Cong Wang  <amwang@redhat.com>
43887
43888         [BZ #15850]
43889         * sysdeps/unix/sysv/linux/bits/in.h
43890         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
43891         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
43892         before __USE_KERNEL_IPV6_DEFS uses.
43893         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
43894         IPPROTO_BEETPH.
43895         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
43896         sockaddr_in6, or ipv6_mreq.
43897
43898 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43899
43900         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
43901         memory access for final bytes in some large inputs.
43902         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
43903
43904 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43905
43906         * string/test-memrchr.c: New file.
43907         * string/test-memrchr-ifunc.c: New file.
43908         * string/Makefile: Add new memrchr testcase.
43909
43910 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
43911
43912         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
43913         fanotify_init returns EPERM.
43914
43915 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43916
43917         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
43918         errors.
43919         (top level): Treat second token from macro or constant entries for
43920         allowed headers as allowed.
43921         * include/complex.h: Condition internal declarations on
43922         [!_ISOMAC].
43923         * include/fenv.h: Condition include of <stdbool.h> and internal
43924         declarations on [!_ISOMAC].
43925
43926 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
43927
43928         [BZ #15923]
43929         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
43930
43931 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43932
43933         * configure.in (--enable-versioning): Remove configure option.
43934         (libc_cv_asm_symver_directive): Remove configure test.
43935         (libc_cv_ld_version_script_option): Likewise.
43936         (VERSIONING): Remove variable and AC_SUBST.
43937         (DO_VERSIONING): Remove AC_DEFINE.
43938         * configure: Regenerated.
43939         * config.h.in (DO_VERSIONING): Remove macro.
43940         * Makerules [$(versioning) = yes]: Change conditionals to
43941         [$(build-shared) = yes].
43942         * config.make.in (versioning): Remove variable.
43943         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
43944         [$(build-shared) = yes].
43945         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
43946         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
43947         * elf/Makefile [$(versioning) = yes]: Change conditionals to
43948         [$(build-shared) = yes].
43949         * extra-lib.mk [$(versioning) = yes]: Likewise.
43950         * hurd/Makefile [$(versioning) = yes]: Likewise.
43951         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
43952         [SHARED].
43953         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
43954         [SHARED].
43955         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43956         [SHARED && !NO_HIDDEN].
43957         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
43958         [SHARED].
43959         [SHARED && DO_VERSIONING]: Likewise..
43960         * libio/Makefile [$(versioning) = yes]: Change conditionals to
43961         [$(build-shared) = yes].
43962         * manual/install.texi (--disable-versioning): Remove
43963         documentation.
43964         * INSTALL: Regenerated.
43965         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
43966         to [SHARED].
43967         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
43968         [$(build-shared) = yes].
43969         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
43970         * sysdeps/i386/i686/multiarch/strstr-c.c
43971         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
43972         [SHARED && !NO_HIDDEN].
43973         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
43974         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
43975         * sysdeps/powerpc/powerpc32/dl-machine.c
43976         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
43977         * sysdeps/powerpc/powerpc32/sysdep.h
43978         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
43979         to [SHARED && PIC && !NO_HIDDEN].
43980         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
43981         conditional to [SHARED].
43982
43983 2013-09-04   Will Newton  <will.newton@linaro.org>
43984
43985         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
43986         * benchtests/bench-string.h: Include bench-timing.h instead
43987         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
43988         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
43989         call to HP_TIMING_DIFF_INIT.
43990         * benchtests/bench-memccpy.c: Use bench-timing.h macros
43991         instead of hp-timing.h macros.
43992         * benchtests/bench-memchr.c: Likewise.
43993         * benchtests/bench-memcmp.c: Likewise.
43994         * benchtests/bench-memcpy.c: Likewise.
43995         * benchtests/bench-memmem.c: Likewise.
43996         * benchtests/bench-memmove.c: Likewise.
43997         * benchtests/bench-memset.c: Likewise.
43998         * benchtests/bench-rawmemchr.c: Likewise.
43999         * benchtests/bench-strcasecmp.c: Likewise.
44000         * benchtests/bench-strcasestr.c: Likewise.
44001         * benchtests/bench-strcat.c: Likewise.
44002         * benchtests/bench-strchr.c: Likewise.
44003         * benchtests/bench-strcmp.c: Likewise.
44004         * benchtests/bench-strcpy.c: Likewise.
44005         * benchtests/bench-strcpy_chk.c: Likewise.
44006         * benchtests/bench-strlen.c: Likewise.
44007         * benchtests/bench-strncasecmp.c: Likewise.
44008         * benchtests/bench-strncat.c: Likewise.
44009         * benchtests/bench-strncmp.c: Likewise.
44010         * benchtests/bench-strncpy.c: Likewise.
44011         * benchtests/bench-strnlen.c: Likewise.
44012         * benchtests/bench-strpbrk.c: Likewise.
44013         * benchtests/bench-strrchr.c: Likewise.
44014         * benchtests/bench-strspn.c: Likewise.
44015         * benchtests/bench-strstr.c: Likewise.
44016
44017 2013-09-04  Will Newton  <will.newton@linaro.org>
44018
44019         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44020
44021 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44022
44023         [BZ #15427]
44024         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44025         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44026         * math/libm-test.inc (lgamma_test_data): Add more tests.
44027         * sysdeps/i386/fpu/libm-test-ulps: Update.
44028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44029
44030 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44031
44032         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44033         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44034         Add ifunc.
44035         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44036         Add strcmp-sse2-unaligned
44037         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44038
44039 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44040
44041         * Versions.def (libc): Add GLIBC_2.19.
44042
44043 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44044
44045         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44046         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44047
44048 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44049
44050         [BZ #14155]
44051         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44052         intermediate calculations in recurrence.
44053         (__ieee754_ynf): Likewise.
44054         * math/libm-test.inc (jn_test_data): Do not allow spurious
44055         underflow exception.  Add more tests.
44056         (yn_test_data): Add more tests.
44057         * sysdeps/i386/fpu/libm-test-ulps: Update.
44058         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44059
44060 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44061
44062         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44063
44064 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44065
44066         * csu/init-first.c: Fix then/than typos.
44067         * locale/programs/ld-collate.c: Likewise.
44068         * locale/programs/linereader.h: Likewise.
44069         * manual/charset.texi: Likewise.
44070         * manual/filesys.texi: Likewise.
44071         * manual/stdio.texi: Likewise.
44072         * manual/string.texi: Likewise.
44073         * stdlib/fmtmsg.c: Likewise.
44074         * sysdeps/i386/stpncpy.S: Likewise.
44075         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44076         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44077         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44078         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44079
44080 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44081
44082         * elf/dl-open.c: Fix typos.
44083         * iconvdata/gbbig5.c: Likewise.
44084         * iconvdata/iso-2022-jp.c: Likewise.
44085         * iconv/gconv_int.h: Likewise.
44086         * iconv/loop.c: Likewise.
44087         * nis/rpcsvc/nis.h: Likewise.
44088         * resolv/ns_name.c: Likewise.
44089         * stdio-common/vfscanf.c: Likewise.
44090         * streams/stropts.h: Likewise.
44091         * sunrpc/rpc_thread.c: Likewise.
44092         * sysdeps/i386/strpbrk.S: Likewise.
44093         * sysdeps/ieee754/k_standard.c: Likewise.
44094         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44095         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44096         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44097         * sysdeps/mach/hurd/profil.c: Likewise.
44098         * sysdeps/s390/dl-procinfo.h: Likewise.
44099         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44100         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44101         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44102         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44103         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44104
44105 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44106
44107         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44108         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44109
44110 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44111
44112         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44113         aix specific files.
44114         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44115         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44116         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44117         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44118         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44119         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44120         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44121         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44122
44123 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44124             Roland McGrath  <roland@hack.frob.com>
44125
44126         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44127         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44128
44129 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44130
44131         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44132         __executable_start symbol instead of _start.
44133
44134 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44135
44136         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44137         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44138         Move macros to...
44139         * sysdeps/gnu/ldsodefs.h: ... this new file.
44140
44141         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44142         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44143         instead of ELFOSABI_LINUX.
44144
44145         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44146         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44147         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44148         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44149         Likewise.
44150         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44151         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44152         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44153         Likewise.
44154         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44155         (ibm_extended_long_double): Add ieee_nan member.
44156         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44157         (do_test): New function.
44158
44159         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44160         TEST_TRUNC.
44161         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44162         functions, renamed from truncdfsf_test, trunctfsf_test,
44163         trunctfdf_test.
44164         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44165         functions.
44166         (do_test): Run all these.
44167
44168 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44169
44170         * argp/argp-help.c: Fix typos.
44171         * argp/argp-parse.c: Likewise.
44172         * debug/backtracesyms.c: Likewise.
44173         * elf/elf.h: Likewise.
44174         * malloc/malloc.c: Likewise.
44175         * nis/nis_print.c: Likewise.
44176         * resolv/res_comp.c: Likewise.
44177         * stdlib/stdlib.h: Likewise.
44178         * sunrpc/clnt_tcp.c: Likewise.
44179         * sunrpc/clnt_udp.c: Likewise.
44180         * sunrpc/clnt_unix.c: Likewise.
44181         * sysdeps/unix/bsd/ptsname.c: Likewise.
44182         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44183         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44185         Likewise.
44186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44187         Likewise.
44188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44189         Likewise.
44190         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44191
44192 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44193
44194         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44195         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44196
44197 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44198
44199         [BZ #15897]
44200         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44201         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44202         ($(objpfx)bug-dl-leaf): New rule.
44203         ($(objpfx)bug-dl-leaf.so): Likewise.
44204         ($(objpfx)bug-dl-leaf.out): Likewise.
44205         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44206         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44207         * dlfcn/bug-dl-leaf.c: New test.
44208         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44209         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44210         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44211         (dlclose): Likewise.
44212         (dlmopen): Likewise.
44213
44214 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44215
44216         * include/netdb.h [!_ISOMAC]:
44217         Don't include <tls.h>.
44218         (h_errno, __libc_h_errno): Move declaration and macros out of
44219         [_LIBC_REENTRANT].
44220
44221         * include/resolv.h [_RESOLV_H_]:
44222         Don't include <tls.h>.
44223         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44224         * resolv/res_libc.c: Don't include <tls.h>.
44225         (_res): Use __attribute__ ((nocommon)) in place of
44226         __attribute__ ((section (".bss"))).
44227
44228         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44229         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44230
44231         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44232
44233         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44234         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44235
44236         * resolv/res_mkquery.c: Include <sys/time.h>.
44237
44238         * inet/ifreq.c: Moved to ...
44239         * sysdeps/unix/ifreq.c: ... here.
44240         * inet/ifreq.c: New file, true stub version.
44241
44242         * socket/sa_len.c: New file.
44243         * socket/Makefile (aux): Add it.
44244         * sysdeps/unix/sysv/linux/Makefile
44245         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44246         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44247         and #include <socket/sa_len.c>.
44248         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44249         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44250
44251         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44252         * bits/socket.h: ... here.
44253
44254         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44255         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44256         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44257
44258 2013-08-27  Andreas Schwab  <schwab@suse.de>
44259
44260         [BZ #15736]
44261         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44262         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44263         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44264         * string/test-strcasecmp.c (test_main): Run tests in several
44265         locales.
44266         * string/test-strncasecmp.c (test_main): Likewise.
44267
44268         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44269         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44270         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44271         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44272         (__strncasecmp_ssse3) [PIC]: Likewise.
44273
44274 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44275
44276         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44277
44278         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44279         instead of explicitly declaring xdecrypt.
44280         * nis/nss_nis/nis-publickey.c: Likewise.
44281
44282 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44283
44284         [BZ #15890]
44285         * nscd/aicache.c: Include res_hconf.h.
44286         (addhstaiX): Initialize res_hconf.
44287
44288 2013-08-26  Andreas Schwab  <schwab@suse.de>
44289
44290         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44291         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44292
44293 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44294
44295         * nscd/aicache.c (addhstaiX): Fix indentation.
44296
44297 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44298
44299         * configure.ac: Quote $build_pt_chown test.
44300         * configure: Regenerated.
44301
44302 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44303
44304         [BZ #15532]
44305         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44306         * math/s_cexpf.c (__cexpf): Likewise.
44307         * math/s_cexpl.c (__cexpl): Likewise.
44308         * math/libm-test.inc (cexp_test_data): Correct expected return
44309         value for NaN + i0.  Add another test.
44310
44311 2013-08-22  David S. Miller  <davem@davemloft.net>
44312
44313         * po/ca.po: Update Catalan translation from translation project.
44314         * po/uk.po: Add Ukrainian translations from translation project.
44315
44316 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44317
44318         [BZ #15797]
44319         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44320         is infinite, not alongside NaN test.
44321         * math/s_fdimf.c (__fdimf): Likewise.
44322         * math/s_fdiml.c (__fdiml): Likewise.
44323         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44324         errno is unchanged.
44325
44326 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44327
44328         * argp/argp-help.c: Fix typos.
44329         * crypt/speeds.c: Likewise.
44330         * csu/check_fds.c: Likewise.
44331         * elf/dl-load.c: Likewise.
44332         * elf/dl-open.c: Likewise.
44333         * elf/reldep3.c: Likewise.
44334         * elf/reldep.c: Likewise.
44335         * elf/sprof.c: Likewise.
44336         * iconv/iconv_charmap.c: Likewise.
44337         * iconv/skeleton.c: Likewise.
44338         * iconv/strtab.c: Likewise.
44339         * io/lockf64.c: Likewise.
44340         * libio/libioP.h: Likewise.
44341         * resolv/gai_notify.c: Likewise.
44342         * resolv/ns_name.c: Likewise.
44343         * resolv/ns_samedomain.c: Likewise.
44344         * resolv/res_send.c: Likewise.
44345         * stdlib/random.c: Likewise.
44346         * sunrpc/rpc/xdr.h: Likewise.
44347         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44348         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44349         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44350         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44351         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44352         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44353         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44354         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44355         * sysdeps/mach/hurd/check_fds.c: Likewise.
44356         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44357         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44358         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44359         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44360         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44361         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44362         * sysdeps/pthread/aio_notify.c: Likewise.
44363         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44364         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44365         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44366         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44367         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44368
44369 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44370
44371         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44372         version if bit_Slow_SSE4_2 is set.
44373         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44374         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44375
44376 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44377
44378         [BZ #15867]
44379         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44380         trampoline stack frame information.
44381         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44382         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44383         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44384         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44385         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44386         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44387         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44388         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44389         sa_flags value.
44390         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44391         interrupting a syscall and set with option SA_SIGINFO.
44392
44393 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44394
44395         [BZ #15531]
44396         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44397         argument is infinite.
44398         * math/s_cprojf.c (__cprojf): Likewise.
44399         * math/s_cprojl.c (__cprojl): Likewise.
44400         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44401         * math/libm-test.inc (cproj_test_data): Add more tests.
44402
44403         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44404
44405         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44406         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44407         size.  Use __ffs to determine corresponding shift.
44408
44409 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44410             Roland McGrath  <roland@hack.frob.com>
44411
44412         * Makefile (INSTALL): Remove trailing blank lines from output of
44413         makeinfo.
44414
44415 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44416
44417         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44418         Align 32 bit compat elf_greg to 8 bytes.
44419
44420 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44421
44422         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44423
44424 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44425
44426         * string/strcoll_l.c (coll_seq): New structure.
44427         (get_next_seq_cached): New function.
44428         (get_next_seq): New function.
44429         (do_compare): New function.
44430         (STRCOLL): Use GNU style definition.  Simplify implementation
44431         by using get_next_seq, get_next_seq_cached and do_compare.
44432
44433 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44434
44435         [BZ #14699]
44436         CVE-2013-4237
44437         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44438         member.
44439         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44440         member.
44441         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44442         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44443         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44444         conditional.
44445         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44446         GETDENTS_64BIT_ALIGNED.
44447         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44448         * manual/filesys.texi (Reading/Closing Directory): Document
44449         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44450         strongly.
44451         * manual/conf.texi (Limits for Files): Add portability note to
44452         NAME_MAX, PATH_MAX.
44453         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44454
44455 2013-08-13  Andreas Schwab  <schwab@suse.de>
44456
44457         [BZ #15749]
44458         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44459         of fabs.
44460         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44461         LDBL_MAX_EXP >= 16384]: Add tests for it.
44462
44463 2013-08-12  David S. Miller  <davem@davemloft.net>
44464
44465         * version.h (RELEASE): Set to "development".
44466         (VERSION): Set to "2.18.90".
44467         * NEWS: Add 2.19 section.
44468
44469 2013-08-03  David S. Miller  <davem@davemloft.net>
44470
44471         * po/ko.po: Update Korean translation from translation project.
44472
44473 2013-08-01  David S. Miller  <davem@davemloft.net>
44474
44475         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44476         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44477         Bilka.
44478
44479 2013-07-30  David S. Miller  <davem@davemloft.net>
44480
44481         * po/fr.po: Update French translation from translation project.
44482
44483 2013-07-28  David S. Miller  <davem@davemloft.net>
44484
44485         * po/cs.po: Update Czech translation from translation project.
44486
44487         * po/sv.po: Update Swedish translation from translation project.
44488
44489 2013-07-27  David S. Miller  <davem@davemloft.net>
44490
44491         * po/eo.po: Update Esperanto translation from translation project.
44492
44493         * po/vi.po: Update Vietnamese translation from translation project.
44494
44495         * po/de.po: Update German translation from translation project.
44496
44497 2013-07-26  David S. Miller  <davem@davemloft.net>
44498
44499         * po/bg.po: Update Bulgarian translation from translation project.
44500
44501         * po/nl.po: Update Dutch translation from translation project.
44502         * po/pl.po: Update Polish translation from translation project.
44503         * po/ru.po: Update Russian translation from translation project.
44504
44505 2013-07-24  David S. Miller  <davem@davemloft.net>
44506
44507         * po/libc.pot: Update.
44508
44509 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44510
44511         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44512         variable page size.
44513         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44514         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44515         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44516
44517 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44518
44519         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44520
44521 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44522             Andreas Schwab  <schwab@suse.de>
44523             Roland McGrath  <roland@hack.frob.com>
44524             Joseph Myers  <joseph@codesourcery.com>
44525             Carlos O'Donell  <carlos@redhat.com>
44526
44527         [BZ #15755]
44528         * config.h.in: Define HAVE_PT_CHOWN.
44529         * config.make.in (build-pt-chown): New variable.
44530         * configure.in (--enable-pt_chown): New configure option.
44531         * configure: Regenerate.
44532         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44533         build-pt-chown is enabled.
44534         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44535         pt_chown to fix pty ownership.
44536         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44537         CLOSE_ALL_FDS.
44538         * manual/install.texi (Configuring and compiling): Mention
44539         --enable-pt_chown. Add @findex for grantpt.
44540         * INSTALL: Regenerate.
44541
44542 2013-07-20  David S. Miller  <davem@davemloft.net>
44543
44544         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44545         difference between 32-bit and 64-bit.
44546
44547 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44548
44549         [BZ #15711]
44550         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44551         Avoid system header dependency with -ffreestanding.
44552         ($(objpfx)bits/syscall%d): Likewise.
44553
44554 2013-07-13  David S. Miller  <davem@davemloft.net>
44555
44556         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44557         underflows from atanl/atan2l due to bug 15319.
44558         (casinh_test_data): Likewise.
44559
44560 2013-07-07  David S. Miller  <davem@davemloft.net>
44561
44562         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44563
44564 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44565
44566         * sysdeps/i386/fpu/libm-test-ulps: Update.
44567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44568
44569 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44570
44571         * configure.in (--enable-lock-elision): Fix message text.
44572         * INSTALL: Regenerate.
44573         * configure: Regenerate.
44574
44575 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44576
44577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44578
44579 2013-07-03  Andreas Jaeger  <aj@suse.de>
44580
44581         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44582         define.
44583         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44584         (ptrace_peeksiginfo_args): Add.
44585         (__ptrace_peeksiginfo_flags): Add.
44586         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44587         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44588         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44589
44590 2013-07-03  Allan McRae  <allan@archlinux.org>
44591
44592         * sysdeps/i386/fpu/libm-test-ulps: Update.
44593
44594 2013-07-02  David S. Miller  <davem@davemloft.net>
44595
44596         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44597
44598 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44599
44600         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44601
44602 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44603
44604         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44606
44607 2013-07-02  Andi Kleen <ak@linux.intel.com>
44608
44609         * config.h.in (ENABLE_LOCK_ELISION): Add.
44610         * configure.in (--enable-lock-elision): Add option.
44611         * manual/install.texi: Document --enable lock elision.
44612         * configure: Regenerate
44613         * INSTALL: Regenerate.
44614
44615 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44616
44617         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44618         SSE4.2 strcasecmp for libc.a.
44619         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44620
44621 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44622
44623         [BZ #13304]
44624         * soft-fp/op-common.h (_FP_FMA): New macro.
44625         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44626         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44627         (_FP_MUL_MEAT_1_imm): ... here.
44628         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44629         (_FP_MUL_MEAT_1_wide): ... here.
44630         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44631         (_FP_MUL_MEAT_1_hard): ... here.
44632         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44633         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44634         (_FP_MUL_MEAT_2_wide): ... here.
44635         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44636         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44637         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44638         (_FP_MUL_MEAT_2_gmp): ... here.
44639         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44640         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44641         (_FP_MUL_MEAT_4_wide): ... here.
44642         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44643         (_FP_MUL_MEAT_4_gmp): ... here.
44644         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44645         (_FP_WFRACBITS_DW_S): Likewise.
44646         (_FP_WFRACXBITS_DW_S): Likewise.
44647         (_FP_HIGHBIT_DW_S): Likewise.
44648         (FP_FMA_S): Likewise.
44649         (_FP_FRAC_HIGH_DW_S): Likewise.
44650         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44651         (_FP_WFRACBITS_DW_D): Likewise.
44652         (_FP_WFRACXBITS_DW_D): Likewise.
44653         (_FP_HIGHBIT_DW_D): Likewise.
44654         (FP_FMA_D): Likewise.
44655         (_FP_FRAC_HIGH_DW_D): Likewise.
44656         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44657         (_FP_WFRACBITS_DW_E): Likewise.
44658         (_FP_WFRACXBITS_DW_E): Likewise.
44659         (_FP_HIGHBIT_DW_E): Likewise.
44660         (FP_FMA_E): Likewise.
44661         (_FP_FRAC_HIGH_DW_E): Likewise.
44662         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44663         (_FP_WFRACBITS_DW_Q): Likewise.
44664         (_FP_WFRACXBITS_DW_Q): Likewise.
44665         (_FP_HIGHBIT_DW_Q): Likewise.
44666         (FP_FMA_Q): Likewise.
44667         (_FP_FRAC_HIGH_DW_Q): Likewise.
44668         * soft-fp/fmasf4.c: New file.
44669         * soft-fp/fmadf4.c: Likewise.
44670         * soft-fp/fmatf4.c: Likewise.
44671
44672 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44673
44674         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44675         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44676         Silvermont.
44677         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44678         macro.
44679         (index_Slow_SSE4_2): Likewise.
44680         (index_Prefer_PMINUB_for_stringop): Likewise.
44681         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44682         bit_Slow_SSE4_2 is set.
44683         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44684         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44685
44686 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44687
44688         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44689         rtld_global._dl_hwcap2.
44690         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44691         POWER8.
44692         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44693         POWER8 feature descriptions defined in _dl_hwcap2.
44694         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44695         string handling for POWER8 feature bits.
44696         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44697         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44698         _dl_powerpc_cap_flags.
44699         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44700         * sysdeps/powerpc/rtld-global-offsets.sym
44701         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44702         _dl_hwcap2 in the rtld_global_ro structure.
44703
44704 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44705
44706         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44707         hardware capabilities in support of AT_HWCAP2.
44708         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44709         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44710         GLRO(dl_hwcap2).
44711         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44712         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44713         explicitly the unknown a_type display mechanism is used.
44714         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44715         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44716         struct member.
44717         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44718         to macro prototype for AT_HWCAP2 support.
44719         * sysdeps/i386/dl-procinfo.h: Likewise.
44720         * sysdeps/s390/dl-procinfo.h: Likewise.
44721         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44722         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44723         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44724         return -1 for unknown a_type display fallback.
44725         * sysdeps/sparc/dl-procinfo.h: Likewise.
44726         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44727         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44728
44729 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44730
44731         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44732         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44733
44734 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44735
44736         [BZ #12492]
44737         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44738         mprotect making __stack_prot writable.
44739
44740 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44741             Joseph Myers  <joseph@codesourcery.com>
44742
44743         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44744         as being properly aligned.
44745
44746 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44747
44748         * dlfcn/modstatic5.c: New file.
44749         * dlfcn/tststatic5.c: New file.
44750         * dlfcn/Makefile (tests): Add tststatic5.
44751         (tests-static): Likewise.
44752         (modules-names): Add modstatic5.
44753         (tststatic5-ENV): New variable.
44754         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44755
44756         [BZ #15022]
44757         * elf/dl-support.c (_dl_main_map): New variable.
44758         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44759         (_dl_nns, _dl_load_adds): Set to 1.
44760         (_dl_initial_searchlist): Refer to _dl_main_map.
44761         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44762         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44763         call to _dl_get_origin.
44764         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44765         around call_map.
44766         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44767         * dlfcn/modstatic3.c: New file.
44768         * dlfcn/tststatic3.c: New file.
44769         * dlfcn/tststatic4.c: New file.
44770         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44771         (tests-static): Likewise.
44772         (modules-names): Add modstatic3.
44773         (tststatic3-ENV, tststatic4-ENV): New variables.
44774         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44775         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44776
44777 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44778
44779         * configure.in (CC): Require GCC version 4.4 or later.
44780         * configure: Regenerated.
44781         * manual/install.texi (Tools for Compilation): Update GCC version
44782         requirement.
44783         * INSTALL: Regenerated.
44784
44785 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44786
44787         [BZ #15674]
44788         * string/test-memcmp.c (check2): New.
44789         (main): Call check2.
44790
44791         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44792
44793 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44794
44795         [BZ #15022]
44796         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44797         over to...
44798         (dl_open_worker) [!SHARED]: ... here.
44799
44800 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44801
44802         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44803
44804 2013-06-25  Richard Henderson  <rth@redhat.com>
44805
44806         * locale/programs/locarchive.c: Include <libc-internal.h>
44807
44808 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44809
44810         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44811         trailing whitespace removed.
44812
44813 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44814
44815         [BZ #10283]
44816         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44817         * locale/programs/locarchive.c: Include libc-mmap.h.
44818         (prepare_address_space): Take two new outputs (the mmap base and len).
44819         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44820         values.
44821         (create_archive): Declare new mmap base and len values for
44822         prepare_address_space, and store the result in ah.
44823         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44824         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44825         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44826         Declare new mmap base and len values for
44827         prepare_address_space, and store the result in new_ah.
44828         (open_archive): Declare new mmap base and len values for
44829         prepare_address_space, and store the result in ah.
44830         (close_archive): If ah->mmap_base is not NULL, use that and
44831         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44832         * sysdeps/generic/libc-mmap.h: New file.
44833
44834 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44835
44836         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44837         (ALIGN_UP): Likewise.
44838         (PTR_ALIGN_DOWN): Likewise.
44839         (PTR_ALIGN_UP): Likewise.
44840
44841 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44842
44843         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
44844         entry mapped to PPC_PLATFORM_POWER8.
44845         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
44846         POWER8.
44847         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
44848         (_dl_string_platform): Add case for exporting platform position for
44849         POWER8.
44850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
44851         search path to sysdeps/powerpc/powerpc32/power8 directory.
44852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
44853         search path to sysdeps/powerpc/powerpc64/power8 directory.
44854         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
44855         power7 directories.
44856         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
44857         power7 directories.
44858
44859 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44860
44861         * INSTALL: Regenerate.
44862
44863         * nscd/connections.c (nscd_init): Fix comment.
44864
44865 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
44866
44867         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
44868
44869         [BZ #15667]
44870         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
44871         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
44872
44873 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44874
44875         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
44876         DL_DST_REQ_STATIC.
44877         (DL_DST_REQ_STATIC): Remove macro.
44878
44879 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
44880
44881         [BZ #7006]
44882         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
44883         with a shift of 0 bits.
44884
44885 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44886
44887         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
44888         $(tststatic-ENV).
44889
44890 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44891
44892         [BZ #15655]
44893         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
44894
44895 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44896
44897         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
44898         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
44899         accepts -fno-tree-loop-distribute-patterns.
44900         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
44901         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
44902         recursive call.
44903         * string/memset.c (memset): Likewise.
44904         * string/test-memmove.c (simple_memmove): Disable loop transformation
44905         to library calls.
44906         * string/test-memset.c (simple_memset): Likewise.
44907         * benchtests/bench-memmove.c (simple_memmove): Likewise.
44908         * benchtests/bench-memset.c (simple_memset): Likewise.
44909         * configure: Regenerated.
44910
44911 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
44912
44913         * math/test-misc.c (main): Ignore fesetround failure when failures
44914         of subsequent rounding tests would be ignored.
44915
44916         [BZ #15654]
44917         * math/fedisblxcpt.c (fedisableexcept): Return 0.
44918         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
44919         * math/fegetenv.c (__fegetenv): Return 0.
44920         * math/fegetexcept.c (fegetexcept): Return 0.
44921         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
44922         FE_TONEAREST.
44923         * math/feholdexcpt.c (feholdexcept): Return 0.
44924         * math/fesetenv.c (__fesetenv): Return 0.
44925         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
44926         argument FE_TONEAREST.
44927         * math/feupdateenv.c (__feupdateenv): Return 0.
44928         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
44929
44930 2013-06-18  Roland McGrath  <roland@hack.frob.com>
44931
44932         * elf/rtld-Rules (rtld-compile-command.S): New variable.
44933         (rtld-compile-command.s, rtld-compile-command.c): New variables.
44934         ($(objpfx)rtld-%.os rules): Use them.
44935
44936 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44937
44938         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
44939         fields.
44940
44941 2013-06-17  Roland McGrath  <roland@hack.frob.com>
44942
44943         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
44944         length of target pattern, then descending length of dependency pattern.
44945         * configure.in (AWK): Require gawk 3.1.2 or newer.
44946         * manual/install.texi (Tools for Compilation): Say that we do.
44947         * configure: Regenerated.
44948
44949         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
44950         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
44951         * scripts/sysd-rules.awk: ... this new script.
44952         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
44953         than a glob-style pattern.
44954
44955 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
44956
44957         * math/test-misc.c (main): Do not treat incorrectly rounded
44958         conversions as failure unless ROUNDING_TESTS passes.
44959
44960 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
44961
44962         [BZ #15631]
44963         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
44964         restore exception state around main square root computation, then
44965         check for inexactness explicitly.
44966
44967         * math/libm-test.inc (fma_test_data): Add another test.
44968
44969 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
44970
44971         * manual/threads.texi (Non-POSIX Extensions): New document
44972         node.  Document pthread_getattr_default_np and
44973         pthread_setattr_default_np.
44974
44975         * Versions.def (libpthread): Add GLIBC_2.18.
44976         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
44977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
44978         Likewise.
44979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
44980         Likewise.
44981         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
44982         Likewise.
44983         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
44984         Likewise.
44985         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
44986         Likewise.
44987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
44988         Likewise.
44989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
44990         Likewise.
44991         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
44992         Likewise.
44993         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
44994         Likewise.
44995
44996 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44997
44998         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44999         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45000
45001 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45002             H.J. Lu  <hjl.tools@gmail.com>
45003
45004         [BZ #15627]
45005         * sysdeps/x86_64/rtld-memset.c: Remove file.
45006         * sysdeps/x86_64/rtld-memset.S: New file.
45007
45008 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45009
45010         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45011         (test_in_one_mode): Take arguments for whether the rounding mode
45012         is supported for each floating-point type.
45013         (do_test): Pass new arguments to test_in_one_mode using
45014         ROUNDING_TESTS.
45015
45016 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45017
45018         * posix/tst-waitid.c (do_test): Distinguish different instances of
45019         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45020         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45021         before entering the kernel for waitpid.
45022
45023 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45024
45025         * NEWS: Fix note on clock function precision.  Text by Roland
45026         McGrath.
45027
45028 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45029
45030         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45031         it into place only when and if the sanity check passes.
45032
45033 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45034
45035         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45036         output for whether conversion result is exact.  Take argument
45037         indicating whether type is IBM long double.
45038         (round_for_all): Change need_exact field to ibm_ld.
45039         * stdlib/tst-strtod-round.c (struct exactness): New type.
45040         (struct test): Change bool ld_ok field to struct exactness exact.
45041         (TEST): Update all definitions for change to field.
45042         (tests): Regenerate array contents.
45043         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45044         field value.  Check for IBM long double here.
45045         (do_test): Update calls to test_in_one_mode.
45046
45047 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45048
45049         [BZ #12515]
45050         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45051         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45052
45053 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45054
45055         [BZ #15605]
45056         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45057         generated by the compiler on loop optimizations.
45058         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45059         general definitions.
45060
45061 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45062
45063         * math/bug-nextafter.c: Include <math-tests.h>.
45064         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45065         the relevant type.
45066         * math/bug-nexttoward.c: Include <math-tests.h>.
45067         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45068         the relevant type.
45069         * math/test-misc.c: Include <math-tests.h>.
45070         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45071         the relevant type.
45072
45073 2013-06-12  Andreas Jaeger  <aj@suse.de>
45074
45075         * po/ia.po: Update Interlingua translation from translation
45076         project.
45077
45078 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45079
45080         * include/fenv.h: Include stdbool.h.
45081         (struct rm_ctx): New structure.
45082         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45083         Define macro.
45084         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45085         (SET_RESTORE_ROUNDF): Likewise.
45086         (SET_RESTORE_ROUNDL): Likewise.
45087         (SET_RESTORE_ROUND_NOEX): Likewise.
45088         (SET_RESTORE_ROUND_NOEXF): Likewise.
45089         (SET_RESTORE_ROUND_NOEXL): Likewise.
45090         (SET_RESTORE_ROUND_53BIT): Likewise.
45091         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45092         (libc_feresetround_noexf_ctx): Likewise.
45093         (libc_feresetround_noexl_ctx): Likewise.
45094         (libc_feholdsetround_53bit_ctx): Likewise.
45095         (libc_feresetround_53bit_ctx): Likewise.
45096         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45097         (libc_feholdexcept_setround_sse_ctx): New function.
45098         (libc_fesetenv_sse_ctx): Likewise.
45099         (libc_feupdateenv_sse_ctx): Likewise.
45100         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45101         (libc_feholdexcept_setround_387_ctx): Likewise.
45102         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45103         (libc_feholdsetround_387_prec_ctx): Likewise.
45104         (libc_feholdsetround_387_ctx): Likewise.
45105         (libc_feholdsetround_387_53bit_ctx): Likewise.
45106         (libc_feholdsetround_sse_ctx): Likewise.
45107         (libc_feresetround_sse_ctx): Likewise.
45108         (libc_feresetround_387_ctx): Likewise.
45109         (libc_feupdateenv_387_ctx): Likewise.
45110         (libc_feholdexcept_setroundf_ctx): Define macro.
45111         (libc_fesetenvf_ctx): Likewise.
45112         (libc_feupdateenvf_ctx): Likewise.
45113         (libc_feholdsetroundf_ctx): Likewise.
45114         (libc_feresetroundf_ctx): Likewise.
45115         (libc_feholdexcept_setround_ctx): Likewise.
45116         (libc_fesetenv_ctx): Likewise.
45117         (libc_feupdateenv_ctx): Likewise.
45118         (libc_feholdsetround_ctx): Likewise.
45119         (libc_feresetround_ctx): Likewise.
45120         (libc_feholdexcept_setroundl_ctx): Likewise.
45121         (libc_feupdateenvl_ctx): Likewise.
45122         (libc_feholdsetroundl_ctx): Likewise.
45123         (libc_feresetroundl_ctx): Likewise.
45124         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45125         (libc_feresetround_53bit_ctx): Likewise.
45126
45127 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45128
45129         * locale/iso-639.def: Convert to UTF-8.
45130
45131 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45132
45133         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45134         (EXCEPTION_TESTS_double): Likewise.
45135         (EXCEPTION_TESTS_long_double): Likewise.
45136         (EXCEPTION_TESTS): Likewise.
45137         * math/libm-test.inc (test_exceptions): Only test exceptions if
45138         EXCEPTION_TESTS (FLOAT).
45139
45140 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45141
45142         * benchtests/Makefile (string-bench): Add strcpy_chk and
45143         stpcpy_chk.
45144         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45145         * benchtests/bench-stpcpy_chk.c: New file.
45146         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45147         * benchtests/bench-strcpy_chk.c: New file.
45148         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45149         code.
45150         (do_test): Likewise.
45151
45152 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45153
45154         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45155         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45156         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45157         with tabs where appropriate.
45158         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45159         dl-procinfo.h.
45160         [PPC_PLATFORM_PPC440]: Likewise.
45161         [PPC_PLATFORM_PPC464]: Likewise.
45162         [PPC_PLATFORM_PPC476]: Likewise.
45163         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45164         ppc464, and ppc476 platform strings merging from ports/
45165         dl-procinfo.h.
45166
45167 2013-06-11  Andreas Schwab  <schwab@suse.de>
45168
45169         [BZ #14991]
45170         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45171         (from_ucs4_idx): Regenerate.
45172         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45173         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45174         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45175         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45176         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45177         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45178         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45179         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45180         from FROM_LOOP and TO_LOOP specific macros.
45181         (BODY): Handle combining characters.
45182         * iconvdata/BIG5HKSCS.irreversible: Update.
45183         * iconvdata/BIG5HKSCS.precomposed: New file.
45184         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45185         characters.
45186         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45187
45188 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45189
45190         * include/sys/time.h: Fix indentation and add copyright header.
45191
45192         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45193         (do_test): Likewise.
45194         * string/test-memchr.c (do_one_test): Likewise.
45195         (do_test): Likewise.
45196         * string/test-memcmp.c (do_one_test): Likewise.
45197         (do_test): Likewise.
45198         * string/test-memcpy.c (do_one_test): Likewise.
45199         (do_test): Likewise.
45200         * string/test-memmem.c (do_one_test): Likewise.
45201         (do_test): Likewise.
45202         (do_random_tests): Likewise.
45203         * string/test-memmove.c (do_one_test): Likewise.
45204         (do_test): Likewise.
45205         * string/test-memset.c (do_one_test): Likewise.
45206         (do_test): Likewise.
45207         * string/test-rawmemchr.c (do_one_test): Likewise.
45208         (do_test): Likewise.
45209         * string/test-strcasecmp.c (do_one_test): Likewise.
45210         (do_test): Likewise.
45211         * string/test-strcasestr.c (do_one_test): Likewise.
45212         (do_test): Likewise.
45213         * string/test-strcat.c (do_one_test): Likewise.
45214         (do_test): Likewise.
45215         * string/test-strchr.c (do_one_test): Likewise.
45216         (do_test): Likewise.
45217         * string/test-strcmp.c (do_one_test): Likewise.
45218         (do_test): Likewise.
45219         * string/test-strcpy.c (do_one_test): Likewise.
45220         (do_test): Likewise.
45221         * string/test-string.h: Likewise.
45222         (test_init): Likewise.
45223         * string/test-strlen.c (do_one_test): Likewise.
45224         (do_test): Likewise.
45225         * string/test-strncasecmp.c (do_one_test): Likewise.
45226         (do_test): Likewise.
45227         * string/test-strncat.c (do_one_test): Likewise.
45228         (do_test): Likewise.
45229         * string/test-strncmp.c (do_one_test): Likewise.
45230         (do_test_limit): Likewise.
45231         (do_test): Likewise.
45232         * string/test-strncpy.c (do_one_test): Likewise.
45233         (do_test): Likewise.
45234         * string/test-strnlen.c (do_one_test): Likewise.
45235         (do_test): Likewise.
45236         * string/test-strpbrk.c (do_one_test): Likewise.
45237         (do_test): Likewise.
45238         * string/test-strrchr.c (do_one_test): Likewise.
45239         (do_test): Likewise.
45240         * string/test-strspn.c (do_one_test): Likewise.
45241         (do_test): Likewise.
45242         * string/test-strstr.c (do_one_test): Likewise.
45243         (do_test): Likewise.
45244
45245         * benchtests/Makefile (string-bench): Add string benchmarks.
45246         * benchtests/bench-bcopy-ifunc.c: New file.
45247         * benchtests/bench-bcopy.c: New file.
45248         * benchtests/bench-bzero-ifunc.c: New file.
45249         * benchtests/bench-bzero.c: New file.
45250         * benchtests/bench-memccpy-ifunc.c: New file.
45251         * benchtests/bench-memccpy.c: New file.
45252         * benchtests/bench-memchr-ifunc.c: New file.
45253         * benchtests/bench-memchr.c: New file.
45254         * benchtests/bench-memcmp-ifunc.c: New file.
45255         * benchtests/bench-memcmp.c: New file.
45256         * benchtests/bench-memmem-ifunc.c: New file.
45257         * benchtests/bench-memmem.c: New file.
45258         * benchtests/bench-memmove-ifunc.c: New file.
45259         * benchtests/bench-memmove.c: New file.
45260         * benchtests/bench-mempcpy-ifunc.c: New file.
45261         * benchtests/bench-mempcpy.c: New file.
45262         * benchtests/bench-memset-ifunc.c: New file.
45263         * benchtests/bench-memset.c: New file.
45264         * benchtests/bench-rawmemchr-ifunc.c: New file.
45265         * benchtests/bench-rawmemchr.c: New file.
45266         * benchtests/bench-stpcpy-ifunc.c: New file.
45267         * benchtests/bench-stpcpy.c: New file.
45268         * benchtests/bench-stpncpy-ifunc.c: New file.
45269         * benchtests/bench-stpncpy.c: New file.
45270         * benchtests/bench-strcasecmp-ifunc.c: New file.
45271         * benchtests/bench-strcasecmp.c: New file.
45272         * benchtests/bench-strcasestr-ifunc.c: New file.
45273         * benchtests/bench-strcasestr.c: New file.
45274         * benchtests/bench-strcat-ifunc.c: New file.
45275         * benchtests/bench-strcat.c: New file.
45276         * benchtests/bench-strchr-ifunc.c: New file.
45277         * benchtests/bench-strchr.c: New file.
45278         * benchtests/bench-strchrnul-ifunc.c: New file.
45279         * benchtests/bench-strchrnul.c: New file.
45280         * benchtests/bench-strcmp-ifunc.c: New file.
45281         * benchtests/bench-strcmp.c: New file.
45282         * benchtests/bench-strcpy-ifunc.c: New file.
45283         * benchtests/bench-strcpy.c: New file.
45284         * benchtests/bench-strcspn-ifunc.c: New file.
45285         * benchtests/bench-strcspn.c: New file.
45286         * benchtests/bench-strlen-ifunc.c: New file.
45287         * benchtests/bench-strlen.c: New file.
45288         * benchtests/bench-strncasecmp-ifunc.c: New file.
45289         * benchtests/bench-strncasecmp.c: New file.
45290         * benchtests/bench-strncat-ifunc.c: New file.
45291         * benchtests/bench-strncat.c: New file.
45292         * benchtests/bench-strncmp-ifunc.c: New file.
45293         * benchtests/bench-strncmp.c: New file.
45294         * benchtests/bench-strncpy-ifunc.c: New file.
45295         * benchtests/bench-strncpy.c: New file.
45296         * benchtests/bench-strnlen-ifunc.c: New file.
45297         * benchtests/bench-strnlen.c: New file.
45298         * benchtests/bench-strpbrk-ifunc.c: New file.
45299         * benchtests/bench-strpbrk.c: New file.
45300         * benchtests/bench-strrchr-ifunc.c: New file.
45301         * benchtests/bench-strrchr.c: New file.
45302         * benchtests/bench-strspn-ifunc.c: New file.
45303         * benchtests/bench-strspn.c: New file.
45304         * benchtests/bench-strstr-ifunc.c: New file.
45305         * benchtests/bench-strstr.c: New file.
45306
45307         * benchtests/Makefile: Disable parallel execution of targets.
45308         (string-bench): Add memcpy.
45309         (benchset): New variable to store a list of benchmark sets.
45310         (bench-func): Renamed from bench.
45311         (bench-set): New target.
45312         (bench): Depend on bench-func and bench-set.
45313         * benchtests/README: Add section on benchmark sets.
45314         * benchtests/bench-memcpy-ifunc.c: New file.
45315         * benchtests/bench-memcpy.c: New file.
45316         * benchtests/bench-string.h: New file.
45317
45318 2013-06-11  Andreas Schwab  <schwab@suse.de>
45319
45320         [BZ #15577]
45321         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45322         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45323         values in the triple.
45324         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45325         terminator in the group key.
45326
45327 2013-06-11  Andreas Jaeger  <aj@suse.de>
45328
45329         * po/zh_TW.po: Update Chinese (traditional) translation from
45330         translation project.
45331
45332 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45333
45334         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45335         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45336         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45337         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45338         (clock_getcpuclockid): Likewise.
45339         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45340         Add weak_alias and libc_hidden_def.
45341         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45342         * rt/clock_gettime.c (clock_gettime): Rename to
45343         __clock_gettime.  Add weak_alias and libc_hidden_def.
45344         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45345         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45346         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45347         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45348         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45349         Likewise.
45350         * rt/clock_settime.c (clock_settime): Rename to
45351         __clock_settime.  Add weak_alias and libc_hidden_def.
45352         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45353
45354 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45355
45356         * mach/err_boot.sub: Remove trailing whitespace.
45357         * mach/err_ipc.sub: Likewise.
45358         * mach/err_mach.sub: Likewise.
45359
45360         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45361         (ROUNDING_TESTS_double): Likewise.
45362         (ROUNDING_TESTS_long_double): Likewise.
45363         (ROUNDING_TESTS): Likewise.
45364         * math/libm-test.inc: Include <math-tests.h>.
45365         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45366         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45367         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45368         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45369
45370 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45371
45372         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45373         of assigning.
45374
45375 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45376
45377         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45378         otherwise empty TRANS lines.
45379         * sysdeps/gnu/errlist.c: Regenerated.
45380
45381         * catgets/gencat.c (error_print): Use (void) in function
45382         definition.
45383         * crypt/crypt_util.c (__init_des): Likewise.
45384         * crypt/speeds.c (Stop): Likewise.
45385         (main): Likewise.
45386         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45387         * inet/ruserpass.c (token): Likewise.
45388         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45389         * intl/localealias.c (extend_alias_table): Likewise.
45390         * intl/plural-exp.c (init_germanic_plural): Likewise.
45391         * libio/fcloseall.c (__fcloseall): Likewise.
45392         * libio/genops.c (_IO_flush_all): Likewise.
45393         (_IO_flush_all_linebuffered): Likewise.
45394         (_IO_cleanup): Likewise.
45395         (_IO_iter_begin): Likewise.
45396         (_IO_iter_end): Likewise.
45397         (_IO_list_lock): Likewise.
45398         (_IO_list_unlock): Likewise.
45399         (_IO_list_resetlock): Likewise.
45400         * libio/getchar.c (getchar): Likewise.
45401         * libio/getchar_u.c (getchar_unlocked): Likewise.
45402         * libio/getwchar.c (getwchar): Likewise.
45403         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45404         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45405         * login/getpt.c (__getpt): Likewise.
45406         * login/tst-utmp.c (main): Likewise.
45407         * malloc/hooks.c (__malloc_check_init): Likewise.
45408         * malloc/malloc.c (__malloc_stats): Likewise.
45409         * malloc/mtrace.c (tr_break): Likewise.
45410         (mtrace): Likewise.
45411         (muntrace): Likewise.
45412         * misc/fstab.c (endfsent): Likewise.
45413         * misc/getclktck.c (__getclktck): Likewise.
45414         * misc/getdtsz.c (__getdtablesize): Likewise.
45415         * misc/gethostid.c (gethostid): Likewise.
45416         * misc/getpagesize.c (__getpagesize): Likewise.
45417         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45418         (__get_nprocs): Likewise.
45419         (__get_phys_pages): Likewise.
45420         (__get_avphys_pages): Likewise.
45421         * misc/getttyent.c (getttyent): Likewise.
45422         (setttyent): Likewise.
45423         (endttyent): Likewise.
45424         * misc/getusershell.c (getusershell): Likewise.
45425         (endusershell): Likewise.
45426         (setusershell): Likewise.
45427         (initshells): Likewise.
45428         * misc/hsearch.c (__hdestroy): Likewise.
45429         * misc/sync.c (sync): Likewise.
45430         * misc/syslog.c (closelog_internal): Likewise.
45431         (closelog): Likewise.
45432         * misc/ttyslot.c (ttyslot): Likewise.
45433         * misc/vhangup.c (vhangup): Likewise.
45434         * posix/fork.c (__fork): Likewise.
45435         * posix/getegid.c (__getegid): Likewise.
45436         * posix/geteuid.c (__geteuid): Likewise.
45437         * posix/getgid.c (__getgid): Likewise.
45438         * posix/getpid.c (__getpid): Likewise.
45439         * posix/getppid.c (__getppid): Likewise.
45440         * posix/getuid.c (__getuid): Likewise.
45441         * posix/pause.c (pause): Likewise.
45442         * posix/setpgrp.c (setpgrp): Likewise.
45443         * posix/setsid.c (__setsid): Likewise.
45444         * posix/test-vfork.c (noop): Likewise.
45445         * resolv/gethnamaddr.c (_endhtent): Likewise.
45446         (_gethtent): Likewise.
45447         (ht_endhostent): Likewise.
45448         (gethostent): Likewise.
45449         (dns_service): Likewise.
45450         * stdlib/drand48.c (drand48): Likewise.
45451         * stdlib/lrand48.c (lrand48): Likewise.
45452         * stdlib/mrand48.c (mrand48): Likewise.
45453         * stdlib/rand.c (rand): Likewise.
45454         * stdlib/random.c (__random): Likewise.
45455         * stdlib/setenv.c (clearenv): Likewise.
45456         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45457         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45458         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45459         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45460         (__get_nprocs): Likewise.
45461         (__get_phys_pages): Likewise.
45462         (__get_avphys_pages): Likewise.
45463         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45464         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45465         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45466         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45467         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45468         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45469         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45470         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45471         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45472         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45473         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45474         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45475         * sysdeps/posix/clock.c (clock): Likewise.
45476         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45477         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45478         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45479         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45480         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45481         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45482         (__get_nprocs_conf): Likewise.
45483         (__get_phys_pages): Likewise.
45484         (__get_avphys_pages): Likewise.
45485         * time/clock.c (clock): Likewise.
45486         * time/tzset.c (__tzname_max): Likewise.
45487
45488 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45489
45490         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45491         (__bswap_32): Do not use "register".
45492         * crypt/crypt.c (_ufc_doit_r): Likewise.
45493         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45494         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45495         * gmon/gmon.c (__monstartup): Likewise.
45496         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45497         * hurd/hurdmalloc.c (more_memory): Likewise.
45498         (malloc): Likewise.
45499         (free): Likewise.
45500         (realloc): Likewise.
45501         (malloc_fork_prepare): Likewise.
45502         (malloc_fork_parent): Likewise.
45503         (malloc_fork_child): Likewise.
45504         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45505         (_svcauth_des): Likewise.
45506         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45507         * inet/inet_net.c (inet_network): Likewise.
45508         * inet/inet_netof.c (inet_netof): Likewise.
45509         * inet/rcmd.c (__validuser2_sa): Likewise.
45510         * io/fts.c (fts_open): Likewise.
45511         (fts_load): Likewise.
45512         (fts_close): Likewise.
45513         (fts_read): Likewise.
45514         (fts_children): Likewise.
45515         (fts_build): Likewise.
45516         (fts_stat): Likewise.
45517         (fts_sort): Likewise.
45518         (fts_alloc): Likewise.
45519         (fts_lfree): Likewise.
45520         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45521         (_IO_file_xsgetn): Likewise.
45522         (_IO_file_xsgetn_mmap): Likewise.
45523         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45524         (_IO_cookie_write): Likewise.
45525         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45526         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45527         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45528         * malloc/obstack.c (_obstack_begin): Likewise.
45529         (_obstack_begin_1): Likewise.
45530         (_obstack_newchunk): Likewise.
45531         (_obstack_allocated_p): Likewise.
45532         (obstack_free): Likewise.
45533         (_obstack_memory_used): Likewise.
45534         * misc/getttyent.c (getttynam): Likewise.
45535         (getttyent): Likewise.
45536         (skip): Likewise.
45537         (value): Likewise.
45538         * misc/getusershell.c (initshells): Likewise.
45539         * misc/syslog.c (__vsyslog_chk): Likewise.
45540         * misc/ttyslot.c (ttyslot): Likewise.
45541         * nis/nis_hash.c (__nis_hash): Likewise.
45542         * posix/fnmatch_loop.c (FCT): Likewise.
45543         * posix/getconf.c (print_all): Likewise.
45544         (main): Likewise.
45545         * posix/getopt.c (exchange): Likewise.
45546         * posix/glob.c (globfree): Likewise.
45547         (prefix_array): Likewise.
45548         (__glob_pattern_type): Likewise.
45549         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45550         (NS_GET32): Likewise.
45551         (NS_PUT16): Likewise.
45552         (NS_PUT32): Likewise.
45553         * resolv/gethnamaddr.c (getanswer): Likewise.
45554         (gethostbyname2): Likewise.
45555         (gethostbyaddr): Likewise.
45556         (_gethtent): Likewise.
45557         (_gethtbyname2): Likewise.
45558         (_gethtbyaddr): Likewise.
45559         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45560         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45561         * resolv/res_init.c (__res_vinit): Likewise.
45562         (net_mask): Likewise.
45563         * resolv/res_mkquery.c (outchar): Likewise.
45564         (PRINT): Likewise.
45565         * stdio-common/printf_fp.c (outchar): Likewise.
45566         (PRINT): Likewise.
45567         * stdio-common/printf_fphex.c (outchar): Likewise.
45568         (PRINT): Likewise.
45569         * stdio-common/printf_size.c (outchar): Likewise.
45570         (PRINT): Likewise.
45571         * stdio-common/test_rdwr.c (main): Likewise.
45572         * stdio-common/tfformat.c (matches): Likewise.
45573         * stdio-common/vfprintf.c (outchar): Likewise.
45574         (printf_unknown): Likewise.
45575         (buffered_vfprintf): Likewise.
45576         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45577         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45578         (ReadFile): Likewise.
45579         * stdlib/qsort.c (SWAP): Likewise.
45580         (_quicksort): Likewise.
45581         * stdlib/setenv.c (__add_to_environ): Likewise.
45582         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45583         * stdlib/strtol_l.c (__strtol_l): Likewise.
45584         * stdlib/tst-strtod.c (main): Likewise.
45585         * stdlib/tst-strtol.c (main): Likewise.
45586         * stdlib/tst-strtoll.c (main): Likewise.
45587         * string/bits/string2.h (__strcmp_cc): Likewise.
45588         (__strcmp_cg): Likewise.
45589         (__strcspn_c1): Likewise.
45590         (__strcspn_c2): Likewise.
45591         (__strcspn_c3): Likewise.
45592         (__strspn_c1): Likewise.
45593         (__strspn_c2): Likewise.
45594         (__strspn_c3): Likewise.
45595         (__strsep_1c): Likewise.
45596         (__strsep_2c): Likewise.
45597         (__strsep_3c): Likewise.
45598         * string/memccpy.c (__memccpy): Likewise.
45599         * string/stpcpy.c (__stpcpy): Likewise.
45600         * string/strcmp.c (strcmp): Likewise.
45601         * string/strrchr.c (strrchr): Likewise.
45602         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45603         Likewise.
45604         * sysdeps/mach/hurd/getcwd.c
45605         (_hurd_canonicalize_directory_name_internal): Likewise.
45606         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45607         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45608         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45609         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45610         Likewise, in both definitions.
45611         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45612         definitions.
45613         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45614         64] (__bswap_64): Likewise.
45615         * time/test_time.c (main): Likewise.
45616         * time/tzfile.c (__tzfile_read): Likewise.
45617         (__tzfile_compute): Likewise.
45618         * time/tzset.c (__tzset_parse_tz): Likewise.
45619         (tzset_internal): Likewise.
45620         (compute_change): Likewise.
45621         * wcsmbs/wcscat.c (__wcscat): Likewise.
45622         * wcsmbs/wcschr.c (wcschr): Likewise.
45623         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45624         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45625         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45626         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45627         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45628         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45629         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45630         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45631         * wcsmbs/wmemset.c (wmemset): Likewise.
45632
45633 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45634
45635         * scripts/config.guess: Update to version 2013-05-16.
45636         * scripts/config.sub: Update to version 2013-04-24.
45637         * scripts/install-sh: Update to version 2011-11-20.07.
45638         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45639         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45640
45641 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45642
45643         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45644         * elf/sln.c: Likewise.
45645         * hurd/hurd/ioctl.h: Likewise.
45646         * hurd/hurdmalloc.c: Likewise.
45647         * hurd/xattr.c: Likewise.
45648         * include/shlib-compat.h: Likewise.
45649         * inet/ruserpass.c: Likewise.
45650         * libio/iofgets_u.c: Likewise.
45651         * libio/iofgetws_u.c: Likewise.
45652         * locale/programs/ld-identification.c: Likewise.
45653         * locale/programs/ld-time.c: Likewise.
45654         * mach/msg-destroy.c: Likewise.
45655         * nss/nss_files/files-netgrp.c: Likewise.
45656         * resolv/res_data.c: Likewise.
45657         * soft-fp/op-1.h: Likewise.
45658         * soft-fp/op-2.h: Likewise.
45659         * soft-fp/op-4.h: Likewise.
45660         * soft-fp/op-common.h: Likewise.
45661         * stdio-common/printf_fphex.c: Likewise.
45662         * stdlib/strtod_l.c: Likewise.
45663         * sunrpc/rpc/clnt.h: Likewise.
45664         * sysdeps/generic/framestate.c: Likewise.
45665         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45666         * sysdeps/i386/bsd-setjmp.S: Likewise.
45667         * sysdeps/i386/__longjmp.S: Likewise.
45668         * sysdeps/i386/setjmp.S: Likewise.
45669         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45670         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45671         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45672         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45673         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45674         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45675         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45676         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45677         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45678         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45679         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45680         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45681         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45682         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45683         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45684         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45685         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45686         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45687         * sysdeps/ieee754/support.c: Likewise.
45688         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45689         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45690         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45691         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45692         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45693         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45694         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45695         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45696         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45697         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45698         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45699         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45700         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45701         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45702         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45703         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45704         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45706
45707 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45708
45709         * posix/transbug.c: Remove executable mode.
45710
45711 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45712
45713         * crypt/speeds.c: Remove trailing whitespace.
45714         * dlfcn/default.c: Likewise.
45715         * elf/ifuncdep2.c: Likewise.
45716         * elf/ifuncmain1.c: Likewise.
45717         * elf/ifuncmain1vis.c: Likewise.
45718         * elf/testobj.h: Likewise.
45719         * elf/tst-stackguard1.c: Likewise.
45720         * gmon/sys/gmon.h: Likewise.
45721         * hurd/hurdmsg.c: Likewise.
45722         * hurd/new-fd.c: Likewise.
45723         * hurd/ports-get.c: Likewise.
45724         * iconvdata/ibm1008_420.c: Likewise.
45725         * inet/tst-getni1.c: Likewise.
45726         * inet/tst-getni2.c: Likewise.
45727         * libio/ioungetc.c: Likewise.
45728         * libio/wfiledoalloc.c: Likewise.
45729         * manual/libm-err-tab.pl: Likewise.
45730         * math/w_dremf.c: Likewise.
45731         * misc/ftruncate.c: Likewise.
45732         * posix/bug-glob2.c: Likewise.
45733         * posix/tst-pcre.c: Likewise.
45734         * posix/wait4.c: Likewise.
45735         * resolv/README: Likewise.
45736         * resolv/res_debug.h: Likewise.
45737         * resolv/tst-inet_ntop.c: Likewise.
45738         * setjmp/bug269-setjmp.c: Likewise.
45739         * soft-fp/extended.h: Likewise.
45740         * soft-fp/op-1.h: Likewise.
45741         * soft-fp/op-2.h: Likewise.
45742         * soft-fp/op-4.h: Likewise.
45743         * soft-fp/op-8.h: Likewise.
45744         * soft-fp/testit.c: Likewise.
45745         * stdio-common/bug16.c: Likewise.
45746         * stdlib/random.c: Likewise.
45747         * sunrpc/rpcsvc/rquota.x: Likewise.
45748         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45749         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45750         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45751         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45752         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45753         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45754         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45755         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45756         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45757         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45758         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45759         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45760         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45761         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45762         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45763         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45764         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45765         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45766         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45767         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45768         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45769         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45770         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45771         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45772         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45773         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45774         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45775         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45776         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45777         * sysdeps/ieee754/s_lib_version.c: Likewise.
45778         * sysdeps/mach/hurd/check_fds.c: Likewise.
45779         * sysdeps/mach/hurd/getsockname.c: Likewise.
45780         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45781         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45782         * sysdeps/powerpc/bits/link.h: Likewise.
45783         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45784         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45785         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45786         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45787         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45788         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45789         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45790         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45791         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45792         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45793         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45794         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45795         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45796         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45797         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45798         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45799         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45800         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45801         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45802         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45803         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45804         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45805         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45806         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45807         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45808         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45809         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45810         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45811         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45812         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45813         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45814         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45815         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45816         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45817         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45818         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45819         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45820         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45821         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45822         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45823         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45824         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45825         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45826         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45827         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45828         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45829         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45830         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45831         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45832         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45833         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45834         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45835         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45836         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45837         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45838         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45839         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45840         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45841         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
45842         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
45843         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
45844         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
45845         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
45846         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
45847         * sysdeps/powerpc/sysdep.h: Likewise.
45848         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
45849         * sysdeps/s390/s390-64/sub_n.S: Likewise.
45850         * sysdeps/sh/dl-trampoline.S: Likewise.
45851         * sysdeps/sh/memset.S: Likewise.
45852         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
45853         * sysdeps/sh/strlen.S: Likewise.
45854         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
45855         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
45856         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
45857         * sysdeps/sparc/sparc32/rem.S: Likewise.
45858         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
45859         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
45860         * sysdeps/sparc/sparc32/strchr.S: Likewise.
45861         * sysdeps/sparc/sparc32/udiv.S: Likewise.
45862         * sysdeps/sparc/sparc32/urem.S: Likewise.
45863         * sysdeps/sparc/sparc64/add_n.S: Likewise.
45864         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
45865         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
45866         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
45867         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
45868         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
45869         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
45870         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
45871         * sysdeps/unix/bsd/times.c: Likewise.
45872         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
45873         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
45874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
45875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
45876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45877         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
45878         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
45879         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
45880         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
45881         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
45882         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
45883         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
45884         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
45885         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
45886         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
45887         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
45888         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
45889         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
45890         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
45891         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
45892         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
45893         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
45894         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
45895         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
45896         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
45897         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
45898         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
45899         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45900         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
45901         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
45902         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
45903         * sysdeps/x86_64/strcspn.S: Likewise.
45904
45905 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45906
45907         * locale/C-translit.h: Revert #include <stdint.h> because this is a
45908         generated file.  Regenerate properly from gen-translit.pl.
45909         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
45910         locale/C-translit.h.
45911
45912 2013-06-05  Andreas Schwab  <schwab@suse.de>
45913
45914         [BZ #15100]
45915         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
45916         week as 6 instead of -1.
45917         * time/tst-strptime.c (day_tests): Add test case.
45918
45919 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45920
45921         * sysdeps/generic/math_private.h
45922         (libc_feholdexcept_setround_53bit): Replace with
45923         libc_feholdsetround_53bit.
45924         (libc_feupdateenv_53bit): Replace with
45925         libc_feresetround_53bit.
45926         (SET_RESTORE_ROUND_53BIT): Adjust.
45927
45928 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
45929
45930         * string/test-strchrnul.c: Add copyright header.
45931
45932         * posix/tst-getaddrinfo4.c: Increase test timeout.
45933
45934 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
45935
45936         [BZ #15536]
45937         * math/libm-test.inc (MAX_EXP): Remove
45938         (MIN_EXP): Define.
45939         (ulp): Use MIN_EXP - MANT_DIG.
45940         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
45941
45942 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
45943
45944         * po/be.po: Revert last change.
45945         * po/zh_CN.po: Likewise.
45946         * po/header.pot: Likewise.
45947
45948 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
45949
45950         * Makefile ($(common-objpfx)linkobj/libc.so): Define
45951         link-libc-deps to empty as target-specific variable.
45952         * Makerules (link-libc-args): New variable.
45953         (libc-for-link): Likewise.
45954         (link-libc-deps): Likewise.
45955         (lib%.so): Depend on $(link-libc-deps).  Link with
45956         $(link-libc-args).
45957         (build-module): Link with $(link-libc-args).
45958         (build-module-asneeded): Likewise.
45959         (build-module-helper-objlist): Filter out $(link-libc-deps) from
45960         list of objects.
45961         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
45962         target-specific variable.
45963         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
45964         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
45965         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
45966         libc.
45967         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
45968         libc and ld.so.
45969         ($(objpfx)libpcprofile.so): Likewise.
45970         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
45971         libc_nonshared.a.
45972         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
45973         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
45974         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
45975         $(link-libc-deps).
45976         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
45977         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
45978         * login/Makefile ($(objpfx)libutil.so): Likewise.
45979         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
45980         * math/Makefile ($(objpfx)libm.so): Likewise.
45981         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
45982         $(objpfx)libnsl.so): Define libc-for-link as target-specific
45983         variable instead of depending directly on libc.
45984         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
45985         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
45986         $(link-libc-deps).
45987         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
45988         libc.
45989         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
45990         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
45991         ($(objpfx)libanl.so): Likewise.
45992         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
45993         ld.so.
45994         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
45995         $(link-libc-deps).
45996         * sysdeps/i386/fpu/Makefile: Remove file.
45997         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
45998         ($(objpfx)libm.so): Remove dependency on ld.so.
45999
46000 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46001
46002         [BZ # 15553]
46003         * nis/yp_xdr.c (XDRMAXNAME): Define.
46004         (XDRMAXRECORD): Define.
46005         (xdr_domainname): Use XDRMAXNAME.
46006         (xdr_mapname): Likewise.
46007         (xdr_peername): Likewise.
46008         (xdr_keydat): Use XDRMAXRECORD.
46009         (xdr_valdat): Likewise.
46010
46011 2013-05-30  Jeff Law  <law@redhat.com>
46012
46013         [BZ #14256]
46014         * manual/errno.texi (ESTALE): Update to account for more than
46015         just NFS file systems.
46016         * sysdeps/gnu/errlist.c: Regenerated.
46017
46018 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46019
46020         [BZ #15465]
46021         * elf/Makefile (tests): Add tst-null-argv.
46022         (modules-names):  Add tst-null-argv-lib.
46023         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46024         (tst-null-argv-ENV): Set environment for tst-null-argv.
46025         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46026         (RTLD_PROGNAME): New macro.
46027         * elf/tst-null-argv.c: New test case.
46028         * elf/tst-null-argv-lib.c: Library for test case.
46029         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46030         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46031         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46032         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46033         * elf/dl-init.c (call_init): Likewise.
46034         (_dl_init): Likewise.
46035         * elf/dl-load.c (print_search_path): Likewise.
46036         (_dl_map_object): Likewise.
46037         * elf/dl-lookup.c (do_lookup_x): Likewise.
46038         (add_dependency): Likewise.
46039         (_dl_lookup_symbol_x): Likewise.
46040         (_dl_debug_bindings): Likewise.
46041         * elf/dl-open.c (_dl_show_scope): Likewise.
46042         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46043         * elf/dl-version.c (match_symbol): Likewise.
46044         (_dl_check_map_versions): Likewise.
46045         * elf/rtld.c (dl_main): Likewise.
46046         (print_unresolved): Use RTLD_PROGNAME.
46047         (print_missing_version): Likewise.
46048         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46049         (elf_machine_rela): Likewise.
46050         * sysdeps/powerpc/powerpc32/dl-machine.c
46051         (__process_machine_rela): Likewise.
46052         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46053         Likewise.
46054         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46055         Likewise.
46056         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46057         Likewise.
46058         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46059         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46060         Likewise.
46061         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46062         Likewise.
46063         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46064
46065 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46066
46067         * po/be.po: Add descriptive title.
46068         * po/zh_CN.po: Likewise.
46069         * po/header.pot: Likewise.
46070
46071 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46072
46073         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46074         error message.
46075         (enlarge_archive): Likewise.
46076
46077 2013-05-28  Ben North  <ben@redfrontdoor.org>
46078
46079         * manual/arith.texi (frexp): It is the magnitude of the return
46080         value which lies in [0.5, 1), not the return value itself.
46081
46082 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46083
46084         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46085
46086 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46087
46088         * stdio-common/bug26.c (main): Correct fscanf template.
46089
46090         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46091         declare _dl_skip_args.
46092
46093         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46094         Don't declare.
46095
46096         * manual/platform.texi: Add missing @end deftypefun.
46097
46098 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46099
46100         [BZ #15529]
46101         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46102         bit of mantissa of 2^16382.
46103         * math/libm-test.inc (hypot_test_data): Add more tests.
46104
46105         * math/libm-test.inc: Add drem and pow10 to list of tested
46106         functions.
46107         (pow10_test): New function.
46108         (drem_test): Likewise.
46109         (drem_test_tonearest): Likewise.
46110         (drem_test_towardzero): Likewise.
46111         (drem_test_downward): Likewise.
46112         (drem_test_upward): Likewise.
46113         (main): Call the new functions.
46114
46115         * math/libm-test.inc (finite_test_data): Remove.
46116         (finite_test): Run tests from isfinite_test_data.
46117         (gamma_test_data): Remove.
46118         (gamma_test): Run tests from lgamma_test_data.
46119         * sysdeps/i386/fpu/libm-test-ulps: Update.
46120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46121
46122 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46123
46124         * manual/platform.texi: Add PowerPC PPR function set documentation.
46125         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46126         implementation.
46127
46128 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46129
46130         * math/libm-test.inc (MAX_EXP): Define.
46131         (ULPDIFF): Define.
46132         (ulp): New function.
46133         (check_float_internal): Use ULPDIFF.
46134         (cpow_test): Disable failing test.
46135         (check_ulp): Test ulp() implemetnation.
46136         (main): Call check_ulp before starting tests.
46137
46138 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46139
46140         * math/gen-libm-test.pl (generate_testfile): Do not handle
46141         START_DATA and END_DATA.
46142         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46143         END_DATA.
46144         (acos_tonearest_test_data): Likewise.
46145         (acos_towardzero_test_data): Likewise.
46146         (acos_downward_test_data): Likewise.
46147         (acos_upward_test_data): Likewise.
46148         (acosh_test_data): Likewise.
46149         (asin_test_data): Likewise.
46150         (asin_tonearest_test_data): Likewise.
46151         (asin_towardzero_test_data): Likewise.
46152         (asin_downward_test_data): Likewise.
46153         (asin_upward_test_data): Likewise.
46154         (asinh_test_data): Likewise.
46155         (atan_test_data): Likewise.
46156         (atanh_test_data): Likewise.
46157         (atan2_test_data): Likewise.
46158         (cabs_test_data): Likewise.
46159         (cacos_test_data): Likewise.
46160         (cacosh_test_data): Likewise.
46161         (carg_test_data): Likewise.
46162         (casin_test_data): Likewise.
46163         (casinh_test_data): Likewise.
46164         (catan_test_data): Likewise.
46165         (catanh_test_data): Likewise.
46166         (cbrt_test_data): Likewise.
46167         (ccos_test_data): Likewise.
46168         (ccosh_test_data): Likewise.
46169         (ceil_test_data): Likewise.
46170         (cexp_test_data): Likewise.
46171         (cimag_test_data): Likewise.
46172         (clog_test_data): Likewise.
46173         (clog10_test_data): Likewise.
46174         (conj_test_data): Likewise.
46175         (copysign_test_data): Likewise.
46176         (cos_test_data): Likewise.
46177         (cos_tonearest_test_data): Likewise.
46178         (cos_towardzero_test_data): Likewise.
46179         (cos_downward_test_data): Likewise.
46180         (cos_upward_test_data): Likewise.
46181         (cosh_test_data): Likewise.
46182         (cosh_tonearest_test_data): Likewise.
46183         (cosh_towardzero_test_data): Likewise.
46184         (cosh_downward_test_data): Likewise.
46185         (cosh_upward_test_data): Likewise.
46186         (cpow_test_data): Likewise.
46187         (cproj_test_data): Likewise.
46188         (creal_test_data): Likewise.
46189         (csin_test_data): Likewise.
46190         (csinh_test_data): Likewise.
46191         (csqrt_test_data): Likewise.
46192         (ctan_test_data): Likewise.
46193         (ctan_tonearest_test_data): Likewise.
46194         (ctan_towardzero_test_data): Likewise.
46195         (ctan_downward_test_data): Likewise.
46196         (ctan_upward_test_data): Likewise.
46197         (ctanh_test_data): Likewise.
46198         (ctanh_tonearest_test_data): Likewise.
46199         (ctanh_towardzero_test_data): Likewise.
46200         (ctanh_downward_test_data): Likewise.
46201         (ctanh_upward_test_data): Likewise.
46202         (erf_test_data): Likewise.
46203         (erfc_test_data): Likewise.
46204         (exp_test_data): Likewise.
46205         (exp_tonearest_test_data): Likewise.
46206         (exp_towardzero_test_data): Likewise.
46207         (exp_downward_test_data): Likewise.
46208         (exp_upward_test_data): Likewise.
46209         (exp10_test_data): Likewise.
46210         (exp2_test_data): Likewise.
46211         (expm1_test_data): Likewise.
46212         (fabs_test_data): Likewise.
46213         (fdim_test_data): Likewise.
46214         (finite_test_data): Likewise.
46215         (floor_test_data): Likewise.
46216         (fma_test_data): Likewise.
46217         (fma_towardzero_test_data): Likewise.
46218         (fma_downward_test_data): Likewise.
46219         (fma_upward_test_data): Likewise.
46220         (fmax_test_data): Likewise.
46221         (fmin_test_data): Likewise.
46222         (fmod_test_data): Likewise.
46223         (fpclassify_test_data): Likewise.
46224         (frexp_test_data): Likewise.
46225         (gamma_test_data): Likewise.
46226         (hypot_test_data): Likewise.
46227         (ilogb_test_data): Likewise.
46228         (isfinite_test_data): Likewise.
46229         (isgreater_test_data): Likewise.
46230         (isgreaterequal_test_data): Likewise.
46231         (isinf_test_data): Likewise.
46232         (isless_test_data): Likewise.
46233         (islessequal_test_data): Likewise.
46234         (islessgreater_test_data): Likewise.
46235         (isnan_test_data): Likewise.
46236         (isnormal_test_data): Likewise.
46237         (issignaling_test_data): Likewise.
46238         (isunordered_test_data): Likewise.
46239         (j0_test_data): Likewise.
46240         (j1_test_data): Likewise.
46241         (jn_test_data): Likewise.
46242         (ldexp_test_data): Likewise.
46243         (lgamma_test_data): Likewise.
46244         (lrint_test_data): Likewise.
46245         (lrint_tonearest_test_data): Likewise.
46246         (lrint_towardzero_test_data): Likewise.
46247         (lrint_downward_test_data): Likewise.
46248         (lrint_upward_test_data): Likewise.
46249         (llrint_test_data): Likewise.
46250         (llrint_tonearest_test_data): Likewise.
46251         (llrint_towardzero_test_data): Likewise.
46252         (llrint_downward_test_data): Likewise.
46253         (llrint_upward_test_data): Likewise.
46254         (log_test_data): Likewise.
46255         (log10_test_data): Likewise.
46256         (log1p_test_data): Likewise.
46257         (log2_test_data): Likewise.
46258         (logb_test_data): Likewise.
46259         (logb_downward_test_data): Likewise.
46260         (lround_test_data): Likewise.
46261         (llround_test_data): Likewise.
46262         (modf_test_data): Likewise.
46263         (nearbyint_test_data): Likewise.
46264         (nextafter_test_data): Likewise.
46265         (nexttoward_test_data): Likewise.
46266         (pow_test_data): Likewise.
46267         (pow_tonearest_test_data): Likewise.
46268         (pow_towardzero_test_data): Likewise.
46269         (pow_downward_test_data): Likewise.
46270         (pow_upward_test_data): Likewise.
46271         (remainder_test_data): Likewise.
46272         (remainder_tonearest_test_data): Likewise.
46273         (remainder_towardzero_test_data): Likewise.
46274         (remainder_downward_test_data): Likewise.
46275         (remainder_upward_test_data): Likewise.
46276         (remquo_test_data): Likewise.
46277         (rint_test_data): Likewise.
46278         (rint_tonearest_test_data): Likewise.
46279         (rint_towardzero_test_data): Likewise.
46280         (rint_downward_test_data): Likewise.
46281         (rint_upward_test_data): Likewise.
46282         (round_test_data): Likewise.
46283         (scalb_test_data): Likewise.
46284         (scalbn_test_data): Likewise.
46285         (scalbln_test_data): Likewise.
46286         (signbit_test_data): Likewise.
46287         (sin_test_data): Likewise.
46288         (sin_tonearest_test_data): Likewise.
46289         (sin_towardzero_test_data): Likewise.
46290         (sin_downward_test_data): Likewise.
46291         (sin_upward_test_data): Likewise.
46292         (sincos_test_data): Likewise.
46293         (sinh_test_data): Likewise.
46294         (sinh_tonearest_test_data): Likewise.
46295         (sinh_towardzero_test_data): Likewise.
46296         (sinh_downward_test_data): Likewise.
46297         (sinh_upward_test_data): Likewise.
46298         (sqrt_test_data): Likewise.
46299         (tan_test_data): Likewise.
46300         (tan_tonearest_test_data): Likewise.
46301         (tan_towardzero_test_data): Likewise.
46302         (tan_downward_test_data): Likewise.
46303         (tan_upward_test_data): Likewise.
46304         (tanh_test_data): Likewise.
46305         (tgamma_test_data): Likewise.
46306         (trunc_test_data): Likewise.
46307         (y0_test_data): Likewise.
46308         (y1_test_data): Likewise.
46309         (yn_test_data): Likewise.
46310         (significand_test_data): Likewise.
46311
46312         * math/gen-libm-test.pl (@functions): Remove variable.
46313         (generate_testfile): Don't handle START and END lines.
46314         * math/libm-test.inc (START): New macro.
46315         (END): Likewise.
46316         (END_COMPLEX): Likewise.
46317         (acos_test): Use END macro without arguments.
46318         (acos_test_tonearest): Likewise.
46319         (acos_test_towardzero): Likewise.
46320         (acos_test_downward): Likewise.
46321         (acos_test_upward): Likewise.
46322         (acosh_test): Likewise.
46323         (asin_test): Likewise.
46324         (asin_test_tonearest): Likewise.
46325         (asin_test_towardzero): Likewise.
46326         (asin_test_downward): Likewise.
46327         (asin_test_upward): Likewise.
46328         (asinh_test): Likewise.
46329         (atan_test): Likewise.
46330         (atanh_test): Likewise.
46331         (atan2_test): Likewise.
46332         (cabs_test): Likewise.
46333         (cacos_test): Use END_COMPLEX macro without arguments.
46334         (cacosh_test): Likewise.
46335         (carg_test): Use END macro without arguments.
46336         (casin_test): Use END_COMPLEX macro without arguments.
46337         (casinh_test): Likewise.
46338         (catan_test): Likewise.
46339         (catanh_test): Likewise.
46340         (cbrt_test): Use END macro without arguments.
46341         (ccos_test): Use END_COMPLEX macro without arguments.
46342         (ccosh_test): Likewise.
46343         (ceil_test): Use END macro without arguments.
46344         (cexp_test): Use END_COMPLEX macro without arguments.
46345         (cimag_test): Use END macro without arguments.
46346         (clog_test): Use END_COMPLEX macro without arguments.
46347         (clog10_test): Likewise.
46348         (conj_test): Likewise.
46349         (copysign_test): Use END macro without arguments.
46350         (cos_test): Likewise.
46351         (cos_test_tonearest): Likewise.
46352         (cos_test_towardzero): Likewise.
46353         (cos_test_downward): Likewise.
46354         (cos_test_upward): Likewise.
46355         (cosh_test): Likewise.
46356         (cosh_test_tonearest): Likewise.
46357         (cosh_test_towardzero): Likewise.
46358         (cosh_test_downward): Likewise.
46359         (cosh_test_upward): Likewise.
46360         (cpow_test): Use END_COMPLEX macro without arguments.
46361         (cproj_test): Likewise.
46362         (creal_test): Use END macro without arguments.
46363         (csin_test): Use END_COMPLEX macro without arguments.
46364         (csinh_test): Likewise.
46365         (csqrt_test): Likewise.
46366         (ctan_test): Likewise.
46367         (ctan_test_tonearest): Likewise.
46368         (ctan_test_towardzero): Likewise.
46369         (ctan_test_downward): Likewise.
46370         (ctan_test_upward): Likewise.
46371         (ctanh_test): Likewise.
46372         (ctanh_test_tonearest): Likewise.
46373         (ctanh_test_towardzero): Likewise.
46374         (ctanh_test_downward): Likewise.
46375         (ctanh_test_upward): Likewise.
46376         (erf_test): Use END macro without arguments.
46377         (erfc_test): Likewise.
46378         (exp_test): Likewise.
46379         (exp_test_tonearest): Likewise.
46380         (exp_test_towardzero): Likewise.
46381         (exp_test_downward): Likewise.
46382         (exp_test_upward): Likewise.
46383         (exp10_test): Likewise.
46384         (exp2_test): Likewise.
46385         (expm1_test): Likewise.
46386         (fabs_test): Likewise.
46387         (fdim_test): Likewise.
46388         (finite_test): Likewise.
46389         (floor_test): Likewise.
46390         (fma_test): Likewise.
46391         (fma_test_towardzero): Likewise.
46392         (fma_test_downward): Likewise.
46393         (fma_test_upward): Likewise.
46394         (fmax_test): Likewise.
46395         (fmin_test): Likewise.
46396         (fmod_test): Likewise.
46397         (fpclassify_test): Likewise.
46398         (frexp_test): Likewise.
46399         (gamma_test): Likewise.
46400         (hypot_test): Likewise.
46401         (ilogb_test): Likewise.
46402         (isfinite_test): Likewise.
46403         (isgreater_test): Likewise.
46404         (isgreaterequal_test): Likewise.
46405         (isinf_test): Likewise.
46406         (isless_test): Likewise.
46407         (islessequal_test): Likewise.
46408         (islessgreater_test): Likewise.
46409         (isnan_test): Likewise.
46410         (isnormal_test): Likewise.
46411         (issignaling_test): Likewise.
46412         (isunordered_test): Likewise.
46413         (j0_test): Likewise.
46414         (j1_test): Likewise.
46415         (jn_test): Likewise.
46416         (ldexp_test): Likewise.
46417         (lgamma_test): Likewise.
46418         (lrint_test): Likewise.
46419         (lrint_test_tonearest): Likewise.
46420         (lrint_test_towardzero): Likewise.
46421         (lrint_test_downward): Likewise.
46422         (lrint_test_upward): Likewise.
46423         (llrint_test): Likewise.
46424         (llrint_test_tonearest): Likewise.
46425         (llrint_test_towardzero): Likewise.
46426         (llrint_test_downward): Likewise.
46427         (llrint_test_upward): Likewise.
46428         (log_test): Likewise.
46429         (log10_test): Likewise.
46430         (log1p_test): Likewise.
46431         (log2_test): Likewise.
46432         (logb_test): Likewise.
46433         (logb_test_downward): Likewise.
46434         (lround_test): Likewise.
46435         (llround_test): Likewise.
46436         (modf_test): Likewise.
46437         (nearbyint_test): Likewise.
46438         (nextafter_test): Likewise.
46439         (nexttoward_test): Likewise.
46440         (pow_test): Likewise.
46441         (pow_test_tonearest): Likewise.
46442         (pow_test_towardzero): Likewise.
46443         (pow_test_downward): Likewise.
46444         (pow_test_upward): Likewise.
46445         (remainder_test): Likewise.
46446         (remainder_test_tonearest): Likewise.
46447         (remainder_test_towardzero): Likewise.
46448         (remainder_test_downward): Likewise.
46449         (remainder_test_upward): Likewise.
46450         (remquo_test): Likewise.
46451         (rint_test): Likewise.
46452         (rint_test_tonearest): Likewise.
46453         (rint_test_towardzero): Likewise.
46454         (rint_test_downward): Likewise.
46455         (rint_test_upward): Likewise.
46456         (round_test): Likewise.
46457         (scalb_test): Likewise.
46458         (scalbn_test): Likewise.
46459         (scalbln_test): Likewise.
46460         (signbit_test): Likewise.
46461         (sin_test): Likewise.
46462         (sin_test_tonearest): Likewise.
46463         (sin_test_towardzero): Likewise.
46464         (sin_test_downward): Likewise.
46465         (sin_test_upward): Likewise.
46466         (sincos_test): Likewise.
46467         (sinh_test): Likewise.
46468         (sinh_test_tonearest): Likewise.
46469         (sinh_test_towardzero): Likewise.
46470         (sinh_test_downward): Likewise.
46471         (sinh_test_upward): Likewise.
46472         (sqrt_test): Likewise.
46473         (tan_test): Likewise.
46474         (tan_test_tonearest): Likewise.
46475         (tan_test_towardzero): Likewise.
46476         (tan_test_downward): Likewise.
46477         (tan_test_upward): Likewise.
46478         (tanh_test): Likewise.
46479         (tgamma_test): Likewise.
46480         (trunc_test): Likewise.
46481         (y0_test): Likewise.
46482         (y1_test): Likewise.
46483         (yn_test): Likewise.
46484         (significand_test): Likewise.
46485
46486 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46487
46488         [BZ #15381]
46489         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46490
46491 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46492
46493         [BZ #14894]
46494         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46495         __ppc_mdoio and __ppc_mdoom.
46496         * manual/platform.texi: Document new functions __ppc_yield,
46497         __ppc_mdoio and __ppc_mdoom.
46498
46499 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46500
46501         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46502         (main): Mention "tls" pseudo-hwcap is legacy.
46503         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46504
46505 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46506
46507         * math/gen-libm-test.pl (parse_args): Output only string of
46508         arguments as text for test name, not full call or descriptions of
46509         tests for extra outputs.
46510         (generate_testfile): Do not pass function name to parse_args.
46511         Generate this_func variable from START.
46512         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46513         field to arg_str.
46514         (struct test_ff_f_data): Likewise.
46515         (test_ff_f_data_nexttoward): Likewise.
46516         (struct test_fi_f_data): Likewise.
46517         (struct test_fl_f_data): Likewise.
46518         (struct test_if_f_data): Likewise.
46519         (struct test_fff_f_data): Likewise.
46520         (struct test_c_f_data): Likewise.
46521         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46522         (struct test_fF_f1_data): Likewise.
46523         (struct test_ffI_f1_data): Likewise.
46524         (struct test_c_c_data): Rename test_name field to arg_str.
46525         (struct test_cc_c_data): Likewise.
46526         (struct test_f_i_data): Likewise.
46527         (struct test_ff_i_data): Likewise.
46528         (struct test_f_l_data): Likewise.
46529         (struct test_f_L_data): Likewise.
46530         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46531         and extra2_name.
46532         (COMMON_TEST_SETUP): New macro.
46533         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46534         (COMMON_TEST_CLEANUP): Likewise.
46535         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46536         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46537         macros.
46538         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46539         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46540         macros.
46541         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46542         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46543         cleanup macros.
46544         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46545         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46546         macros.
46547         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46548         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46549         macros.
46550         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46551         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46552         cleanup macros.
46553         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46554         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46555         cleanup macros.
46556         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46557         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46558         cleanup macros.
46559         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46560         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46561         macros.
46562         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46563         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46564         macros.
46565         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46566         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46567         macros.
46568         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46569         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46570         cleanup macros.
46571         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46572         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46573         cleanup macros.
46574         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46575         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46576         macros.
46577         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46578         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46579         cleanup macros.
46580         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46581         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46582         macros.
46583         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46584         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46585         macros.
46586         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46587         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46588         cleanup macros.
46589         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46590
46591 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46592
46593         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46594         to _sifields.sigfault.
46595         (si_addr_lsb): Define new macro.
46596         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46597         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46598         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46599
46600 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46601
46602         [BZ #15441]
46603         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46604         returns -1.
46605         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46606         null return -1.
46607         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46608         loading the domain.
46609
46610 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46611
46612         * math/gen-libm-test.pl (parse_args): Do not include expected
46613         result in test name.
46614         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46615         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46616         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46617         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46618         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46620
46621 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46622
46623         * benchtests/Makefile: Sort function entries.
46624
46625         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46626         tanh, asinh, acosh, atanh.
46627         * benchtests/acos-inputs: New file.
46628         * benchtests/acosh-inputs: New file.
46629         * benchtests/asin-inputs: New file.
46630         * benchtests/asinh-inputs: New file.
46631         * benchtests/atanh-inputs: New file.
46632         * benchtests/cosh-inputs: New file.
46633         * benchtests/log-inputs: New file.
46634         * benchtests/sinh-inputs: New file.
46635         * benchtests/tanh-inputs: New file.
46636
46637 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46638
46639         [BZ #15339]
46640         * posix/tst-getaddrinfo4.c: New test.
46641         * posix/Makefile (tests): Add it.
46642
46643 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46644
46645         [BZ #15339]
46646         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46647         when no services were used.
46648         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46649         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46650
46651 2013-05-21  Andreas Schwab  <schwab@suse.de>
46652
46653         [BZ #15014]
46654         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46655         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46656         successful.
46657         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46658         redundant variable declarations and reallocation of buffer when
46659         parsing as IPv6 address.  Always set NSS status when called from
46660         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46661         buffer too small.  Correct computation of needed size.
46662         * nss/Makefile (tests): Add test-digits-dots.
46663         * nss/test-digits-dots.c: New test.
46664
46665 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46666
46667         * benchtests/Makefile: Remove instructions for adding
46668         benchmark tests.
46669         * benchtests/README: New file to explain how to execute and
46670         enhance the benchmark tests.
46671
46672 2013-05-21  Andreas Schwab  <schwab@suse.de>
46673
46674         [BZ #15493]
46675         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46676         * setjmp/tst-sigsetjmp.c: New test.
46677
46678 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46679
46680         * sysdeps/x86_64/memset.S (memset): New implementation.
46681         (__bzero): Likewise.
46682         (__memset_tail): New function.
46683
46684 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46685
46686         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46687         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46688         __memcpy_sse2_unaligned ifunc selection.
46689         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46690         Add memcpy-sse2-unaligned.S.
46691         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46692         Add: __memcpy_sse2_unaligned.
46693
46694 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46695
46696         [BZ #15490]
46697         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46698         math_force_eval before restoring floating-point envrionment.
46699         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46700         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46701         Likewise.
46702         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46703         <math_private.h>.
46704         (__nearbyintl): Use math_force_eval before restoring
46705         floating-point environment.
46706         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46707
46708         * math/gen-libm-test.pl (special_functions): Remove.
46709         (parse_args): Don't handle TEST_extra.  Handle functions with no
46710         return value.
46711         * math/libm-test.inc (struct test_sincos_data): Replace with
46712         struct test_fFF_11_data.
46713         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46714         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46715         (sincos_test_data): Change element type to struct
46716         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46717         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46718         RUN_TEST_LOOP_sincos.
46719         * math/README.libm-test: Don't mention special handling of
46720         individual functions.
46721         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46722         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46723         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46724         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46725         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46727
46728         * math/gen-libm-test.pl (get_variable): Remove function.
46729         (parse_args): Don't show pointer parameters to call in test
46730         names.  Use "extra output N" in test names for extra outputs
46731         rather than naming variables.
46732
46733 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46734
46735         [BZ #15488]
46736         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46737         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46738         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46739         double tests.
46740         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46741         disable.
46742         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46743         check_long_double.
46744
46745         * math/gen-libm-test.pl (@tests): Remove variable.
46746         ($count): Likewise.
46747         (new_test): Remove function.
46748         (show_exceptions): New function.
46749         (special_functions): Use show_exceptions instead of new_test.
46750         (parse_args): Likewise.
46751         (generate_testfile): Pass only function name in generated call to
46752         print_max_error or print_complex_max_error.
46753         (get_ulps): Do not handle complex tests specially.
46754         (output_test): Rename to ...
46755         (get_all_ulps_for_test): ... this.  Return a string rather than
46756         printing to a file.  Require ulps to be present.
46757         (output_ulps): Generate arrays rather than #defines.
46758         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46759         (struct ulp_data): New type.
46760         (BUILD_COMPLEX_ULP): Remove macro.
46761         (compare_ulp_data): New function.
46762         (find_ulps): Likewise.
46763         (find_test_ulps): Likewise.
46764         (find_function_ulps): Likewise.
46765         (find_complex_function_ulps): Likewise.
46766         (print_max_error): Determine allowed ulps using
46767         find_function_ulps.
46768         (print_complex_max_error): Determine allowed ulps using
46769         find_complex_function_ulps.
46770         (check_float_internal): Determine max ulps using find_test_ulps.
46771         (check_float): Do not take max_ulp parameter.  Update call to
46772         check_float_internal.
46773         (check_complex): Likewise.
46774         (check_int): Do not take max_ulp parameter.
46775         (check_long): Likewise.
46776         (check_bool): Likewise.
46777         (check_longlong): Likewise.
46778         (struct test_f_f_data): Remove max_ulp field.
46779         (struct test_ff_f_data): Likewise.
46780         (struct test_ff_f_data_nexttoward): Likewise.
46781         (struct test_fi_f_data): Likewise.
46782         (struct test_fl_f_data): Likewise.
46783         (struct test_if_f_data): Likewise.
46784         (struct test_fff_f_data): Likewise.
46785         (struct test_c_f_data): Likewise.
46786         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46787         (struct test_fF_f1_data): Likewise.
46788         (struct test_ffI_f1_data): Likewise.
46789         (struct test_c_c_data): Remove max_ulp field.
46790         (struct test_cc_c_data): Likewise.
46791         (struct test_f_i_data): Likewise.
46792         (struct test_ff_i_data): Likewise.
46793         (struct test_f_l_data): Likewise.
46794         (struct test_f_L_data): Likewise.
46795         (struct test_sincos_data): Likewise.
46796         (RUN_TEST_f_f): Do not handle ulps.
46797         (RUN_TEST_LOOP_f_f): Likewise.
46798         (RUN_TEST_2_f): Likewise.
46799         (RUN_TEST_LOOP_2_f): Likewise.
46800         (RUN_TEST_fff_f): Likewise.
46801         (RUN_TEST_LOOP_fff_f): Likewise.
46802         (RUN_TEST_c_f): Likewise.
46803         (RUN_TEST_LOOP_c_f): Likewise.
46804         (RUN_TEST_f_f1): Likewise.
46805         (RUN_TEST_LOOP_f_f1): Likewise.
46806         (RUN_TEST_fF_f1): Likewise.
46807         (RUN_TEST_LOOP_fF_f1): Likewise.
46808         (RUN_TEST_fI_f1): Likewise.
46809         (RUN_TEST_LOOP_fI_f1): Likewise.
46810         (RUN_TEST_ffI_f1): Likewise.
46811         (RUN_TEST_LOOP_ffI_f1): Likewise.
46812         (RUN_TEST_c_c): Likewise.
46813         (RUN_TEST_LOOP_c_c): Likewise.
46814         (RUN_TEST_cc_c): Likewise.
46815         (RUN_TEST_LOOP_cc_c): Likewise.
46816         (RUN_TEST_f_i): Likewise.
46817         (RUN_TEST_LOOP_f_i): Likewise.
46818         (RUN_TEST_f_i_tg): Likewise.
46819         (RUN_TEST_LOOP_f_i_tg): Likewise.
46820         (RUN_TEST_ff_i_tg): Likewise.
46821         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46822         (RUN_TEST_f_b): Likewise.
46823         (RUN_TEST_LOOP_f_b): Likewise.
46824         (RUN_TEST_f_b_tg): Likewise.
46825         (RUN_TEST_LOOP_f_b_tg): Likewise.
46826         (RUN_TEST_f_l): Likewise.
46827         (RUN_TEST_LOOP_f_l): Likewise.
46828         (RUN_TEST_f_L): Likewise.
46829         (RUN_TEST_LOOP_f_L): Likewise.
46830         (RUN_TEST_sincos): Likewise.
46831         (RUN_TEST_LOOP_sincos): Likewise.
46832
46833 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46834
46835         [BZ #15480]
46836         [BZ #15485]
46837         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46838         main case of finite arguments, set rounding mode to FE_TONEAREST
46839         and discard exceptions.
46840         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
46841         exceptions.
46842         (remainder_tonearest_test_data): New variable.
46843         (remainder_test_tonearest): New function.
46844         (remainder_towardzero_test_data): New variable.
46845         (remainder_test_towardzero): New function.
46846         (remainder_downward_test_data): New variable.
46847         (remainder_test_downward): New function.
46848         (remainder_upward_test_data): New variable.
46849         (remainder_test_upward): New function.
46850         (main): Call the new test functions.
46851
46852         * math/libm-test.inc (struct test_f_f1_data): Remove field
46853         extra_init.
46854         (struct test_fF_f1_data): Likewise.
46855         (struct test_ffI_f1_data): Likewise.
46856         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
46857         based on value of EXTRA_EXPECTED.
46858         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46859         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
46860         EXTRA_VAR based on value of EXTRA_EXPECTED.
46861         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46862         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
46863         EXTRA_VAR based on value of EXTRA_EXPECTED.
46864         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46865         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
46866         EXTRA_VAR based on value of EXTRA_EXPECTED.
46867         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46868         * math/gen-libm-test.pl (parse_args): Don't output initializers
46869         for extra output values.
46870
46871         * math/libm-test.inc (check_int): Expect result to be exactly
46872         equal to expected value and do not handle ulps.
46873         (check_long): Likewise.
46874         (check_longlong): Likewise.
46875
46876         * math/libm-test.inc (ceil_test_data): Test for "inexact"
46877         exceptions.
46878         (cimag_test_data): Likewise.
46879         (conj_test_data): Likewise.
46880         (copysign_test_data): Likewise.
46881         (cproj_test_data): Likewise.
46882         (creal_test_data): Likewise.
46883         (fabs_test_data): Likewise.
46884         (fdim_test_data): Likewise.
46885         (finite_test_data): Likewise.
46886         (floor_test_data): Likewise.
46887         (fmax_test_data): Likewise.
46888         (fmin_test_data): Likewise.
46889         (fmod_test_data): Likewise.
46890         (fpclassify_test_data): Likewise.
46891         (frexp_test_data): Likewise.
46892         (ilogb_test_data): Likewise.
46893         (isfinite_test_data): Likewise.
46894         (isgreater_test_data): Likewise.
46895         (isgreaterequal_test_data): Likewise.
46896         (isinf_test_data): Likewise.
46897         (isless_test_data): Likewise.
46898         (islessequal_test_data): Likewise.
46899         (islessgreater_test_data): Likewise.
46900         (isnan_test_data): Likewise.
46901         (isnormal_test_data): Likewise.
46902         (issignaling_test_data): Likewise.
46903         (isunordered_test_data): Likewise.
46904         (ldexp_test_data): Likewise.
46905         (lrint_test_data): Likewise.
46906         (lrint_test_data) [TEST_FLOAT]: Disable one test.
46907         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
46908         (lrint_tonearest_test_data): Test for "inexact" exceptions.
46909         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46910         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
46911         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46912         test input.
46913         (lrint_towardzero_test_data): Test for "inexact" exceptions.
46914         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46915         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
46916         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
46917         that test input.
46918         (lrint_downward_test_data): Test for "inexact" exceptions.
46919         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46920         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
46921         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46922         test input.
46923         (lrint_upward_test_data): Test for "inexact" exceptions.
46924         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
46925         test input.
46926         (llrint_test_data): Test for "inexact" exceptions.
46927         (llrint_test_data) [TEST_FLOAT]: Disable one test.
46928         (llrint_tonearest_test_data): Test for "inexact" exceptions.
46929         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46930         (llrint_towardzero_test_data): Test for "inexact" exceptions.
46931         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46932         (llrint_downward_test_data): Test for "inexact" exceptions.
46933         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46934         (llrint_upward_test_data): Test for "inexact" exceptions.
46935         (logb_test_data): Likewise.
46936         (logb_downward_test_data): Likewise.
46937         (nextafter_test_data): Likewise.
46938         (nexttoward_test_data): Likewise.
46939         (remainder_test_data): Likewise.
46940         (remquo_test_data): Likewise.
46941         (scalbn_test_data): Likewise.
46942         (scalbln_test_data): Likewise.
46943         (signbit_test_data): Likewise.
46944         (sqrt_test_data): Likewise.
46945         (significand_test_data): Likewise.
46946
46947 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
46948
46949         [BZ #15424]
46950         * benchtests/bench-modf.c (struct args): Mark arg0 as
46951         volatile.
46952         * scripts/bench.pl: Mark members of struct args as volatile.
46953
46954 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46955
46956         [BZ # 15497]
46957         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
46958         negative infinity on POWER6 or lower.
46959         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
46960
46961 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46962
46963         [BZ #15442]
46964         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
46965         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
46966         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
46967         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
46968         (_FP_SETQNAN): New macro.
46969         (_FP_SETQNAN_SEMIRAW): Likewise.
46970         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
46971         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
46972         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
46973         (FP_EXTEND): Use _FP_FRAC_SNANP.
46974         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
46975         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
46976         into account.
46977         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46978         New macro.
46979         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
46980         Likewise.
46981
46982 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
46983
46984         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
46985         with DIVIDE_BY_ZERO_EXCEPTION.
46986         (gamma_test_data): Likewise.
46987         (lgamma_test_data): Likewise.
46988         (log_test_data): Likewise.
46989         (log10_test_data): Likewise.
46990         (log2_test_data): Likewise.
46991         (tgamma_test_data): Likewise.
46992
46993         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
46994         (acos_test_tonearest): Likewise.
46995         (acos_test_towardzero): Likewise.
46996         (acos_test_downward): Likewise.
46997         (acos_test_upward): Likewise.
46998         (acosh_test): Likewise.
46999         (asin_test): Likewise.
47000         (asin_test_tonearest): Likewise.
47001         (asin_test_towardzero): Likewise.
47002         (asin_test_downward): Likewise.
47003         (asin_test_upward): Likewise.
47004         (asinh_test): Likewise.
47005         (atan_test): Likewise.
47006         (atanh_test): Likewise.
47007         (atan2_test): Likewise.
47008         (cabs_test): Likewise.
47009         (cacos_test): Likewise.
47010         (cacosh_test): Likewise.
47011         (casin_test): Likewise.
47012         (casinh_test): Likewise.
47013         (catan_test): Likewise.
47014         (catanh_test): Likewise.
47015         (cbrt_test): Likewise.
47016         (ccos_test): Likewise.
47017         (ccosh_test): Likewise.
47018         (cexp_test): Likewise.
47019         (clog_test): Likewise.
47020         (clog10_test): Likewise.
47021         (cos_test): Likewise.
47022         (cos_test_tonearest): Likewise.
47023         (cos_test_towardzero): Likewise.
47024         (cos_test_downward): Likewise.
47025         (cos_test_upward): Likewise.
47026         (cosh_test): Likewise.
47027         (cosh_test_tonearest): Likewise.
47028         (cosh_test_towardzero): Likewise.
47029         (cosh_test_downward): Likewise.
47030         (cosh_test_upward): Likewise.
47031         (cpow_test): Likewise.
47032         (csin_test): Likewise.
47033         (csinh_test): Likewise.
47034         (csqrt_test): Likewise.
47035         (ctan_test): Likewise.
47036         (ctan_test_tonearest): Likewise.
47037         (ctan_test_towardzero): Likewise.
47038         (ctan_test_downward): Likewise.
47039         (ctan_test_upward): Likewise.
47040         (ctanh_test): Likewise.
47041         (ctanh_test_tonearest): Likewise.
47042         (ctanh_test_towardzero): Likewise.
47043         (ctanh_test_downward): Likewise.
47044         (ctanh_test_upward): Likewise.
47045         (erf_test): Likewise.
47046         (erfc_test): Likewise.
47047         (exp_test): Likewise.
47048         (exp_test_tonearest): Likewise.
47049         (exp_test_towardzero): Likewise.
47050         (exp_test_downward): Likewise.
47051         (exp_test_upward): Likewise.
47052         (exp10_test): Likewise.
47053         (exp2_test): Likewise.
47054         (expm1_test): Likewise.
47055         (fmod_test): Likewise.
47056         (gamma_test): Likewise.
47057         (hypot_test): Likewise.
47058         (j0_test): Likewise.
47059         (j1_test): Likewise.
47060         (jn_test): Likewise.
47061         (lgamma_test): Likewise.
47062         (log_test): Likewise.
47063         (log10_test): Likewise.
47064         (log1p_test): Likewise.
47065         (log2_test): Likewise.
47066         (logb_test_downward): Likewise.
47067         (pow_test): Likewise.
47068         (pow_test_tonearest): Likewise.
47069         (pow_test_towardzero): Likewise.
47070         (pow_test_downward): Likewise.
47071         (pow_test_upward): Likewise.
47072         (remainder_test): Likewise.
47073         (remquo_test): Likewise.
47074         (sin_test): Likewise.
47075         (sin_test_tonearest): Likewise.
47076         (sin_test_towardzero): Likewise.
47077         (sin_test_downward): Likewise.
47078         (sin_test_upward): Likewise.
47079         (sincos_test): Likewise.
47080         (sinh_test): Likewise.
47081         (sinh_test_tonearest): Likewise.
47082         (sinh_test_towardzero): Likewise.
47083         (sinh_test_downward): Likewise.
47084         (sinh_test_upward): Likewise.
47085         (sqrt_test): Likewise.
47086         (tan_test): Likewise.
47087         (tan_test_tonearest): Likewise.
47088         (tan_test_towardzero): Likewise.
47089         (tan_test_downward): Likewise.
47090         (tan_test_upward): Likewise.
47091         (tanh_test): Likewise.
47092         (tgamma_test): Likewise.
47093         (y0_test): Likewise.
47094         (y1_test): Likewise.
47095         (yn_test): Likewise.
47096
47097         * math/gen-libm-test.pl (adjust_arg): Remove function.
47098         (special_function): Remove argument $in_func.  Only handle
47099         generating output for tables of tests, not inside functions.
47100         (parse_args): Likewise.
47101         (generate_testfile): Remove variable $in_func.  Update call to
47102         parse_args.
47103         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47104         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47105         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47106         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47107         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47108         (MAX_VALUE_INIT): Rename macro to max_value.
47109         (MIN_VALUE_INIT): Rename macro to min_value.
47110         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47111         (plus_zero): Remove variable.
47112         (minus_zero): Likewise.
47113         (plus_infty): Likewise.
47114         (minus_infty): Likewise.
47115         (qnan_value): Likewise.
47116         (max_value): Likewise.
47117         (min_value): Likewise.
47118         (min_subnorm_value): Likewise.
47119
47120 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47121
47122         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47123         uint64_t or uint32_t usage.
47124         * crypt/sha256-block.c: Likewise.
47125         * crypt/sha256-crypt.c: Likewise.
47126         * crypt/sha256.c: Likewise.
47127         * crypt/sha512-block.c: Likewise.
47128         * crypt/sha512-crypt.c: Likewise.
47129         * crypt/sha512.c: Likewise.
47130         * debug/backtrace-tst.c: Likewise.
47131         * debug/pcprofiledump.c: Likewise.
47132         * elf/cache.c: Likewise.
47133         * elf/dl-cache.c: Likewise.
47134         * elf/dl-misc.c: Likewise.
47135         * elf/dl-profile.c: Likewise.
47136         * elf/dl-support.c: Likewise.
47137         * elf/ldconfig.c: Likewise.
47138         * elf/sprof.c: Likewise.
47139         * iconv/dummy-repertoire.c: Likewise.
47140         * iconv/iconv_charmap.c: Likewise.
47141         * iconv/skeleton.c: Likewise.
47142         * iconvdata/8bit-generic.c: Likewise.
47143         * iconvdata/cp737.h: Likewise.
47144         * iconvdata/cp775.h: Likewise.
47145         * iconvdata/ibm1008.h: Likewise.
47146         * iconvdata/ibm1025.h: Likewise.
47147         * iconvdata/ibm1046.h: Likewise.
47148         * iconvdata/ibm1097.h: Likewise.
47149         * iconvdata/ibm1112.h: Likewise.
47150         * iconvdata/ibm1122.h: Likewise.
47151         * iconvdata/ibm1123.h: Likewise.
47152         * iconvdata/ibm1124.h: Likewise.
47153         * iconvdata/ibm1129.h: Likewise.
47154         * iconvdata/ibm1130.h: Likewise.
47155         * iconvdata/ibm1132.h: Likewise.
47156         * iconvdata/ibm1133.h: Likewise.
47157         * iconvdata/ibm1137.h: Likewise.
47158         * iconvdata/ibm1140.h: Likewise.
47159         * iconvdata/ibm1141.h: Likewise.
47160         * iconvdata/ibm1142.h: Likewise.
47161         * iconvdata/ibm1143.h: Likewise.
47162         * iconvdata/ibm1144.h: Likewise.
47163         * iconvdata/ibm1145.h: Likewise.
47164         * iconvdata/ibm1146.h: Likewise.
47165         * iconvdata/ibm1147.h: Likewise.
47166         * iconvdata/ibm1148.h: Likewise.
47167         * iconvdata/ibm1149.h: Likewise.
47168         * iconvdata/ibm1153.h: Likewise.
47169         * iconvdata/ibm1154.h: Likewise.
47170         * iconvdata/ibm1155.h: Likewise.
47171         * iconvdata/ibm1156.h: Likewise.
47172         * iconvdata/ibm1157.h: Likewise.
47173         * iconvdata/ibm1158.h: Likewise.
47174         * iconvdata/ibm1160.h: Likewise.
47175         * iconvdata/ibm1161.h: Likewise.
47176         * iconvdata/ibm1162.h: Likewise.
47177         * iconvdata/ibm1163.h: Likewise.
47178         * iconvdata/ibm1164.h: Likewise.
47179         * iconvdata/ibm1166.h: Likewise.
47180         * iconvdata/ibm1167.h: Likewise.
47181         * iconvdata/ibm12712.h: Likewise.
47182         * iconvdata/ibm1390.h: Likewise.
47183         * iconvdata/ibm1399.h: Likewise.
47184         * iconvdata/ibm16804.h: Likewise.
47185         * iconvdata/ibm4517.h: Likewise.
47186         * iconvdata/ibm4899.h: Likewise.
47187         * iconvdata/ibm4909.h: Likewise.
47188         * iconvdata/ibm4971.h: Likewise.
47189         * iconvdata/ibm5347.h: Likewise.
47190         * iconvdata/ibm803.h: Likewise.
47191         * iconvdata/ibm856.h: Likewise.
47192         * iconvdata/ibm901.h: Likewise.
47193         * iconvdata/ibm902.h: Likewise.
47194         * iconvdata/ibm9030.h: Likewise.
47195         * iconvdata/ibm9066.h: Likewise.
47196         * iconvdata/ibm921.h: Likewise.
47197         * iconvdata/ibm922.h: Likewise.
47198         * iconvdata/ibm9448.h: Likewise.
47199         * iconvdata/isiri-3342.h: Likewise.
47200         * iconvdata/jis0201.h: Likewise.
47201         * include/link.h: Likewise.
47202         * include/netdb.h: Likewise.
47203         * inet/check_native.c: Likewise.
47204         * inet/check_pf.c: Likewise.
47205         * inet/getipv4sourcefilter.c: Likewise.
47206         * inet/getnameinfo.c: Likewise.
47207         * inet/getsourcefilter.c: Likewise.
47208         * inet/htonl.c: Likewise.
47209         * inet/setipv4sourcefilter.c: Likewise.
47210         * inet/setsourcefilter.c: Likewise.
47211         * inet/test-inet6_opt.c: Likewise.
47212         * inet/tst-network.c: Likewise.
47213         * locale/C-collate.c: Likewise.
47214         * locale/C-ctype.c: Likewise.
47215         * locale/C-time.c: Likewise.
47216         * locale/C-translit.h: Likewise.
47217         * locale/loadarchive.c: Likewise.
47218         * locale/programs/3level.h: Likewise.
47219         * locale/programs/charmap.c: Likewise.
47220         * locale/programs/charmap.h: Likewise.
47221         * locale/programs/ld-address.c: Likewise.
47222         * locale/programs/ld-collate.c: Likewise.
47223         * locale/programs/ld-ctype.c: Likewise.
47224         * locale/programs/ld-identification.c: Likewise.
47225         * locale/programs/ld-measurement.c: Likewise.
47226         * locale/programs/ld-messages.c: Likewise.
47227         * locale/programs/ld-monetary.c: Likewise.
47228         * locale/programs/ld-name.c: Likewise.
47229         * locale/programs/ld-numeric.c: Likewise.
47230         * locale/programs/ld-paper.c: Likewise.
47231         * locale/programs/ld-telephone.c: Likewise.
47232         * locale/programs/ld-time.c: Likewise.
47233         * locale/programs/linereader.c: Likewise.
47234         * locale/programs/locale.c: Likewise.
47235         * locale/programs/locarchive.c: Likewise.
47236         * locale/programs/locfile.h: Likewise.
47237         * locale/programs/repertoire.c: Likewise.
47238         * locale/programs/simple-hash.c: Likewise.
47239         * locale/programs/simple-hash.h: Likewise.
47240         * malloc/memusage.c: Likewise.
47241         * malloc/memusagestat.c: Likewise.
47242         * nis/nis_defaults.c: Likewise.
47243         * nis/nis_hash.c: Likewise.
47244         * nis/nis_print.c: Likewise.
47245         * nis/nis_xdr.c: Likewise.
47246         * nscd/connections.c: Likewise.
47247         * nscd/hstcache.c: Likewise.
47248         * nscd/nscd_gethst_r.c: Likewise.
47249         * nscd/nscd_getserv_r.c: Likewise.
47250         * nscd/nscd_helper.c: Likewise.
47251         * nscd/servicescache.c: Likewise.
47252         * nss/makedb.c: Likewise.
47253         * nss/nss_db/db-XXX.c: Likewise.
47254         * nss/nss_db/db-initgroups.c: Likewise.
47255         * nss/nss_db/db-netgrp.c: Likewise.
47256         * nss/nss_files/files-network.c: Likewise.
47257         * nss/nss_files/files-parse.c: Likewise.
47258         * posix/bug-regex5.c: Likewise.
47259         * posix/fnmatch_loop.c: Likewise.
47260         * posix/regcomp.c: Likewise.
47261         * posix/regexec.c: Likewise.
47262         * posix/tst-rfc3484-2.c: Likewise.
47263         * posix/tst-rfc3484-3.c: Likewise.
47264         * posix/tst-rfc3484.c: Likewise.
47265         * resolv/nss_dns/dns-canon.c: Likewise.
47266         * resolv/nss_dns/dns-network.c: Likewise.
47267         * resolv/res_init.c: Likewise.
47268         * resolv/res_mkquery.c: Likewise.
47269         * resolv/tst-aton.c: Likewise.
47270         * stdlib/cxa_atexit.c: Likewise.
47271         * stdlib/cxa_finalize.c: Likewise.
47272         * stdlib/gen-fpioconst.c: Likewise.
47273         * stdlib/strtol_l.c: Likewise.
47274         * string/tst-endian.c: Likewise.
47275         * sunrpc/auth_des.c: Likewise.
47276         * sunrpc/clnt_udp.c: Likewise.
47277         * sunrpc/rtime.c: Likewise.
47278         * sunrpc/svcauth_des.c: Likewise.
47279         * sunrpc/xdr.c: Likewise.
47280         * sunrpc/xdr_intXX_t.c: Likewise.
47281         * sunrpc/xdr_rec.c: Likewise.
47282         * sysdeps/generic/ldconfig.h: Likewise.
47283         * sysdeps/generic/ldsodefs.h: Likewise.
47284         * sysdeps/generic/memusage.h: Likewise.
47285         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47286         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47287         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47288         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47289         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47290         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47291         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47292         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47293         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47294         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47295         * sysdeps/posix/getaddrinfo.c: Likewise.
47296         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47297         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47298         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47299         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47300         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47301         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47302         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47303         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47304         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47305         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47306         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47307         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47308         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47309         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47310         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47311         * sysdeps/x86_64/dl-tls.h: Likewise.
47312         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47313         * time/alt_digit.c: Likewise.
47314         * time/era.c: Likewise.
47315         * wcsmbs/tst-c16c32-1.c: Likewise.
47316
47317 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47318
47319         * math/libm-test.inc (struct test_sincos_data): New type.
47320         (RUN_TEST_LOOP_sincos): New macro.
47321         (sincos_test_data): New variable.
47322         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47323
47324 2013-05-16  Richard Henderson  <rth@redhat.com>
47325
47326         * math/atest-exp2.c (LIMB64): New macro.
47327         (CONSTSZ): New macro.
47328         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47329         (hexdig): Move ...
47330         (print_mpn_fp): ... to function scope.
47331         (read_mpn_hex): Remove.
47332         (get_log2): Remove.
47333         (exp2_mpn): Use mp_log2.
47334         (main): Use mp_exp1.
47335
47336 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47337
47338         * math/libm-test.inc: Remove comment about not testing "inexact"
47339         exceptions.
47340         (INEXACT_EXCEPTION): New macro.
47341         (NO_INEXACT_EXCEPTION): Likewise.
47342         (INVALID_EXCEPTION_OK): Update value.
47343         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47344         (OVERFLOW_EXCEPTION_OK): Likewise.
47345         (UNDERFLOW_EXCEPTION_OK): Likewise.
47346         (IGNORE_ZERO_INF_SIGN): Likewise.
47347         (ERRNO_UNCHANGED): Likewise.
47348         (ERRNO_EDOM): Likewise.
47349         (ERRNO_ERANGE): Likewise.
47350         (test_exceptions): Handle testing "inexact" exceptions.
47351         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47352         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47353         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47354         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47355         INEXACT_EXCEPTION.
47356         (rint_towardzero_test_data): Likewise.
47357         (rint_downward_test_data): Likewise.
47358         (rint_upward_test_data): Likewise.
47359
47360         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47361         with OVERFLOW_EXCEPTION.
47362         (exp10_test_data): Likewise.
47363         (exp2_test_data): Likewise.
47364         (expm1_test_data): Likewise.
47365         (lgamma_test_data): Likewise.
47366         (pow_test_data): Likewise.
47367         (tgamma_test_data): Likewise.
47368         (yn_test_data): Remove duplicate test of overflow.
47369
47370         * math/libm-test.inc (struct test_cc_c_data): New type.
47371         (RUN_TEST_LOOP_cc_c): New macro.
47372         (cpow_test_data): New variable.
47373         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47374
47375         * math/libm-test.inc (struct test_f_L_data): New type.
47376         (RUN_TEST_LOOP_f_L): New macro.
47377         (llrint_test_data): New variable.
47378         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47379         (llrint_tonearest_test_data): New variable.
47380         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47381         (llrint_towardzero_test_data): New variable.
47382         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47383         (llrint_downward_test_data): New variable.
47384         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47385         (llrint_upward_test_data): New variable.
47386         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47387         (llround_test_data): New variable.
47388         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47389
47390 2013-05-13  Peter Collingbourne  <pcc@google.com>
47391
47392         * math/atest-exp2.c (get_log2): Remove const attribute.
47393
47394 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47395
47396         * math/libm-test.inc (struct test_f_l_data): New type.
47397         (RUN_TEST_LOOP_f_l): New macro.
47398         (lrint_test_data): New variable.
47399         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47400         (lrint_tonearest_test_data): New variable.
47401         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47402         (lrint_towardzero_test_data): New variable.
47403         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47404         (lrint_downward_test_data): New variable.
47405         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47406         (lrint_upward_test_data): New variable.
47407         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47408         (lround_test_data): New variable.
47409         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47410
47411 2013-05-15  Peter Collingbourne  <pcc@google.com>
47412
47413         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47414         (EXTRACT_WORDS64) Use where appropriate.
47415         (INSERT_WORDS64) Likewise.
47416
47417         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47418         constraints with x constraints.
47419         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47420
47421         * malloc/obstack.c (_obstack_compat): Add initializer.
47422
47423 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47424
47425         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47426         si_trapno and add si_addr_lsb to _sifields.sigfault.
47427         (si_trapno): Remove macro.
47428         (si_addr_lsb): Define new macro.
47429         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47430
47431 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47432
47433         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47434         instead of TEST_f_l.
47435         (llrint_test_tonearest): Likewise.
47436         (llrint_test_towardzero): Likewise.
47437         (llrint_test_downward): Likewise.
47438         (llrint_test_upward): Likewise.
47439         (llround_test): Likewise.
47440
47441         * math/libm-test.inc (struct test_f_i_data): Add comment.
47442         (RUN_TEST_LOOP_f_b): New macro.
47443         (RUN_TEST_LOOP_f_b_tg): Likewise.
47444         (finite_test_data): New variable.
47445         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47446         (isfinite_test_data): New variable.
47447         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47448         (isinf_test_data): New variable.
47449         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47450         (isnan_test_data): New variable.
47451         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47452         (isnormal_test_data): New variable.
47453         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47454         (issignaling_test_data): New variable.
47455         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47456         (signbit_test_data): New variable.
47457         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47458
47459         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47460         with INVALID_EXCEPTION.
47461         (acosh_test_data): Likewise.
47462         (asin_test_data): Likewise.
47463         (atanh_test_data): Likewise.
47464         (fmod_test_data): Likewise.
47465         (log_test_data): Likewise.
47466         (log10_test_data): Likewise.
47467         (log2_test_data): Likewise.
47468         (pow_test_data): Likewise.
47469         (sqrt_test_data): Likewise.
47470         (y0_test_data): Likewise.
47471         (y1_test_data): Likewise.
47472         (yn_test_data): Likewise.
47473
47474         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47475         function contents.
47476
47477         * math/libm-test.inc (struct test_ff_i_data): New type.
47478         (RUN_TEST_LOOP_ff_i_tg): New macro.
47479         (isgreater_test_data): New variable.
47480         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47481         (isgreaterequal_test_data): New variable.
47482         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47483         (isless_test_data): New variable.
47484         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47485         (islessequal_test_data): New variable.
47486         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47487         (islessgreater_test_data): New variable.
47488         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47489         (isunordered_test_data): New variable.
47490         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47491
47492 2013-05-14  David S. Miller  <davem@davemloft.net>
47493
47494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47495
47496 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47497
47498         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47499
47500         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47501         extra_test to int.
47502         (struct test_f_i_data): Change type of max_ulp to int.
47503
47504         * math/libm-test.inc (test_ffI_f1_data): New type.
47505         (RUN_TEST_LOOP_ffI_f1): New macro.
47506         (remquo_test_data): New variable.
47507         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47508
47509         * setjmp/tst-setjmp-fp.c: New file.
47510         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47511         (link-libm): New variable.
47512         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47513
47514         * math/libm-test.inc (struct test_f_i_data): New type.
47515         (RUN_TEST_LOOP_f_i): New macro.
47516         (RUN_TEST_LOOP_f_i_tg): Likewise.
47517         (fpclassify_test_data): New variable.
47518         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47519         (ilogb_test_data): New variable.
47520         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47521
47522         * math/libm-test.inc (scalbln_test): Correct function name in END
47523         call.
47524
47525         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47526         (RUN_TEST_LOOP_fI_f1): New macro.
47527         (frexp_test_data): New variable.
47528         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47529
47530         * math/libm-test.inc (struct test_fF_f1_data): New type.
47531         (RUN_TEST_LOOP_fF_f1): New macro.
47532         (modf_test_data): New variable.
47533         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47534
47535         * math/libm-test.inc (struct test_f_f1_data): New type.
47536         (RUN_TEST_LOOP_f_f1): New macro.
47537         (gamma_test_data): New variable.
47538         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47539         (lgamma_test_data): New variable.
47540         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47541
47542 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47543
47544         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47545         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47546         (main): Comment "tls" pseudo-hwcap.
47547
47548 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47549
47550         * math/libm-test.inc (struct test_fl_f_data): New type.
47551         (RUN_TEST_LOOP_fl_f): New variable.
47552         (scalbln_test_data): New variable.
47553         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47554
47555         * math/libm-test.inc (struct test_fi_f_data): New type.
47556         (RUN_TEST_LOOP_fi_f): New macro.
47557         (ldexp_test_data): New variable.
47558         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47559         (scalbn_test_data): New variable.
47560         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47561
47562         * math/libm-test.inc (struct test_c_f_data): New type.
47563         (RUN_TEST_LOOP_c_f): New macro.
47564         (cabs_test_data): New variable.
47565         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47566         (carg_test_data): New variable.
47567         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47568         (cimag_test_data): New variable.
47569         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47570         (creal_test_data): New variable.
47571         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47572
47573         * math/libm-test.inc (struct test_if_f_data): New type.
47574         (RUN_TEST_LOOP_if_f): New macro.
47575         (jn_test_data): New variable.
47576         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47577         (yn_test_data): New variable.
47578         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47579
47580         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47581
47582 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47583
47584         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47585         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47586
47587 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47588
47589         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47590         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47591         (bench-deps): Add bench-timing.h.
47592         * benchtests-bench-skeleton.c: Include bench-timing.h.
47593         (main): Use TIMING_* macros instead of clock_gettime.
47594         * benchtests/bench-timing.h: New file.
47595
47596         [BZ #14582]
47597         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47598         Renamed from _LIB_VERSION.
47599         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47600
47601 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47602
47603         * math/libm-test.inc (struct test_fff_f_data): New type.
47604         (RUN_TEST_LOOP_fff_f): New macro.
47605         (fma_test_data): New variable.
47606         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47607         (fma_towardzero_test_data): New variable.
47608         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47609         (fma_downward_test_data): New variable.
47610         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47611         (fma_upward_test_data): New variable.
47612         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47613
47614         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47615         (struct test_c_c_data): New type.
47616         (RUN_TEST_LOOP_c_c): New macro.
47617         (cacos_test_data): New variable.
47618         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47619         (cacosh_test_data): New variable.
47620         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47621         (casin_test_data): New variable.
47622         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47623         (casinh_test_data): New variable.
47624         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47625         (catan_test_data): New variable.
47626         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47627         (catanh_test_data): New variable.
47628         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47629         (ccos_test_data): New variable.
47630         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47631         (ccosh_test_data): New variable.
47632         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47633         (cexp_test_data): New variable.
47634         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47635         (clog_test_data): New variable.
47636         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47637         (clog10_test_data): New variable.
47638         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47639         (conj_test_data): New variable.
47640         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47641         (cproj_test_data): New variable.
47642         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47643         (csin_test_data): New variable.
47644         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47645         (csinh_test_data): New variable.
47646         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47647         (csqrt_test_data): New variable.
47648         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47649         (ctan_test_data): New variable.
47650         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47651         (ctan_tonearest_test_data): New variable.
47652         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47653         (ctan_towardzero_test_data): New variable.
47654         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47655         (ctan_downward_test_data): New variable.
47656         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47657         (ctan_upward_test_data): New variable.
47658         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47659         (ctanh_test_data): New variable.
47660         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47661         (ctanh_tonearest_test_data): New variable.
47662         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47663         (ctanh_towardzero_test_data): New variable.
47664         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47665         (ctanh_downward_test_data): New variable.
47666         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47667         (ctanh_upward_test_data): New variable.
47668         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47669         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47670         of BUILD_COMPLEX.
47671
47672         * math/libm-test.inc (struct test_ff_f_data): New type.
47673         (struct test_ff_f_data_nexttoward): Likewise.
47674         (RUN_TEST_LOOP_2_f): New macro.
47675         (RUN_TEST_LOOP_ff_f): Likewise.
47676         (atan2_test_data): New variable.
47677         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47678         (copysign_test_data): New variable.
47679         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47680         (fdim_test_data): New variable.
47681         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47682         (fmax_test_data): New variable.
47683         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47684         (fmin_test_data): New variable.
47685         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47686         (fmod_test_data): New variable.
47687         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47688         (hypot_test_data): New variable.
47689         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47690         (nextafter_test_data): New variable.
47691         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47692         (nexttoward_test_data): New variable.
47693         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47694         (pow_test_data): New variable.
47695         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47696         (pow_tonearest_test_data): New variable.
47697         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47698         (pow_towardzero_test_data): New variable.
47699         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47700         (pow_downward_test_data): New variable.
47701         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47702         (pow_upward_test_data): New variable.
47703         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47704         (remainder_test_data): New variable.
47705         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47706         (scalb_test_data): New variable.
47707         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47708         * sysdeps/i386/fpu/libm-test-ulps: Update.
47709
47710 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47711
47712         * math/libm-test.inc (fma_test): Use max_value instead of local
47713         variable fltmax.
47714         (nextafter_test): Likewise.
47715
47716         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47717         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47718         (acos_downward_test_data): New variable.
47719         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47720         (acos_upward_test_data): New variable.
47721         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47722         (acosh_test_data): New variable.
47723         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47724         (asin_test_data): New variable.
47725         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47726         (asin_tonearest_test_data): New variable.
47727         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47728         (asin_towardzero_test_data): New variable.
47729         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47730         (asin_downward_test_data): New variable.
47731         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47732         (asin_upward_test_data): New variable.
47733         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47734         (asinh_test_data): New variable.
47735         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47736         (atan_test_data): New variable.
47737         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47738         (atanh_test_data): New variable.
47739         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47740         (cbrt_test_data): New variable.
47741         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47742         (ceil_test_data): New variable.
47743         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47744         (cos_test_data): New variable.
47745         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47746         (cos_tonearest_test_data): New variable.
47747         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47748         (cos_towardzero_test_data): New variable.
47749         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47750         (cos_downward_test_data): New variable.
47751         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47752         (cos_upward_test_data): New variable.
47753         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47754         (cosh_test_data): New variable.
47755         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47756         (cosh_tonearest_test_data): New variable.
47757         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47758         (cosh_towardzero_test_data): New variable.
47759         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47760         (cosh_downward_test_data): New variable.
47761         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47762         (cosh_upward_test_data): New variable.
47763         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47764         (erf_test_data): New variable.
47765         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47766         (erfc_test_data): New variable.
47767         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47768         (exp_test_data): New variable.
47769         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47770         (exp_tonearest_test_data): New variable.
47771         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47772         (exp_towardzero_test_data): New variable.
47773         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47774         (exp_downward_test_data): New variable.
47775         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47776         (exp_upward_test_data): New variable.
47777         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47778         (exp10_test_data): New variable.
47779         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47780         (exp2_test_data): New variable.
47781         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47782         (expm1_test_data): New variable.
47783         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47784         (fabs_test_data): New variable.
47785         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47786         (floor_test_data): New variable.
47787         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47788         (j0_test_data): New variable.
47789         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47790         (j1_test_data): New variable.
47791         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47792         (log_test_data): New variable.
47793         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47794         (log10_test_data): New variable.
47795         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47796         (log1p_test_data): New variable.
47797         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47798         (log2_test_data): New variable.
47799         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47800         (logb_test_data): New variable.
47801         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47802         (logb_downward_test_data): New variable.
47803         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47804         (nearbyint_test_data): New variable.
47805         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47806         (rint_test_data): New variable.
47807         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47808         (rint_tonearest_test_data): New variable.
47809         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47810         (rint_towardzero_test_data): New variable.
47811         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47812         (rint_downward_test_data): New variable.
47813         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47814         (rint_upward_test_data): New variable.
47815         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47816         (round_test_data): New variable.
47817         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47818         (sin_test_data): New variable.
47819         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47820         (sin_tonearest_test_data): New variable.
47821         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47822         (sin_towardzero_test_data): New variable.
47823         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47824         (sin_downward_test_data): New variable.
47825         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47826         (sin_upward_test_data): New variable.
47827         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47828         (sinh_test_data): New variable.
47829         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47830         (sinh_tonearest_test_data): New variable.
47831         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47832         (sinh_towardzero_test_data): New variable.
47833         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47834         (sinh_downward_test_data): New variable.
47835         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47836         (sinh_upward_test_data): New variable.
47837         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47838         (sqrt_test_data): New variable.
47839         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47840         (tan_test_data): New variable.
47841         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
47842         (tan_tonearest_test_data): New variable.
47843         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47844         (tan_towardzero_test_data): New variable.
47845         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47846         (tan_downward_test_data): New variable.
47847         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47848         (tan_upward_test_data): New variable.
47849         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47850         (tanh_test_data): New variable.
47851         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
47852         (tgamma_test_data): New variable.
47853         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
47854         (trunc_test_data): New variable.
47855         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
47856         (y0_test_data): New variable.
47857         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
47858         (y1_test_data): New variable.
47859         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
47860         (significand_test_data): New variable.
47861         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
47862
47863 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
47864
47865         [BZ #12387]
47866         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
47867
47868 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
47869
47870         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
47871
47872 2013-05-10  Andreas Jaeger  <aj@suse.de>
47873
47874         [BZ #15448]
47875         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
47876         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
47877
47878 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47879
47880         * math/gen-libm-test.pl (adjust_arg): New function.
47881         (special_functions): Handle generating output in both functions
47882         and arrays.
47883         (parse_args): Likewise.
47884         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
47885         $in_func argument to parse_args.
47886         * math/libm-test.inc (struct test_f_f_data): New type.
47887         (IF_ROUND_INIT_): New macro.
47888         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
47889         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
47890         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
47891         (IF_ROUND_INIT_FE_UPWARD): Likewise.
47892         (ROUND_RESTORE_): Likewise.
47893         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
47894         (ROUND_RESTORE_FE_TONEAREST): Likewise.
47895         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
47896         (ROUND_RESTORE_FE_UPWARD): Likewise.
47897         (RUN_TEST_LOOP_f_f): New macro.
47898         (acos_test_data): New variable.
47899         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
47900         (acos_tonearest_test_data): New variable.
47901         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47902
47903 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
47904
47905         * benchtests/bench-skeleton.c (startup): Fix coding style.
47906
47907 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47908
47909         [BZ #6809]
47910         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
47911         negative infinity argument.
47912         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
47913         negative infinity argument.
47914         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
47915         negative infinity argument.
47916         * math/libm-test.inc (tgamma_test): Expect errno to be set for
47917         domain errors.
47918
47919 2013-05-10  Florian Weimer  <fweimer@redhat.com>
47920
47921         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
47922         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
47923         * iconv/iconv_prog.c (main): Likewise.
47924         * locale/programs/charmap-dir.c (charmap_readdir)
47925         (fopen_uncompressed): Likewise.
47926         * locale/programs/locfile.c (siblings_uncached)
47927         (write_locale_data): Use lstat64 instead of lstat.
47928         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
47929         stat.
47930
47931 2013-05-10  Andreas Jaeger  <aj@suse.de>
47932
47933         [BZ #15395]
47934         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
47935         localization.
47936         Include <locale.h>.
47937
47938 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
47939
47940         * elf/dl-close.c (_dl_close_worker): Add comments.
47941
47942 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
47943
47944         [BZ #15359]
47945         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
47946         high part of pi/2.
47947         (__ieee754_rem_pio2l): Update comments.
47948
47949         [BZ #15429]
47950         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
47951         high part of pi/2.
47952         (__ieee754_rem_pio2l): Update comments.
47953
47954         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
47955         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
47956
47957         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
47958         M_PI_4l.
47959
47960         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
47961         (M_PI_34_LOG10El): Likewise.
47962         (M_PI2_LOG10El): Likewise.
47963         (M_PI4_LOG10El): Likewise.
47964         (M_PI_LOG10El): Likewise.
47965
47966 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47967
47968         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
47969
47970 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
47971
47972         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
47973         (MINUS_ZERO_INIT): Likewise.
47974         (PLUS_INFTY_INIT): Likewise.
47975         (MINUS_INFTY_INIT): Likewise.
47976         (QNAN_VALUE_INIT): Likewise.
47977         (MAX_VALUE_INIT): Likewise.
47978         (MIN_VALUE_INIT): Likewise.
47979         (MIN_SUBNORM_VALUE_INIT): Likewise.
47980         (plus_zero): Initialize with PLUS_ZERO_INIT.
47981         (minus_zero): Initialize with MINUS_ZERO_INIT.
47982         (plus_infty): Initialize with PLUS_INFTY_INIT.
47983         (minus_infty): Initialize with MINUS_INFTY_INIT.
47984         (qnan_value): Initialize with QNAN_VALUE_INIT.
47985         (max_value): Initialize with MAX_VALUE_INIT.
47986         (min_value): Initialize with MIN_VALUE_INIT.
47987         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
47988
47989         * math/libm-test.inc (RUN_TEST_if_f): New macro.
47990         (jn_test): Use TEST_if_f instead of TEST_ff_f.
47991         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
47992         (yn_test): Use TEST_if_f instead of TEST_ff_f.
47993
47994         * math/libm-test.inc (RUN_TEST_f_f): New macro.
47995         (RUN_TEST_2_f): Likewise.
47996         (RUN_TEST_ff_f): Likewise.
47997         (RUN_TEST_fi_f): Likewise.
47998         (RUN_TEST_fl_f): Likewise.
47999         (RUN_TEST_fff_f): Likewise.
48000         (RUN_TEST_c_f): Likewise.
48001         (RUN_TEST_f_f1): Likewise.
48002         (RUN_TEST_fF_f1): Likewise.
48003         (RUN_TEST_fI_f1): Likewise.
48004         (RUN_TEST_ffI_f1): Likewise.
48005         (RUN_TEST_c_c): Likewise.
48006         (RUN_TEST_cc_c): Likewise.
48007         (RUN_TEST_f_i): Likewise.
48008         (RUN_TEST_f_i_tg): Likewise.
48009         (RUN_TEST_ff_i_tg): Likewise.
48010         (RUN_TEST_f_b): Likewise.
48011         (RUN_TEST_f_b_tg): Likewise.
48012         (RUN_TEST_f_l): Likewise.
48013         (RUN_TEST_f_L): Likewise.
48014         (RUN_TEST_sincos): Likewise.
48015         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48016         whether to show exceptions.  Do not include ");\n" in return
48017         value.
48018         (special_functions): Output call to RUN_TEST_sincos instead of
48019         check_float calls.  Update calls to new_test.
48020         (parse_args): Output call to single RUN_TEST_* macro instead of
48021         check_* calls and other assignments.  Update calls to new_test.
48022
48023         [BZ #2546]
48024         [BZ #2560]
48025         [BZ #5159]
48026         [BZ #15426]
48027         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48028         input to result for tgamma overflow.
48029         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48030         (gamma_coeff): New variable.
48031         (NCOEFF): New macro.
48032         (gamma_positive): New function.
48033         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48034         underflow here.  Use gamma_positive instead of exp (lgamma) for
48035         other arguments.
48036         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48037         (gamma_coeff): New variable.
48038         (NCOEFF): New macro.
48039         (gammaf_positive): New function.
48040         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48041         underflow here.  Use gamma_positive instead of exp (lgamma) for
48042         other arguments.
48043         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48044         (gamma_coeff): New variable.
48045         (NCOEFF): New macro.
48046         (gammal_positive): New function.
48047         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48048         underflow here.  Use gamma_positive instead of exp (lgamma) for
48049         other arguments.
48050         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48051         (gamma_coeff): New variable.
48052         (NCOEFF): New macro.
48053         (gammal_positive): New function.
48054         (__ieee754_gammal_r): Handle positive infinity, overflow and
48055         underflow here.  Handle NaN the same as positive infinity.  Remove
48056         check x < 0xffffffff for negative integers.  Use gamma_positive
48057         instead of exp (lgamma) for other arguments.
48058         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48059         (gamma_coeff): New variable.
48060         (NCOEFF): New macro.
48061         (gammal_positive): New function.
48062         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48063         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48064         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48065         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48066         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48067         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48068         * sysdeps/generic/math_private.h (__gamma_productf): New
48069         prototype.
48070         (__gamma_product): Likewise.
48071         (__gamma_productl): Likewise.
48072         * math/Makefile (libm-calls): Add gamma_product.
48073         * math/libm-test.inc (tgamma_test): Add more tests.
48074         * sysdeps/i386/fpu/libm-test-ulps: Update.
48075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48076
48077 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48078
48079         * benchtests/bench-skeleton.c (main): Preheat CPU.
48080
48081 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48082
48083         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48084
48085 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48086
48087         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48088         and _dl_skip_args_internal.
48089
48090 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48091
48092         * manual/message.texi (Message Translation): Talk about users.
48093         Message to key mapping impacts design.
48094
48095 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48096
48097         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48098
48099         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48100
48101         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48102         * sysdeps/wordsize-64/glob64.c: ... here.
48103
48104         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48105         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48106         New macros.
48107
48108         * debug/getlogin_r_chk.c: Moved to ...
48109         * login/getlogin_r_chk.c: ... here.
48110         * debug/Makefile (routines): Move getlogin_r_chk to ...
48111         * login/Makefile (routines): ... here.
48112         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48113         * login/Versions (libc: GLIBC_2.4): ... here.
48114
48115         * io/poll.c (__poll): Renamed from poll.
48116         Add libc_hidden_def.
48117         (poll): Define as weak alias.
48118
48119         * debug/ptsname_r_chk.c: Moved to ...
48120         * login/ptsname_r_chk.c: ... here.
48121         * debug/Makefile (routines): Move ptsname_r_chk to ...
48122         * login/Makefile (routines): ... here.
48123         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48124         * login/Versions (libc: GLIBC_2.4): ... here.
48125
48126         * posix/getlogin.c: Moved to ...
48127         * login/getlogin.c: ... here.
48128         * posix/getlogin_r.c: Moved to ...
48129         * login/getlogin_r.c: ... here.
48130         * posix/getlogin_r.c: Moved to ...
48131         * login/getlogin_r.c: ... here.
48132         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48133         * login/Makefile (routines): ... here.
48134         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48135         * login/Versions (libc: GLIBC_2.0): ... here.
48136
48137         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48138         (setrlimit): Define as weak alias.
48139
48140         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48141         Call __ names for open, ftruncate, and close.
48142         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48143         (truncate): Define as weak alias.
48144
48145 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48146
48147         * math/gen-libm-test.pl (parse_args): Initialize x before each
48148         test of frexp, modf and remquo.
48149
48150         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48151         test signgam value.
48152
48153 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48154
48155         [BZ #15418]
48156         [BZ #15419]
48157         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48158         internal tests.
48159         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48160
48161 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48162
48163         * elf/dl-writev.h: New file.
48164         * elf/dl-misc.c: Include it.
48165         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48166         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48167
48168 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48169
48170         * math/libm-test.inc (noXFails): Remove variable.
48171         (noXPasses): Likewise.
48172         (BUILD_COMPLEX_INT): Remove macro.
48173         (print_screen): Remove xfail argument.
48174         (print_screen_max_error): Likewise.
48175         (update_stats): Likewise.
48176         (print_max_error): Likewise.  Update calls to other affected
48177         functions.
48178         (print_complex_max_error): Likewise.
48179         (test_single_exception): Update calls to print_screen.
48180         (test_single_errno): Likewise.
48181         (check_float_internal): Remove xfail argument.  Update calls to
48182         other affected functions.
48183         (check_float): Likewise.
48184         (check_complex): Likewise.
48185         (check_int): Likewise.
48186         (check_long): Likewise.
48187         (check_bool): Likewise.
48188         (check_longlong): Likewise.
48189         (main): Don't print noXFails and noXPasses.
48190         * math/gen-libm-test.pl (top level): Don't mention expected
48191         failure handling in comment.
48192         (new_test): Don't handle expected failures.
48193         (parse_args): Don't mention expected failure handling in comment.
48194         (generate_testfile): Don't handle expected failures.
48195         (parse_ulps): Likewise.
48196         (print_ulps_file): Likewise.
48197         (get_failure): Remove function.
48198         (output_test): Don't handle expected failures.
48199         * make/README.libm-test: Don't mention expected failure handling.
48200
48201         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48202         (minus_zero): Likewise.
48203         (plus_infty): Likewise.
48204         (minus_infty): Likewise.
48205         (qnan_value): Likewise.
48206         (max_value): Likewise.
48207         (min_value): Likewise.
48208         (min_subnorm_value): Likewise.
48209         (initialize): Do not initialize those variables dynamically.
48210
48211 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48212
48213         * io/open.c (__open_2): Moved to ...
48214         * io/open_2.c: ... this new file.
48215         * io/open64.c (__open64_2): Moved to ...
48216         * io/open64_2.c: ... this new file.
48217         * io/openat.c (__openat_2): Moved to ...
48218         * io/openat_2.c: ... this new file.
48219         * io/openat64.c (__openat64_2): Moved to ...
48220         * io/openat64_2.c: ... this new file.
48221         * io/Makefile (routines): Add them.
48222         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48223         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48224         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48225         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48226         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48227         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48228         (__openat64): Add hidden_ver.
48229         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48230         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48231
48232         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48233         Separately conditionalize setting of GLRO(dl_sysinfo) so
48234         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48235         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48236
48237 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48238
48239         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48240         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48241         definition.
48242         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48243         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48244         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48245         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48246         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48247
48248 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48249
48250         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48251         test signgam value.
48252
48253         * math/libm-test.inc (hypot_test): Do not use
48254         IGNORE_ZERO_INF_SIGN.
48255
48256 2013-05-03  Andreas Jaeger  <aj@suse.de>
48257
48258         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48259         Linux 3.9.
48260         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48261         (PF_MAX): Adjust for VSOCK change.
48262
48263 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48264
48265         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48266
48267 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48268
48269         [BZ #15264]
48270         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48271         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48272         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48273
48274 2013-05-02  David S. Miller  <davem@davemloft.net>
48275
48276         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48277
48278 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48279
48280         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48281
48282 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48283
48284         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48285
48286 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48287
48288         [BZ #14952]
48289         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48290         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48291         Use __attribute__ ((__gnu_inline__)).
48292         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48293         Don't use __attribute__ ((__gnu_inline__)).
48294
48295 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48296
48297         [BZ #15423]
48298         * math/s_catan.c (__catan): Handle small real or imaginary part of
48299         input specially to avoid spurious underflow.
48300         * math/s_catanf.c (__catanf): Likewise.
48301         * math/s_catanh.c (__catanh): Likewise.
48302         * math/s_catanhf.c (__catanhf): Likewise.
48303         * math/s_catanhl.c (__catanhl): Likewise.
48304         * math/s_catanl.c (__catanl): Likewise.
48305         * math/libm-test.inc (catan_test): Add more tests.
48306         (catanh_test): Likewise.
48307         * sysdeps/i386/fpu/libm-test-ulps: Update.
48308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48309
48310 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48311
48312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48313
48314 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48315
48316         [BZ #15416]
48317         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48318         accurately for denominator in atan2.
48319         * math/s_catanf.c (__catanf): Likewise.
48320         * math/s_catanh.c (__catanh): Likewise.
48321         * math/s_catanhf.c (__catanhf): Likewise.
48322         * math/s_catanhl.c (__catanhl): Likewise.
48323         * math/s_catanl.c (__catanl): Likewise.
48324         * math/libm-test.inc (catan_test): Add more tests.
48325         (catanh_test): Likewise.
48326         * sysdeps/i386/fpu/libm-test-ulps: Update.
48327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48328
48329 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48330
48331         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48332
48333         * benchtests/Makefile (bench): Remove slow benchmarks.
48334         * benchtests/atan-inputs: Add slow benchmark inputs.
48335         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48336         (BENCH_FUNC): Accept variant offset.
48337         (VARIANT): Define.
48338         * benchtests/bench-skeleton.c (main): Run benchmark for each
48339         variant.
48340         * benchtests/cos-inputs: Add slow benchmark inputs.
48341         * benchtests/exp-inputs: Likewise.
48342         * benchtests/pow-inputs: Likewise.
48343         * benchtests/sin-inputs: Likewise.
48344         * benchtests/slowatan-inputs: Remove.
48345         * benchtests/slowatan.c: Remove.
48346         * benchtests/slowcos-inputs: Remove.
48347         * benchtests/slowcos.c: Remove.
48348         * benchtests/slowexp-inputs: Remove.
48349         * benchtests/slowexp.c: Remove.
48350         * benchtests/slowpow-inputs: Remove.
48351         * benchtests/slowpow.c: Remove.
48352         * benchtests/slowsin-inputs: Remove.
48353         * benchtests/slowsin.c: Remove.
48354         * benchtests/slowtan-inputs: Remove.
48355         * benchtests/slowtan.c: Remove.
48356         * benchtests/tan-inputs: Add slow benchmark inputs.
48357         * scripts/bench.pl: Parse comments and directives.
48358
48359         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48360         in CPPFLAGS.
48361         ($(objpfx)bench-%.c): Remove *-ITER.
48362         * benchtests/bench-modf.c: Remove definition of ITER.
48363         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48364         (main): Loop for DURATION seconds instead of fixed number of
48365         iterations.
48366         * scripts/bench.pl: Don't expect iterations in parameters.
48367
48368 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48369
48370         * io/fchdir.c (__fchdir): Renamed from fchdir.
48371         (fchdir): Define as weak alias.
48372
48373 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48374
48375         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48376         (ERRNO_EDOM): Likewise.
48377         (ERRNO_ERANGE): Likewise.
48378         (noErrnoTests): New variable.
48379         (init_max_error): Set errno to 0.
48380         (test_single_errno): New function.
48381         (test_errno): Likewise.
48382         (check_float_internal): Call test_errno.  Set errno to 0.
48383         (check_complex): Refer to errno tests in comment.
48384         (check_int): Call test_errno.  Set errno to 0.
48385         (check_long): Likewise.
48386         (check_bool): Likewise.
48387         (check_longlong): Likewise.
48388         (cos_test): Use ERRNO_* flags for errno tests instead of
48389         check_int.
48390         (expm1_test): Likewise.
48391         (fmod_test): Likewise.
48392         (ilogb_test): Likewise.
48393         (lgamma_test): Likewise.
48394         (pow_test): Likewise.
48395         (remainder_test): Likewise.
48396         (sin_test): Likewise.
48397         (tan_test): Likewise.
48398         (yn_test): Likewise.
48399         (initialize): Set errno to 0.
48400         (main): Print number of errno tests.
48401         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48402
48403 2013-04-29  Andreas Jaeger  <aj@suse.de>
48404
48405         [BZ #15084]
48406         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48407         and RES_USEVC.
48408
48409         [BZ #15085]
48410         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48411         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48412         unimplemented.
48413
48414         [BZ #15380]
48415         * stdlib/random.c (__initstate): Return NULL if
48416         __initstate fails.
48417
48418         [BZ #15086]
48419         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48420         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48421         RES_SNGLKUPREOP.
48422
48423 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48424
48425         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48426
48427 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48428
48429         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48430         of individual tests.
48431         (casin_test): Likewise.
48432         (casinh_test): Likewise.
48433
48434 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48435
48436         [BZ #15409]
48437         * math/s_catan.c (__catan): Handle arguments with large real or
48438         imaginary part separately without squaring.
48439         * math/s_catanf.c (__catanf): Likewise.
48440         * math/s_catanh.c (__catanh): Likewise.
48441         * math/s_catanhf.c (__catanhf): Likewise.
48442         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48443         and redefine.
48444         (__catanhl): Handle arguments with large real or imaginary part
48445         separately without squaring.
48446         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48447         and redefine.
48448         (__catanl): Handle arguments with large real or imaginary part
48449         separately without squaring.
48450         * math/libm-test.inc (catan_test): Add more tests.
48451         (catanh_test): Likewise.
48452         * sysdeps/i386/fpu/libm-test-ulps: Update.
48453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48454
48455 2013-04-27  Andreas Jaeger  <aj@suse.de>
48456
48457         [BZ #15007]
48458         * stdlib/stdlib.h: Update guards for qecvt.
48459         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48460         <stdlib.h>.
48461
48462 2013-04-27  Allan McRae  <allan@archlinux.org>
48463
48464         * sysdeps/i386/fpu/libm-test-ulps: Update.
48465
48466 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48467
48468         [BZ #15406]
48469         * math/s_catan.c: Include <float.h>.
48470         (__catan): Ensure underflow exception occurs for underflowed
48471         result.
48472         * math/s_catanf.c: Include <float.h>.
48473         (__catanf): Ensure underflow exception occurs for underflowed
48474         result.
48475         * math/s_catanh.c: Include <float.h>.
48476         (__catanh): Ensure underflow exception occurs for underflowed
48477         result.
48478         * math/s_catanhf.c: Include <float.h>.
48479         (__catanhf): Ensure underflow exception occurs for underflowed
48480         result.
48481         * math/s_catanhl.c: Include <float.h>.
48482         (__catanhl): Ensure underflow exception occurs for underflowed
48483         result.
48484         * math/s_catanl.c: Include <float.h>.
48485         (__catanl): Ensure underflow exception occurs for underflowed
48486         result.
48487         * math/libm-test.inc (catan_test): Add more tests.
48488         (catanh_test): Likewise.
48489
48490         [BZ #15405]
48491         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48492         underflowed result.
48493         * math/s_ccoshf.c (__ccoshf): Likewise.
48494         * math/s_ccoshl.c (__ccoshl): Likewise.
48495         * math/s_csin.c (__csin): Likewise.
48496         * math/s_csinf.c (__csinf): Likewise.
48497         * math/s_csinh.c (__csinh): Likewise.
48498         * math/s_csinhf.c (__csinhf): Likewise.
48499         * math/s_csinhl.c (__csinhl): Likewise.
48500         * math/s_csinl.c (__csinl): Likewise.
48501         * math/libm-test.inc (ccos_test): Add more tests.
48502         (ccosh_test): Likewise.
48503         (csin_test): Likewise.
48504         (csinh_test): Likewise.
48505
48506 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48507
48508         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48509         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48510         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48511         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48512         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48513         powerpc/power5+/fpu folders.
48514         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48515
48516
48517 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48518
48519         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48520
48521 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48522
48523         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48524         additions to variable.
48525         [$(config-machine) = x86_64] (modules-names): Likewise.
48526         ($(objpfx)tst-audit3): Remove dependency.
48527         ($(objpfx)tst-audit3.out): Likewise.
48528         ($(objpfx)tst-audit4): Likewise.
48529         ($(objpfx)tst-audit4.out): Likewise.
48530         ($(objpfx)tst-audit5): Likewise.
48531         ($(objpfx)tst-audit5.out): Likewise.
48532         ($(objpfx)tst-audit6): Likewise.
48533         ($(objpfx)tst-audit6.out): Likewise.
48534         ($(objpfx)tst-audit7): Likewise.
48535         ($(objpfx)tst-audit7.out): Likewise.
48536         (tst-audit3-ENV): Remove variable.
48537         (tst-audit4-ENV): Likewise.
48538         (tst-audit5-ENV): Likewise.
48539         (tst-audit6-ENV): Likewise.
48540         (tst-audit7-ENV): Likewise.
48541         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48542         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48543         addition to variable.
48544         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48545         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48546         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48547         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48548         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48549         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48550         tst-audit3, tst-audit4 and tst-audit5.
48551         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48552         tst-audit6 and tst-audit7.
48553         [$(subdir) = elf] (modules-names): Add audit modules for those
48554         tests.
48555         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48556         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48557         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48558         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48559         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48560         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48561         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48562         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48563         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48564         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48565         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48566         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48567         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48568         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48569         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48570         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48571         Likewise.
48572         [$(subdir) = elf && $(config-cflags-avx) = yes]
48573         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48574         [$(subdir) = elf && $(config-cflags-avx) = yes]
48575         (CFLAGS-tst-auditmod4a.c): Likewise.
48576         [$(subdir) = elf && $(config-cflags-avx) = yes]
48577         (CFLAGS-tst-auditmod4b.c): Likewise.
48578         [$(subdir) = elf && $(config-cflags-avx) = yes]
48579         (CFLAGS-tst-auditmod6b.c): Likewise.
48580         [$(subdir) = elf && $(config-cflags-avx) = yes]
48581         (CFLAGS-tst-auditmod6c.c): Likewise.
48582         [$(subdir) = elf && $(config-cflags-avx) = yes]
48583         (CFLAGS-tst-auditmod7b.c): Likewise.
48584         * elf/tst-audit3.c: Move to ...
48585         * sysdeps/x86_64/tst-audit3.c: ... here.
48586         * elf/tst-audit4.c: Move to ...
48587         * sysdeps/x86_64/tst-audit4.c: ... here.
48588         * elf/tst-audit5.c: Move to ...
48589         * sysdeps/x86_64/tst-audit5.c: ... here.
48590         * elf/tst-audit6.c: Move to ...
48591         * sysdeps/x86_64/tst-audit6.c: ... here.
48592         * elf/tst-audit7.c: Move to ...
48593         * sysdeps/x86_64/tst-audit7.c: ... here.
48594         * elf/tst-auditmod3a.c: Move to ...
48595         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48596         * elf/tst-auditmod3b.c: Move to ...
48597         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48598         * elf/tst-auditmod4a.c: Move to ...
48599         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48600         * elf/tst-auditmod4b.c: Move to ...
48601         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48602         * elf/tst-auditmod5a.c: Move to ...
48603         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48604         * elf/tst-auditmod5b.c: Move to ...
48605         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48606         * elf/tst-auditmod6a.c: Move to ...
48607         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48608         * elf/tst-auditmod6b.c: Move to ...
48609         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48610         * elf/tst-auditmod6c.c: Move to ...
48611         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48612         * elf/tst-auditmod7a.c: Move to ...
48613         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48614         * elf/tst-auditmod7b.c: Move to ...
48615         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48616
48617 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48618
48619         [BZ #15366]
48620         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48621         define unconditionally.
48622         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48623         define unconditionally.
48624         (INT8_C, INT16_C, etc.): Likewise.
48625
48626 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48627
48628         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48629         __ehdr_start with hidden visibility.
48630
48631         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48632
48633 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48634
48635         * math/libm-test.inc (cos_test): Use accurate hex constants.
48636         (sincost_test): Likewise.
48637
48638 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48639
48640         * math/libm-test.inc (catan_test): Add more tests.
48641         (catanh_test): Likewise.
48642
48643         * math/s_catanf.c (__catanf): Use suffixed floating-point
48644         constants.
48645         * math/s_catanhf.c (__catanhf): Likewise.
48646         * math/s_catanhl.c (__catanhl): Likewise.
48647         * math/s_catanl.c (__catanl): Likewise.
48648
48649         [BZ #15394]
48650         * math/s_catan.c (__catan): Calculate imaginary part of result
48651         with log1p not log unless computing log of number close to 0.
48652         * math/s_catanf.c (__catanf): Likewise.
48653         * math/s_catanl.c (__catanl): Likewise.
48654         * math/s_catanh.c (__catanh): Calculate real part of result with
48655         log1p not log unless computing log of number close to 0.
48656         * math/s_catanhf.c (__catanhf): Likewise.
48657         * math/s_catanhl.c (__catanhl): Likewise.
48658         * math/libm-test.inc (catan_test): Add more tests.
48659         (catanh_test): Likewise.
48660         * sysdeps/i386/fpu/libm-test-ulps: Update.
48661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48662
48663 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48664
48665         * benchtests/Makefile: Mention files in which fast and slow
48666         paths of math functions are implemented.
48667
48668 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48669
48670         * sysdeps/posix/timespec_get.c: New file.
48671
48672 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48673
48674         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48675         POWER.
48676         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48677         for POWER.
48678         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48679         powerpc/power5/fpu folders.
48680         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48681         * benchtests/Makefile: Add modf testcase.
48682         * benchtests/bench-modf.c: New file: Benchmark test for mo
48683
48684 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48685
48686         [BZ #14888]
48687         * time/Makefile (tests): Add tst-strptime-whitespace.
48688         * time/strptime_l.c (get_number): Use ISSPACE.
48689         (__strptime_internal): Likewise.
48690         * time/tst-strptime-whitespace.c: New test case.
48691
48692 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48693
48694         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48695         member.
48696         (_nss_files_init): Set it here.
48697
48698 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48699
48700         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48701         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48702         unsigned.
48703
48704 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48705
48706         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48707
48708 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48709
48710         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48711         size just once.
48712
48713 2013-04-21  David S. Miller  <davem@davemloft.net>
48714
48715         * po/ru.po: Update Russion translation from translation project.
48716
48717 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48718
48719         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48720         and setfsgid.
48721
48722 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48723
48724         * configure.in: Remove i386 configure warning. Remove i386 case.
48725         * configure: Regenerate.
48726         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48727         Add example to error message.
48728         * sysdeps/i386/configure: Regenerate.
48729
48730 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48731
48732         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48733         slowtan.
48734         * benchtests/cos-inputs: New file.
48735         * benchtests/slowcos-inputs: New file.
48736         * benchtests/slowcos.c: New file.
48737         * benchtests/slowtan-inputs: New file.
48738         * benchtests/slowtan.c: New file.
48739         * benchtests/tan-inputs: New file.
48740
48741 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48742
48743         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48744         considered kosher.
48745
48746 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48747
48748         * benchtests/Makefile: Include cppflags-iterator.mk to add
48749         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48750
48751         * Makefile.in (bench-clean): New target.
48752         * benchtests/Makefile (bench-clean): Likewise.
48753
48754 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48755
48756         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48757
48758 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48759
48760         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48761
48762 2013-04-15  Andreas Schwab  <schwab@suse.de>
48763
48764         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48765         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48766         * nscd/pwdcache.c (cache_addpw): Likewise.
48767         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48768         more than recsize.
48769
48770 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48771
48772         * benchtests/Makefile (bench): Write all output to
48773         bench-out.tmp together.
48774
48775 2013-04-15  Andreas Schwab  <schwab@suse.de>
48776
48777         * nscd/nscd.c (main): Don't fork again after closing files.
48778
48779 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48780
48781         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48782
48783         * benchtests/Rules (bench-deps): Collect dependencies into a
48784         single variable.  Add Makefile to dependencies.
48785         ($(objpfx)bench-%.c): Depend on bench-deps.
48786
48787 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48788             Xavier Roche  <roche+kml2@exalead.com>
48789
48790         [BZ #15361]
48791         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48792         just that it's a file descriptor.
48793         * manual/llio.texi (Synchronizing AIO Operations): Update description
48794         for EBADF error from aio_fsync.
48795
48796 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48797
48798         * Rules (bench): Move target definition...
48799         * benchtests/Makefile: ... here.
48800
48801 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48802
48803         * math/libm-test.inc (cos_test): Fix PI/2 test.
48804         (sincos_test): Likewise.
48805         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48806         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48807
48808 2013-04-11  Andreas Schwab  <schwab@suse.de>
48809
48810         [BZ #13988]
48811         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48812         accept exponent character only when digits were seen.
48813         * stdio-common/Makefile (tests): Add bug26.
48814         * stdio-common/bug26.c: New file.
48815
48816         [BZ #14293]
48817         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48818         non-freeable.
48819
48820 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48821
48822         * Makeconfig (rtld-prefix): Define built linker prefix.
48823         * Rules (run-bench): Use it.
48824         * math/Makefile (run-regen-ulps): Likewise.
48825
48826         * Rules (bench): Remove eval.
48827
48828 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48829             Roland McGrath  <roland@hack.frob.com>
48830             Ondrej Bilka  <neleai@seznam.cz>
48831
48832         [BZ #15346]
48833         * time/getdate.c: Include ctype.h and alloca.h.
48834         (__getdate_r): Trim leading and trailing spaces of input.
48835         * time/tst-getdate.c (tests): Add tests with leading and
48836         trailing spaces.
48837
48838 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48839
48840         [BZ #14280]
48841         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
48842         when computing value.
48843
48844 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48845
48846         * math/README.libm-test (How can I generate "libm-test-ulps"?):
48847         Use testrun.sh to run libm tests.
48848
48849         [BZ #15309]
48850         * elf/dl-open.c (dl_open_worker): memset all of seen array.
48851
48852 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
48853
48854         [BZ #15264]
48855         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
48856
48857 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48858
48859         * Makefile.in (regen-ulps): New target.
48860         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
48861         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
48862         [ifneq (no,$(PERL)] (regen-ulps): New target.
48863         [ifeq (no,$(PERL)] (regen-ulps): New target.
48864         * math/libm-test.inc (ulps_file_name): Define.
48865         (output_dir): New variable.
48866         (options): Add "output-dir" option.
48867         (parse_opt): Handle 'o' case.
48868         (main): If output_dir is non-NULL use it as a prefix
48869         otherwise use "".
48870         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
48871
48872 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48873
48874         [BZ #10060, #10062]
48875         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
48876         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
48877         fail configure if __sync_val_compare_and_swap is not inlined.
48878         * sysdeps/i386/configure: Regenerate.
48879         * configure.in: Build for i686 when configured for i386.
48880         * configure: Regenerate.
48881         * README: Remove i386 reference.
48882
48883 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48884
48885         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
48886         * sysdeps/s390/s390-64/sysdep.h: Likewise.
48887
48888 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
48889
48890         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
48891         (lmsnanval): New variables.
48892         (F): Add conversion tests.
48893         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
48894         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
48895
48896         * stdio-common/tstdiomisc.c (F): Properly collect individual
48897         tests' results.
48898
48899         [BZ #14686, #15336]
48900         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
48901         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
48902         Instead, use input NaN values or generate a qNaN by arithmetic
48903         operation.  Also fix bugs to comply with the standard.
48904         * math/libm-test.inc (remainder_test): Add more tests.
48905
48906         [BZ #15335, #15342]
48907         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
48908         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
48909         input NaN values or generate a qNaN by arithmetic operation.
48910
48911         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
48912         unreachable code.
48913
48914         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
48915         definitions.
48916
48917 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
48918
48919         [BZ #14478]
48920         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
48921         underflowed result.
48922         * math/s_cexpf.c (__cexpf): Likewise.
48923         * math/s_cexpl.c (__cexpl): Likewise.
48924         * math/libm-test.inc (cexp_test): Add more tests.
48925
48926 2013-04-03  Andreas Schwab  <schwab@suse.de>
48927
48928         [BZ #15330]
48929         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
48930         order arrays from heap if bigger than alloca cutoff.
48931
48932 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
48933
48934         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
48935         (SNAN_TESTS_double): Refer to GCC PR56831.
48936         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
48937         GCC PR56828.
48938
48939 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
48940
48941         * Rules (bench): Move bench.out after the run is complete.
48942
48943         * Rules (bench): Echo currently running benchmark.
48944
48945         * benchtests/Makefile (bench): Add atan and slowatan.
48946         * benchtests/atan-inputs: New file.
48947         * benchtests/slowatan-inputs: New file.
48948         * benchtests/slowatan.c: New file.
48949
48950         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
48951         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
48952         its value.
48953
48954         [BZ #15305]
48955         * sysdeps/unix/sysv/linux/kernel-features.h
48956         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
48957         __ASSUME_XFS_RESTRICTED_CHOWN.
48958         * sysdeps/unix/sysv/linux/pathconf.c
48959         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
48960         Save and restore errno.
48961
48962 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
48963
48964         [BZ #15327]
48965         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
48966         arguments using __kernel_casinh.
48967         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
48968         arguments using __kernel_casinhf.
48969         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
48970         arguments using __kernel_casinhl.
48971         * math/libm-test.inc (cacosh_test): Add more tests.
48972         * sysdeps/i386/fpu/libm-test-ulps: Update.
48973         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48974
48975 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
48976
48977         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
48978         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
48979
48980         * bench/Makefile (bench): Add sin and slowsin.
48981         * benchtests/sin-inputs: New file.
48982         * benchtests/slowsin-inputs: New file.
48983         * benchtests/slowsin.c: New file.
48984
48985         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
48986         (bench): Add slowexp and slowpow.
48987         (exp-ITER): Increase iterations.
48988         (pow-ITER): Likewise.
48989         * benchtests/exp-inputs: Change input.
48990         * benchtests/pow-inputs: Likewise.
48991         * benchtests/slowexp-inputs: New file.
48992         * benchtests/slowexp.c: New file.
48993         * benchtests/slowpow-inputs: New file.
48994         * benchtests/slowpow.c: New file.
48995
48996 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48997
48998         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
48999         instructions.
49000         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49001         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49002         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49003         * benchtests/Makefile: Add rint benchtest.
49004         * benchtests/rint-inputs: Input for rint benchtest.
49005
49006 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49007
49008         * Versions.def (libm): Add GLIBC_2.18.
49009         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49010         hidden libm prototypes.
49011         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49012         * math/Makefile (libm-calls): Add s_issignaling.
49013         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49014         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49015         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49016         declaration.
49017         * math/math.h [__USE_GNU] (issignaling): New macro.
49018         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49019         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49020         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49021         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49022         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49023         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49024         * manual/arith.texi (issignaling): New section.
49025         * manual/libm-err-tab.pl (@all_functions): Update comment.
49026         * math/gen-libm-test.pl (parse_args): Apply special handling for
49027         issignaling.
49028         * math/libm-test.inc (print_float, issignaling_test): New
49029         functions.
49030         (check_float_internal): Add issignaling checks.
49031         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49032         default definition.
49033         * sysdeps/powerpc/math-tests.h: New file.
49034         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49035         tests.
49036         * math/test-snan.c (TEST_FUNC): Likewise.
49037
49038 2013-03-30  David S. Miller  <davem@davemloft.net>
49039
49040         * po/de.po: Update from translation team.
49041
49042 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49043
49044         [BZ #10357]
49045         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49046         imaginary part less than 1.0 and real part less than 0.5
49047         specially.
49048         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49049         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49050         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49051         (cacos_test): Add more tests.
49052         (casin_test): Likewise.
49053         (casinh_test): Likewise.
49054         * sysdeps/i386/fpu/libm-test-ulps: Update.
49055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49056
49057 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49058
49059         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49060         ONE with its value.
49061
49062         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49063         (__pow_mp): Replace ONE and MONE with their values.
49064         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49065         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49066         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49067         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49068         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49069         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49070
49071         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49072
49073         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49074         (__pow_mp): Replace ZERO and MZERO with their values.
49075         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49076         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49077         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49078         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49079         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49080         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49081         (__sqr): Likewise.
49082
49083         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49084
49085         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49086
49087 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49088
49089         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49090         Declare with __attribute__ ((weak)).
49091         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49092         Call __call_tls_dtors only if it's not NULL.
49093
49094 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49095
49096         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49097         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49098         magic __ehdr_start linker symbol if it's defined.
49099         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49100         them up here if it was already done.
49101
49102         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49103         (_dl_aux_init): Use const in cast when setting it.
49104         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49105         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49106         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49107
49108         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49109         Declare them here.
49110         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49111         * csu/libc-tls.c: Nor here.
49112         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49113
49114         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49115         (__libc_message): Never call vsyslog.
49116
49117 2013-03-28  Alan Modra  <amodra@gmail.com>
49118
49119         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49120         Define as empty.
49121         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49122         Likewise.
49123
49124 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49125
49126         [BZ #15214]
49127         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49128         underflow.
49129         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49130
49131 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49132
49133         [BZ #15304]
49134         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49135         Don't add gid passed as argument.
49136
49137         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49138
49139 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49140
49141         [BZ #15307]
49142         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49143         imaginary part between 1.0 and 1.5 and real part less than 0.5
49144         specially.
49145         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49146         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49147         * math/libm-test.inc (cacos_test): Add more tests.
49148         (casin_test): Likewise.
49149         (casinh_test): Likewise.
49150         * sysdeps/i386/fpu/libm-test-ulps: Update.
49151         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49152
49153 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49154
49155         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49156         constants.
49157         (norm): Likewise.
49158         (denorm): Likewise.
49159         (__dbl_mp): Likewise.
49160         (add_magnitudes): Likewise.
49161         (sub_magnitudes): Likewise.
49162         (__add): Likewise.
49163         (__sub): Likewise.
49164         (__mul): Likewise.
49165         (__sqr): Likewise.
49166         (__inv): Likewise.
49167         (__dvd): Likewise.
49168
49169         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49170         commented code.
49171         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49172         (__dubcos): Likewise.
49173         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49174         (__ieee754_acos): Likewise.
49175         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49176         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49177         (__exp1): Likewise.
49178         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49179         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49180         (log1): Likewise.
49181         (my_log2): Likewise.
49182         (checkint): Likewise.
49183         * sysdeps/ieee754/dbl-64/e_remainder.c
49184         (__ieee754_remainder): Likewise.
49185         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49186         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49187         (bsloww): Likewise.
49188         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49189
49190         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49191         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49192         MANTISSA_STORE_T to store computations on mantissa.  Use
49193         macros for rounding and division.
49194         (denorm): Likewise.
49195         (__dbl_mp): Likewise.
49196         (add_magnitudes): Likewise.
49197         (sub_magnitudes): Likewise.
49198         (__mul): Likewise.
49199         (__sqr): Likewise.
49200         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49201         powers of two in terms of TWOPOW macro.
49202         (mp_no): Make type of mantissa as MANTISSA_T.
49203         [!RADIXI]: Define RADIXI.
49204         [!TWO52]: Define TWO52.
49205         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49206
49207 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49208
49209         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49210         llroundl symbol when building for PPC32.
49211
49212 2013-03-24  Mark H Weaver  <mhw@netris.org>
49213
49214         * manual/arith.texi (Normalization Functions): Fix prototypes for
49215         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49216
49217 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49218
49219         [BZ #13889]
49220         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49221         high value to check if expl overflow.
49222         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49223         to check for underflow and overflow.
49224         * math/libm-test.inc: Add exp test.
49225
49226 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49227
49228         [BZ #11120]
49229         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49230         with NOT_IN_libc.
49231
49232 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49233
49234         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49235         symbol.
49236
49237 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49238
49239         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49240         wrap blocks consisting of several statements.
49241
49242         * sysdeps/generic/math-tests.h: New file.
49243         * sysdeps/i386/fpu/math-tests.h: Likewise.
49244         * math/test-snan.c: Include it.
49245         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49246
49247 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49248
49249         [BZ #15285]
49250         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49251         (__ieee754_j0l): Do not improve calculations using cos of twice
49252         input for inputs above LDBL_MAX / 2.0L.
49253         (__ieee754_y0l): Likewise.
49254         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49255         (__ieee754_j1l): Do not improve calculations using cos of twice
49256         input for inputs above LDBL_MAX / 2.0L.
49257         (__ieee754_y1l): Likewise.
49258         * math/libm-test.inc (j0_test): Add another test.
49259         (j1_test): Likewise.
49260         (y0_test): Likewise.
49261         (y1_test): Likewise.
49262         * sysdeps/i386/fpu/libm-test-ulps: Update.
49263
49264 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49265
49266         * Rules ($(objpfx)bench-%.c): Include code from a C source
49267         file.
49268
49269 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49270
49271         [BZ #15287]
49272         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49273         imaginary part 1.0 and real part less than 0.5 specially.
49274         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49275         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49276         * math/libm-test.inc (cacos_test): Add more tests.
49277         (casin_test): Likewise.
49278         (casinh_test): Likewise.
49279         * sysdeps/i386/fpu/libm-test-ulps: Update.
49280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49281
49282 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49283
49284         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49285         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49286
49287 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49288
49289         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49290         * config.make.in (config-cflags-sse4): Remove variable.
49291         (config-cflags-avx): Likewise.
49292         (config-cflags-sse2avx): Likewise.
49293         (config-cflags-novzeroupper): Likewise.
49294         (config-asflags-i686): Likewise.
49295         (have-mfma4): Likewise.
49296         (have-as-vis3): Likewise.
49297         (MIG): Likewise.
49298         * configure.in (MIG): Do not AC_SUBST.
49299         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49300         (libc_cv_cc_sse4): Do not AC_SUBST.
49301         (libc_cv_cc_avx): Likewise.
49302         (libc_cv_cc_sse2avx): Likewise.
49303         (libc_cv_cc_novzeroupper): Likewise.
49304         (libc_cv_cc_fma4): Likewise.
49305         (libc_cv_as_i686): Likewise.
49306         (libc_cv_sparc_as_vis3): Likewise.
49307         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49308         LIBC_CONFIG_VAR.
49309         (config-asflags-i686): Likewise.
49310         (config-cflags-avx): Likewise.
49311         (config-cflags-sse2avx): Likewise.
49312         (have-mfma4): Likewise.
49313         (config-cflags-novzeroupper): Likewise.
49314         * sysdeps/mach/configure.in (MIG): Likewise.
49315         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49316         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49317         LIBC_CONFIG_VAR.
49318         (config-cflags-avx): Likewise.
49319         (config-cflags-sse2avx): Likewise.
49320         (have-mfma4): Likewise.
49321         (config-cflags-novzeroupper): Likewise.
49322         * configure: Regenerated.
49323         * sysdeps/i386/configure: Likewise.
49324         * sysdeps/mach/configure: Likewise.
49325         * sysdeps/sparc/configure: Likewise.
49326         * sysdeps/x86_64/configure: Likewise.
49327
49328 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49329
49330         [BZ #14812]
49331         * locale/programs/localedef.c (options): Put N_ translation marker
49332         on argument names, not just descriptions.
49333
49334 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49335
49336         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49337
49338 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49339
49340         [BZ #14176]
49341         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49342
49343 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49344
49345         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49346         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49347         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49348         [!BEFORE_ABORT] (before_abort): New function.
49349         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49350         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49351         (writev_for_fatal): New function.
49352         (WRITEV_FOR_FATAL): New macro; call that.
49353         (backtrace_and_maps): New function.
49354         (BEFORE_ABORT): New macro; call that.
49355         (struct str_list): Type removed.
49356         (__libc_message, __libc_fatal): Functions removed.
49357         Include <sysdeps/posix/libc_fatal.c> instead.
49358
49359 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49360
49361         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49362         constants.
49363         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49364         double constants.
49365
49366 2013-03-19  Andreas Schwab  <schwab@suse.de>
49367
49368         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49369         * sysdeps/gnu/configure: Regenerate.
49370
49371         * configure.in: Substitute libc_cv_rtlddir.
49372         * configure: Regenerate.
49373         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49374         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49375         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49376         * elf/Makefile (install-others, CFLAGS-interp.c)
49377         (ldso_install, common-ldd-rewrite): Likewise.
49378         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49379         $(inst_slibdir)/$(rtld-installed-name).
49380         * scripts/rellns-sh: Add -p option.
49381         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49382         for source.
49383
49384 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49385
49386         * manual/nptl.texi: Renamed to ...
49387         * manual/threads.texi: ... this.
49388         * manual/Makefile (chapters): Update.
49389
49390 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49391
49392         [BZ #14812]
49393         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49394         on argument names, not just descriptions.
49395         * malloc/memusagestat.c (options): Likewise.
49396         * nss/getent.c (options): Likewise.
49397
49398 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49399
49400         [BZ #14812]
49401         * iconv/iconv_prog.c (options): Put N_ translation marker
49402         on argument names, not just descriptions.
49403         * iconv/iconvconfig.c (options): Likewise.
49404
49405 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49406
49407         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49408         implementation which is faster on all x86_64 architectures.
49409         Tested on AMD, Intel Nehalem, SNB, IVB.
49410         * sysdeps/x86_64/strnlen.S: Likewise.
49411
49412         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49413         Remove all multiarch strlen and strnlen versions.
49414         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49415         Remove strlen and strnlen related parts.
49416
49417         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49418         Inline strlen part.
49419         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49420
49421         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49422         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49423         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49424         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49425         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49426         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49427
49428 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49429
49430         * manual/memory.texi (Malloc Tunable Parameters):
49431         Sort parameters alphabetically. Add comments for missing entries.
49432
49433 2013-03-17  David S. Miller  <davem@davemloft.net>
49434
49435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49436
49437 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49438
49439         [BZ #15283]
49440         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49441         for arguments at most half maximum finite value.
49442         * math/libm-test.inc (j0_test): Add more tests.
49443         (j1_test): Likewise.
49444         (y0_test): Likewise.
49445         (y1_test): Likewise.
49446         * sysdeps/i386/fpu/libm-test-ulps: Update.
49447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49448
49449         [BZ #14155]
49450         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49451         1 / x and functions P and Q for arguments above 0x1p256L.
49452         (__ieee754_y0l): Likewise.
49453         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49454         (__ieee754_y1l): Likewise.
49455         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49456         (j1_test): Likewise.
49457         (y0_test): Likewise.
49458         (y1_test): Likewise.
49459
49460 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49461
49462         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49463         variable.
49464
49465 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49466
49467         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49468         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49469         zero since it's initialized to EXEC_PAGESIZE.
49470
49471         * sysdeps/unix/sysv/linux/ldsodefs.h
49472         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49473         * sysdeps/generic/ldsodefs.h: ... here.
49474
49475 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49476
49477         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49478
49479         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49480         math/test-snan.c.
49481         * math/test-snan.c: Renamed from
49482         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49483         * math/Makefile (tests): Add test-snan.
49484         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49485         test-powerpc-snan.
49486
49487         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49488         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49489         functions.
49490         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49491         __builtin_nan family of functions.
49492         * math/libm-test.inc (initialize): Initialize qnan_value with
49493         __builtin_nan family of functions.
49494         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49495         Remove variables.
49496         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49497         Remove functions.
49498         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49499         storage class.  Initialize qNaN_var and sNaN_var with
49500         __builtin_nan and __builtin_nans families of functions,
49501         respectively.
49502
49503         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49504         (sqrt_test): Remove duplicate test with qNaN input.
49505         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49506         (round_test, signbit_test, significand_test): Note missing +/-Inf
49507         as well as qNaN tests.
49508
49509         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49510         qNaN_var.  Fix a few strings, too.
49511         * math/libm-test.inc (nan_value): Rename to qnan_value.
49512         * math/gen-libm-test.pl (%beautify): Adjust to that.
49513         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49514         * math/test-misc.c (main): Likewise.
49515         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49516         to __qnan_bytes, and __qnan_union, respectively.
49517         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49518         Likewise.
49519         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49520         and lqnanval, respectively.
49521         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49522         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49523         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49524         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49525
49526         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49527         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49528         doubles.
49529
49530         * math/test-misc.c (main): Fix copy'n'pastos.
49531         * misc/tst-efgcvt.c (special): Likewise.
49532
49533         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49534         Remove declarations.
49535
49536 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49537
49538         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49539         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49540         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49541         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49542
49543 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49544
49545         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49546         macro to return vdso values correctly in IFUNC implementations.
49547         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49548         Optimization by using IFUNC.
49549
49550 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49551             Richard Henderson  <rth@redhat.com>
49552             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49553
49554         * Makefile.in (bench): New target.
49555         * NEWS: Mention the benchmark framework.
49556         * Rules (bench): Likewise.
49557         (binaries-bench): Generate binaries for functions to
49558         benchmark.
49559         * benchtests/Makefile: New makefile for benchmark tests.
49560         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49561         programs.
49562         * benchtests/exp-inputs: New input file for EXP function.
49563         * benchtests/pow-inputs: New input file for POW function.
49564         * scripts/bench.pl: New script to generate source files for
49565         benchmark programs.
49566
49567 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49568
49569         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49570         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49571         computations on mantissa.  Use macros for rounding and
49572         division.
49573         (denorm): Likewise.
49574         (__dbl_mp): Likewise.
49575         (add_magnitudes): Likewise.
49576         (sub_magnitudes): Likewise.
49577         (__mul): Likewise.
49578         (__sqr): Likewise.
49579         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49580         powers of two in terms of TWOPOW macro.
49581         (mp_no): Make type of mantissa as MANTISSA_T.
49582         [!RADIXI]: Define RADIXI.
49583         [!TWO52]: Define TWO52.
49584         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49585
49586         * manual/nptl.texi (cindex): Modify threads to pthreads.
49587
49588 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49589
49590         * sysdeps/x86_64/preconfigure: Regenerated.
49591
49592 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49593
49594         [BZ #14155]
49595         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49596         0x1p28 and above.
49597         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49598         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49599         0x1p28 and above.
49600         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49601         * math/libm-test.inc (j0_test): Do not allow one spurious
49602         underflow exception.
49603         (y1_test): Likewise.
49604
49605 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49606
49607         * manual/Makefile (chapters): Add nptl.
49608         * manual/debug.texi (Debugging Support): Add link to Threads
49609         chapter.
49610         * manual/nptl.texi: New file.
49611
49612         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49613
49614 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49615
49616         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49617         for non-NULL pointer before the memory validity test. Pointed
49618         out by Holger Brunck <holger.brunck@keymile.com>.
49619
49620 2013-03-13  Andreas Schwab  <schwab@suse.de>
49621
49622         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49623         instead of .os.
49624
49625 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49626
49627         * timezone/zic.c: Update from tzcode 2013b.
49628
49629 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49630
49631         * manual/install.texi (Configuring and compiling):
49632         Mention i686 and i586.
49633         * INSTALL: Regenerate.
49634
49635 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49636
49637         * sysdeps/init_array/elf-init.c: New file.
49638         * csu/elf-init.c
49639         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49640         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49641
49642         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49643         __gmon_start__ as global, but as static with a .preinit_array pointer.
49644         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49645         * sysdeps/init_array/crti.S: New file, empty except for comments.
49646         * sysdeps/init_array/crtn.S: Likewise.
49647
49648 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49649
49650         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49651         definining bcopy.
49652         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49653         Remove Prefer_SSE_for_memop.
49654         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49655         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49656         HAS_PREFER_SSE_FOR_MEMOP.
49657         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49658         memset-x86-64.
49659         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49660         Remove bzero, memset ifunc support.
49661         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49662         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49663         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49664         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49665
49666 2013-03-11  Andreas Schwab  <schwab@suse.de>
49667
49668         [BZ #15234]
49669         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49670         by SHLIB_COMPAT.
49671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49672         (GLIBC_2.16): Remove pthread_atfork.
49673
49674 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49675
49676         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49677         (ptestcases.h): Likewise.
49678
49679 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49680
49681         * Makeconfig ($(common-objpfx)config.status): Depend on
49682         sysdeps/*/preconfigure{,.in} too.
49683
49684 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49685
49686         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49687         (__free_hook): Use void * instead of __malloc_ptr_t.
49688         (__malloc_hook): Likewise.
49689         (__realloc_hook): Likewise.
49690         (__memalign_hook): Likewise.
49691         (__after_morecore_hook): Likewise.
49692         * malloc/arena.c (save_malloc_hook): Likewise.
49693         (save_free_hook): Likewise.
49694         * malloc/hooks.c (malloc_hook_ini): Likewise.
49695         (realloc_hook_ini): Likewise.
49696         (memalign_hook_ini): Likewise.
49697         * malloc/malloc.c (malloc_hook_ini): Likewise.
49698         (realloc_hook_ini): Likewise.
49699         (memalign_hook_ini): Likewise.
49700         (__free_hook): Likewise.
49701         (__malloc_hook): Likewise.
49702         (__realloc_hook): Likewise.
49703         (__memalign_hook): Likewise.
49704         (__libc_malloc): Likewise.
49705         (__libc_free): Likewise.
49706         (__libc_realloc): Likewise.
49707         (__libc_memalign): Likewise.
49708         (__libc_valloc): Likewise.
49709         (__libc_pvalloc): Likewise.
49710         (__libc_calloc): Likewise.
49711         (__posix_memalign): Likewise.
49712         * malloc/morecore.c (__sbrk): Likewise.
49713         (__default_morecore): Likewise.
49714
49715         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49716
49717         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49718         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49719         __malloc_ptrdiff_t.
49720
49721         * malloc/malloc.h (__malloc_size_t): Remove macro.
49722         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49723         __malloc_size_t.
49724         (old_memalign_hook): Likewise.
49725         (old_realloc_hook): Likewise.
49726         (struct hdr): Likewise.
49727         (flood): Likewise.
49728         (mallochook): Likewise.
49729         (memalignhook): Likewise.
49730         (reallochook): Likewise.
49731         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49732         (tr_old_realloc_hook): Likewise.
49733         (tr_old_memalign_hook): Likewise.
49734         (tr_mallochook): Likewise.
49735         (tr_reallochook): Likewise.
49736         (tr_memalignhook): Likewise.
49737
49738 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49739
49740         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49741         default_ldbl_pack and using as default implementation.
49742         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49743         implementation.
49744         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49745         redundant definition.
49746         (ldbl_insert_mantissa): Likewise.
49747         (ldbl_canonicalize): Likewise.
49748         (ldbl_nearbyint): Likewise.
49749         (ldbl_pack): Rename to ldbl_pack_ppc.
49750         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49751         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49752         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49753
49754 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49755
49756         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49757         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49758         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49759         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49760         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49761         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49762         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49763         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49764
49765 2013-03-07  Andreas Jaeger  <aj@suse.de>
49766
49767         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49768         bits/mman-linux.h.
49769
49770 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49771
49772         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49773         Include mpa.h and declare __MPEXP.
49774         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49775         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49776         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49777         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49778         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49779         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49780         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49781
49782         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49783         (__slowpow): Use long double EXPL and LOGL functions to
49784         compute POW.
49785         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49786         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49787         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49788         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49789         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49790         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49791
49792         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49793         intermediate variable to calculate exponent.
49794         (__sqr): Likewise.
49795         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49796         Likewise.
49797         (__sqr): Likewise.
49798
49799         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49800         [!NO__SQR]: Define __sqr.
49801         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49802         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49803         sysdeps/ieee754/dbl-64/mpa.c.
49804         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49805
49806         [BZ #12723]
49807         * posix/Makefile (tests): Add tst-pathconf.
49808         * posix/tst-pathconf.c: New test case.
49809         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49810         _PC_PIPE_BUF.
49811         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49812
49813 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49814
49815         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49816
49817 2013-03-06  Andreas Jaeger  <aj@suse.de>
49818
49819         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49820         definition via __MAP_ANONYMOUS.
49821
49822         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49823         it's not part of Linux headers.
49824
49825         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49826         (MAP_HUGE_MASK): Define.
49827
49828         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49829         Define.
49830         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49831         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49832         Define.
49833         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49834         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49835         Define.
49836         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49837         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49838         Define.
49839         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49840
49841         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
49842         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
49843         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
49844         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
49845         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
49846         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
49847
49848         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
49849         Handle f2fs.
49850
49851         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49852         Handle f2fs and efivarfs.
49853
49854         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
49855         f2fs.
49856
49857         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
49858         (EFIVARFS_MAGIC): Add.
49859         (F2FS_LINK_MAX): Add.
49860
49861 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
49862
49863         * stdio-common/vfprintf.c: Replace __builtin_expect with
49864         __glibc_unlikely.
49865
49866 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
49867
49868         [BZ #13550]
49869         * sysdeps/generic/bp-sym.h: Remove file.
49870         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
49871         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
49872         <bp-sym.h> and <bp-asm.h>.
49873         (__longjmp): Don't use BP_SYM.
49874         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
49875         and <bp-asm.h>.
49876         (memcpy): Don't use BP_SYM.
49877         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
49878         <bp-sym.h> and <bp-asm.h>.
49879         (memcpy): Don't use BP_SYM.
49880         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
49881         <bp-asm.h>.
49882         (memcpy): Don't use BP_SYM.
49883         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
49884         <bp-asm.h>.
49885         (memset): Don't use BP_SYM.
49886         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49887         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49888         (__bzero): Don't use BP_SYM.
49889         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49890         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49891         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
49892         <bp-sym.h> and <bp-asm.h>.
49893         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49894         pointers.
49895         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
49896         <bp-sym.h> and <bp-asm.h>.
49897         (memcpy): Don't use BP_SYM.
49898         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
49899         <bp-sym.h> and <bp-asm.h>.
49900         (memset): Don't use BP_SYM.
49901         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49902         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49903         (__bzero): Don't use BP_SYM.
49904         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49905         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49906         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
49907         <bp-sym.h> and <bp-asm.h>.
49908         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49909         pointers.
49910         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
49911         <bp-sym.h> and <bp-asm.h>.
49912         (memcpy): Don't use BP_SYM.
49913         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
49914         <bp-sym.h> and <bp-asm.h>.
49915         (memset): Don't use BP_SYM.
49916         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49917         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49918         (__bzero): Don't use BP_SYM.
49919         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49920         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49921         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
49922         <bp-sym.h> and <bp-asm.h>.
49923         (__memchr): Don't use BP_SYM.
49924         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
49925         <bp-sym.h> and <bp-asm.h>.
49926         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49927         pointers.
49928         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
49929         <bp-sym.h> and <bp-asm.h>.
49930         (memcpy): Don't use BP_SYM.
49931         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
49932         <bp-sym.h> and <bp-asm.h>.
49933         (__mempcpy): Don't use BP_SYM.
49934         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
49935         <bp-sym.h> and <bp-asm.h>.
49936         (__memrchr): Don't use BP_SYM.
49937         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
49938         <bp-sym.h> and <bp-asm.h>.
49939         (memset): Don't use BP_SYM.
49940         (__bzero): Likewise.
49941         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
49942         <bp-sym.h> and <bp-asm.h>.
49943         (__rawmemchr): Don't use BP_SYM.
49944         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
49945         <bp-sym.h> and <bp-asm.h>.
49946         (__STRCMP): Don't use BP_SYM.
49947         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
49948         <bp-sym.h> and <bp-asm.h>.
49949         (strchr): Don't use BP_SYM.
49950         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
49951         <bp-sym.h> and <bp-asm.h>.
49952         (__strchrnul): Don't use BP_SYM.
49953         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
49954         <bp-sym.h> and <bp-asm.h>.
49955         (strlen): Don't use BP_SYM.
49956         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
49957         <bp-sym.h> and <bp-asm.h>.
49958         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49959         pointers.
49960         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
49961         <bp-sym.h> and <bp-asm.h>.
49962         (__strnlen): Don't use BP_SYM.
49963         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
49964         <bp-sym.h> and <bp-asm.h>.
49965         (__GI__setjmp): Don't use BP_SYM.
49966         (_setjmp): Likewise.
49967         (__sigsetjmp): Likewise.
49968         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
49969         (L(start_addresses)): Don't use BP_SYM.
49970         (_start): Likewise.
49971         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
49972         <bp-asm.h>.
49973         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
49974         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
49975         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
49976         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
49977         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
49978         <bp-asm.h>.
49979         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
49980         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
49981         about bounded pointers.
49982         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
49983         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
49984         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
49985         <bp-asm.h>.
49986         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
49987         about bounded pointers.  Remove GKM FIXME comments.
49988         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
49989         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
49990         <bp-asm.h>.
49991         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
49992         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
49993         Remove GKM FIXME comments.
49994         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
49995         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
49996         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
49997         <bp-asm.h>.
49998         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
49999         about bounded pointers.  Remove GKM FIXME comment.
50000         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50001         and <bp-asm.h>.
50002         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50003         pointers.
50004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50005         <bp-sym.h> and <bp-asm.h>.
50006         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50008         <bp-sym.h> and <bp-asm.h>.
50009         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50010         comment.
50011
50012 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50013
50014         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50015         call free(NULL).
50016
50017 2013-03-05  David S. Miller  <davem@davemloft.net>
50018
50019         * po/es.po: Update from translation team.
50020
50021 2013-03-05  Andreas Jaeger  <aj@suse.de>
50022
50023         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50024         <bits/mman-linux.h>.
50025         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50026         is fine.
50027         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50028         <bits/mman-linux.h> to end of file.
50029         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50030         is fine.
50031         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50032         <bits/mman-linux.h> to end of file.
50033         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50034         is fine.
50035         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50036         <bits/mman-linux.h> to end of file.
50037
50038         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50039         (MCL_CURRENT, MCL_FUTURE): Define here.
50040
50041 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50042
50043         [BZ #15232]
50044         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50045         attribute_hidden.
50046         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50047
50048 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50049
50050         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50051         fourth parameter needed for rt_sigprocmask syscall.
50052         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50053         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50054         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50055         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50056         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50057         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50058
50059 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50060
50061         [BZ #13550]
50062         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50063         comment about bounded pointers.
50064         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50065         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50066
50067 2013-03-04  Andreas Jaeger  <aj@suse.de>
50068
50069         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50070         common definitions.
50071
50072         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50073         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50074         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50075         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50076         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50077         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50078
50079 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50080
50081         [BZ #15055]
50082         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50083         __ieee754_sqrl instead of __sqrl.
50084
50085 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50086
50087         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50088         * sysdeps/powerpc/fpu_control.h: ... here.
50089         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50090         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50091         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50092         * sysdeps/powerpc/bits/mathinline.h: ... here.
50093
50094 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50095
50096         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50097         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50098         to just [NEED_DL_SYSINFO_DSO].
50099         * elf/dl-support.c: Likewise.
50100         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50101         * elf/rtld.c (dl_main): Likewise.
50102         * elf/setup-vdso.h (setup_vdso): Likewise.
50103         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50104         * sysdeps/unix/sysv/linux/dl-sysdep.c
50105         (_dl_discover_osversion): Likewise.
50106
50107 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50108
50109         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50110         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50111
50112 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50113
50114         * NEWS: Mention libm performance improvements and non-x86 PI
50115         futex support.
50116
50117         * csu/libc-start.c (__pthread_initialize_minimal): Change
50118         function arguments.
50119         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50120
50121 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50122
50123         [BZ #13550]
50124         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50125         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50126         <bp-sym.h> and <bp-asm.h>.
50127         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50128         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50129         and <bp-asm.h>.
50130         (memcpy): Don't use BP_SYM.
50131         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50132         <bp-asm.h>.
50133         (__mpn_add_n): Don't use BP_SYM.
50134         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50135         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50136         and <bp-asm.h>.
50137         (__mpn_addmul_1): Don't use BP_SYM.
50138         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50139         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50140         <bp-sym.h>.
50141         (_setjmp): Don't use BP_SYM.
50142         (__novmx_setjmp): Likewise.
50143         (__GI__setjmp): Likewise.
50144         (__vmx_setjmp): Likewise.
50145         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50146         <bp-sym.h>.
50147         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50148         (__bzero): Don't use BP_SYM.
50149         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50150         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50151         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50152         <bp-sym.h> and <bp-asm.h>.
50153         (memcpy): Don't use BP_SYM.
50154         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50155         <bp-sym.h> and <bp-asm.h>.
50156         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50157         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50158         <bp-sym.h> and <bp-asm.h>.
50159         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50160         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50161         <bp-asm.h>.
50162         (__mpn_lshift): Don't use BP_SYM.
50163         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50164         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50165         <bp-asm.h>.
50166         (memset): Don't use BP_SYM.
50167         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50168         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50169         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50170         <bp-asm.h>.
50171         (__mpn_mul_1): Don't use BP_SYM.
50172         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50173         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50174         <bp-sym.h> and <bp-asm.h>.
50175         (memcmp): Don't use BP_SYM.
50176         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50177         <bp-sym.h> and <bp-asm.h>.
50178         (memcpy): Don't use BP_SYM.
50179         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50180         <bp-sym.h> and <bp-asm.h>.
50181         (memset): Don't use BP_SYM.
50182         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50183         <bp-sym.h> and <bp-asm.h>.
50184         (strncmp): Don't use BP_SYM.
50185         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50186         <bp-sym.h> and <bp-asm.h>.
50187         (memcpy): Don't use BP_SYM.
50188         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50189         <bp-sym.h> and <bp-asm.h>.
50190         (memset): Don't use BP_SYM.
50191         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50192         <bp-sym.h> and <bp-asm.h>.
50193         (__memchr): Don't use BP_SYM.
50194         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50195         <bp-sym.h> and <bp-asm.h>.
50196         (memcmp): Don't use BP_SYM.
50197         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50198         <bp-sym.h> and <bp-asm.h>.
50199         (memcpy): Don't use BP_SYM.
50200         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50201         <bp-sym.h> and <bp-asm.h>.
50202         (__mempcpy): Don't use BP_SYM.
50203         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50204         <bp-sym.h> and <bp-asm.h>.
50205         (__memrchr): Don't use BP_SYM.
50206         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50207         <bp-sym.h> and <bp-asm.h>.
50208         (memset): Don't use BP_SYM.
50209         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50210         <bp-sym.h> and <bp-asm.h>.
50211         (__rawmemchr): Don't use BP_SYM.
50212         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50213         <bp-sym.h> and <bp-asm.h>.
50214         (__STRCMP): Don't use BP_SYM.
50215         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50216         <bp-sym.h> and <bp-asm.h>.
50217         (strchr): Don't use BP_SYM.
50218         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50219         <bp-sym.h> and <bp-asm.h>.
50220         (__strchrnul): Don't use BP_SYM.
50221         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50222         <bp-sym.h> and <bp-asm.h>.
50223         (strlen): Don't use BP_SYM.
50224         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50225         <bp-sym.h> and <bp-asm.h>.
50226         (strncmp): Don't use BP_SYM.
50227         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50228         <bp-sym.h> and <bp-asm.h>.
50229         (__strnlen): Don't use BP_SYM.
50230         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50231         <bp-asm.h>.
50232         (__mpn_rshift): Don't use BP_SYM.
50233         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50234         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50235         <bp-sym.h> and <bp-asm.h>.
50236         (__sigsetjmp): Don't use BP_SYM.
50237         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50238         (L(start_addresses)): Don't use BP_SYM.
50239         (_start): Likewise.
50240         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50241         <bp-asm.h>.
50242         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50243         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50244         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50245         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50246         <bp-asm.h>.
50247         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50248         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50249         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50250         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50251         <bp-asm.h>.
50252         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50253         comments.
50254         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50255         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50256         <bp-asm.h>.
50257         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50258         FIXME comments.
50259         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50260         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50261         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50262         <bp-asm.h>.
50263         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50264         comment.
50265         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50266         and <bp-asm.h>.
50267         (strncmp): Don't use BP_SYM,
50268         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50269         <bp-asm.h>.
50270         (__mpn_sub_n): Don't use BP_SYM.
50271         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50272         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50273         and <bp-asm.h>.
50274         (__mpn_submul_1): Don't use BP_SYM.
50275         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50277         <bp-sym.h> and <bp-asm.h>.
50278         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50280         <bp-sym.h> and <bp-asm.h>.
50281         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50282         comment.
50283
50284 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50285
50286         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50287         Use ZK to minimize writes to Z.
50288         (sub_magnitudes): Simplify code a bit.
50289         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50290         Use ZK to minimize writes to Z.
50291         (sub_magnitudes): Simplify code a bit.
50292
50293 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50294
50295         * csu/gmon-start.c: Add special exception to license text.
50296
50297 2013-02-27  Richard Henderson  <rth@redhat.com>
50298
50299         * scripts/config.guess: Update from config.git.
50300         * scripts/config.sub: Likewise.
50301
50302 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50303
50304         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50305
50306         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50307
50308         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50309
50310         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50311
50312         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50313
50314 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50315
50316         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50317         [$(build-shared = yes].
50318
50319 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50320
50321         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50322         (__mul): Reduce iterations for calculating mantissa.
50323
50324         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50325         MPTWO.
50326         (__mpranred): Likewise.
50327
50328         [BZ #15160]
50329         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50330         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50331
50332 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50335         Define __attribute__.
50336
50337 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50338
50339         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50340         unused.
50341         * posix/regex_internal.h (__attribute): Remove.
50342         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50343         (re_string_context_at): Likewise.
50344         (bitset_not): Use __attribute__ and mark function as possibly
50345         unused.
50346         (bitset_merge): Likewise.
50347         (bitset_mask): Likewise.
50348         (re_string_char_size_at): Likewise.
50349         (re_string_wchar_at): Likewise.
50350         (re_string_elem_size_at): Likewise.
50351
50352 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50353
50354         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50355         code.
50356         (cc32): Likewise.
50357
50358         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50359         (__acr): Likewise.
50360         (__cpy): Likewise.
50361         (norm): Likewise.
50362         (denorm): Likewise.
50363         (__dbl_mp): Likewise.
50364         (add_magnitudes): Likewise.
50365         (sub_magnitudes): Likewise.
50366         (__mul): Likewise.
50367         (__inv): Likewise.
50368
50369         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50370         style.
50371
50372         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50373         style.
50374
50375         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50376         code.
50377
50378         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50379         up changes with default code.
50380         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50381         Likewise.
50382
50383 2013-02-24  Allan McRae  <allan@archlinux.org>
50384
50385         * manual/socket.texi (The Internet Namespace): Order menu items
50386         to match that in the file.
50387
50388         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50389         node listing of the info page menu.
50390
50391 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50392
50393         [BZ #13550]
50394         * sysdeps/i386/bp-asm.h: Remove file.
50395         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50396         (PARMS): Do not use macros from bp-asm.h.
50397         (S1): Likewise.
50398         (S2): Likewise.
50399         (SIZE): Likewise.
50400         (__mpn_add_n): Do not use BP_SYM
50401         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50402         "bp-asm.h".
50403         (PARMS): Do not use macros from bp-asm.h.
50404         (S1): Likewise.
50405         (SIZE): Likewise.
50406         (__mpn_addmul_1): Do not use BP_SYM
50407         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50408         "bp-asm.h".
50409         (PARMS): Do not use macros from bp-asm.h.
50410         (SIGMSK): Likewise.
50411         (_setjmp): Likewise.  Do not use BP_SYM.
50412         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50413         "bp-asm.h".
50414         (PARMS): Do not use macros from bp-asm.h.
50415         (SIGMSK): Likewise.
50416         (setjmp): Likewise.  Do not use BP_SYM.
50417         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50418         "bp-asm.h".
50419         (PARMS): Do not use macros from bp-asm.h.
50420         (__frexp): Do not use BP_SYM.
50421         (frexp): Likewise.
50422         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50423         "bp-asm.h".
50424         (PARMS): Do not use macros from bp-asm.h.
50425         (__frexpf): Do not use BP_SYM.
50426         (frexpf): Likewise.
50427         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50428         "bp-asm.h".
50429         (PARMS): Do not use macros from bp-asm.h.
50430         (__frexpl): Do not use BP_SYM.
50431         (frexpl): Likewise.
50432         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50433         "bp-asm.h".
50434         (PARMS): Do not use macros from bp-asm.h.
50435         (__remquo): Do not use BP_SYM.
50436         (remquo): Likewise.
50437         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50438         "bp-asm.h".
50439         (PARMS): Do not use macros from bp-asm.h.
50440         (__remquof): Do not use BP_SYM.
50441         (remquof): Likewise.
50442         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50443         "bp-asm.h".
50444         (PARMS): Do not use macros from bp-asm.h.
50445         (__remquol): Do not use BP_SYM.
50446         (remquol): Likewise.
50447         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50448         "bp-asm.h".
50449         (PARMS): Do not use macros from bp-asm.h.
50450         (DEST): Likewise.
50451         (SRC): Likewise.
50452         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50453         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50454         "bp-asm.h".
50455         (PARMS): Do not use macros from bp-asm.h.
50456         (strlen): Do not use BP_SYM.
50457         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50458         "bp-asm.h".
50459         (PARMS): Do not use macros from bp-asm.h.
50460         (S1): Likewise.
50461         (S2): Likewise.
50462         (SIZE): Likewise.
50463         (__mpn_add_n): Do not use BP_SYM.
50464         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50465         "bp-asm.h".
50466         (PARMS): Do not use macros from bp-asm.h.
50467         (S1): Likewise.
50468         (SIZE): Likewise.
50469         (__mpn_addmul_1): Do not use BP_SYM.
50470         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50471         weak_alias.
50472         (bzero): Likewise.
50473         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50474         "bp-asm.h".
50475         (PARMS): Do not use macros from bp-asm.h.
50476         (S): Likewise.
50477         (SIZE): Likewise.
50478         (__mpn_lshift): Do not use BP_SYM.
50479         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50480         "bp-asm.h".
50481         (PARMS): Do not use macros from bp-asm.h.
50482         (DEST): Likewise.
50483         (SRC): Likewise.
50484         (LEN): Likewise.
50485         (memcpy): Likewise.  Do not use BP_SYM.
50486         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50487         libc_hidden_def and weak_alias.
50488         (mempcpy): Do not use BP_SYM in weak_alias.
50489         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50490         "bp-asm.h".
50491         (PARMS): Do not use macros from bp-asm.h.
50492         (DEST): Likewise.
50493         (LEN): Likewise.
50494         [!BZERO_P] (CHR): Likewise.
50495         (memset): Likewise.  Do not use BP_SYM.
50496         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50497         "bp-asm.h".
50498         (PARMS): Do not use macros from bp-asm.h.
50499         (S1): Likewise.
50500         (SIZE): Likewise.
50501         (__mpn_mul_1): Do not use BP_SYM.
50502         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50503         "bp-asm.h".
50504         (PARMS): Do not use macros from bp-asm.h.
50505         (S): Likewise.
50506         (SIZE): Likewise.
50507         (__mpn_rshift): Do not use BP_SYM.
50508         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50509         "bp-asm.h".
50510         (PARMS): Do not use macros from bp-asm.h.
50511         (STR): Likewise.
50512         (CHR): Likewise.
50513         (strchr): Likewise.  Do not use BP_SYM.
50514         (index): Do not use BP_SYM in weak_alias.
50515         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50516         "bp-asm.h".
50517         (PARMS): Do not use macros from bp-asm.h.
50518         (DEST): Likewise.
50519         (SRC): Likewise.
50520         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50521         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50522         "bp-asm.h".
50523         (PARMS): Do not use macros from bp-asm.h.
50524         (strlen): Do not use BP_SYM.
50525         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50526         "bp-asm.h".
50527         (PARMS): Do not use macros from bp-asm.h.
50528         (S1): Likewise.
50529         (S2): Likewise.
50530         (SIZE): Likewise.
50531         (__mpn_sub_n): Do not use BP_SYM.
50532         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50533         "bp-asm.h".
50534         (PARMS): Do not use macros from bp-asm.h.
50535         (S1): Likewise.
50536         (SIZE): Likewise.
50537         (__mpn_submul_1): Do not use BP_SYM.
50538         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50539         "bp-asm.h".
50540         (PARMS): Do not use macros from bp-asm.h.
50541         (S1): Likewise.
50542         (S2): Likewise.
50543         (SIZE): Likewise.
50544         (__mpn_add_n): Do not use BP_SYM.
50545         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50546         weak_alias.
50547         (bzero): Likewise.
50548         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50549         "bp-asm.h".
50550         (PARMS): Do not use macros from bp-asm.h.
50551         (BLK2): Likewise.
50552         (LEN): Likewise.
50553         (memcmp): Do not use BP_SYM.
50554         (bcmp): Do not use BP_SYM in weak_alias.
50555         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50556         "bp-asm.h".
50557         (PARMS): Do not use macros from bp-asm.h.
50558         (DEST): Likewise.
50559         (SRC): Likewise.
50560         (LEN): Likewise.
50561         (memcpy): Likewise.  Do not use BP_SYM.
50562         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50563         "bp-asm.h".
50564         (PARMS): Do not use macros from bp-asm.h.
50565         (DEST): Likewise.
50566         (SRC): Likewise.
50567         (LEN): Likewise.
50568         (memmove): Likewise.  Do not use BP_SYM.
50569         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50570         "bp-asm.h".
50571         (PARMS): Do not use macros from bp-asm.h.
50572         (DEST): Likewise.
50573         (SRC): Likewise.
50574         (LEN): Likewise.
50575         (__mempcpy): Likewise.  Do not use BP_SYM.
50576         (mempcpy): Do not use BP_SYM in weak_alias.
50577         * sysdeps/i386/i686/memset.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         (LEN): Likewise.
50582         [!BZERO_P] (CHR): Likewise.
50583         (memset): Likewise.  Do not use BP_SYM.
50584         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50585         "bp-asm.h".
50586         (PARMS): Do not use macros from bp-asm.h.
50587         (STR2): Likewise.
50588         (strcmp): Do not use BP_SYM.
50589         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50590         "bp-asm.h".
50591         (PARMS): Do not use macros from bp-asm.h.
50592         (STR): Likewise.
50593         (DELIM): Likewise.
50594         [USE_AS_STRTOK_R] (SAVE): Likewise.
50595         (FUNCTION): Likewise.  Do not use BP_SYM.
50596         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50597         aliases.
50598         (strtok_r): Likewise.
50599         (__GI___strtok_r): Likewise.
50600         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50601         (PARMS): Do not use macros from bp-asm.h.
50602         (S): Likewise.
50603         (SIZE): Likewise.
50604         (__mpn_lshift): Do not use BP_SYM.
50605         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50606         (PARMS): Do not use macros from bp-asm.h.
50607         (STR): Likewise.
50608         (CHR): Likewise.
50609         (__memchr): Do not use BP_SYM.
50610         (memchr): Do not use BP_SYM in weak_alias.
50611         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50612         (PARMS): Do not use macros from bp-asm.h.
50613         (BLK2): Likewise.
50614         (LEN): Likewise.
50615         (memcmp): Do not use BP_SYM.
50616         (bcmp): Do not use BP_SYM in weak_alias.
50617         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50618         (PARMS): Do not use macros from bp-asm.h.
50619         (S1): Likewise.
50620         (SIZE): Likewise.
50621         (__mpn_mul_1): Do not use BP_SYM.
50622         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50623         "bp-asm.h".
50624         (PARMS): Do not use macros from bp-asm.h.
50625         (STR): Likewise.
50626         (CHR): Likewise.
50627         (__rawmemchr): Do not use BP_SYM.
50628         (rawmemchr): Do not use BP_SYM in weak_alias.
50629         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50630         (PARMS): Do not use macros from bp-asm.h.
50631         (S): Likewise.
50632         (SIZE): Likewise.
50633         (__mpn_rshift): Do not use BP_SYM.
50634         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50635         (PARMS): Do not use macros from bp-asm.h.
50636         (SIGMSK): Likewise.
50637         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50638         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50639         (_start): Do not use BP_SYM.
50640         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50641         (PARMS): Do not use macros from bp-asm.h.
50642         (DEST): Likewise.
50643         (SRC): Likewise.
50644         (__stpcpy): Likewise.  Do not use BP_SYM.
50645         (stpcpy): Do not use BP_SYM in weak_alias.
50646         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50647         "bp-asm.h".
50648         (PARMS): Do not use macros from bp-asm.h.
50649         (DEST): Likewise.
50650         (SRC): Likewise.
50651         (LEN): Likewise.
50652         (__stpncpy): Likewise.  Do not use BP_SYM.
50653         (stpncpy): Do not use BP_SYM in weak_alias.
50654         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50655         (PARMS): Do not use macros from bp-asm.h.
50656         (STR): Likewise.
50657         (CHR): Likewise.
50658         (strchr): Likewise.  Do not use BP_SYM.
50659         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50660         "bp-asm.h".
50661         (PARMS): Do not use macros from bp-asm.h.
50662         (STR): Likewise.
50663         (CHR): Likewise.
50664         (__strchrnul): Likewise.  Do not use BP_SYM.
50665         (strchrnul): Do not use BP_SYM in weak_alias.
50666         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50667         "bp-asm.h".
50668         (PARMS): Do not use macros from bp-asm.h.
50669         (STOP): Likewise.
50670         (strcspn): Do not use BP_SYM.
50671         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50672         "bp-asm.h".
50673         (PARMS): Do not use macros from bp-asm.h.
50674         (STR): Likewise.
50675         (STOP): Likewise.
50676         (strpbrk): Likewise.  Do not use BP_SYM.
50677         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50678         "bp-asm.h".
50679         (PARMS): Do not use macros from bp-asm.h.
50680         (STR): Likewise.
50681         (CHR): Likewise.
50682         (strrchr): Likewise.  Do not use BP_SYM.
50683         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50684         (PARMS): Do not use macros from bp-asm.h.
50685         (SKIP): Likewise.
50686         (strspn): Do not use BP_SYM.
50687         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50688         (PARMS): Do not use macros from bp-asm.h.
50689         (STR): Likewise.
50690         (DELIM): Likewise.
50691         (SAVE): Likewise.
50692         (FUNCTION): Likewise.  Do not use BP_SYM.
50693         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50694         aliases.
50695         (strtok_r): Likewise.
50696         (__GI___strtok_r): Likewise.
50697         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50698         (PARMS): Do not use macros from bp-asm.h.
50699         (S1): Likewise.
50700         (S2): Likewise.
50701         (SIZE): Likewise.
50702         (__mpn_sub_n): Do not use BP_SYM.
50703         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50704         "bp-asm.h".
50705         (PARMS): Do not use macros from bp-asm.h.
50706         (S1): Likewise.
50707         (SIZE): Likewise.
50708         (__mpn_submul_1): Do not use BP_SYM.
50709         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50710         <bp-sym.h>.
50711         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50712         and <bp-asm.h>.
50713         (PARMS): Do not use macros from bp-asm.h.
50714         (FLAGS): Likewise.
50715         (PTID): Likewise.
50716         (TLS): Likewise.
50717         (CTID): Likewise.
50718         (__clone): Do not use BP_SYM.
50719         (clone): Do not use BP_SYM in weak_alias.
50720         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50721         and <bp-asm.h>.
50722         (PARMS): Do not use macros from bp-asm.h.
50723         (LEN): Likewise.
50724         (__mmap64): Do not use BP_SYM.
50725         (mmap64): Do not use BP_SYM in weak_alias.
50726         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50727         <bp-sym.h> and <bp-asm.h>.
50728         (PARMS): Do not use macros from bp-asm.h.
50729         (__posix_fadvise64_l64): Do not use BP_SYM.
50730         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50731         (PARMS): Do not use macros from bp-asm.h.
50732         (NSOPS): Likewise.
50733         (semtimedop): Do not use BP_SYM.
50734         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50735         and <bp-asm.h>.
50736
50737 2013-02-21  Allan McRae  <allan@archlinux.org>
50738
50739         * manual/message.texi (Charset conversion in gettext):
50740         Move @end statement to beginning of line.
50741
50742 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50743
50744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50745         static.
50746         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50747         Likewise.
50748
50749         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50750         (denorm): Likewise.
50751         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50752         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50753
50754 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50755
50756         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50757         tail-call to the resolved function if pltexit isn't needed.
50758
50759 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50760
50761         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50762         or Y being zero as being unlikely.
50763         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50764         Likewise.
50765
50766 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50767
50768         * manual/nss.texi (System Databases and Name Service Switch):
50769         Remove frobnicate @pxref.
50770
50771 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50772
50773         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50774         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50775
50776 2013-02-20  Petr Machata  <pmachata@redhat.com>
50777
50778         * elf/elf.h (R_ARM_TARGET1): New macro.
50779         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50780         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50781         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50782         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50783         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50784         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50785         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50786         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50787         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50788         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50789         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50790         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50791         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50792         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50793         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50794         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50795         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50796         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50797         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50798         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50799         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50800         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50801         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50802         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50803         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50804         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50805         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50806         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50807         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50808         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50809         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50810         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50811         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50812         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50813         (R_ARM_THM_GOT_BREL12): Likewise.
50814         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50815         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50816         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50817         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50818         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50819         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50820         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50821         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50822         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50823
50824 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50825
50826         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50827         __attribute_used__ to __attribute__ ((unused)).
50828
50829 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50830
50831         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50832         powerpc mpa.c.
50833         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50834         comment formatting.
50835         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50836
50837 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50838
50839         [BZ #13550]
50840         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
50841         Remove macro.
50842         (ENTER): Remove both macro definitions.
50843         (LEAVE): Likewise.
50844         (CHECK_BOUNDS_LOW): Likewise.
50845         (CHECK_BOUNDS_HIGH): Likewise.
50846         (CHECK_BOUNDS_BOTH): Likewise.
50847         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
50848         (RETURN_BOUNDED_POINTER): Likewise.
50849         (RETURN_NULL_BOUNDED_POINTER): Likewise.
50850         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
50851         (POP_ERRNO_LOCATION_RETURN): Likewise.
50852         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
50853         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50854         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
50855         macros.
50856         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50857         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
50858         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
50859         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
50860         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
50861         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
50862         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
50863         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
50864         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
50865         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
50866         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
50867         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
50868         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50869         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
50870         removed macros.
50871         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50872         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
50873         macros.
50874         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50875         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
50876         * sysdeps/i386/i586/memset.S (memset): Likewise.
50877         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
50878         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50879         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
50880         macros.
50881         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50882         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
50883         Change uses of L(2) to L(out).
50884         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
50885         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
50886         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
50887         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50888         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
50889         removed macros.
50890         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50891         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
50892         macros.
50893         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50894         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
50895         (RETURN): Do not use macro LEAVE.
50896         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
50897         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
50898         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
50899         * sysdeps/i386/i686/memset.S (memset): Likewise.
50900         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
50901         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
50902         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50903         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
50904         Likewise.
50905         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50906         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
50907         L(1_2) and L(1_3) into L(1).
50908         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50909         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
50910         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50911         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
50912         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50913         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
50914         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
50915         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50916         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
50917         macros.
50918         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
50919         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50920         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
50921         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
50922         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
50923         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50924         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
50925         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
50926         * sysdeps/i386/strcspn.S (strcspn): Likewise.
50927         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
50928         * sysdeps/i386/strrchr.S (strrchr): Likewise.
50929         * sysdeps/i386/strspn.S (strspn): Likewise.
50930         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
50931         conditional code.
50932         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50933         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
50934         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50935         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
50936         L(1_3) into L(1_1).
50937         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
50938         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50939         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
50940         macros.
50941         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50942
50943 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
50944
50945         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
50946         macro.
50947
50948 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50949
50950         * math/atest-exp.c (exp_mpn): Remove ROUND.
50951         * math/atest-exp2.c (exp_mpn): Likewise.
50952         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
50953
50954         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
50955         * stdlib/tst-tls-atexit-lib.c: Likewise.
50956         * stdlib/tst-tls-atexit.c: Likewise.
50957
50958 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50959
50960         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
50961         and __attribute_alloc_size__.
50962
50963 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50964
50965         * include/programs/xmalloc.h: Change __attribute_alloc_size to
50966         __attribute_alloc_size__.
50967         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
50968         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
50969
50970 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
50971
50972         * include/programs/xmalloc.h: New file.
50973         * catgets/gencat.c: Include it.
50974         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
50975         * elf/pldd.c: Likewise.
50976         * iconv/iconv_charmap.c: Likewise.
50977         * iconv/iconvconfig.c: Likewise.
50978         * iconv/strtab.c: Likewise.
50979         * locale/programs/locale.c: Likewise.
50980         * locale/programs/localedef.h: Likewise.
50981         * locale/programs/simple-hash.c: Likewise.
50982         * nscd/nscd.h: Likewise.
50983         * nss/makedb.c: Likewise.
50984         * sysdeps/generic/ldconfig.h: Likewise.
50985
50986 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
50987
50988         * Versions.def: Add GLIBC_2.18.
50989         * include/link.h (struct link_map): New member l_tls_dtor_count.
50990         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
50991         (__call_tls_dtors): Likewise.
50992         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
50993         __cxa_thread_atexit_impl.
50994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
50995         Likewise.
50996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
50997         Likewise.
50998         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
50999         Likewise.
51000         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51001         Likewise.
51002         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51004         Likewise.
51005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51006         Likewise.
51007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51008         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51009         Likewise.
51010         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51011         (tests): Add test case tst-tls-atexit.
51012         (modules-names): Add shared library for tst-tls-atexit.
51013         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51014         (GLIBC_PRIVATE): Add __call_tls_dtors.
51015         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51016         for libstdc++.
51017         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51018         * stdlib/tst-tls-atexit.c: New test case.
51019         * stdlib/tst-tls-atexit-lib.c: New test case.
51020
51021         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51022
51023         * elf/Versions (ld): Add _dl_find_dso_for_object.
51024         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51025         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51026         (dl_open_worker): Use _dl_find_dso_for_object.
51027         * elf/dl-sym.c (do_sym): Likewise.
51028         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51029
51030 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51031
51032         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51033         Syntactic changes only.
51034         (_dl_runtime_profile): Do a tail-call to the resolved function.
51035
51036 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51037
51038         [BZ #13550]
51039         * sysdeps/x86_64/bp-asm.h: Remove file.
51040         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51041         <bp-sym.h> and <bp-asm.h>.
51042         (__clone): Do not use BP_SYM.
51043         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51044         <bp-sym.h> and <bp-asm.h>.
51045         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51046         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51047         "bp-asm.h".
51048         (_setjmp): Do not use BP_SYM.
51049         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51050         "bp-asm.h".
51051         (setjmp): Do not use BP_SYM.
51052         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51053         libc_hidden_def.
51054         (mempcpy): Do not use BP_SYM in weak_alias.
51055         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51056         "bp-asm.h".
51057         (strchr): Do not use BP_SYM.
51058         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51059         "bp-asm.h".
51060         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51061         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51062         (_start): Do not use BP_SYM.
51063         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51064         "bp-asm.h".
51065         (strcat): Do not use BP_SYM.
51066         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51067         "bp-asm.h".
51068         (STRCMP): Do not use BP_SYM.
51069         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51070         "bp-asm.h".
51071         (STRCPY): Do not use BP_SYM.
51072         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51073         "bp-asm.h".
51074         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51075         "bp-asm.h".
51076         (FUNCTION): Do not use BP_SYM.
51077         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51078         weak_alias.
51079         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51080
51081 2013-02-17  Andreas Jaeger  <aj@suse.de>
51082
51083         * time/Versions: Sort entries.
51084         * string/Versions: Likewise.
51085         * resolv/Versions: Likewise.
51086         * posix/Versions: Likewise.
51087         * iconv/Versions: Likewise.
51088         * elf/Versions: Likewise.
51089         * wcsmbs/Versions: Likewise.
51090
51091 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51092
51093         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51094         loop termination condition.
51095
51096         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51097         variable to calculate EZ.
51098         (__sqr): Likewise.
51099
51100         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51101         the lower precision input.
51102
51103 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51104
51105         [BZ #13550]
51106         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51107         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51108         (run-via-rtld-prefix): Do not handle %-bp tests.
51109         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51110         (all-object-suffixes): Remove .ob.
51111         (bppfx): Remove variable.
51112         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51113         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51114         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51115         [$(build-bounded) = yes] (libtype.ob): Likewise.
51116         * Makerules (elide-routines.ob): Remove variable.
51117         (do-tests-clean): Do not handle *-bp.out.
51118         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51119         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51120         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51121         (tests): Do not include $(tests-bp.out).
51122         (xtests): Do not include $(xtests-bp.out).
51123         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51124         [$(build-bounded) = yes] ($(addprefix
51125         $(objpfx),$(binaries-bounded))): Remove rule.
51126         ($(objpfx)%-bp.out): Remove rule.
51127         * config.make.in (build-bounded): Remove variable.
51128         * crypt/Makefile [$(build-bounded) = yes]
51129         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51130         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51131         append to variable.
51132         [$(build-bounded) = yes] (install-lib): Likewise.
51133         [$(build-bounded) = yes] (generated): Likewise.
51134         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51135         Remove rule.
51136         * intl/Makefile [$(build-bounded) = yes]
51137         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51138         * math/Makefile [$(build-bounded) = yes]
51139         ($(tests:%=$(objpfx)%-bp): Likewise.
51140         * misc/Makefile [$(build-bounded) = yes]
51141         ($(objpfx)tst-tsearch-bp): Likewise.
51142         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51143         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51144         Remove dependency.
51145         * string/Makefile (o-objects.ob): Remove variable.
51146         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51147         (CFLAGS-.ob): Remove variable.
51148         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51149         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51150         both definitions of variable.
51151         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51152         (ASFLAGS-.ob): Remove variable.
51153
51154 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51155
51156         [BZ #13550]
51157         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51158         Remove __BOUNDED_POINTERS__ from condition.
51159         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51160         * string/bits/string2.h [!__NO_STRING_INLINES &&
51161         !__BOUNDED_POINTERS__]: Likewise.
51162         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51163         Likewise.
51164         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51165         Remove conditional code.
51166         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51167         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51168         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51169         condition.
51170
51171         [BZ #13550]
51172         * csu/libc-start.c: Do not include <bp-sym.h>.
51173         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51174         * elf/dl-open.c: Do not include <bp-sym.h>.
51175         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51176         * math/fegetenv.c: Do not include <bp-sym.h>.
51177         (fegetenv): Do not use BP_SYM in versioned symbols.
51178         * nptl/sysdeps/pthread/bits/libc-lockP.h
51179         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51180         <bp-sym.h>.
51181         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51182         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51183         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51184         (__pthread_mutex_destroy): Likewise.
51185         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51186         (__pthread_mutex_lock): Likewise.
51187         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51188         (__pthread_mutex_trylock): Likewise.
51189         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51190         (__pthread_mutex_unlock): Likewise.
51191         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51192         (__pthread_mutexattr_init): Likewise.
51193         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51194         (__pthread_mutexattr_destroy): Likewise.
51195         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51196         (__pthread_mutexattr_settype): Likewise.
51197         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51198         (__pthread_rwlock_init): Likewise.
51199         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51200         (__pthread_rwlock_destroy): Likewise.
51201         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51202         (__pthread_rwlock_rdlock): Likewise.
51203         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51204         (__pthread_rwlock_tryrdlock): Likewise.
51205         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51206         (__pthread_rwlock_wrlock): Likewise.
51207         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51208         (__pthread_rwlock_trywrlock): Likewise.
51209         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51210         (__pthread_rwlock_unlock): Likewise.
51211         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51212         (__pthread_key_create): Likewise.
51213         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51214         (__pthread_setspecific): Likewise.
51215         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51216         (__pthread_getspecific): Likewise.
51217         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51218         Likewise.
51219         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51220         (_pthread_cleanup_push_defer): Likewise.
51221         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51222         (_pthread_cleanup_pop_restore): Likewise.
51223         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51224         (pthread_setcancelstate): Likewise.
51225         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51226         <bp-sym.h>.
51227         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51228         (memchr): Do not use BP_SYM in weak_alias.
51229         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51230         (fegetenv): Do not use BP_SYM in versioned symbols.
51231         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51232         (fesetenv): Do not use BP_SYM in versioned symbols.
51233         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51234         (feupdateenv): Do not use BP_SYM in versioned symbols.
51235         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51236         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51237         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51238         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51239         (open64): Do not use BP_SYM in weak_alias.
51240         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51241         (fegetenv): Do not use BP_SYM in versioned symbols.
51242         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51243         (fesetenv): Do not use BP_SYM in versioned symbols.
51244         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51245         (feupdateenv): Do not use BP_SYM in versioned symbols.
51246         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51247         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51248         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51249         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51250         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51251         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51252         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51253         <bp-sym.h>.
51254         (__libc_start_main): Do not use BP_SYM.
51255
51256 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51257
51258         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51259         redundant return line.
51260         (norm): Likewise.
51261         (denorm): Likewise.
51262         (dbl_mp): Likewise.
51263         (sub_magnitudes): Likewise.
51264         (__add): Likewise.
51265         (__sub): Likewise.
51266         (__mul): Likewise.
51267         (__inv): Likewise.
51268         (__dvd): Likewise.
51269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51270         (norm): Likewise.
51271         (denorm): Likewise.
51272         (dbl_mp): Likewise.
51273         (sub_magnitudes): Likewise.
51274         (__add): Likewise.
51275         (__sub): Likewise.
51276         (__mul): Likewise.
51277         (__inv): Likewise.
51278         (__dvd): Likewise.
51279
51280         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51281         instead of __mul.
51282         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51283         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51284         (cc32): Likewise.
51285
51286         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51287         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51288         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51289         of __mul for squares.
51290         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51291         function
51292         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51293         Likewise.
51294         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51295         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51296
51297 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51298
51299         [BZ #13550]
51300         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51301         code.
51302         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51303         prototype or function definition.  Rename ubp_* variables and
51304         parameters.  Remove argv definitions conditional on
51305         [__BOUNDED_POINTERS__].
51306         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51307         * elf/dl-runtime.c (_dl_fixup): Likewise.
51308         * include/set-hooks.h (RUN_HOOK): Likewise.
51309         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51310         definition.
51311         * string/strcpy.c (strcpy): Do not use __unbounded.
51312         * sysdeps/generic/frame.h (struct layout): Likewise.
51313         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51314         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51315         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51316         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51317         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51318         (__backtrace): Likewise.
51319         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51320         use __ptrvalue.
51321         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51322         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51323         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51324         Likewise.
51325         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51326         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51327         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51328         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51329         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51330         Do not use __unbounded.
51331         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51332         Rename __unboundedrlimits parameter to rlimits in prototype.
51333         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51334         Do not use __unbounded.
51335         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51336         not use __ptrvalue.
51337         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51338         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51339         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51340         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51341         __ptrvalue or __unbounded.
51342         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51343         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51344         use __unbounded.
51345         (__new_msgctl): Do not use __ptrvalue.
51346         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51347         __unbounded.
51348         (__libc_msgrcv): Do not use __ptrvalue.
51349         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51350         startup_info): Do not use __unbounded.
51351         (__libc_start_main): Likewise.  Rename ubp_* variables and
51352         parameters.  Remove argv definitions conditional on
51353         [__BOUNDED_POINTERS__].
51354         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51355         __ptrvalue.
51356         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51357         use __unbounded.
51358         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51359         or __ptrvalue.
51360         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51361         use __unbounded.
51362         (__new_shmctl): Do not use __ptrvalue.
51363         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51364         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51365         Likewise.
51366         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51367         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51368         (__libc_sigaction): Likewise.
51369         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51370         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51371         Likewise.
51372         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51373
51374 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51375
51376         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51377
51378         * string/mempcpy.c: Implement by calling memcpy.
51379
51380 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51381
51382         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51383
51384         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51385         evaluation.
51386
51387         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51388         values in the mantissa.
51389
51390         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51391         minimize writes to Z.
51392         (sub_magnitudes): Simplify code a bit.
51393
51394 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51395
51396         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51397         from the message.  The linker prefixes all warnings with that already.
51398
51399 2013-02-12  Andreas Schwab  <schwab@suse.de>
51400
51401         [BZ #15078]
51402         * posix/regexec.c (extend_buffers): Add parameter min_len.
51403         (check_matching): Pass minimum needed length.
51404         (clean_state_log_if_needed): Likewise.
51405         (get_subexp): Likewise.
51406         * posix/Makefile (tests): Add bug-regex34.
51407         (bug-regex34-ENV): Define.
51408         * posix/bug-regex34.c: New file.
51409
51410         [BZ #11561]
51411         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51412         elements compare against the byte sequence of it, not its name.
51413         * posix/Makefile (tests): Add bug-regex35.
51414         (bug-regex35-ENV): Define.
51415         * posix/bug-regex35.c: New file.
51416
51417 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51418
51419         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51420         comment.
51421         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51422         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51423         (CHECK_EOL): Add undef.
51424
51425 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51426
51427         * bits/stdlib-bsearch.h: New file.
51428         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51429         * stdlib/stdlib.h: Likewise.
51430
51431 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51432
51433         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51434         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51435         declaration.
51436         * manual/search.texi (Array Search Function): Add missing const in
51437         lfind prototype.
51438         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51439         declaration to use rlim_t.
51440         (Basic Scheduling Functions): Remove erroneous const from
51441         sched_getparam prototype.  Remove erroneous * from
51442         sched_get_priority_max and sched_get_priority_min prototypes.
51443         (Resource Usage): Fix summary @comment on vtimes to refer to
51444         sys/vtimes.h rather than vtimes.h.
51445         Add missing *s in vtimes prototype.
51446         (Limits on Resources): Fix ulimit prototype to return long int.
51447         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51448         prototypes to use long int rather than double.
51449         (BSD Random): Fix initstate and setstate to use char *, not void *.
51450         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51451         prototype to make second argument 'struct aiocb64 *const[]'.
51452         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51453         (Status of AIO Operations): Remove erroneous const in aio_return and
51454         aio_return64 prototypes.
51455         (Synchronizing I/O): Fix sync prototype to return void.
51456         * manual/startup.texi (Suboptions): Remove an erroneous const in
51457         getsubopt prototype.
51458         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51459         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51460         use size_t rather than int.
51461         (Scanning All Users): Likewise for getpwent_r.
51462         (Setting Groups): Add missing const to setgroups prototype.
51463         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51464         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51465         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51466         'const void *' rather than 'const char *'.
51467         (Host Address Functions): Likewise for inet_ntop.
51468         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51469         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51470         ssize_t for return value.
51471         (Sending Data): Likewise for send, sendto, sendmsg.
51472         (Socket Option Functions): Add a missing const in setsockopt prototype.
51473         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51474         use wchar_t for the argument.
51475         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51476         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51477         take no arguments.
51478         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51479         double/float/long double for second argument.
51480         Fix return types of significand, significandf, significandl.
51481         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51482         argument in fchmod prototype.
51483         (File Owner): Use uid_t and gid_t in fchown prototype.
51484         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51485         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51486         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51487         use 'const struct dirent **' as argument types to CMP function pointer
51488         argument.
51489         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51490         (File Times): Fix summary magic @comment for struct utimbuf and utime
51491         to refer to utime.h, not time.h.
51492         * manual/string.texi (Argz Functions): Add missing const in
51493         argz_extract and argz_next prototypes.
51494         (Finding Tokens in a String): Likewise for basename.
51495         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51496         (Copying and Concatenation): Fix typo in wmemmove prototype.
51497         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51498         (Signal Stack): Remove erroneous const in sigstack prototype.
51499         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51500         prototype.
51501         (Simple Calendar Time): Likewise for stime.
51502         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51503         prototype.
51504         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51505         say sys/sysctl.h instead.
51506         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51507         and vsyslog prototypes.
51508
51509 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51510
51511         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51512         Remove.
51513
51514 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51515
51516         * misc/sys/mman.h: Fix typo in mremap comment.
51517
51518 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51519
51520         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51521         the '\0' terminator.
51522
51523 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51524
51525         [BZ #13550]
51526         * debug/segfault.c: Don't include <bp-checks.h>.
51527         * sysdeps/generic/bp-checks.h: Remove file.
51528         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51529         (__GETDENTS): Don't use CHECK_N.
51530         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51531         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51532         (__getgroups): Don't use CHECK_N.
51533         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51534         (setgroups): Don't use CHECK_N.
51535         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51536         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51537         (__libc_msgrcv): Don't use CHECK_N.
51538         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51539         (__libc_msgsnd): Don't use CHECK_N.
51540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51541         <bp-checks.h>.
51542         (__libc_pread): Don't use CHECK_N.
51543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51544         include <bp-checks.h>.
51545         (__libc_pread64): Don't use CHECK_N.
51546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51547         include <bp-checks.h>.
51548         (__libc_pwrite): Don't use CHECK_N.
51549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51550         include <bp-checks.h>.
51551         (__libc_pwrite64): Don't use CHECK_N.
51552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51553         <bp-checks.h>.
51554         (__libc_pread): Don't use CHECK_N.
51555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51556         include <bp-checks.h>.
51557         (__libc_pread64): Don't use CHECK_N.
51558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51559         include <bp-checks.h>.
51560         (__libc_pwrite): Don't use CHECK_N.
51561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51562         include <bp-checks.h>.
51563         (__libc_pwrite64): Don't use CHECK_N.
51564         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51565         (do_pread): Don't use CHECK_N.
51566         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51567         (do_pread64): Don't use CHECK_N.
51568         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51569         (do_pwrite): Don't use CHECK_N.
51570         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51571         (do_pwrite64): Don't use CHECK_N.
51572         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51573         (__libc_readv): Don't use CHECK_N.
51574         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51575         (semop): Don't use CHECK_N.
51576         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51577         <bp-checks.h>.
51578         (semtimedop): Don't use CHECK_N.
51579         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51580         (__libc_pread): Don't use CHECK_N.
51581         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51582         <bp-checks.h>.
51583         (__libc_pread64): Don't use CHECK_N.
51584         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51585         <bp-checks.h>.
51586         (__libc_pwrite): Don't use CHECK_N.
51587         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51588         <bp-checks.h>.
51589         (__libc_pwrite64): Don't use CHECK_N.
51590         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51591         <bp-checks.h>.
51592         (__libc_msgrcv): Don't use CHECK_N.
51593         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51594         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51595         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51596         (__libc_writev): Don't use CHECK_N.
51597
51598 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51599
51600         * string/strcpy.c: Removed unused variable.
51601
51602         * Makeconfig (+sysdep-includes): Define with := rather than =.
51603         Use an existing include/ subdir of each sysdeps dir before it.
51604
51605 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51606
51607         * nscd/connection.c (register_traced_file): Comment function.
51608         [HAVE_INOTIFY] (union __inev): Define.
51609         [HAVE_INOTIFY] (inotify_check_files): New function.
51610         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51611         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51612         clear_db_cache.
51613         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51614
51615 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51616
51617         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51618         loaded if not already and that a failure is permanent.
51619
51620 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51621
51622         [BZ #15006]
51623         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51624         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51625
51626 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51627
51628         [BZ #13550]
51629         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51630         (CHECK_1_NULL_OK): Likewise.
51631         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51632         (__fxstat): Do not use CHECK_1.
51633         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51634         <bp-checks.h>.
51635         (___fxstat64): Do not use CHECK_1.
51636         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51637         <bp-checks.h>.
51638         (__fxstatat): Do not use CHECK_1.
51639         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51640         <bp-checks.h>.
51641         (__fxstatat64): Do not use CHECK_1.
51642         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51643         <bp-checks.h>.
51644         (__fxstat): Do not use CHECK_1.
51645         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51646         <bp-checks.h>.
51647         (__fxstatat): Do not use CHECK_1.
51648         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51649         <bp-checks.h>.
51650         (__getresgid): Do not use CHECK_1.
51651         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51652         <bp-checks.h>.
51653         (__getresuid): Do not use CHECK_1.
51654         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51655         <bp-checks.h>.
51656         (__lxstat): Do not use CHECK_1.
51657         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51658         <bp-checks.h>.
51659         (__old_msgctl): Do not use CHECK_1.
51660         (__new_msgctl): Likewise.
51661         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51662         <bp-checks.h>.
51663         (__new_setrlimit): Do not use CHECK_1.
51664         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51665         <bp-checks.h>.
51666         (__old_shmctl): Do not use CHECK_1.
51667         (__new_shmctl): Likewise.
51668         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51669         <bp-checks.h>.
51670         (__xstat): Do not use CHECK_1.
51671         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51672         (__lxstat): Do not use CHECK_1.
51673         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51674         <bp-checks.h>.
51675         (___lxstat64): Do not use CHECK_1.
51676         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51677         (__old_msgctl): Do not use CHECK_1.
51678         (__new_msgctl): Likewise.
51679         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51680         <bp-checks.h>.
51681         (__gettimeofday): Do not use CHECK_1.
51682         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51683         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51684         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51685         <bp-checks.h>.
51686         (__gettimeofday): Do not use CHECK_1.
51687         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51688         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51689         (__new_shmctl): Do not use CHECK_1.
51690         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51691         <bp-checks.h>.
51692         (do_sigtimedwait): Do not use CHECK_1.
51693         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51694         <bp-checks.h>.
51695         (do_sigwaitinfo): Do not use CHECK_1.
51696         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51697         <bp-checks.h>.
51698         (msgctl): Do not use CHECK_1.
51699         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51700         <bp-checks.h>.
51701         (shmctl): Do not use CHECK_1.
51702         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51703         (ustat): Do not use CHECK_1.
51704         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51705         <bp-checks.h>.
51706         (__fxstat): Do not use CHECK_1.
51707         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51708         <bp-checks.h>.
51709         (__fxstatat): Do not use CHECK_1.
51710         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51711         <bp-checks.h>.
51712         (__lxstat): Do not use CHECK_1.
51713         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51714         <bp-checks.h>.
51715         (__xstat): Do not use CHECK_1.
51716         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51717         (__xstat): Do not use CHECK_1.
51718         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51719         (___xstat64): Do not use CHECK_1.
51720
51721         [BZ #13550]
51722         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51723         definitions.
51724         (CHECK_BOUNDS_HIGH): Likewise.
51725         * string/strcpy.c: Do not include <bp-checks.h>.
51726         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51727
51728 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51729
51730         * nscd/nscd-client.h (__nscd_drop_map_ref):
51731         Add __attribute__ ((unused)).
51732         * nis/nss-nisplus.h (niserr2nss): Likewise.
51733
51734         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51735         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51736
51737         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51738         Remove inline keyword.
51739         * include/rounding-mode.h (round_away): Likewise.
51740         * libio/wfileops.c (adjust_wide_data): Likewise.
51741         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51742         (__m128i_strloadu_tolower): Likewise.
51743         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51744         (__m128i_strloadu_tolower): Likewise.
51745         * time/mktime.c (ydhms_diff): Likewise.
51746         * locale/elem-hash.h (elem_hash): Likewise.
51747         * locale/setlocale.c (setdata): Likewise.
51748         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51749         (re_string_wchar_at): Likewise.
51750         (bitset_not, bitset_merge, bitset_mask): Likewise.
51751         [!(__GNUC__ > 3)] (inline): Remove macro.
51752         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51753         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51754         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51755         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51756         * string/memcmp.c (memcmp_bytes): Likewise.
51757         * locale/programs/locarchive.c (compute_hashval): Likewise.
51758         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51759         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51760         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51761         * nss/getent.c (print_rpc, print_protocols): Likewise.
51762         (print_passwd, print_group, print_aliases): Likewise.
51763         * nis/nss-nisplus.h (niserr2nss): Likewise.
51764         * nscd/connections.c (restart_p): Likewise.
51765         Change return type to bool.
51766
51767 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51768
51769         * Makeconfig (all-Depend-files): Add existing
51770         $(sorted-subdirs:=/Depend) files.
51771         (all-subdirs): Remove nss.
51772         * sysdeps/unix/inet/Subdirs: Add it here instead.
51773         * hesiod/Depend: New file.
51774
51775         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51776         instead of calling alloca.
51777
51778         * io/lseek.c (__lseek): Rename to __libc_lseek.
51779         Define __lseek as an alias.
51780
51781         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51782
51783 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51784
51785         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51786         else clause and remove check for non-standard endianness.
51787
51788 2013-02-04  David S. Miller  <davem@davemloft.net>
51789
51790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51791
51792 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51793
51794         [BZ #13550]
51795         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51796         (__ubp_memchr): Remove prototype.
51797         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51798         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51799         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51800         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51801         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51802         Remove alias.
51803         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51804         (__ubp_memchr): Likewise.
51805         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51806         (__ubp_memchr): Likewise.
51807         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51808         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51809         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51810         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51811         CHECK_STRING.
51812         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51813         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51814         (__getcwd): Do not use CHECK_STRING.
51815         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51816         <bp-checks.h>.
51817         (__real_chown): Do not use CHECK_STRING.
51818         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51819         <bp-checks.h>.
51820         (fchownat): Do not use CHECK_STRING.
51821         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51822         CHECK_STRING.
51823         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51824         <bp-checks.h>.
51825         (__lchown): Do not use CHECK_STRING.
51826         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51827         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51828         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51829         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51831         include <bp-checks.h>.
51832         (truncate64): Do not use CHECK_STRING.
51833         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51834         <bp-checks.h>.
51835         (__real_chown): Do not use CHECK_STRING.
51836         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51837         <bp-checks.h>.
51838         (__lchown): Do not use CHECK_STRING.
51839         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51840         <bp-checks.h>.
51841         (__chown): Do not use CHECK_STRING.
51842         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
51843         <bp-checks.h>.
51844         (truncate64): Do not use CHECK_STRING.
51845         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
51846         Likewise.
51847         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
51848         (__xmknod): Do not use CHECK_STRING.
51849         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
51850         <bp-checks.h>.
51851         (__xmknodat): Do not use CHECK_STRING.
51852         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51853         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
51854
51855 2013-02-04  Andreas Schwab  <schwab@suse.de>
51856
51857         [BZ #14142]
51858         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
51859         * include/netdb.h: Likewise for h_errno.
51860         * elf/tst-stackguard1.c: Include <tls.h>.
51861
51862 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
51863
51864         * elf/link.h (struct link_map): Extend the l_addr comment.
51865         * include/link.h (struct link_map): Likewise.
51866
51867 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
51868
51869         [BZ #13550]
51870         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
51871         (BOUNDED_1): Remove macro.
51872         * debug/backtrace.c: Don't include <bp-checks.h>.
51873         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
51874         (__backtrace): Likewise.
51875         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
51876         <bp-checks.h>.
51877         (__backtrace): Don't use BOUNDED_1.
51878         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
51879         <bp-checks.h>.
51880         (__backtrace): Don't use BOUNDED_1.
51881         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
51882         (__backtrace): Don't use BOUNDED_1.
51883         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
51884         (shmat): Don't use BOUNDED_N.
51885
51886 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
51887
51888         [BZ #13550]
51889         * sysdeps/generic/bp-start.h: Remove file.
51890         * csu/libc-start.c: Don't include <bp-start.h>.
51891         (LIBC_START_MAIN): Set up __environ directly instead of using
51892         INIT_ARGV_and_ENVIRON.
51893         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
51894         <bp-start.h>.
51895
51896         [BZ #13550]
51897         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
51898         definitions.
51899         (CHECK_FCNTL): Likewise.
51900         (CHECK_N_PAGES): Likewise.
51901
51902         [BZ #13550]
51903         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
51904         definitions.
51905         (CHECK_SIGSET_NULL_OK): Likewise.
51906         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
51907         <bp-checks.h>.
51908         (sigpending): Don't use CHECK_SIGSET.
51909         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
51910         <bp-checks.h>.
51911         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51912         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
51913         <bp-checks.h>.
51914         (do_sigsuspend): Don't use CHECK_SIGSET.
51915         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
51916         use CHECK_SIGSET.
51917         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
51918         (do_sigwait): Don't use CHECK_SIGSET.
51919         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
51920         use CHECK_SIGSET.
51921         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
51922         include <bp-checks.h>.
51923         (sigpending): Don't use CHECK_SIGSET.
51924         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
51925         include <bp-checks.h>.
51926         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51927         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
51928         <bp-checks.h>.
51929         (sigpending): Don't use CHECK_SIGSET.
51930         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
51931         <bp-checks.h>.
51932         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51933
51934         [BZ #13550]
51935         * sysdeps/generic/bp-semctl.h: Remove file.
51936         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
51937         <bp-checks.h> and <bp-semctl.h>.
51938         (__old_semctl): Don't use CHECK_SEMCTL.
51939         (__new_semctl): Likewise.
51940         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
51941         and <bp-semctl.h>.
51942         (__old_semctl): Don't use CHECK_SEMCTL.
51943         (__new_semctl): Likewise.
51944         * sysdeps/unix/sysv/linux/sparc/sparc32/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/sparc/sparc64/semctl.c: Don't include
51949         <bp-checks.h> and <bp-semctl.h>.
51950         (semctl): Don't use CHECK_SEMCTL.
51951
51952         [BZ #13550]
51953         * Makerules (elide-bp-thunks): Remove variable.
51954         (elide-routines.oS): Don't use $(elide-bp-thunks).
51955         (elide-routines.os): Likewise.
51956         (elide-routines.o): Likewise.
51957         (elide-routines.op): Likewise.
51958         (elide-routines.og): Likewise.
51959         (objects): Don't use $(bp-thunks).
51960         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
51961         include.
51962         (common-generated): Do not add s-proto-bp.d.
51963         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
51964         (int): Likewise.
51965         (typ): Likewise.
51966         Do not generate makefile rules for bounded-pointer thunks.
51967         * sysdeps/generic/bp-thunks.h: Remove file.
51968         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
51969         * sysdeps/unix/s-proto-bp.S: Likewise.
51970
51971         [BZ #15062]
51972         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
51973         parts of result separately when argument is not close to line from
51974         -i to i and one part of argument is small.
51975         * math/k_casinhf.c (__kernel_casinhf): Likewise.
51976         * math/k_casinhl.c (__kernel_casinhl): Likewise.
51977         * math/libm-test.inc (cacos_test): Add more tests.
51978         (casin_test): Likewise.
51979         (casinh_test): Likewise.
51980         * sysdeps/i386/fpu/libm-test-ulps: Update.
51981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51982
51983 2013-01-31  David S. Miller  <davem@davemloft.net>
51984
51985         * po/de.po: Update from translation team.
51986
51987 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
51988
51989         * time/tzfile.c: Include stdint.h for SIZE_MAX.
51990
51991 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
51992
51993         * configure.in (_AC_PROG_CC_C89): New definition.
51994         * configure: Regenerate.
51995
51996         * configure.in (AC_PROG_CPP): New definition.
51997         * configure: Regenerate.
51998
51999 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52000
52001         * debug/tst-backtrace.h: New file.
52002         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52003         (ret): Remove variable.
52004         (x): Likewise.
52005         (FAIL): Remove macro.
52006         (NO_INLINE): Likewise.
52007         (fn1): Use match function instead of strstr.
52008         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52009         (ret): Remove variable.
52010         (x): Likewise.
52011         (FAIL): Remove macro.
52012         (NO_INLINE): Likewise.
52013         (fn): Use match function instead of strstr.
52014         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52015         (ret): Remove variable.
52016         (x): Likewise.
52017         (FAIL): Remove macro.
52018         (NO_INLINE): Likewise.
52019         (handle_signal): Use match function instead of strstr.
52020         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52021         (ret): Remove variable.
52022         (x): Likewise.
52023         (FAIL): Remove macro.
52024         (NO_INLINE): Likewise.
52025         (handle_signal): Use match function instead of strstr.
52026
52027 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52028
52029         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52030
52031 2013-01-23  David S. Miller  <davem@davemloft.net>
52032
52033         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52034         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52035         argument of CAS if possible.
52036         * sysdeps/sparc/sparc64/bits/atomic.h
52037         (__arch_compare_and_exchange_val_32_acq): Likewise.
52038         (__arch_compare_and_exchange_val_64_acq): Likewise.
52039
52040 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52041
52042         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52043         * sysdeps/posix/ulimit.c: ... this.
52044         Include <limits.h>.
52045         * sysdeps/unix/bsd/ulimit.c: Remove file.
52046
52047 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52048
52049         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52050         (LDFLAGS-tst-array5): Likewise.
52051
52052 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52053
52054         [BZ #15036]
52055         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52056         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52057         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52058         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52059
52060 2013-01-21  David S. Miller  <davem@davemloft.net>
52061
52062         * sysdeps/sparc/backtrace.c: New file.
52063         * sysdeps/sparc/sparc32/backtrace.h: New file.
52064         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52065         * sysdeps/sparc/sparc64/backtrace.h: New file.
52066         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52067         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52068         -funwind-tables.
52069
52070 2013-01-21  Andreas Schwab  <schwab@suse.de>
52071
52072         [BZ #15020]
52073         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52074         closed its stdout.
52075
52076 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52077
52078         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52079         "mpa2.h".
52080         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52081
52082 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52083             Mark Mitchell  <mark@codesourcery.com>
52084             Tom de Vries  <tom@codesourcery.com>
52085             Paul Pluzhnikov  <ppluzhnikov@google.com>
52086
52087         * debug/tst-backtrace2.c: New file.
52088         * debug/tst-backtrace3.c: Likewise.
52089         * debug/tst-backtrace4.c: Likewise.
52090         * debug/tst-backtrace5.c: Likewise.
52091         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52092         (CFLAGS-tst-backtrace3.c): Likewise.
52093         (CFLAGS-tst-backtrace4.c): Likewise.
52094         (CFLAGS-tst-backtrace5.c): Likewise.
52095         (LDFLAGS-tst-backtrace2): Likewise.
52096         (LDFLAGS-tst-backtrace3): Likewise.
52097         (LDFLAGS-tst-backtrace4): Likewise.
52098         (LDFLAGS-tst-backtrace5): Likewise.
52099         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52100         tst-backtrace4 and tst-backtrace5.
52101
52102 2013-01-18  Anton Blanchard  <anton@samba.org>
52103             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52104
52105         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52106         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52107         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52108         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52110         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52111         "+r" and remove output regs list as redundant.  Add explicit inline
52112         asm to specify register of return val to work around compiler codegen
52113         bug.  Remove (int) cast on return value.  Add return type parameter to
52114         use in macro so that this macro does not truncate return value for
52115         64-bit values.
52116         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52117         pass to INTERNAL_VSYSCALL_NCS.
52118         (INLINE_VSYSCALL): Add 'long int' as return type to
52119         INTERNAL_VSYSCALL_NCS macro invocation.
52120         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52121         INTERNAL_VSYSCALL_NCS macro invocation.
52122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52123
52124 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52125
52126         [BZ #14496]
52127         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52128         Fix application of SIMD FP exception mask.
52129
52130         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52131         mp_no from a power of two.
52132         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52133         __mpexp_twomm1.  Use __pow_mp.
52134
52135         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52136         multiplication.
52137
52138 2013-01-17  David S. Miller  <davem@davemloft.net>
52139
52140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52141
52142 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52143
52144         [BZ #15023]
52145         * include/complex.h: Condition contents on [!_COMPLEX_H].
52146         (__kernel_casinhf): New prototype.
52147         (__kernel_casinh): Likewise.
52148         (__kernel_casinhl): Likewise.
52149         * math/Makefile (libm_calls): Add k_casinh.
52150         * math/k_casinh.c: New file.
52151         * math/k_casinhf.c: Likewise.
52152         * math/k_casinhl.c: Likewise.
52153         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52154         finite nonzero arguments.
52155         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52156         finite nonzero arguments.
52157         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52158         finite nonzero arguments.
52159         * math/s_casinh.c: Do not include <float.h>.
52160         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52161         * math/s_casinhf.c: Do not include <float.h>.
52162         (__casinhf): Move code for finite nonzero arguments to
52163         k_casinhf.c.
52164         * math/s_casinhl.c: Do not include <float.h>.
52165         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52166         redefine.
52167         (__casinhl): Move code for finite nonzero arguments to
52168         k_casinhl.c.
52169         * math/libm-test.inc (cacos_test): Add more tests.
52170         * sysdeps/i386/fpu/libm-test-ulps: Update.
52171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52172
52173 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52174
52175         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52176         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52177         [!HAVE_MREMAP]: Remove [defined linux] case.
52178         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52179
52180 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52181
52182         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52183
52184 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52185
52186         * elf/elf.h (R_386_SIZE32): New relocation.
52187         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52188         R_386_SIZE32.
52189         (elf_machine_rela): Likewise.
52190         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52191         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52192
52193 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52194
52195         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52196         (FP_FAST_FMA): Do not define.
52197         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52198         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52199         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52200         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52201         !_SOFT_FLOAT]: Likewise.
52202         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52203         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52204         value.
52205         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52206         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52207         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52208         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52209         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52210         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52211         file.
52212
52213 2013-01-16  Andreas Schwab  <schwab@suse.de>
52214
52215         [BZ #14327]
52216         * include/stdlib.h (__mktemp): Add declaration.
52217         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52218         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52219
52220 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52221
52222         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52223         definitions.
52224         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52225         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52226         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52227         definitions here.
52228         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52229         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52230         definitions.
52231         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52232         and ONE.
52233         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52234         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52235         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52236         definitions.
52237         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52238         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52239         definitions.
52240         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52241
52242         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52243
52244 2013-01-15  David S. Miller  <davem@davemloft.net>
52245
52246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52247         trunc{,f} to libm-sysdep_routes.
52248         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52250         file.
52251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52253         file.
52254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52255         file.
52256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52258         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52259         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52260         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52261         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52262         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52263         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52264
52265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52266         nearbyint{,f} to libm-sysdep_routes.
52267         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52269         New file.
52270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52271         file.
52272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52273         New file.
52274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52275         file.
52276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52278         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52279         file.
52280         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52281         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52282         file.
52283         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52284         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52285         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52286
52287         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52288         libc_feholdexcept and libc_fesetenv.
52289
52290 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52291
52292         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52293
52294 2013-01-14  David S. Miller  <davem@davemloft.net>
52295
52296         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52297         (SPARC_ASM_VIS2_IFUNC): Likewise.
52298         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52300         use of 'siam' instruction.
52301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52302         Likewise.
52303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52304         Likewise.
52305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52306         Likewise.
52307         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52308         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52310         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52312         file.
52313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52314         file.
52315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52316         file.
52317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52318         file.
52319         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52320         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52321         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52322         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52324         new VIS2 routines.
52325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52328         Likewise.
52329         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52331         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52332         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52334         routines to libm-sysdep_routines.
52335         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52336
52337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52338         fdim/fdimf to libm-sysdep_routines.
52339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52340         file.
52341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52343         file.
52344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52347         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52348         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52349         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52350         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52351
52352 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52353
52354         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52355         to optimize copies.
52356
52357         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52358         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52359         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52360
52361         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52362         local variable MPTWO.
52363         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52364         Likewise.
52365
52366 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52367
52368         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52369         GLOB_NOESCAPE.
52370
52371 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52372
52373         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52374
52375 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52376
52377         * manual/pattern.texi (glob_t): Document gl_flags.
52378         (glob64_t): Likewise.
52379
52380 2013-01-11  David S. Miller  <davem@davemloft.net>
52381
52382         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52383         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52384         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52385         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52386         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52387         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52388         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52389         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52390         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52391         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52392         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52393         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52394         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52395
52396         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52397         sparc V9 rather than using V8 code.
52398         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52399         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52400
52401         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52402         Move to...
52403         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52404         Here.
52405
52406 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52407
52408         [BZ #14941]
52409         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52410         not in the main loop.
52411         * configure: Regenerated.
52412
52413 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52414
52415         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52416         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52417         to just #else.
52418         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52419         [!__GLIBC_HAVE_LONG_LONG] case.
52420         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52421         condition to just #else.
52422         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52423         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52424         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52425         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52426         unconditional.
52427         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52428         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52429         #elif condition to just #else.
52430         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52431         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52432         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52433         #elif condition to just #else.
52434
52435 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52436
52437         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52438         (EF_MIPS_ARCH_64): Fix value.
52439         (EF_MIPS_ARCH_32R2): New.
52440         (EF_MIPS_ARCH_64R2): New.
52441
52442 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52443
52444         * Makeconfig (+link-pie-before-libc): New.
52445         (+link-pie-after-libc): Likewise.
52446         (+link-pie-tests): Likewise.
52447         (+link-pie): Rewritten.
52448         (link-before-libc): Remove $(config-LDFLAGS).
52449         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52450         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52451         (config-LDFLAGS): Renamed to ...
52452         (rtld-LDFLAGS): This.
52453         (rtld-tests-LDFLAGS): New macro.
52454         (link-libc-rpath-link): Likewise.
52455         (link-libc-tests-rpath-link): Likewise.
52456         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52457         (link-libc): Prepand $(link-libc-rpath-link).
52458         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52459         (test-program-prefix): New macro.
52460         (test-via-rtld-prefix): Likewise.
52461         (test-program-cmd): Likewise.
52462         (host-test-program-cmd): Likewise.
52463         * Makefile ($(common-objpfx)testrun.sh): Replace
52464         $(run-program-prefix) with $(test-program-prefix).
52465         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52466         $(rtld-LDFLAGS).
52467         ($(common-objpfx)shlib.lds): Likewise.
52468         (build-module-helper): Likewise.
52469         ($(common-objpfx)format.lds): Likewise.
52470         * Rules (binaries-pie-tests): New.
52471         (binaries-pie-notests): Likewise.
52472         (binaries-pie): Rewritten.
52473         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52474         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52475         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52476         (make-test-out): Replace $(host-built-program-cmd) with
52477         $(host-test-program-cmd).
52478         * config.make.in (build-hardcoded-path-in-tests): New variable.
52479         * configure.in (--enable-hardcoded-path-in-tests): New configure
52480         option.
52481         (hardcoded_path_in_tests): New AC_SUBST.
52482         * configure: Regenerated.
52483         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52484         $(built-program-cmd) with $(test-program-cmd).
52485         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52486         (test_program_cmd): This.
52487         * elf/Makefile ($(objpfx)order.out): Run test with
52488         $(test-program-prefix).
52489         ($(objpfx)order2.out): Likewise.
52490         ($(objpfx)tst-initorder.out): Likewise.
52491         ($(objpfx)tst-initorder2.out): Likewise.
52492         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52493         $(test-program-cmd).
52494         ($(objpfx)tst-array1-static.out): Likewise.
52495         ($(objpfx)tst-array2.out): Likewise.
52496         ($(objpfx)tst-array3.out): Likewise.
52497         ($(objpfx)tst-array4.out): Likewise.
52498         ($(objpfx)tst-array5.out): Likewise.
52499         ($(objpfx)tst-array5-static.out): Likewise.
52500         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52501         $(test-program-cmd).
52502         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52503         $(run-program-prefix) with $(test-program-prefix).
52504         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52505         (test_program_prefix): This.
52506         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52507         $(run-program-prefix) with $(test-program-prefix).
52508         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52509         (test_program_prefix): This.
52510         * iconvdata/tst-tables.sh: Likewise.
52511         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52512         $(run-program-prefix) with $(test-program-prefix).
52513         ($(objpfx)tst-translit.out): Likewise.
52514         ($(objpfx)tst-gettext2.out): Likewise.
52515         ($(objpfx)tst-gettext4.out): Likewise.
52516         ($(objpfx)tst-gettext6.out): Likewise.
52517         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52518         (test_program_prefix): This.
52519         * intl/tst-gettext2.sh: Likewise.
52520         * intl/tst-gettext4.sh  Likewise.
52521         * intl/tst-gettext6.sh: Likewise.
52522         * intl/tst-translit.sh: Likewise.
52523         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52524         with $(test-program-cmd).
52525         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52526         $(run-program-prefix) with $(test-program-prefix).
52527         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52528         (test_program_prefix): This.
52529         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52530         $(run-program-prefix) with $(test-program-prefix).
52531         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52532         (test_program_prefix): This.
52533         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52534         * posix/Makefile ($(objpfx)globtest.out): Replace
52535         $(run-via-rtld-prefix) and $(test-wrapper) with
52536         $(test-program-prefix) and $(test-via-rtld-prefix).
52537         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52538         $(test-program-prefix).
52539         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52540         $(host-test-program-cmd).
52541         (tst-spawn-ARGS): Likewise.
52542         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52543         $(test-program-prefix).
52544         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52545         (test_via_rtld_prefix): This.
52546         (test_wrapper): Renamed to ...
52547         (test_program_prefix): This.
52548         (run_program_prefix): Replaced by test_program_prefix.
52549         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52550         (test_program_prefix): This.
52551         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52552         with $(host-test-program-cmd).
52553         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52554         $(run-program-prefix) with $(test-program-prefix).
52555         ($(objpfx)tst-printf.out): Likewise.
52556         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52557         $(test-program-cmd).
52558         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52559         (test_program_prefix): This.
52560         * stdio-common/tst-unbputc.sh: Likewise.
52561         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52562         $(run-program-prefix) with $(test-program-prefix).
52563         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52564         (test_program_prefix): This.
52565         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52566         $(built-program-cmd) with $(test-program-cmd).
52567
52568 2013-01-11  Andreas Jaeger  <aj@suse.de>
52569
52570         [BZ #15003]
52571         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52572         value. Sync with Linux 3.7.
52573
52574 2013-01-10  David S. Miller  <davem@davemloft.net>
52575
52576         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52577         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52578         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52579
52580 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52581
52582         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52583         never set.
52584         * configure: Regenerated.
52585
52586 2013-01-10  David S. Miller  <davem@davemloft.net>
52587
52588         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52589         sparc V9 rather than using V8 code.
52590         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52591         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52592
52593 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52594
52595         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52596         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52597         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52598         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52599         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52600         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52601         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52602         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52603         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52604         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52605         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52606         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52607         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52608         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52609         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52610         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52611         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52612         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52613         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52614         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52615         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52616         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52617         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52618         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52619         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52620         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52621         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52622
52623 2013-01-10  David S. Miller  <davem@davemloft.net>
52624
52625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52626
52627 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52628
52629         * posix/Makefile (tests-static): New variable.
52630         (tests): Add $(tests-static).
52631         (tst-exec-static-ARGS): New variable.
52632         (tst-spawn-static-ARGS): Likewise.
52633         * posix/tst-exec-static.c: New file.
52634         * posix/tst-spawn-static.c: Likewise.
52635         * posix/tst-exec.c: Support run directly.
52636         * posix/tst-spawn.c: Likewise.
52637
52638 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52639
52640         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52641         long.
52642         * math/bits/mathcalls.h (llrint): Likewise.
52643         (llround): Likewise.
52644         * stdlib/stdlib.h (struct drand48_data): Likewise.
52645         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52646         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52647         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52648         Likewise.
52649         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52650         Likewise.
52651         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52652         (elf_greg_t): Likewise.
52653         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52654         (__jmp_buf): Likewise.
52655         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52656         definitions.
52657         (llrint): Likewise, for all definitions.
52658         (llrintl): Likewise.
52659
52660         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52661         Remove [__GNUC__] condition.
52662         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52663         condition to just [__USE_ISOC99].
52664         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52665
52666 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52667
52668         [BZ #14200]
52669         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52670         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52671         defined.
52672         (_POSIX_V6_ILP32_OFF32): Likewise.
52673         (_XBS5_ILP32_OFF32): Likewise.
52674         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52675         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52676
52677 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52678
52679         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52680
52681         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52682         doubles __mpexp_twomm1.  Adjust usage.
52683         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52684         Remove.
52685
52686 2013-01-10  Andreas Schwab  <schwab@suse.de>
52687
52688         [BZ #14964]
52689         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52690         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52691
52692 2013-01-09  David S. Miller  <davem@davemloft.net>
52693
52694         [BZ #15003]
52695         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52696         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52697         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52698         (TCP_FASTOPEN): Define.
52699         (tcp_repair_opt): New structure.
52700         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52701         enum values.
52702         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52703         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52704         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52705         (tcp_cookie_transactions): New structure.
52706
52707 2013-01-09  Anton Blanchard  <anton@samba.org>
52708
52709         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52710         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52711         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52712         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52713
52714 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52715
52716         * include/features.h (__USE_ANSI): Remove.
52717
52718 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52719
52720         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52721
52722         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52723
52724 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52725
52726         * sysdeps/s390/fpu/libm-test-ulps: Update.
52727
52728         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52729
52730         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52731         (__acr): Likewise.
52732         (__cpy): Likewise.
52733         (norm): Likewise.
52734         (denorm): Likewise.
52735         (__mp_dbl): Likewise.
52736         (__dbl_mp): Likewise.
52737         (add_magnitudes): Likewise.
52738         (sub_magnitudes): Likewise.
52739         (__add): Likewise.
52740         (__sub): Likewise.
52741         (__mul): Likewise.
52742         (__inv): Likewise.
52743         (__dvd): Likewise.
52744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52745         (__acr): Likewise.
52746         (__cpy): Likewise.
52747         (norm): Likewise.
52748         (denorm): Likewise.
52749         (__mp_dbl): Likewise.
52750         (__dbl_mp): Likewise.
52751         (add_magnitudes): Likewise.
52752         (sub_magnitudes): Likewise.
52753         (__add): Likewise.
52754         (__sub): Likewise.
52755         (__mul): Likewise.
52756         (__inv): Likewise.
52757         (__dvd): Likewise.
52758         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52759         (__acr): Likewise.
52760         (__cpy): Likewise.
52761         (norm): Likewise.
52762         (denorm): Likewise.
52763         (__mp_dbl): Likewise.
52764         (__dbl_mp): Likewise.
52765         (add_magnitudes): Likewise.
52766         (sub_magnitudes): Likewise.
52767         (__add): Likewise.
52768         (__sub): Likewise.
52769         (__mul): Likewise.
52770         (__inv): Likewise.
52771         (__dvd): Likewise.
52772
52773 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52774
52775         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52776         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52777         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52778         2 && __USE_EXTERN_INLINES]: Likewise.
52779
52780 2013-01-08  Andreas Jaeger  <aj@suse.de>
52781
52782         [BZ# 14985]
52783         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52784         Remove.
52785         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52786         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52787
52788 2013-01-07  Anton Blanchard  <anton@samba.org>
52789
52790         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52791         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52792         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52793         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52794         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52795         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52796         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52797         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52798         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52799         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52800         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52801         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52802         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52803         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52804         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52805         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52806         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52807         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52808         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52809         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52810         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52811         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52812         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52813         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52814         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52815         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52816         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52817         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52818         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52819         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52820         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52821         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52822         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52823         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52824         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52825         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52826         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52827         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52828         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52829         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52830         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52831         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52832         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52833
52834 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52835
52836         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52837         (__MALLOC_PMT): Likewise.
52838         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52839         [__GNUC__], only on [_LIBC].
52840         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52841         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
52842         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52843         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
52844         forward declaration.
52845         (realloc_hook_ini): Likewise.
52846         (memalign_hook_ini): Likewise.
52847         (__libc_memalign): Do not use __MALLOC_PMT in variable
52848         declaration.
52849         (__libc_valloc): Likewise.
52850         (__libc_pvalloc): Likewise.
52851         (__libc_calloc): Likewise.
52852         (__posix_memalign): Likewise.
52853
52854         [BZ #14996]
52855         * math/s_casinh.c: Include <float.h>.
52856         (__casinh): Do not do computation with squaring and square root
52857         for large arguments.
52858         * math/s_casinhf.c: Include <float.h>.
52859         (__casinhf): Do not do computation with squaring and square root
52860         for large arguments.
52861         * math/s_casinhl.c: Include <float.h>.
52862         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
52863         (__casinhl): Do not do computation with squaring and square root
52864         for large arguments.
52865         * math/libm-test.inc (casin_test): Add more tests.
52866         (casinh_test): Likewise.
52867         * sysdeps/i386/fpu/libm-test-ulps: Update.
52868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52869
52870 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
52871
52872         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
52873         (__x86_64_raw_data_cache_size): Likewise.
52874         (__x86_64_data_cache_size_half): Likewise.
52875         (__x86_64_raw_data_cache_size_half): Likewise.
52876         (__x86_64_shared_cache_size): Likewise.
52877         (__x86_64_raw_shared_cache_size): Likewise.
52878         (__x86_64_shared_cache_size_half): Likewise.
52879         (__x86_64_raw_shared_cache_size_half): Likewise.
52880         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
52881         to ...
52882         (__x86_data_cache_size): This.
52883         (__x86_64_raw_data_cache_size): Renamed to ...
52884         (__x86_raw_data_cache_size): This.
52885         (__x86_64_data_cache_size_half): Renamed to ...
52886         (__x86_data_cache_size_half): This.
52887         (__x86_64_raw_data_cache_size_half): Renamed to ...
52888         (__x86_raw_data_cache_size_half): This.
52889         (__x86_64_shared_cache_size): Renamed to ...
52890         (__x86_shared_cache_size): This.
52891         (__x86_64_raw_shared_cache_size): Renamed to ...
52892         (__x86_raw_shared_cache_size): This.
52893         (__x86_64_shared_cache_size_half): Renamed to ...
52894         (__x86_shared_cache_size_half): This.
52895         (__x86_64_raw_shared_cache_size_half): Renamed to ...
52896         (__x86_raw_shared_cache_size_half): This.
52897         * sysdeps/x86_64/memcpy.S: Updated.
52898         * sysdeps/x86_64/memset.S: Likewise.
52899         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
52900         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
52901         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
52902
52903 2013-01-04  David S. Miller  <davem@davemloft.net>
52904
52905         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52906
52907 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
52908
52909         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
52910         1 to avoid redefinition warning.
52911         (__USE_GNU): Don't define.
52912         (init_signaling_nan): Protoize.
52913
52914         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52915
52916 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52917
52918         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
52919         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
52920         (__cpymn): Likewise.
52921         (norm): Remove commented code.
52922         (denorm): Likewise.
52923         (__mp_dbl): Likewise.
52924         (__inv): Likewise.
52925         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
52926         (__cpymn): Likewise.
52927         (norm): Remove commented code.
52928         (denorm): Likewise.
52929         (__mp_dbl): Likewise.
52930         (__inv): Likewise.
52931
52932         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
52933         mp_no value for 1.0 and 2.0.
52934         (norm): Use RADIXI instead of radixi.d.
52935         (denorm): Likewise.
52936         (__mul): Use 0.0 instead of zero.d.
52937         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
52938         mp_no value for 1.0 and 2.0.
52939         (norm): Use RADIXI instead of radixi.d.
52940         (denorm): Likewise.
52941         (__mul): Use 0.0 instead of zero.d.
52942
52943 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
52944
52945         [BZ #14994]
52946         * math/s_casinh.c (__casinh): Reduce finite argument to first
52947         quadrant then set signs of results at the end.
52948         * math/s_casinhf.c (__casinhf): Likewise.
52949         * math/s_casinhl.c (__casinhl): Likewise.
52950         * math/libm-test.inc (casin_test): Add more tests.
52951         (casinh_test): Likewise.
52952         * sysdeps/i386/fpu/libm-test-ulps: Update.
52953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52954
52955 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52956
52957         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
52958
52959         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
52960
52961         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
52962         declarations.
52963         (denorm): Likewise.
52964         (__mp_dbl): Likewise.
52965         (__inv): Likewise.
52966
52967         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
52968         and adjust the header comment.
52969
52970         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
52971         variable name from declaration.
52972
52973 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
52974
52975         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52976         Initialize COMMON_CPUID_INDEX_7 element.
52977         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
52978         (CPUID_RTM): Likewise.
52979         (HAS_RTM): Likewise.
52980         (COMMON_CPUID_INDEX_7): New enum.
52981
52982 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
52983
52984         [BZ #14981]
52985         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
52986         size is zero, record memory as freed.
52987
52988 2013-01-03  Andreas Jaeger  <aj@suse.de>
52989
52990         * po/ia.po: Add new Interlingua translation.
52991
52992 2012-01-03  Allan McRae  <allan@archlinux.org>
52993
52994         * locale/programs/localedef.c: Fix description of '--posix' flag.
52995
52996 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
52997
52998         * NEWS: Update dates in second copyright notice.
52999         * README: Update copyright dates in example.
53000         * manual/libc.texinfo: Update copyright dates.
53001         * scripts/test-installation.pl: Update copyright date in --version
53002         output.
53003
53004         * hurd/ctty-input.c: Fix copyright notice formatting.
53005         * hurd/ctty-output.c: Likewise.
53006         * hurd/dtable.c: Likewise.
53007         * hurd/hurd-raise.c: Likewise.
53008         * hurd/hurdprio.c: Likewise.
53009         * hurd/msgportdemux.c: Likewise.
53010         * misc/sys/file.h: Likewise.
53011         * misc/sys/ioctl.h: Likewise.
53012         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53013         * sysdeps/mach/hurd/chdir.c: Likewise.
53014         * sysdeps/mach/hurd/fchdir.c: Likewise.
53015         * sysdeps/mach/hurd/rename.c: Likewise.
53016         * sysdeps/mach/hurd/rmdir.c: Likewise.
53017         * sysdeps/mach/hurd/seekdir.c: Likewise.
53018         * sysdeps/mach/hurd/setsid.c: Likewise.
53019         * sysdeps/posix/wait3.c: Likewise.
53020
53021         * All files with FSF copyright notices: Update copyright dates
53022         using scripts/update-copyrights.
53023         * intl/plural.c: Regenerated.
53024         * locale/programs/charmap-kw.h: Likewise.
53025         * locale/programs/locfile-kw.h: Likewise.
53026
53027 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53028
53029         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53030         four values.
53031
53032         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53033         calculation loop and add branch prediction.
53034
53035         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53036         check access beyond bounds of m1np.
53037
53038         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53039         MPTWO.
53040         (__inv): Remove local variable MPTWO to use the global
53041         constant.
53042         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53043         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53044         variable MPTWO.
53045         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53046         MP3HALFS static const.
53047
53048 2013-01-01  David S. Miller  <davem@davemloft.net>
53049
53050         * po/ca.po: Update from translation team.
53051
53052 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53053
53054         * scripts/update-copyrights: New file.
53055         * Makeconfig: Reformat copyright notice.
53056         * ctype/ctype.h: Likewise.
53057         * debug/swprintf_chk.c: Likewise.
53058         * elf/dl-cache.c: Likewise.
53059         * elf/dl-debug.c: Likewise.
53060         * elf/dl-object.c: Likewise.
53061         * grp/initgroups.c: Likewise.
53062         * hurd/Makefile: Likewise.
53063         * hurd/hurd/signal.h: Likewise.
53064         * hurd/hurdfault.c: Likewise.
53065         * hurd/hurdioctl.c: Likewise.
53066         * hurd/hurdlookup.c: Likewise.
53067         * hurd/intr-msg.c: Likewise.
53068         * iconv/gconv_open.c: Likewise.
53069         * libio/swprintf.c: Likewise.
53070         * locale/lc-ctype.c: Likewise.
53071         * locale/nl_langinfo.c: Likewise.
53072         * mach/Machrules: Likewise.
53073         * mach/Makefile: Likewise.
53074         * malloc/obstack.h: Likewise.
53075         * manual/Makefile: Likewise.
53076         * manual/tsort.awk: Likewise.
53077         * misc/bits/stab.def: Likewise.
53078         * nis/nis_print_group_entry.c: Likewise.
53079         * nis/nis_table.c: Likewise.
53080         * nis/nss_compat/compat-pwd.c: Likewise.
53081         * nis/nss_compat/compat-spwd.c: Likewise.
53082         * po/Makefile: Likewise.
53083         * posix/fnmatch.c: Likewise.
53084         * posix/regex.h: Likewise.
53085         * resolv/Makefile: Likewise.
53086         * resolv/nss_dns/dns-network.c: Likewise.
53087         * resolv/res_hconf.c: Likewise.
53088         * scripts/gen-sorted.awk: Likewise.
53089         * soft-fp/soft-fp.h: Likewise.
53090         * stdio-common/printf.h: Likewise.
53091         * stdlib/monetary.h: Likewise.
53092         * stdlib/random.c: Likewise.
53093         * stdlib/random_r.c: Likewise.
53094         * sysdeps/generic/Makefile: Likewise.
53095         * sysdeps/gnu/Makefile: Likewise.
53096         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53097         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53098         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53099         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53100         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53101         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53102         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53103         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53104         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53105         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53106         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53107         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53108         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53109         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53110         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53111         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53112         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53113         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53114         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53115         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53116         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53117         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53118         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53119         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53120         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53121         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53122         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53123         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53124         * sysdeps/mach/hurd/errnos.awk: Likewise.
53125         * sysdeps/mach/hurd/fork.c: Likewise.
53126         * sysdeps/mach/hurd/getcwd.c: Likewise.
53127         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53128         * sysdeps/mach/hurd/mmap.c: Likewise.
53129         * sysdeps/mach/hurd/utimes.c: Likewise.
53130         * sysdeps/mach/hurd/xmknod.c: Likewise.
53131         * sysdeps/posix/profil.c: Likewise.
53132         * sysdeps/posix/readdir_r.c: Likewise.
53133         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53134         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53135         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53136         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53137         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53138         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53139         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53140         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53141         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53142         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53143         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53144         * sysdeps/pthread/lio_listio.c: Likewise.
53145         * sysdeps/sparc/dl-procinfo.h: Likewise.
53146         * sysdeps/unix/i386/sysdep.S: Likewise.
53147         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53148         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53149         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53150         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53152         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53153         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53154         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53155         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53156         * sysdeps/wordsize-32/divdi3.c: Likewise.
53157         * time/sys/time.h: Likewise.
53158         * wcsmbs/Makefile: Likewise.
53159
53160 2013-01-01  David S. Miller  <davem@davemloft.net>
53161
53162         * po/fr.po: Update from translation team.
53163
53164         * catgets/gencat.c: Update copyright year.
53165         * csu/version.c: Likewise.
53166         * debug/catchsegv.sh: Likewise.
53167         * debug/pcprofiledump.c: Likewise.
53168         * debug/xtrace.sh: Likewise.
53169         * elf/ldconfig.c: Likewise.
53170         * elf/ldd.bash.in: Likewise.
53171         * elf/pldd.c: Likewise.
53172         * elf/sotruss.ksh: Likewise.
53173         * elf/sprof.c: Likewise.
53174         * iconv/iconv_prog.c: Likewise.
53175         * iconv/iconvconfig.c: Likewise.
53176         * locale/programs/locale.c: Likewise.
53177         * locale/programs/localedef.c: Likewise.
53178         * login/programs/pt_chown.c: Likewise.
53179         * malloc/memusage.sh: Likewise.
53180         * malloc/memusagestat.c: Likewise.
53181         * malloc/mtrace.pl: Likewise.
53182         * nscd/nscd.c: Likewise.
53183         * nss/getent.c: Likewise.
53184         * nss/makedb.c: Likewise.
53185         * posix/getconf.c: Likewise.
53186
53187 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53188
53189         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53190         numbers.
53191
53192 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53193
53194         * math/bits/mathcalls.h (modf): Use __nonnull.
53195
53196 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53197
53198         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53199         (split): Use macro CN instead of the bare value.
53200         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53201         could be used.
53202         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53203         instead of the bare value.
53204         (power1): Likewise.
53205
53206 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53207
53208         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53209         __ATAN_TWOM.
53210         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53211
53212         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53213         their values.
53214         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53215         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53216         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53217         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53218
53219 2012-12-28  Andreas Jaeger  <aj@suse.de>
53220
53221         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53222         values are from Linux 3.7.
53223
53224         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53225         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53226
53227 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53228
53229         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53230         TRUE case.
53231
53232         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53233         (norm): Likewise.
53234         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53235         variables with preprocessor constants.
53236         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53237         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53238         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53239
53240 2012-12-27  Bruno Haible  <bruno@clisp.org>
53241
53242         [BZ #14317]
53243         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53244         only if needed.
53245
53246 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53247
53248         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53249         and use variable directly.
53250         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53251
53252         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53253         MPONE.
53254         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53255         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53256         variable MPONE.
53257         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53258         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53259         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53260         include directive.  Remove local variable MPONE.
53261         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53262         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53263         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53264
53265 2012-12-25  David S. Miller  <davem@davemloft.net>
53266
53267         * version.h (RELEASE): Set to "development".
53268         (VERSION): Set to "2.17.90".
53269         * NEWS: Add 2.18 section.
53270
53271 2012-12-21  David S. Miller  <davem@davemloft.net>
53272
53273         * po/hr.po: Update from translation team.
53274
53275 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53276
53277         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53278
53279 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53280
53281         * NEWS:  Mention new memcpy for MIPS.
53282
53283 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53284
53285         * manual/contrib.texi (Contributors): Spelling correction.
53286
53287 2012-12-15  David S. Miller  <davem@davemloft.net>
53288
53289         * po/ru.po: Update from translation team.
53290
53291 2012-12-13  David S. Miller  <davem@davemloft.net>
53292
53293         * NEWS: Mention IFUNC testsuite enhancements.
53294
53295         * po/pl.po: Update from translation team.
53296         * po/bg.po: Likewise.
53297
53298         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53299         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53300
53301 2012-12-11  David S. Miller  <davem@davemloft.net>
53302
53303         * po/sv.po: Update from translation team.
53304
53305         * po/vi.po: Update from translation team.
53306
53307         * po/cs.po: Update from translation team.
53308
53309         * po/de.po: Update from translation team.
53310         * po/eo.po: Likewise.
53311         * po/nl.po: Likewise.
53312
53313 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53314
53315         [BZ #14246]
53316         * manual/argp.texi (Argp Helper Functions): Move node to follow
53317         Argp Parsing State.
53318
53319         [BZ #14872]
53320         * manual/conf.texi (Limits on File System Capacity): Mention if
53321         terminating null is included in the max size.
53322
53323 2012-12-10  Andreas Jaeger  <aj@suse.de>
53324
53325         * po/cs.po: Update from translation team.
53326
53327 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53328
53329         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53330         void pointer and cast to uintptr_t.
53331         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53332         path.
53333         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53334         * sysdeps/s390/s390-64/memset.S: Likewise.
53335
53336 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53337
53338         [BZ #14833]
53339         * menual/message.texi (Message Translation): Fix typos.
53340         (Helper programs for gettext): Likewise.
53341
53342 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53343
53344         [BZ #14898]
53345         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53346         Change to -1.
53347
53348 2012-12-07  David S. Miller  <davem@davemloft.net>
53349
53350         * po/libc.pot: Update.
53351
53352 2012-12-07  Richard Henderson  <rth@redhat.com>
53353
53354         [BZ #10114]
53355         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53356         normal/normal case to before the switch.
53357         (_FP_DIV): Likewise.
53358
53359 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53360             Mike Frysinger  <vapier@gentoo.org>
53361
53362         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53363         check for __NR_fadvise64_64.
53364
53365 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53366
53367         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53368         0, not just to plain "0" as a statement.
53369         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53370         with cw.
53371
53372 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53373
53374         * NEWS: Use sourceware.org in Bugzilla URL.
53375
53376 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53377
53378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53379         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53380
53381         * stdio-common/tst-put-error.c (do_test): Add newline to the
53382         padded test to ensure flush.
53383
53384 2012-12-05  Jeff Law  <law@redhat.com>
53385
53386         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53387
53388 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53389
53390         * README: Don't refer to ports add-on as distributed separately.
53391         Mention AArch64 in list of systems supported in the ports add-on.
53392
53393         * LICENSES: Add more non-FSF copyright and license notices.
53394
53395         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53396         ((unused)).
53397
53398         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53399
53400         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53401         10000 as width of padded output.
53402
53403 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53404
53405         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53406
53407         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53408         variable LX with __attribute__ ((unused)).
53409         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53410         Likewise.
53411         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53412         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53413         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53414         with __attribute__ ((unused)).
53415
53416 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53417
53418         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53419
53420 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53421
53422         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53423         (CFLAGS-nldbl-acos.c): New variable.
53424         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53425         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53426         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53427         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53428         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53429         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53430         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53431         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53432         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53433         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53434         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53435         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53436         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53437         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53438         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53439         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53440         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53441         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53442         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53443         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53444         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53445         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53446         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53447         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53448         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53449         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53450         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53451         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53452         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53453         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53454         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53455         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53456         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53457         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53458         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53459         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53460         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53461         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53462         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53463         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53464         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53465         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53466         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53467         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53468         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53469         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53470         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53471         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53472         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53473         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53474         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53475         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53476         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53477         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53478         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53479         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53480         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53481         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53482         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53483         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53484         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53485         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53486         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53487         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53488         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53489         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53490         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53491         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53492         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53493         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53494         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53495         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53496         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53497         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53498         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53499         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53500         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53501         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53502         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53503         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53504         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53505         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53506         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53507         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53508         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53509         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53510         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53511         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53512         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53513         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53514         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53515         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53516         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53517         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53518         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53519         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53520         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53521
53522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53523         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53524
53525         [BZ #14914]
53526         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53527         whole low double instead of just low 47 bits when splitting values
53528         into two parts.
53529
53530 2012-12-03  Allan McRae  <allan@archlinux.org>
53531
53532         * manual/stdio.texi (Predefined Printf Handlers): Remove
53533         @hsep and @vsep usage.
53534
53535 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53536
53537         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53538         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53539
53540 2012-12-03  Jeff Law  <law@redhat.com>
53541
53542         * time/sys/time.h (settimeofday): Do not mark TV argument
53543         as __nonnull.
53544
53545 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53546
53547         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53548         when currently writing and seek to current position when not.
53549         * libio/Makefile (tests): Remove bug-fclose1.
53550         * libio/bug-fclose1.c: Delete.
53551
53552 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53553
53554         * manual/arith.texi (feenableexcept): Fix typo.
53555         (fedisableexcept): Likewise.
53556
53557 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53558
53559         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53560         second, differently-typed declaration, rather than a cast.
53561
53562 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53563
53564         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53565         * include/rpc/svc.h: ... here.
53566
53567 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53568
53569         [BZ #13013]
53570         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53571         depending n and resplen2 to catch cases where answer
53572         equals answerp2.
53573
53574 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53575
53576         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53577         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53578
53579 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53580
53581         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53582
53583 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53584
53585         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53586
53587 2012-11-28  Jeff Law  <law@redhat.com>
53588
53589         [BZ #13761]
53590         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53591         dataset_temporary.  Track alloca usage into alloca_used.
53592         If dataset is large allocate and release it via malloc/free.
53593
53594 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53595
53596         [BZ #14197]
53597         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53598
53599 2012-11-28  David S. Miller  <davem@davemloft.net>
53600
53601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53602
53603 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53604
53605         [BZ #14803]
53606         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53607         of pi/2 rounded to nearest to 64 bits.
53608         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53609         nearest to 64 bits.
53610         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53611         bits.
53612
53613 2012-11-28  Jeff Law <law@redhat.com>
53614             Martin Osvald <mosvald@redhat.com>
53615
53616         [BZ #14889]
53617         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53618         * sunrpc/svc.c: Include time.h.
53619         (__svc_accept_failed): New function.
53620         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53621         any reason other than EINTR, call __svc_accept_failed.
53622         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53623         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53624
53625 2012-11-28  Andreas Schwab  <schwab@suse.de>
53626
53627         * scripts/abilist.awk: Also handle indirect functions in .opd
53628         section.
53629
53630 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53631
53632         [BZ #13881]
53633         * sysdeps/x86/fpu/powl_helper.c: New file.
53634         * sysdeps/x86/fpu/Makefile: Likewise.
53635         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53636         (p3): New object.
53637         (__ieee754_powl): Use __powl_helper for finite arguments except
53638         integer exponents below 8.
53639         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53640         (p3): New object.
53641         (__ieee754_powl): Use __powl_helper for finite arguments except
53642         integer exponents below 8.
53643         * math/libm-test.inc (pow_test): Add more tests and enable some
53644         previously disabled tests.
53645         * sysdeps/i386/fpu/libm-test-ulps: Update.
53646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53647
53648 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53649             Carlos O'Donell  <carlos_odonell@mentor.com>
53650
53651         * nss/makedb.c (is_prime): Assert that input is odd and greater
53652         than 4.  Note that fact in a comment too.
53653         (next_prime): Add 4 to input.
53654
53655 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53656
53657         [BZ #11741]
53658         * libio/Makefile (tests): Add test case tst-fwrite-error.
53659         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53660         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53661         * libio/tst-fwrite-error.c: New test case.
53662
53663 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53664
53665         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53666         before casting to void *.
53667         * include/libc-internal.h (__pointer_type): New macro.
53668         (__integer_if_pointer_type_sub): Likewise.
53669         (__integer_if_pointer_type): Likewise.
53670         (cast_to_integer): Likewise.
53671         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53672         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53673         before casting to atomic64_t.
53674         (atomic_exchange_acq): Likewise.
53675         (__arch_exchange_and_add_body): Likewise.
53676         (__arch_add_body): Likewise.
53677         (atomic_add_negative): Likewise.
53678         (atomic_add_zero): Likewise.
53679
53680 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53681
53682         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53683         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53684         (add_fdes): Likewise.
53685         (linear_search_fdes): Likewise.
53686         (binary_search_unencoded_fdes): Likewise.
53687
53688 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53689
53690         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53691
53692 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53693
53694         * configure.in: Autodetect C++ header directories.
53695         * configure: Regenerated.
53696
53697 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53698
53699         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53700
53701 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53702
53703         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53704
53705 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53706
53707         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53708         LDBL_MANT_DIG == 106]: Disable some tests.
53709         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53710         Likewise.
53711         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53712         Likewise.
53713
53714         [BZ #14871]
53715         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53716         input for small inputs.  Return +/- pi/2 for large inputs.
53717         * math/libm-test.inc (atan_test): Add more tests.
53718
53719         * sysdeps/generic/unwind-dw2-fde-glibc.c
53720         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53721         __attribute__ ((unused)).
53722
53723         [BZ #14645]
53724         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53725         x * y if x and y are nonzero and z is zero.
53726
53727         [BZ #14811]
53728         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53729         nonzero exponents with absolute value below 0x1p-117 to +/-
53730         0x1p-117.
53731
53732         [BZ #14869]
53733         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53734         up arguments below 2**-450, not just those below 2**-500.
53735         * math/libm-test.inc (hypot_test): Add another test.
53736
53737         [BZ #14868]
53738         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53739         Return a+b for ratio over 2**120, not 2**60.
53740         * math/libm-test.inc (hypot_test): Add another test.
53741
53742         * math/libm-test.inc (clog_test): Use
53743         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53744         (clog10_test): Likewise.
53745
53746         [BZ #6778]
53747         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53748
53749 2012-11-22  Andreas Schwab  <schwab@suse.de>
53750
53751         * sysdeps/i386/fpu/libm-test-ulps: Update.
53752
53753 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53754
53755         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53756         printf output with newline.
53757
53758 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53759
53760         [BZ #14865]
53761         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53762         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53763         -z nodlopen, -z initfirst and -z execstack support.
53764         * configure: Regenerated.
53765
53766         * elf/elf.h (DF_1_NODIRECT): New macro.
53767         (DF_1_IGNMULDEF): Likewise.
53768         (DF_1_NOKSYMS): Likewise.
53769         (DF_1_NOHDR): Likewise.
53770         (DF_1_EDITED): Likewise.
53771         (DF_1_NORELOC): Likewise.
53772         (DF_1_SYMINTPOSE): Likewise.
53773         (DF_1_GLOBAUDIT): Likewise.
53774         (DF_1_SINGLETON): Likewise.
53775         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53776         DT_1_SUPPORTED_MASK bits.
53777         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53778
53779 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53780
53781         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53782
53783 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53784
53785         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53786         macro.
53787
53788         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53789         (sendmmsg): Move declarations...
53790         * socket/sys/socket.h: ... here.
53791         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53792         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53793         include it from...
53794         * socket/recvmmsg.c: ... this new file.
53795         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53796         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53797         definition of __sendmmsg hidden.
53798         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53799         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53800         Move ENOSYS stub into and include it from...
53801         * socket/sendmmsg.c: ... this new file.
53802         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53803         (sysdep_routines): Move recvmmsg and sendmmsg...
53804         * socket/Makefile (routines): ... here.
53805         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53806         (GLIBC_PRIVATE): Add __sendmmsg.
53807         * include/sys/socket.h (__sendmmsg): Add declarations.
53808         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53809         sendmmsg.
53810
53811 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53812
53813         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53814         variable I1 with __attribute__ ((unused)).
53815         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53816
53817 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53818
53819         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53820         DUMMY variables with __attribute__ ((unused)).
53821
53822         * bits/byteswap.h: Include <bits/types.h>.
53823         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53824
53825 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53826
53827         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53828         string_t.  Do not manually set errno.
53829         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53830         length with __strnlen.  Make sure to both set errno and return it on
53831         failure.
53832
53833 2012-11-19  David S. Miller  <davem@davemloft.net>
53834
53835         With help from Joseph Myers.
53836         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53837         very large arguments properly.
53838         * math/libm-test.inc (atan_test): New tests.
53839         (atan2_test): New tests.
53840         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53841         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53842
53843 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53844
53845         [BZ #14856]
53846         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
53847         Define to 3.
53848
53849         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
53850         [POSIX] (EADDRNOTAVAIL): Likewise.
53851         [POSIX] (EAFNOSUPPORT): Likewise.
53852         [POSIX] (EALREADY): Likewise.
53853         [POSIX] (ECONNABORTED): Likewise.
53854         [POSIX] (ECONNREFUSED): Likewise.
53855         [POSIX] (ECONNRESET): Likewise.
53856         [POSIX] (EDESTADDRREQ): Likewise.
53857         [POSIX] (EDQUOT): Likewise.
53858         [POSIX] (EHOSTUNREACH): Likewise.
53859         [POSIX] (EIDRM): Likewise.
53860         [POSIX] (EISCONN): Likewise.
53861         [POSIX] (ELOOP): Likewise.
53862         [POSIX] (EMULTIHOP): Likewise.
53863         [POSIX] (ENETDOWN): Likewise.
53864         [POSIX] (ENETUNREACH): Likewise.
53865         [POSIX] (ENOBUFS): Likewise.
53866         [POSIX] (ENODATA): Likewise.
53867         [POSIX] (ENOLINK): Likewise.
53868         [POSIX] (ENOMSG): Likewise.
53869         [POSIX] (ENOPROTOOPT): Likewise.
53870         [POSIX] (ENOSR): Likewise.
53871         [POSIX] (ENOSTR): Likewise.
53872         [POSIX] (ENOTCONN): Likewise.
53873         [POSIX] (ENOTSOCK): Likewise.
53874         [POSIX] (EOPNOTSUPP): Likewise.
53875         [POSIX] (EOVERFLOW): Likewise.
53876         [POSIX] (EPROTO): Likewise.
53877         [POSIX] (EPROTONOSUPPORT): Likewise.
53878         [POSIX] (EPROTOTYPE): Likewise.
53879         [POSIX] (ESTALE): Likewise.
53880         [POSIX] (ETIME): Likewise.
53881         [POSIX] (ETXTBSY): Likewise.
53882         [POSIX] (EWOULDBLOCK): Likewise.
53883         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
53884         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
53885         [POSIX] (SEEK_CUR): Likewise.
53886         [POSIX] (SEEK_END): Likewise.
53887         [POSIX || UNIX98] (mode_t): Do not require.
53888         [POSIX] (off_t): Likewise.
53889         [POSIX] (pid_t): Likewise.
53890         [POSIX] (sys/stat.h): Do not allow header.
53891         [POSIX] (unistd.h): Likewise.
53892         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
53893         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
53894         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
53895         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
53896         require.
53897         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
53898         sigevent): Specify elements.
53899         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
53900         entry.
53901         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
53902         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
53903
53904         * conform/data/cpio.h-data [POSIX]: Disable whole file.
53905         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
53906         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
53907         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
53908         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
53909         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
53910         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
53911         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
53912         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
53913         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
53914         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
53915         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
53916         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
53917         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
53918         Likewise.
53919         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
53920         Likewise.
53921         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
53922         Likewise.
53923         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
53924         Likewise.
53925         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
53926         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
53927         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
53928         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
53929         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
53930         Specify lower bound on value.
53931         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
53932         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
53933         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
53934         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
53935         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
53936         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
53937         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
53938         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
53939         value.
53940         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
53941         as optional.
53942         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
53943         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
53944         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
53945         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
53946         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
53947         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
53948         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
53949         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
53950         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
53951         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
53952         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
53953         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
53954         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
53955         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
53956         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
53957         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
53958         entry.
53959         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
53960         optional.
53961         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
53962         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
53963         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
53964         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
53965         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
53966         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
53967         Likewise.
53968         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
53969         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
53970         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
53971         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
53972         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
53973         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
53974         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
53975         as optional.
53976         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
53977         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
53978         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
53979         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
53980         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
53981         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
53982         specify as optional.
53983         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
53984         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
53985         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
53986         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
53987         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
53988         [XPG3] (NL_LANGMAX): Likewise.
53989         [POSIX || XPG3] (NL_MSGMAX): Likewise.
53990         [POSIX || XPG3] (NL_NMAX): Likewise.
53991         [POSIX || XPG3] (NL_SETMAX): Likewise.
53992         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
53993         [XPG3] (NZERO): Likewise.
53994         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
53995         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
53996         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
53997         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
53998         (REG_ERANGE): Expect.
53999         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54000         optional-constant.
54001         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54002         Use (void) in prototype.
54003         [POSIX] (*_t): Allow.
54004         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54005         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54006         (WRDE_BADVAL): Expect.
54007
54008         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54009         expect.
54010         [XPG3 || XPG4] (O_RSYNC): Likewise.
54011         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54012         Likewise.
54013         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54014         [XPG3 || XPG4] (sigqueue): Likewise.
54015         [XPG3 || XPG4] (sigtimedwait): Likewise.
54016         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54017         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54018         [XPG3 || XPG4] (vsnprintf): Likewise.
54019         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54020         Likewise.
54021         [XPG3 || XPG4] (blksize_t): Likewise.
54022         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54023         Likewise.
54024         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54025         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54026         [XPG3 || XPG4] (struct itimerspec): Likewise.
54027         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54028         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54029         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54030         [XPG3 || XPG4] (clockid_t): Likewise.
54031         [XPG3 || XPG4] (timer_t): Likewise.
54032         [XPG3 || XPG4] (clock_getres): Likewise.
54033         [XPG3 || XPG4] (clock_gettime): Likewise.
54034         [XPG3 || XPG4] (clock_settime): Likewise.
54035         [XPG3 || XPG4] (nanosleep): Likewise.
54036         [XPG3 || XPG4] (timer_create): Likewise.
54037         [XPG3 || XPG4] (timer_delete): Likewise.
54038         [XPG3 || XPG4] (timer_gettime): Likewise.
54039         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54040         [XPG3 || XPG4] (timer_settime): Likewise.
54041         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54042         [XPG3 || XPG4] (getlogin_r): Likewise.
54043         [XPG3 || XPG4] (pread): Likewise.
54044         [XPG3 || XPG4] (pthread_atfork): Likewise.
54045         [XPG3 || XPG4] (pwrite): Likewise.
54046
54047         [BZ #14835]
54048         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54049         <bits/siginfo.h>.
54050
54051 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54052
54053         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54054         finalizing MALLSTREAM.
54055
54056         * sysdeps/mach/hurd/syncfs.c: New file.
54057
54058 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54059
54060         [BZ #14719]
54061         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54062         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54063         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54064         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54065         (_nss_dns_gethostbyname4_r): Likewise.
54066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54067         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54068
54069 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54070
54071         [BZ #13763]
54072         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54073
54074 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54075
54076         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54077         * elf/cache.c (print_entry): Print ",AArch64" for
54078         FLAG_AARCH64_LIB64
54079
54080         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54081         * elf/cache.c (print_entry): Print ",hard-float" for
54082         FLAG_ARM_LIBHF.
54083
54084 2012-11-18  David S. Miller  <davem@davemloft.net>
54085
54086         With help from Joseph Myers.
54087         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54088         cutoff to 2**-13.
54089         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54090         cutoff to 2**-25.
54091         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54092         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54093         small.
54094         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54095         * math/libm-test.inc (y0_test): New tests.
54096         (y1_test): New tests.
54097         * sysdeps/i386/fpu/libm-test-ulps: Update.
54098         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54100
54101 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54102
54103         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54104         64-bit targets.
54105         * configure: Regenerated.
54106
54107 2012-11-17  David S. Miller  <davem@davemloft.net>
54108
54109         [BZ #14811]
54110         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54111         nonzero exponents with absolute value below 0x1p-128 to +/-
54112         0x1p-128.
54113
54114 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54115
54116         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54117
54118         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54119
54120         * posix/getconf-speclist.c: New file.
54121         * posix/posix-envs.def: Likewise.
54122         * posix/confstr.c (START_ENV_GROUP): New macro.
54123         (END_ENV_GROUP): Likewise.
54124         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54125         (KNOWN_PRESENT_ENV_STRING): Likewise.
54126         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54127         (UNKNOWN_ENVIRONMENT): Likewise.
54128         (confstr): Include posix-envs.def instead of handling
54129         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54130         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54131         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54132         (END_ENV_GROUP): Likewise.
54133         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54134         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54135         (UNKNOWN_ENVIRONMENT): Likewise.
54136         (__sysconf): Include posix-envs.def instead of handling associated
54137         cases directly here.
54138         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54139         preprocessing getconf-speclist.c rather than running getconf or
54140         generating empty file.
54141
54142 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54143
54144         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54145
54146 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54147
54148         [BZ #14672]
54149         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54150
54151 2012-11-16  David S. Miller  <davem@davemloft.net>
54152
54153         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54154         smaller than LDBL_EPSILON/2.0L, just return xm1.
54155
54156 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54157
54158         * elf/tst-array1.c (init): Set constructor priority to 1000.
54159         (fini): Set destructor priority to 1000.
54160         * elf/tst-array2dep.c: Likewise.
54161
54162 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54163
54164         [BZ #11741]
54165         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54166         (_IO_new_file_xsputn): Also return EOF if none of the input
54167         data was written when overflow failed.
54168         * libio/iopadn.c (_IO_padn): Likewise.
54169         * libio/iowpadn.c (_IO_wpadn): Likewise.
54170         * stdio-common/tst-put-error.c: Add copyright notice.
54171         (do_test): Add case for printing padded string.
54172         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54173         _IO_padn returned error.
54174         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54175         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54176         return EOF.
54177
54178 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54179
54180         * libio/libioP.h: Add comment note that the references to C++
54181         bits are now obsolete.
54182
54183 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54184
54185         * math/libm-test.inc (check_complex): Use asprintf.
54186
54187 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54188
54189         * debug/pcprofiledump.c (print_version): Update copyright year.
54190         * malloc/memusagestat.c (print_version): Likewise.
54191
54192 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54193
54194         [BZ #14831]
54195         * elf/Makefile (tests): Add tst-audit8.
54196         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54197         ($(objpfx)tst-audit8.out): New target.
54198         (tst-audit8-ENV): New variable.
54199         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54200         audit if l_reloc_result is NULL.
54201         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54202         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54203         * elf/tst-audit8.c: New file.
54204
54205 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54206
54207         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54208         * misc/Makefile (CFLAGS-select.c): Define.
54209         * posix/Makefile (CFLAGS-pause.c): Define.
54210
54211 2012-11-13  David S. Miller  <davem@davemloft.net>
54212
54213         * crypt/Makefile: Move test targets after toplevel Rules
54214         inclusion.  Grab any necessary sysdep routines when linking.
54215         * crypt/md5.c (md5_process_block): Remove define, we will always
54216         name it __md5_process_block.
54217         (md5_finish_ctx): Update md5_process_block call.
54218         (md5_stream): Likewise.
54219         (md5_process_bytes): Likewise.
54220         (md5_process_block): Rename to __md5_process_block and move to ...
54221         * crypt/md5-block.c: ... here.
54222         * crypt/sha256.c (sha256_process_block): Move to ...
54223         * crypt/sha256-block.c: ... here.
54224         * crypt/sha512.c (sha512_process_block): Move to ...
54225         * crypt/sha512-block.c: ... here.
54226         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54227         path.
54228         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54229         * sysdeps/sparc/sparc64/multiarch/Makefile
54230         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54231         crypt subdir.
54232         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54233         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54234         multiarch changes.
54235         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54236         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54237         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54238         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54239         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54240         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54241         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54242         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54243         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54244         file.
54245         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54246         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54247         file.
54248         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54249
54250 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54251
54252         * timezone/tzselect.ksh: Update from tzcode git revision
54253         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54254         * timezone/zdump.c: Likewise.
54255         * timezone/zic.c: Likewise.
54256         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54257         in TZVERSION setting, not $(PKGVERSION).
54258         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54259         REPORT_BUGS_TO settings.
54260
54261         [BZ #14838]
54262         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54263         macro.
54264
54265 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54266
54267         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54268         detection to immediately after _FP_ROUND().
54269         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54270         bits are 0.
54271
54272 2012-11-11  David S. Miller  <davem@davemloft.net>
54273
54274         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54275         inttypes.h
54276         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54277         __close rather than their public counterparts.
54278
54279 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54280
54281         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54282         file.
54283         [UNIX98] (sem_timedwait): Do not expect.
54284         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54285         [XPG4 || UNIX98] (sockatmark): Do not expect.
54286         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54287         (clock_getcpuclockid): Do not expect.
54288         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54289         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54290         Do not expect.
54291         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54292         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54293         [UNIX98] (vwscanf): Likewise.
54294         [UNIX98] (vswscanf): Likewise.
54295
54296 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54297
54298         * timezone/version.h: Remove file.
54299         * timezone/README: Do not refer to version.h.
54300         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54301         $(objpfx)version.h.
54302         ($(objpfx)zdump.o): Likewise.
54303         ($(objpfx)version.h): New target.
54304
54305         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54306         2012i.
54307         * timezone/README: Don't mention modification to tzselect.ksh.
54308         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54309         work on unmodified tzselect.ksh.  Substitute version numbers in
54310         tzselect.ksh.
54311
54312         * Makefile (format-me): Remove.
54313         (INSTALL): Adjust indentation.  Use commands directly instead of
54314         using $(format-me).
54315
54316         * aclocal.m4 (ACX_PKGVERSION): New macro.
54317         (ACX_BUGURL): Likewise.
54318         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54319         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54320         (REPORT_BUGS_TO): Likewise.
54321         * configure: Regenerated.
54322         * config.h.in (PKGVERSION): New macro.
54323         (REPORT_BUGS_TO): Likewise.
54324         * config.make.in (PKGVERSION): New variable.
54325         (PKGVERSION_TEXI): Likewise.
54326         (REPORT_BUGS_TO): Likewise.
54327         (REPORT_BUGS_TEXI): Likewise.
54328         * Makefile (format-me): Use -I$(common-objpfx)manual.
54329         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54330         ($(common-objpfx)manual/%): New target.
54331         (manual/%): Remove target.
54332         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54333         (print_version): Use PKGVERSION.
54334         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54335         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54336         and REPORT_BUGS_TO.
54337         ($(objpfx)xtrace): Likewise.
54338         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54339         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54340         (print_version): Use PKGVERSION.
54341         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54342         (do_version): Use PKGVERSION.
54343         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54344         REPORT_BUGS_TO.
54345         (common-ldd-rewrite): Likewise.
54346         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54347         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54348         (print_version): Use PKGVERSION.
54349         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54350         * elf/pldd.c (argp_program_bug_address): Remove variable.
54351         (more_help): New function.
54352         (argp): Use more_help.
54353         (print_version): Use PKGVERSION.
54354         * elf/sln.c (main): Use PKGVERSION.
54355         (usage): Use REPORT_BUGS_TO.
54356         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54357         (top level): Use PKGVERSION.
54358         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54359         (print_version): Use PKGVERSION.
54360         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54361         (print_version): Use PKGVERSION.
54362         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54363         (print_version): Use PKGVERSION.
54364         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54365         (print_version): Use PKGVERSION.
54366         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54367         (print_version): Use PKGVERSION.
54368         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54369         (print_version): Use PKGVERSION.
54370         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54371         and BUGURL.
54372         ($(objpfx)memusage): Likewise.
54373         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54374         (do_version): Use PKGVERSION.
54375         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54376         (print_version): Use PKGVERSION.
54377         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54378         ($PKGVERSION): New variable.
54379         ($REPORT_BUGS_TO): Likewise.
54380         (usage): Use $REPORT_BUGS_TO.
54381         (top level): Use $PKGVERSION.
54382         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54383         ($(objpfx)pkgvers.texi): New rule.
54384         ($(objpfx)stamp-pkgvers): Likewise.
54385         * manual/install.texi: Include pkgvers.texi.
54386         (--with-pkgversion): Document new configure option.
54387         (--with-bugurl): Likewise.
54388         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54389         than necessarily for this particular distribution.  Use
54390         REPORT_BUGS_TO for where to report bugs.
54391         * INSTALL: Regenerated.
54392         * manual/libc.texinfo: Include pkgvers.texi.
54393         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54394         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54395         (print_version): Use PKGVERSION.
54396         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54397         (print_version): Use PKGVERSION.
54398         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54399         (print_version): Use PKGVERSION.
54400         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54401         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54402         macro.
54403         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54404         (print_version): Use PKGVERSION.
54405         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54406         (print_version): Use PKGVERSION.
54407         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54408         and PKGVERSION.
54409
54410         * timezone/checktab.awk: Update from tzcode 2012i.
54411         * timezone/ialloc.c: Likewise.
54412         * timezone/private.h: Likewise.
54413         * timezone/scheck.c: Likewise.
54414         * timezone/tzfile.h: Likewise.
54415         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54416         (TZVERSION): Hardcode tzcode version number.
54417         * timezone/zdump.c: Update from tzcode 2012i.
54418         * timezone/zic.c: Likewise.
54419         * timezone/version.h: New file.
54420         * timezone/README: Describe version.h.  Update upstream location.
54421
54422         [BZ #14824]
54423         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54424         (mktemp): Enable declaration.
54425         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54426         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54427         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54428         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54429         Likewise.
54430         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54431         Likewise.
54432         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54433         Likewise.
54434         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54435         Likewise.
54436         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54437         Likewise.
54438         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54439         Likewise.
54440
54441         [BZ #14821]
54442         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54443         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54444         for copies of such integer values.
54445         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54446         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54447
54448 2012-11-09  Andreas Jaeger  <aj@suse.de>
54449
54450         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54451         definitions and declarations that are provided by
54452         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54453
54454 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54455
54456         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54457         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54458         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54459         definition.
54460
54461 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54462
54463         * elf/elf.h: Update comment before AArch64 relocations.
54464
54465 2012-11-07  David S. Miller  <davem@davemloft.net>
54466
54467         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54468         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54469         (__start_context): Declare.
54470         (__makecontext_ret): Delete.
54471         (__makecontext): Hook up __start_context instead of
54472         __makecontext_ret.
54473         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54474         (sysdep_routines): Add __start_context when in stdlib.
54475
54476 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54477
54478         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54479         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54480         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54481         hardcoded "nm".
54482         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54483         (READELF): New variable.  Use it instead of hardcoded "readelf".
54484
54485 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54486
54487         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54488         * sysdeps/x86/Makefile: Here.
54489         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54490         * sysdeps/x86/tst-xmmymm.sh: This.
54491
54492 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54493
54494         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54495         expectations.
54496         [UNIX98] (pthread_barrier_t): Do not expect.
54497         [UNIX98] (pthread_barrierattr_t): Likewise.
54498         [UNIX98] (pthread_spinlock_t): Likewise.
54499         [UNIX98] (pthread_barrier_destroy): Likewise.
54500         [UNIX98] (pthread_barrier_init): Likewise.
54501         [UNIX98] (pthread_barrier_wait): Likewise.
54502         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54503         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54504         [UNIX98] (pthread_barrierattr_init): Likewise.
54505         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54506         [UNIX98] (pthread_getcpuclockid): Likewise.
54507         [UNIX98] (pthread_mutex_timedlock): Likewise.
54508         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54509         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54510         [UNIX98] (pthread_sigmask): Likewise.
54511         [UNIX98] (pthread_spin_destroy): Likewise.
54512         [UNIX98] (pthread_spin_init): Likewise.
54513         [UNIX98] (pthread_spin_lock): Likewise.
54514         [UNIX98] (pthread_spin_trylock): Likewise.
54515         [UNIX98] (pthread_spin_unlock): Likewise.
54516         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54517         Do not expect.
54518         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54519         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54520         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54521         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54522         [XPG3 || XPG4] (pthread_key_t): Likewise.
54523         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54524         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54525         [XPG3 || XPG4] (pthread_once_t): Likewise.
54526         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54527         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54528         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54529         [XPG3 || XPG4] (pthread_t): Likewise.
54530
54531         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54532         not expect.
54533         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54534
54535         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54536         Change function return type to int.
54537
54538         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54539         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54540         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54541         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54542         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54543         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54544         [!POSIX] (posix_madvise): Likewise.
54545         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54546         && !UNIX98].
54547         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54548         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54549         (mode_t): Likewise.
54550         (posix_mem_offset): Likewise.
54551         (posix_typed_mem_get_info): Likewise.
54552         (posix_typed_mem_open): Likewise.
54553
54554         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54555         Change condition to [XOPEN2K8].
54556
54557         * conform/conformtest.pl: Preprocess allow-header data with -x c
54558         instead of from stdin.
54559         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54560         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54561         [C99-based standards] (cerfc): Likewise.
54562         [C99-based standards] (cexp2): Likewise.
54563         [C99-based standards] (cexpm1): Likewise.
54564         [C99-based standards] (clog10): Likewise.
54565         [C99-based standards] (clog1p): Likewise.
54566         [C99-based standards] (clog2): Likewise.
54567         [C99-based standards] (clgamma): Likewise.
54568         [C99-based standards] (ctgamma): Likewise.
54569         [C99-based standards] (cerff): Likewise.
54570         [C99-based standards] (cerfcf): Likewise.
54571         [C99-based standards] (cexp2f): Likewise.
54572         [C99-based standards] (cexpm1f): Likewise.
54573         [C99-based standards] (clog10f): Likewise.
54574         [C99-based standards] (clog1pf): Likewise.
54575         [C99-based standards] (clog2f): Likewise.
54576         [C99-based standards] (clgammaf): Likewise.
54577         [C99-based standards] (ctgammaf): Likewise.
54578         [C99-based standards] (cerfl): Likewise.
54579         [C99-based standards] (cerfcl): Likewise.
54580         [C99-based standards] (cexp2l): Likewise.
54581         [C99-based standards] (cexpm1l): Likewise.
54582         [C99-based standards] (clog10l): Likewise.
54583         [C99-based standards] (clog1pl): Likewise.
54584         [C99-based standards] (clog2l): Likewise.
54585         [C99-based standards] (clgammal): Likewise.
54586         [C99-based standards] (ctgammal): Likewise.
54587         * conform/data/inttypes.h-data [C99-based standards]: Include
54588         stdint.h-data.  Remove all expectations for stdint.h contents.
54589         [C99-based standards] (PRI*): Do not allow.
54590         [C99-based standards] (SCN*): Likewise.
54591         [C99-based standards] (*_t): Likewise.
54592         [C99-based-standards] (PRId8): Expect macro.
54593         [C99-based-standards] (PRIi8): Likewise.
54594         [C99-based-standards] (PRIo8): Likewise.
54595         [C99-based-standards] (PRIu8): Likewise.
54596         [C99-based-standards] (PRIx8): Likewise.
54597         [C99-based-standards] (PRIX8): Likewise.
54598         [C99-based-standards] (SCNd8): Likewise.
54599         [C99-based-standards] (SCNi8): Likewise.
54600         [C99-based-standards] (SCNo8): Likewise.
54601         [C99-based-standards] (SCNu8): Likewise.
54602         [C99-based-standards] (SCNx8): Likewise.
54603         [C99-based-standards] (PRIdLEAST8): Likewise.
54604         [C99-based-standards] (PRIiLEAST8): Likewise.
54605         [C99-based-standards] (PRIoLEAST8): Likewise.
54606         [C99-based-standards] (PRIuLEAST8): Likewise.
54607         [C99-based-standards] (PRIxLEAST8): Likewise.
54608         [C99-based-standards] (PRIXLEAST8): Likewise.
54609         [C99-based-standards] (SCNdLEAST8): Likewise.
54610         [C99-based-standards] (SCNiLEAST8): Likewise.
54611         [C99-based-standards] (SCNoLEAST8): Likewise.
54612         [C99-based-standards] (SCNuLEAST8): Likewise.
54613         [C99-based-standards] (SCNxLEAST8): Likewise.
54614         [C99-based-standards] (PRIdFAST8): Likewise.
54615         [C99-based-standards] (PRIiFAST8): Likewise.
54616         [C99-based-standards] (PRIoFAST8): Likewise.
54617         [C99-based-standards] (PRIuFAST8): Likewise.
54618         [C99-based-standards] (PRIxFAST8): Likewise.
54619         [C99-based-standards] (PRIXFAST8): Likewise.
54620         [C99-based-standards] (SCNdFAST8): Likewise.
54621         [C99-based-standards] (SCNiFAST8): Likewise.
54622         [C99-based-standards] (SCNoFAST8): Likewise.
54623         [C99-based-standards] (SCNuFAST8): Likewise.
54624         [C99-based-standards] (SCNxFAST8): Likewise.
54625         [C99-based-standards] (PRId16): Likewise.
54626         [C99-based-standards] (PRIi16): Likewise.
54627         [C99-based-standards] (PRIo16): Likewise.
54628         [C99-based-standards] (PRIu16): Likewise.
54629         [C99-based-standards] (PRIx16): Likewise.
54630         [C99-based-standards] (PRIX16): Likewise.
54631         [C99-based-standards] (SCNd16): Likewise.
54632         [C99-based-standards] (SCNi16): Likewise.
54633         [C99-based-standards] (SCNo16): Likewise.
54634         [C99-based-standards] (SCNu16): Likewise.
54635         [C99-based-standards] (SCNx16): Likewise.
54636         [C99-based-standards] (PRIdLEAST16): Likewise.
54637         [C99-based-standards] (PRIiLEAST16): Likewise.
54638         [C99-based-standards] (PRIoLEAST16): Likewise.
54639         [C99-based-standards] (PRIuLEAST16): Likewise.
54640         [C99-based-standards] (PRIxLEAST16): Likewise.
54641         [C99-based-standards] (PRIXLEAST16): Likewise.
54642         [C99-based-standards] (SCNdLEAST16): Likewise.
54643         [C99-based-standards] (SCNiLEAST16): Likewise.
54644         [C99-based-standards] (SCNoLEAST16): Likewise.
54645         [C99-based-standards] (SCNuLEAST16): Likewise.
54646         [C99-based-standards] (SCNxLEAST16): Likewise.
54647         [C99-based-standards] (PRIdFAST16): Likewise.
54648         [C99-based-standards] (PRIiFAST16): Likewise.
54649         [C99-based-standards] (PRIoFAST16): Likewise.
54650         [C99-based-standards] (PRIuFAST16): Likewise.
54651         [C99-based-standards] (PRIxFAST16): Likewise.
54652         [C99-based-standards] (PRIXFAST16): Likewise.
54653         [C99-based-standards] (SCNdFAST16): Likewise.
54654         [C99-based-standards] (SCNiFAST16): Likewise.
54655         [C99-based-standards] (SCNoFAST16): Likewise.
54656         [C99-based-standards] (SCNuFAST16): Likewise.
54657         [C99-based-standards] (SCNxFAST16): Likewise.
54658         [C99-based-standards] (PRId32): Likewise.
54659         [C99-based-standards] (PRIi32): Likewise.
54660         [C99-based-standards] (PRIo32): Likewise.
54661         [C99-based-standards] (PRIu32): Likewise.
54662         [C99-based-standards] (PRIx32): Likewise.
54663         [C99-based-standards] (PRIX32): Likewise.
54664         [C99-based-standards] (SCNd32): Likewise.
54665         [C99-based-standards] (SCNi32): Likewise.
54666         [C99-based-standards] (SCNo32): Likewise.
54667         [C99-based-standards] (SCNu32): Likewise.
54668         [C99-based-standards] (SCNx32): Likewise.
54669         [C99-based-standards] (PRIdLEAST32): Likewise.
54670         [C99-based-standards] (PRIiLEAST32): Likewise.
54671         [C99-based-standards] (PRIoLEAST32): Likewise.
54672         [C99-based-standards] (PRIuLEAST32): Likewise.
54673         [C99-based-standards] (PRIxLEAST32): Likewise.
54674         [C99-based-standards] (PRIXLEAST32): Likewise.
54675         [C99-based-standards] (SCNdLEAST32): Likewise.
54676         [C99-based-standards] (SCNiLEAST32): Likewise.
54677         [C99-based-standards] (SCNoLEAST32): Likewise.
54678         [C99-based-standards] (SCNuLEAST32): Likewise.
54679         [C99-based-standards] (SCNxLEAST32): Likewise.
54680         [C99-based-standards] (PRIdFAST32): Likewise.
54681         [C99-based-standards] (PRIiFAST32): Likewise.
54682         [C99-based-standards] (PRIoFAST32): Likewise.
54683         [C99-based-standards] (PRIuFAST32): Likewise.
54684         [C99-based-standards] (PRIxFAST32): Likewise.
54685         [C99-based-standards] (PRIXFAST32): Likewise.
54686         [C99-based-standards] (SCNdFAST32): Likewise.
54687         [C99-based-standards] (SCNiFAST32): Likewise.
54688         [C99-based-standards] (SCNoFAST32): Likewise.
54689         [C99-based-standards] (SCNuFAST32): Likewise.
54690         [C99-based-standards] (SCNxFAST32): Likewise.
54691         [C99-based-standards] (PRId64): Likewise.
54692         [C99-based-standards] (PRIi64): Likewise.
54693         [C99-based-standards] (PRIo64): Likewise.
54694         [C99-based-standards] (PRIu64): Likewise.
54695         [C99-based-standards] (PRIx64): Likewise.
54696         [C99-based-standards] (PRIX64): Likewise.
54697         [C99-based-standards] (SCNd64): Likewise.
54698         [C99-based-standards] (SCNi64): Likewise.
54699         [C99-based-standards] (SCNo64): Likewise.
54700         [C99-based-standards] (SCNu64): Likewise.
54701         [C99-based-standards] (SCNx64): Likewise.
54702         [C99-based-standards] (PRIdLEAST64): Likewise.
54703         [C99-based-standards] (PRIiLEAST64): Likewise.
54704         [C99-based-standards] (PRIoLEAST64): Likewise.
54705         [C99-based-standards] (PRIuLEAST64): Likewise.
54706         [C99-based-standards] (PRIxLEAST64): Likewise.
54707         [C99-based-standards] (PRIXLEAST64): Likewise.
54708         [C99-based-standards] (SCNdLEAST64): Likewise.
54709         [C99-based-standards] (SCNiLEAST64): Likewise.
54710         [C99-based-standards] (SCNoLEAST64): Likewise.
54711         [C99-based-standards] (SCNuLEAST64): Likewise.
54712         [C99-based-standards] (SCNxLEAST64): Likewise.
54713         [C99-based-standards] (PRIdFAST64): Likewise.
54714         [C99-based-standards] (PRIiFAST64): Likewise.
54715         [C99-based-standards] (PRIoFAST64): Likewise.
54716         [C99-based-standards] (PRIuFAST64): Likewise.
54717         [C99-based-standards] (PRIxFAST64): Likewise.
54718         [C99-based-standards] (PRIXFAST64): Likewise.
54719         [C99-based-standards] (SCNdFAST64): Likewise.
54720         [C99-based-standards] (SCNiFAST64): Likewise.
54721         [C99-based-standards] (SCNoFAST64): Likewise.
54722         [C99-based-standards] (SCNuFAST64): Likewise.
54723         [C99-based-standards] (SCNxFAST64): Likewise.
54724         [C99-based-standards] (PRIdMAX): Likewise.
54725         [C99-based-standards] (PRIiMAX): Likewise.
54726         [C99-based-standards] (PRIoMAX): Likewise.
54727         [C99-based-standards] (PRIuMAX): Likewise.
54728         [C99-based-standards] (PRIxMAX): Likewise.
54729         [C99-based-standards] (PRIXMAX): Likewise.
54730         [C99-based-standards] (SCNdMAX): Likewise.
54731         [C99-based-standards] (SCNiMAX): Likewise.
54732         [C99-based-standards] (SCNoMAX): Likewise.
54733         [C99-based-standards] (SCNuMAX): Likewise.
54734         [C99-based-standards] (SCNxMAX): Likewise.
54735         [C99-based-standards] (PRIdPTR): Likewise.
54736         [C99-based-standards] (PRIiPTR): Likewise.
54737         [C99-based-standards] (PRIoPTR): Likewise.
54738         [C99-based-standards] (PRIuPTR): Likewise.
54739         [C99-based-standards] (PRIxPTR): Likewise.
54740         [C99-based-standards] (PRIXPTR): Likewise.
54741         [C99-based-standards] (SCNdPTR): Likewise.
54742         [C99-based-standards] (SCNiPTR): Likewise.
54743         [C99-based-standards] (SCNoPTR): Likewise.
54744         [C99-based-standards] (SCNuPTR): Likewise.
54745         [C99-based-standards] (SCNxPTR): Likewise.
54746         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54747         allow.
54748         * conform/data/stdint.h-data: Update comments to clarify
54749         requirements.
54750         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54751         type.
54752         [C99-based standards] (INT8_MAX): Likewise.
54753         [C99-based standards] (INT16_MIN): Likewise.
54754         [C99-based standards] (INT16_MAX): Likewise.
54755         [C99-based standards] (INT32_MIN): Likewise.
54756         [C99-based standards] (INT32_MAX): Likewise.
54757         [C99-based standards] (INT64_MIN): Likewise.
54758         [C99-based standards] (INT64_MAX): Likewise.
54759         [C99-based standards] (UINT8_MAX): Likewise.
54760         [C99-based standards] (UINT16_MAX): Likewise.
54761         [C99-based standards] (UINT32_MAX): Likewise.
54762         [C99-based standards] (UINT64_MAX): Likewise.
54763         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54764         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54765         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54766         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54767         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54768         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54769         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54770         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54771         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54772         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54773         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54774         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54775         [C99-based standards] (INT_FAST8_MIN): Likewise.
54776         [C99-based standards] (INT_FAST8_MAX): Likewise.
54777         [C99-based standards] (INT_FAST16_MIN): Likewise.
54778         [C99-based standards] (INT_FAST16_MAX): Likewise.
54779         [C99-based standards] (INT_FAST32_MIN): Likewise.
54780         [C99-based standards] (INT_FAST32_MAX): Likewise.
54781         [C99-based standards] (INT_FAST64_MIN): Likewise.
54782         [C99-based standards] (INT_FAST64_MAX): Likewise.
54783         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54784         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54785         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54786         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54787         [C99-based standards] (INTPTR_MIN): Likewise.
54788         [C99-based standards] (INTPTR_MAX): Likewise.
54789         [C99-based standards] (UINTPTR_MAX): Likewise.
54790         [C99-based standards] (INTMAX_MIN): Likewise.
54791         [C99-based standards] (INTMAX_MAX): Likewise.
54792         [C99-based standards] (UINTMAX_MAX): Likewise.
54793         [C99-based standards] (PTRDIFF_MIN): Likewise.
54794         [C99-based standards] (PTRDIFF_MAX): Likewise.
54795         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54796         [C99-based standards] (SIZE_MAX): Likewise.
54797         [C99-based standards] (WCHAR_MAX): Likewise.
54798         [C99-based standards] (WINT_MAX): Likewise.
54799         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54800         constraint on value.
54801         [C99-based standards] (WCHAR_MIN): Likewise.
54802         [C99-based standards] (WINT_MIN): Likewise.
54803         [C99-based standards] (*_t): Allow.
54804         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54805         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54806         Include math.h-data and complex.h-data.  Remove all expectations
54807         of math.h and complex.h contents.
54808         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54809         at end of line.
54810         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54811         (struct tm): Expect tag.
54812         [C99-based-standards] (wcstof): Expect function.
54813         [C99-based-standards] (wcstold): Likewise.
54814         [C99-based-standards] (wcstoll): Likewise.
54815         [C99-based-standards] (wcstoull): Likewise.
54816         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54817         macro-int-constant.  Specify type.
54818         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54819         constraint on value.
54820         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54821         Specify type.
54822         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54823         Specify value.
54824         [ISO C standards]: Do not allow headers.
54825         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54826         wcs[abcdefghijklmnopqrstuvwxyz]*.
54827         [ISO C standards] (*_t): Do not allow.
54828         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54829         Expect function.
54830         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54831         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54832         Specify type.
54833         [ISO C standards]: Do not allow headers.
54834         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54835         is[abcdefghijklmnopqrstuvwxyz]*.
54836         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54837         to[abcdefghijklmnopqrstuvwxyz]*.
54838         [ISO C standards] (*_t): Do not allow.
54839         * conform/data/stdalign.h-data: New file.
54840         * conform/data/stdbool.h-data: Likewise.
54841         * conform/data/stdnoreturn.h-data: Likewise.
54842
54843 2012-11-07  Roland McGrath  <roland@hack.frob.com>
54844
54845         [BZ #14815]
54846         * manual/filesys.texi (Directory Entries): Typo fix.
54847         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
54848
54849 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54850
54851         * elf/elf.h (EM_AARCH64): New macro.
54852         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
54853         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
54854         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
54855         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
54856         (R_AARCH64_TLSDESC): Likewise.
54857         (NT_ARM_TLS): Likewise.
54858         (NT_ARM_HW_BREAK): Likewise.
54859         (NT_ARM_HW_WATCH): Likewise.
54860
54861 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54862
54863         [BZ #14811]
54864         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
54865         (__ieee754_powl): Saturate nonzero exponents with absolute value
54866         below 0x1p-79 to +/- 0x1p-79.
54867         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
54868         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
54869         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
54870         nonzero exponents with absolute value below 0x1p-32 to +/-
54871         0x1p-32.
54872         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
54873         (__ieee754_powl): Saturate nonzero exponents with absolute value
54874         below 0x1p-79 to +/- 0x1p-79.
54875         * math/libm-test.inc (pow_test): Add more tests.
54876
54877 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54878
54879         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
54880         _dl_s390_cap_flags with kernel. Increase string length.
54881         (_dl_s390_platforms): Add z196 and zEC12.
54882
54883 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54884
54885         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
54886         Change XOPEN21K to XOPEN2K.
54887
54888 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
54889
54890         * string/memmove.c: Use memcpy when possible.
54891
54892 2012-11-06  Andreas Jaeger  <aj@suse.de>
54893
54894         * po/eo.po: Update from translation team.
54895
54896 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
54897
54898         [BZ #14793]
54899         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
54900         exponent and small x and y exponents, scale x or y up.  Increase
54901         by 2 the exponent used in scaling up.
54902         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54903         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54904         * math/libm-test.inc (fma_test): Add more tests.
54905         (fma_test_towardzero): Likewise.
54906         (fma_test_downward): Likewise.
54907         (fma_test_upward): Likewise.
54908
54909 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
54910
54911         [BZ #14805]
54912         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
54913         fenv_t *.
54914
54915         [BZ #14801]
54916         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
54917         namespace for names of struct fields.
54918         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
54919         fenv_t fields.
54920         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
54921         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
54922
54923 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
54924
54925         [BZ #3665]
54926         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
54927
54928 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54929
54930         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
54931         PTR_DEMANGLE.
54932
54933         [BZ #5246]
54934         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
54935         PTR_DEMANGLE.
54936
54937 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
54938
54939         [BZ #14797]
54940         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
54941         definitely overflow as x * y not x * y + z.
54942         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54943         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54944         * math/libm-test.inc (fma_test): Add more tests.
54945         (fma_test_towardzero): Likewise.
54946         (fma_test_downward): Likewise.
54947         (fma_test_upward): Likewise.
54948
54949 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
54950
54951         [BZ #157]
54952
54953         * include/stub-tag.h: Remove file.
54954         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
54955         '#include' of it.
54956         * manual/maint.texi (Porting): Don't reference it.
54957         * Makerules ($(objpfx)stubs): Likewise.
54958         * dirent/closedir.c: Don't include <stub-tag.h>.
54959         * dirent/dirfd.c: Likewise.
54960         * dirent/fdopendir.c: Likewise.
54961         * dirent/getdents.c: Likewise.
54962         * dirent/getdents64.c: Likewise.
54963         * dirent/opendir.c: Likewise.
54964         * dirent/readdir.c: Likewise.
54965         * dirent/readdir64.c: Likewise.
54966         * dirent/readdir64_r.c: Likewise.
54967         * dirent/readdir_r.c: Likewise.
54968         * dirent/rewinddir.c: Likewise.
54969         * dirent/seekdir.c: Likewise.
54970         * dirent/telldir.c: Likewise.
54971         * gmon/profil.c: Likewise.
54972         * grp/setgroups.c: Likewise.
54973         * inet/if_index.c: Likewise.
54974         * io/access.c: Likewise.
54975         * io/chdir.c: Likewise.
54976         * io/chmod.c: Likewise.
54977         * io/chown.c: Likewise.
54978         * io/close.c: Likewise.
54979         * io/dup.c: Likewise.
54980         * io/dup2.c: Likewise.
54981         * io/dup3.c: Likewise.
54982         * io/euidaccess.c: Likewise.
54983         * io/faccessat.c: Likewise.
54984         * io/fchdir.c: Likewise.
54985         * io/fchmod.c: Likewise.
54986         * io/fchmodat.c: Likewise.
54987         * io/fchown.c: Likewise.
54988         * io/fchownat.c: Likewise.
54989         * io/fcntl.c: Likewise.
54990         * io/flock.c: Likewise.
54991         * io/fstatfs.c: Likewise.
54992         * io/fstatfs64.c: Likewise.
54993         * io/fstatvfs.c: Likewise.
54994         * io/fstatvfs64.c: Likewise.
54995         * io/futimens.c: Likewise.
54996         * io/fxstat.c: Likewise.
54997         * io/fxstat64.c: Likewise.
54998         * io/fxstatat.c: Likewise.
54999         * io/fxstatat64.c: Likewise.
55000         * io/getcwd.c: Likewise.
55001         * io/isatty.c: Likewise.
55002         * io/lchmod.c: Likewise.
55003         * io/lchown.c: Likewise.
55004         * io/link.c: Likewise.
55005         * io/linkat.c: Likewise.
55006         * io/lseek.c: Likewise.
55007         * io/lseek64.c: Likewise.
55008         * io/lxstat64.c: Likewise.
55009         * io/mkdir.c: Likewise.
55010         * io/mkdirat.c: Likewise.
55011         * io/mkfifo.c: Likewise.
55012         * io/mkfifoat.c: Likewise.
55013         * io/open.c: Likewise.
55014         * io/open64.c: Likewise.
55015         * io/openat.c: Likewise.
55016         * io/openat64.c: Likewise.
55017         * io/pipe.c: Likewise.
55018         * io/pipe2.c: Likewise.
55019         * io/poll.c: Likewise.
55020         * io/posix_fadvise.c: Likewise.
55021         * io/posix_fadvise64.c: Likewise.
55022         * io/posix_fallocate.c: Likewise.
55023         * io/posix_fallocate64.c: Likewise.
55024         * io/read.c: Likewise.
55025         * io/readlink.c: Likewise.
55026         * io/readlinkat.c: Likewise.
55027         * io/rmdir.c: Likewise.
55028         * io/sendfile.c: Likewise.
55029         * io/sendfile64.c: Likewise.
55030         * io/statfs.c: Likewise.
55031         * io/statfs64.c: Likewise.
55032         * io/statvfs.c: Likewise.
55033         * io/statvfs64.c: Likewise.
55034         * io/symlink.c: Likewise.
55035         * io/symlinkat.c: Likewise.
55036         * io/ttyname.c: Likewise.
55037         * io/ttyname_r.c: Likewise.
55038         * io/umask.c: Likewise.
55039         * io/unlink.c: Likewise.
55040         * io/unlinkat.c: Likewise.
55041         * io/utime.c: Likewise.
55042         * io/utimensat.c: Likewise.
55043         * io/write.c: Likewise.
55044         * io/xmknod.c: Likewise.
55045         * io/xmknodat.c: Likewise.
55046         * io/xstat.c: Likewise.
55047         * io/xstat64.c: Likewise.
55048         * login/getpt.c: Likewise.
55049         * login/grantpt.c: Likewise.
55050         * login/unlockpt.c: Likewise.
55051         * math/e_acoshl.c: Likewise.
55052         * math/e_acosl.c: Likewise.
55053         * math/e_asinl.c: Likewise.
55054         * math/e_atan2l.c: Likewise.
55055         * math/e_atanhl.c: Likewise.
55056         * math/e_coshl.c: Likewise.
55057         * math/e_expl.c: Likewise.
55058         * math/e_fmodl.c: Likewise.
55059         * math/e_gammal_r.c: Likewise.
55060         * math/e_hypotl.c: Likewise.
55061         * math/e_j0l.c: Likewise.
55062         * math/e_j1l.c: Likewise.
55063         * math/e_jnl.c: Likewise.
55064         * math/e_lgammal_r.c: Likewise.
55065         * math/e_log10l.c: Likewise.
55066         * math/e_log2l.c: Likewise.
55067         * math/e_logl.c: Likewise.
55068         * math/e_powl.c: Likewise.
55069         * math/e_rem_pio2l.c: Likewise.
55070         * math/e_sinhl.c: Likewise.
55071         * math/e_sqrtl.c: Likewise.
55072         * math/fclrexcpt.c: Likewise.
55073         * math/fedisblxcpt.c: Likewise.
55074         * math/feenablxcpt.c: Likewise.
55075         * math/fegetenv.c: Likewise.
55076         * math/fegetexcept.c: Likewise.
55077         * math/fegetround.c: Likewise.
55078         * math/feholdexcpt.c: Likewise.
55079         * math/fesetenv.c: Likewise.
55080         * math/fesetround.c: Likewise.
55081         * math/feupdateenv.c: Likewise.
55082         * math/fgetexcptflg.c: Likewise.
55083         * math/fraiseexcpt.c: Likewise.
55084         * math/fsetexcptflg.c: Likewise.
55085         * math/ftestexcept.c: Likewise.
55086         * math/k_cosl.c: Likewise.
55087         * math/k_rem_pio2l.c: Likewise.
55088         * math/k_sinl.c: Likewise.
55089         * math/k_tanl.c: Likewise.
55090         * math/s_asinhl.c: Likewise.
55091         * math/s_atanl.c: Likewise.
55092         * math/s_cbrtl.c: Likewise.
55093         * math/s_erfl.c: Likewise.
55094         * math/s_expm1l.c: Likewise.
55095         * math/s_log1pl.c: Likewise.
55096         * math/s_tanhl.c: Likewise.
55097         * misc/acct.c: Likewise.
55098         * misc/brk.c: Likewise.
55099         * misc/chflags.c: Likewise.
55100         * misc/chroot.c: Likewise.
55101         * misc/fchflags.c: Likewise.
55102         * misc/fgetxattr.c: Likewise.
55103         * misc/flistxattr.c: Likewise.
55104         * misc/fremovexattr.c: Likewise.
55105         * misc/fsetxattr.c: Likewise.
55106         * misc/fsync.c: Likewise.
55107         * misc/ftruncate.c: Likewise.
55108         * misc/futimes.c: Likewise.
55109         * misc/futimesat.c: Likewise.
55110         * misc/getdomain.c: Likewise.
55111         * misc/getdtsz.c: Likewise.
55112         * misc/gethostid.c: Likewise.
55113         * misc/gethostname.c: Likewise.
55114         * misc/getloadavg.c: Likewise.
55115         * misc/getpagesize.c: Likewise.
55116         * misc/getsysstats.c: Likewise.
55117         * misc/getxattr.c: Likewise.
55118         * misc/gtty.c: Likewise.
55119         * misc/ioctl.c: Likewise.
55120         * misc/lgetxattr.c: Likewise.
55121         * misc/listxattr.c: Likewise.
55122         * misc/llistxattr.c: Likewise.
55123         * misc/lremovexattr.c: Likewise.
55124         * misc/lsetxattr.c: Likewise.
55125         * misc/lutimes.c: Likewise.
55126         * misc/madvise.c: Likewise.
55127         * misc/mincore.c: Likewise.
55128         * misc/mlock.c: Likewise.
55129         * misc/mlockall.c: Likewise.
55130         * misc/mmap.c: Likewise.
55131         * misc/mprotect.c: Likewise.
55132         * misc/msync.c: Likewise.
55133         * misc/munlock.c: Likewise.
55134         * misc/munlockall.c: Likewise.
55135         * misc/munmap.c: Likewise.
55136         * misc/preadv.c: Likewise.
55137         * misc/preadv64.c: Likewise.
55138         * misc/ptrace.c: Likewise.
55139         * misc/pwritev.c: Likewise.
55140         * misc/pwritev64.c: Likewise.
55141         * misc/readv.c: Likewise.
55142         * misc/reboot.c: Likewise.
55143         * misc/remap_file_pages.c: Likewise.
55144         * misc/removexattr.c: Likewise.
55145         * misc/revoke.c: Likewise.
55146         * misc/select.c: Likewise.
55147         * misc/setdomain.c: Likewise.
55148         * misc/setegid.c: Likewise.
55149         * misc/seteuid.c: Likewise.
55150         * misc/sethostid.c: Likewise.
55151         * misc/sethostname.c: Likewise.
55152         * misc/setregid.c: Likewise.
55153         * misc/setreuid.c: Likewise.
55154         * misc/setxattr.c: Likewise.
55155         * misc/sstk.c: Likewise.
55156         * misc/stty.c: Likewise.
55157         * misc/swapoff.c: Likewise.
55158         * misc/swapon.c: Likewise.
55159         * misc/sync.c: Likewise.
55160         * misc/syncfs.c: Likewise.
55161         * misc/syscall.c: Likewise.
55162         * misc/truncate.c: Likewise.
55163         * misc/ualarm.c: Likewise.
55164         * misc/usleep.c: Likewise.
55165         * misc/ustat.c: Likewise.
55166         * misc/utimes.c: Likewise.
55167         * misc/vhangup.c: Likewise.
55168         * misc/writev.c: Likewise.
55169         * posix/_exit.c: Likewise.
55170         * posix/alarm.c: Likewise.
55171         * posix/execve.c: Likewise.
55172         * posix/fexecve.c: Likewise.
55173         * posix/fork.c: Likewise.
55174         * posix/fpathconf.c: Likewise.
55175         * posix/getaddrinfo.c: Likewise.
55176         * posix/getegid.c: Likewise.
55177         * posix/geteuid.c: Likewise.
55178         * posix/getgid.c: Likewise.
55179         * posix/getgroups.c: Likewise.
55180         * posix/getlogin.c: Likewise.
55181         * posix/getlogin_r.c: Likewise.
55182         * posix/getpgid.c: Likewise.
55183         * posix/getpid.c: Likewise.
55184         * posix/getppid.c: Likewise.
55185         * posix/getresgid.c: Likewise.
55186         * posix/getresuid.c: Likewise.
55187         * posix/getsid.c: Likewise.
55188         * posix/getuid.c: Likewise.
55189         * posix/glob64.c: Likewise.
55190         * posix/nanosleep.c: Likewise.
55191         * posix/pathconf.c: Likewise.
55192         * posix/pause.c: Likewise.
55193         * posix/posix_madvise.c: Likewise.
55194         * posix/pread.c: Likewise.
55195         * posix/pread64.c: Likewise.
55196         * posix/pwrite.c: Likewise.
55197         * posix/pwrite64.c: Likewise.
55198         * posix/sched_getaffinity.c: Likewise.
55199         * posix/sched_getp.c: Likewise.
55200         * posix/sched_gets.c: Likewise.
55201         * posix/sched_primax.c: Likewise.
55202         * posix/sched_primin.c: Likewise.
55203         * posix/sched_rr_gi.c: Likewise.
55204         * posix/sched_setaffinity.c: Likewise.
55205         * posix/sched_setp.c: Likewise.
55206         * posix/sched_sets.c: Likewise.
55207         * posix/sched_yield.c: Likewise.
55208         * posix/setgid.c: Likewise.
55209         * posix/setlogin.c: Likewise.
55210         * posix/setpgid.c: Likewise.
55211         * posix/setresgid.c: Likewise.
55212         * posix/setresuid.c: Likewise.
55213         * posix/setsid.c: Likewise.
55214         * posix/setuid.c: Likewise.
55215         * posix/sleep.c: Likewise.
55216         * posix/spawni.c: Likewise.
55217         * posix/sysconf.c: Likewise.
55218         * posix/times.c: Likewise.
55219         * posix/wait.c: Likewise.
55220         * posix/wait3.c: Likewise.
55221         * posix/wait4.c: Likewise.
55222         * posix/waitpid.c: Likewise.
55223         * resolv/gai_sigqueue.c: Likewise.
55224         * resource/getpriority.c: Likewise.
55225         * resource/getrlimit.c: Likewise.
55226         * resource/getrusage.c: Likewise.
55227         * resource/nice.c: Likewise.
55228         * resource/setpriority.c: Likewise.
55229         * resource/setrlimit.c: Likewise.
55230         * resource/ulimit.c: Likewise.
55231         * rt/aio_cancel.c: Likewise.
55232         * rt/aio_fsync.c: Likewise.
55233         * rt/aio_read.c: Likewise.
55234         * rt/aio_sigqueue.c: Likewise.
55235         * rt/aio_suspend.c: Likewise.
55236         * rt/aio_write.c: Likewise.
55237         * rt/clock_getres.c: Likewise.
55238         * rt/clock_gettime.c: Likewise.
55239         * rt/clock_nanosleep.c: Likewise.
55240         * rt/clock_settime.c: Likewise.
55241         * rt/lio_listio.c: Likewise.
55242         * rt/mq_close.c: Likewise.
55243         * rt/mq_getattr.c: Likewise.
55244         * rt/mq_notify.c: Likewise.
55245         * rt/mq_open.c: Likewise.
55246         * rt/mq_receive.c: Likewise.
55247         * rt/mq_send.c: Likewise.
55248         * rt/mq_setattr.c: Likewise.
55249         * rt/mq_timedreceive.c: Likewise.
55250         * rt/mq_timedsend.c: Likewise.
55251         * rt/mq_unlink.c: Likewise.
55252         * rt/shm_open.c: Likewise.
55253         * rt/shm_unlink.c: Likewise.
55254         * rt/timer_create.c: Likewise.
55255         * rt/timer_delete.c: Likewise.
55256         * rt/timer_getoverr.c: Likewise.
55257         * rt/timer_gettime.c: Likewise.
55258         * rt/timer_settime.c: Likewise.
55259         * setjmp/__longjmp.c: Likewise.
55260         * setjmp/setjmp.c: Likewise.
55261         * signal/kill.c: Likewise.
55262         * signal/killpg.c: Likewise.
55263         * signal/raise.c: Likewise.
55264         * signal/sigaction.c: Likewise.
55265         * signal/sigaltstack.c: Likewise.
55266         * signal/sigblock.c: Likewise.
55267         * signal/sigignore.c: Likewise.
55268         * signal/sigintr.c: Likewise.
55269         * signal/signal.c: Likewise.
55270         * signal/sigpause.c: Likewise.
55271         * signal/sigpending.c: Likewise.
55272         * signal/sigqueue.c: Likewise.
55273         * signal/sigreturn.c: Likewise.
55274         * signal/sigset.c: Likewise.
55275         * signal/sigsetmask.c: Likewise.
55276         * signal/sigstack.c: Likewise.
55277         * signal/sigsuspend.c: Likewise.
55278         * signal/sigtimedwait.c: Likewise.
55279         * signal/sigvec.c: Likewise.
55280         * signal/sigwait.c: Likewise.
55281         * signal/sigwaitinfo.c: Likewise.
55282         * signal/sysv_signal.c: Likewise.
55283         * socket/accept.c: Likewise.
55284         * socket/accept4.c: Likewise.
55285         * socket/bind.c: Likewise.
55286         * socket/connect.c: Likewise.
55287         * socket/getpeername.c: Likewise.
55288         * socket/getsockname.c: Likewise.
55289         * socket/getsockopt.c: Likewise.
55290         * socket/isfdtype.c: Likewise.
55291         * socket/listen.c: Likewise.
55292         * socket/recv.c: Likewise.
55293         * socket/recvfrom.c: Likewise.
55294         * socket/recvmsg.c: Likewise.
55295         * socket/send.c: Likewise.
55296         * socket/sendmsg.c: Likewise.
55297         * socket/sendto.c: Likewise.
55298         * socket/setsockopt.c: Likewise.
55299         * socket/shutdown.c: Likewise.
55300         * socket/sockatmark.c: Likewise.
55301         * socket/socket.c: Likewise.
55302         * socket/socketpair.c: Likewise.
55303         * stdio-common/ctermid.c: Likewise.
55304         * stdio-common/cuserid.c: Likewise.
55305         * stdio-common/remove.c: Likewise.
55306         * stdio-common/rename.c: Likewise.
55307         * stdio-common/renameat.c: Likewise.
55308         * stdio-common/tempname.c: Likewise.
55309         * stdlib/getcontext.c: Likewise.
55310         * stdlib/makecontext.c: Likewise.
55311         * stdlib/setcontext.c: Likewise.
55312         * stdlib/swapcontext.c: Likewise.
55313         * stdlib/system.c: Likewise.
55314         * streams/fattach.c: Likewise.
55315         * streams/fdetach.c: Likewise.
55316         * streams/getmsg.c: Likewise.
55317         * streams/getpmsg.c: Likewise.
55318         * streams/putmsg.c: Likewise.
55319         * streams/putpmsg.c: Likewise.
55320         * sysdeps/unix/bsd/getpt.c: Likewise.
55321         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55322         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55323         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55325         Likewise.
55326         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55327         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55328         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55329         * sysvipc/msgctl.c: Likewise.
55330         * sysvipc/msgget.c: Likewise.
55331         * sysvipc/msgrcv.c: Likewise.
55332         * sysvipc/msgsnd.c: Likewise.
55333         * sysvipc/semctl.c: Likewise.
55334         * sysvipc/semget.c: Likewise.
55335         * sysvipc/semop.c: Likewise.
55336         * sysvipc/semtimedop.c: Likewise.
55337         * sysvipc/shmat.c: Likewise.
55338         * sysvipc/shmctl.c: Likewise.
55339         * sysvipc/shmdt.c: Likewise.
55340         * sysvipc/shmget.c: Likewise.
55341         * termios/tcdrain.c: Likewise.
55342         * termios/tcflow.c: Likewise.
55343         * termios/tcflush.c: Likewise.
55344         * termios/tcgetattr.c: Likewise.
55345         * termios/tcgetpgrp.c: Likewise.
55346         * termios/tcsendbrk.c: Likewise.
55347         * termios/tcsetattr.c: Likewise.
55348         * termios/tcsetpgrp.c: Likewise.
55349         * time/adjtime.c: Likewise.
55350         * time/clock.c: Likewise.
55351         * time/getitimer.c: Likewise.
55352         * time/gettimeofday.c: Likewise.
55353         * time/setitimer.c: Likewise.
55354         * time/settimeofday.c: Likewise.
55355         * time/stime.c: Likewise.
55356         * time/time.c: Likewise.
55357
55358 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55359
55360         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55361         /usr/old/bin.
55362
55363         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55364         instead of spaces.
55365         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55366
55367 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55368
55369         [BZ #14796]
55370         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55371         FE_TONEAREST before applying Dekker multiplication and Knuth
55372         addition.  Clear inexact exceptions and check for exact zero
55373         results afterwards.
55374         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55375         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55376         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55377         * math/libm-test.inc (fma_test): Add more tests.
55378         (fma_test_towardzero): Likewise.
55379         (fma_test_downward): Likewise.
55380         (fma_test_upward): Likewise.
55381         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55382         function.
55383         (libc_fesetround): New macro.
55384         (libc_fesetroundf): Likewise.
55385         (libc_fesetroundl): Likewise.
55386         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55387         function.
55388         (libc_fesetround_387): Likewise.
55389         (libc_fesetroundf): New macro.
55390         (libc_fesetround): Likewise.
55391         (libc_fesetroundl): Likewise.
55392         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55393         function.
55394         (libc_fesetroundf): New macro.
55395         (libc_fesetround): Likewise.
55396         (libc_fesetroundl): Likewise.
55397         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55398         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55399         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55400         libm_hidden_ver.
55401         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55402         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55403         libm_hidden_def.
55404         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55405         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55406         libm_hidden_ver.
55407         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55408         libm_hidden_def.
55409
55410         [BZ #3439]
55411         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55412         integer constant usable in #if and use that to give value to enum
55413         constant.
55414         (FE_DIVBYZERO): Likewise.
55415         (FE_UNDERFLOW): Likewise.
55416         (FE_OVERFLOW): Likewise.
55417         (FE_INVALID): Likewise.
55418         (FE_INVALID_SNAN): Likewise.
55419         (FE_INVALID_ISI): Likewise.
55420         (FE_INVALID_IDI): Likewise.
55421         (FE_INVALID_ZDZ): Likewise.
55422         (FE_INVALID_IMZ): Likewise.
55423         (FE_INVALID_COMPARE): Likewise.
55424         (FE_INVALID_SOFTWARE): Likewise.
55425         (FE_INVALID_SQRT): Likewise.
55426         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55427         (FE_TONEAREST): Likewise.
55428         (FE_TOWARDZERO): Likewise.
55429         (FE_UPWARD): Likewise.
55430         (FE_DOWNWARD): Likewise.
55431         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55432         (FE_DIVBYZERO): Likewise.
55433         (FE_OVERFLOW): Likewise.
55434         (FE_UNDERFLOW): Likewise.
55435         (FE_INEXACT): Likewise.
55436         (FE_TONEAREST): Likewise.
55437         (FE_DOWNWARD): Likewise.
55438         (FE_UPWARD): Likewise.
55439         (FE_TOWARDZERO): Likewise.
55440         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55441         (FE_UNDERFLOW): Likewise.
55442         (FE_OVERFLOW): Likewise.
55443         (FE_DIVBYZERO): Likewise.
55444         (FE_INVALID): Likewise.
55445         (FE_TONEAREST): Likewise.
55446         (FE_TOWARDZERO): Likewise.
55447         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55448         (FE_OVERFLOW): Likewise.
55449         (FE_UNDERFLOW): Likewise.
55450         (FE_DIVBYZERO): Likewise.
55451         (FE_INEXACT): Likewise.
55452         (FE_TONEAREST): Likewise.
55453         (FE_TOWARDZERO): Likewise.
55454         (FE_UPWARD): Likewise.
55455         (FE_DOWNWARD): Likewise.
55456         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55457         (FE_DIVBYZERO): Likewise.
55458         (FE_OVERFLOW): Likewise.
55459         (FE_UNDERFLOW): Likewise.
55460         (FE_INEXACT): Likewise.
55461         (FE_TONEAREST): Likewise.
55462         (FE_DOWNWARD): Likewise.
55463         (FE_UPWARD): Likewise.
55464         (FE_TOWARDZERO): Likewise.
55465
55466 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55467
55468         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55469
55470 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55471
55472         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55473         commands.  Quote $PWD.
55474         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55475         -x" by "export".
55476         (remove_newlines): Remove.
55477
55478 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55479
55480         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55481         * stdlib/stdlib.h (atof): Moved to ...
55482         * include/bits/stdlib-float.h: Here.  New file.
55483         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55484         * stdlib/bits/stdlib-float.h: New file.
55485         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55486         -mno-sse -mno-mmx.
55487         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55488         <xmmintrin.h>.
55489
55490 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55491
55492         * conform/conformtest.pl (@headers): Add fenv.h.
55493         * conform/data/fenv.h-data: New file.
55494         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55495         include of <math/fenv.h>.
55496
55497         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55498         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55499         && !UNIX98].  Enables tests for XOPEN2K8.
55500         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55501         POSIX2008]: Likewise.
55502
55503         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55504         (struct rusage): Do not expect type or its members.
55505
55506         [BZ #3439]
55507         * math/math.h (FP_NAN): Define macro to integer constant usable in
55508         #if and use that to give value to enum constant.
55509         (FP_INFINITE): Likewise.
55510         (FP_ZERO): Likewise.
55511         (FP_SUBNORMAL): Likewise.
55512         (FP_NORMAL): Likewise.
55513
55514 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55515
55516         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55517         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55518         arguments.
55519
55520 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55521
55522         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55523         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55524         autoconf-time if not.
55525         * configure.in: Remove AC_PREREQ.
55526
55527 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55528
55529         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55530         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55531         of the internal implementation.
55532
55533 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55534
55535         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55536         except include of <misc/sys/syslog.h>.
55537
55538 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55539
55540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55541         function returns with a NULL context exit with zero.
55542
55543 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55544
55545         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55546
55547 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55548
55549         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55550         (run_program_cmd): This.
55551         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55552         (tst_langinfo): New variable.  Use it.
55553
55554 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55555
55556         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55557         floating point opcodes.
55558
55559 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55560
55561         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55562         variable.
55563
55564         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55565
55566         * sysdeps/mach/hurd/powerpc: Remove directory.
55567         * sysdeps/mach/powerpc: Likewise.
55568
55569 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55570
55571         * scripts/check-local-headers.sh: Ignore c++ headers.
55572
55573 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55574
55575         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55576         __libc_cleanup_region_start argument.
55577
55578 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55579
55580         [BZ #14784]
55581         [BZ #14785]
55582         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55583         x * y using scaling, not as x * y + z.
55584         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55585         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55586         * math/libm-test.inc (fma_test): Add more tests.
55587         (fma_test_towardzero): Likewise.
55588         (fma_test_downward): Likewise.
55589         (fma_test_upward): Likewise.
55590
55591 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55592
55593         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55594
55595 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55596
55597         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55598         New variable.
55599
55600 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55601
55602         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55603
55604 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55605
55606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55607         Fix sort order.
55608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55609         Likewise.
55610
55611 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55612
55613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55614         Fix the order of the list for glibc 2.17.
55615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55616         Likewise.
55617
55618 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55619
55620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55621
55622 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55623
55624         [BZ #14610]
55625         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55626         for low part of x being zero before using __atanl (y).
55627         * math/libm-test.inc (atan2_test): Add another test.
55628
55629         * manual/install.texi (Configuring and compiling): Document
55630         general use of test-wrapper and test-wrapper-env.
55631         * INSTALL: Regenerated.
55632
55633         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55634         (__fma): Do not extract and scale down low bits on after-rounding
55635         systems when result rounded to normal precision would have normal
55636         exponent.
55637         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55638         (__fmal): Do not extract and scale down low bits on after-rounding
55639         systems when result rounded to normal precision would have normal
55640         exponent.
55641         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55642         (__fmal): 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         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55646         macro.
55647         (fma_test): Add more tests.
55648         (fma_test_towardzero): Likewise.
55649         (fma_test_downward): Likewise.
55650         (fma_test_upward): Likewise.
55651
55652 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55653
55654         * sysdeps/i386/tininess.h: Renamed to ...
55655         * sysdeps/x86/tininess.h: This.
55656         * sysdeps/x86_64/tininess.h: Removed.
55657
55658 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55659
55660         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55661         input.  Use $(build-program-cmd).
55662         ($(objpfx)tst-array1-static.out): Likewise.
55663         ($(objpfx)tst-array2.out): Likewise.
55664         ($(objpfx)tst-array3.out): Likewise.
55665         ($(objpfx)tst-array4.out): Likewise.
55666         ($(objpfx)tst-array5.out): Likewise.
55667         ($(objpfx)tst-array5-static.out): Likewise.
55668
55669 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55670
55671         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55672         if defined.
55673
55674         * nss/nsswitch.h (nss_interface_function): Provide new
55675         macro for use with NSS functions.
55676         * grp/initgroups.c: Use new macro.
55677         * nss/getXXbyYY.c: Likewise.
55678         * nss/getXXbyYY_r.c: Likewise.
55679         * nss/getXXent.c: Likewise.
55680         * nss/getXXent_r.c: Likewise.
55681         * sysdeps/posix/getaddrinfo.c: Likewise.
55682
55683 2012-10-30  Andreas Jaeger  <aj@suse.de>
55684
55685         * po/ru.po: Update Russion translation from translation project.
55686
55687 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55688
55689         [BZ #14152]
55690         [BZ #14783]
55691         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55692         result and shift together with sticky bit instead of replicating
55693         round-to-nearest rounding.
55694         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55695         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55696         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55697         missing underflow exceptions.
55698         (fma_test_towardzero): Add more tests.
55699         (fma_test_downward): Likewise.
55700         (fma_test_upward): Likewise.
55701
55702         [BZ #14047]
55703         * sysdeps/generic/tininess.h: New file.
55704         * sysdeps/i386/tininess.h: Likewise.
55705         * sysdeps/sh/tininess.h: Likewise.
55706         * sysdeps/x86_64/tininess.h: Likewise.
55707         * stdlib/tst-strtod-underflow.c: Likewise.
55708         * stdlib/tst-tininess.c: Likewise.
55709         * stdlib/strtod_l.c: Include <tininess.h>.
55710         (round_and_return): Do not set errno for exact underflow cases.
55711         Force an underflow exception when setting errno for underflow.
55712         Determine underflow based on rounding to normal precision if
55713         TININESS_AFTER_ROUNDING.
55714         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55715         ERANGE for exact underflow cases.
55716         * stdlib/Makefile (tests): Add tst-tininess and
55717         tst-strtod-underflow.
55718         ($(objpfx)tst-tininess): Use $(link-libm).
55719         ($(objpfx)tst-strtod-underflow): Likewise.
55720
55721 2012-10-30  Andreas Jaeger  <aj@suse.de>
55722
55723         [BZ#14767]
55724         * elf/Makefile (tests): Remove conditional for have-initfini-array
55725         since this is now always required and the variable does not exist
55726         anymore.
55727         (tests-static): Likewise.
55728         (modules-names): Likewise.
55729
55730         * po/eo.po: Add Esperanto translation from translation project.
55731
55732         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55733         merged with constructor/destructor.
55734         (init_array): Likewise.
55735         * elf/tst-array2dep.c (fini_array): Likewise.
55736         (init_array): Likewise.
55737
55738 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55739
55740         * manual/message.texi: Delete @cartouche tags.
55741
55742 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55743
55744         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55745         EOPNOTSUPP.
55746         * sysdeps/mach/hurd/fsync.c: Likewise.
55747
55748         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55749         [_POSIX_REALTIME_SIGNALS]: Change condition to
55750         [_POSIX_REALTIME_SIGNALS > 0].
55751
55752 2012-10-27  Andreas Jaeger  <aj@suse.de>
55753
55754         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55755         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55756         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55757         [__WORDSIZE != 64]: Likewise.
55758
55759 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55760
55761         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55762         *  iconvdata/tst-tables.sh: Likewise.
55763
55764 2012-10-25  David S. Miller  <davem@davemloft.net>
55765
55766         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55767         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55768         of strtoull.
55769
55770         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55771         ifunc-impl-list.c
55772         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55773         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55774         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55775         file.
55776
55777 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55778
55779         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55780         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55781         __getdirentries.
55782
55783 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55784             Jim Blandy  <jimb@codesourcery.com>
55785
55786         * scripts/cross-test-ssh.sh: New file.
55787         * manual/install.texi (Configuring and compiling): Document use of
55788         cross-test-ssh.sh.
55789         * INSTALL: Regenerated.
55790
55791 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55792
55793         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55794         EOPNOTSUPP.
55795
55796 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55797
55798         * Makeconfig (run-program-prefix): Fix comment.
55799
55800 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55801             Jim Blandy  <jimb@codesourcery.com>
55802
55803         * Makeconfig (test-wrapper): New variable,
55804         (test-wrapper-env): Likewise.
55805         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55806         (run-built-tests): Define to yes.
55807         (run-program-prefix): Use $(test-wrapper).
55808         (built-program-cmd): Likewise.
55809         * Rules (make-test-out): Use $(test-wrapper-env) and
55810         $(host-built-program-cmd).
55811         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55812         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55813         tst-pathopt.sh.
55814         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55815         $(test-wrapper-env) to tst-rtld-load-self.sh.
55816         ($(objpfx)order2.out): Use $(test-wrapper).
55817         ($(objpfx)tst-initorder.out): Likewise.
55818         ($(objpfx)tst-initorder2.out): Likewise.
55819         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55820         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55821         (test_wrapper_env): New variable.  Use it to run ld.so.
55822         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55823         Use it to run ld.so.
55824         (test_wrapper_env): Likewise.
55825         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55826         $(test-wrapper) to run-iconv-test.sh.
55827         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55828         (ICONV): Use $test_wrapper.
55829         * posix/Makefile ($(objpfx)globtest.out): Pass
55830         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55831         globtest.sh, not $(run-program-prefix).
55832         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55833         (test_wrapper): Likewise.
55834         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55835         set together with run_via_rtld_prefix.
55836         (run_program_prefix): Define in terms of test_wrapper and
55837         run_via_rtld_prefix.
55838
55839 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55840
55841         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
55842         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
55843         Targets removed.
55844
55845         [BZ #14743]
55846         * include/time.h: Remove librt_hidden_proto (clock_gettime).
55847         Declare __clock_getres, __clock_gettime, __clock_settime,
55848         __clock_nanosleep, and __clock_getcpuclockid.
55849         * rt/clock_gettime.c: Define __clock_gettime as an alias.
55850         Remove librt_hidden_def (clock_gettime).
55851         * sysdeps/unix/clock_gettime.c: Likewise.
55852         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
55853         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
55854         * rt/clock_getres.c: Define __clock_getres as an alias.
55855         * sysdeps/posix/clock_getres.c: Likewise.
55856         * rt/clock_settime.c: Define __clock_settime as an alias.
55857         * sysdeps/unix/clock_settime.c: Likewise.
55858         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
55859         * sysdeps/unix/clock_nanosleep.c: Likewise.
55860         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
55861         * rt/clock-compat.c: New file.
55862         * rt/Makefile (librt-routines): Add clock-compat and move
55863         $(clock-routines) to ...
55864         (routines): ... here, new variable.
55865         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
55866         Don't add get_clockfreq here.
55867         * rt/Versions (libc: GLIBC_2.17): New version set.
55868         Add clock_* symbols here.
55869         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
55870         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
55871         (GLIBC_2.17): Add clock_* symbols.
55872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
55873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
55874         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
55875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55876         Likewise.
55877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55878         Likewise.
55879         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
55880         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
55881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
55882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
55883         * NEWS: Mention the move.
55884
55885         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
55886         Use __open, __read, __close rather than their public counterparts.
55887         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55888         (__get_clockfreq_via_cpuinfo): Likewise.
55889         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
55890         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
55891
55892         * config.h.in (HAVE_IFUNC): New #undef.
55893         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
55894         was successful.
55895         * configure: Regenerated.
55896
55897 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55898
55899         * configure.in: Move READELF check to start of file.
55900         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
55901         libc_cv_asm_gnu_indirect_function in the process.
55902         * configure: Regenerated.
55903
55904 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55905
55906         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
55907         send the output to /dev/null.
55908         (libc_cv_cc_with_libunwind): Likewise.
55909         (libc_cv_as_noexecstack): Likewise.
55910         * configure: Regenerate.
55911
55912 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55913
55914         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
55915
55916         * posix/globtest.sh (TMPDIR): Do not set.
55917         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
55918         (testout): Likewise.
55919
55920 2012-10-24  Andreas Jaeger  <aj@suse.de>
55921
55922         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
55923         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
55924         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
55925         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
55926         posix_fadvise64, posix_fallocate64.
55927
55928         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
55929         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
55930         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
55931         Likewise.
55932         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
55933         Likewise.
55934         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
55935
55936         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
55937         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
55938         <bits/fcntl-linux.h>.
55939         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
55940
55941         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
55942         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
55943         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
55944         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
55945         [__WORDSIZE != 64]: Likewise.
55946
55947 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55948
55949         * Makeconfig (run-built-tests): New variable.
55950         * Rules [$(cross-compiling) = yes]: Change condition to
55951         [$(run-built-tests) = no].
55952         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
55953         to [$(run-built-tests) = yes].
55954         * elf/Makefile [$(cross-compiling) = no]: Likewise.
55955         * grp/Makefile [$(cross-compiling) = no]: Likewise.
55956         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
55957         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
55958         * intl/Makefile [$(cross-compiling) = no]: Likewise.
55959         * io/Makefile [$(cross-compiling) = no]: Likewise.
55960         * libio/Makefile [$(cross-compiling) = no]: Likewise.
55961         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
55962         * misc/Makefile [$(cross-compiling) = no]: Likewise.
55963         * posix/Makefile [$(cross-compiling) = no]: Likewise.
55964         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
55965         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
55966         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
55967         * string/Makefile [$(cross-compiling) = no]: Likewise.
55968
55969         * posix/Makefile ($(objpfx)globtest.out): Pass
55970         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
55971         $(rtld-installed-name).
55972         * posix/globtest.sh (elf_objpfx): Remove variable.
55973         (rtld_installed_name): Likewise.
55974         (library_path): Likewise.
55975         (run_program_prefix): New variable.  Use for running globtest
55976         binary.
55977
55978 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
55979             Joseph Myers  <joseph@codesourcery.com>
55980
55981         * Makeconfig (host-built-program-cmd): New variable.
55982         * elf/Makefile (tst-stackguard1-ARGS): Use
55983         $(host-built-program-cmd).
55984         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
55985         (tst-spawn-ARGS): Likewise.
55986         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
55987
55988 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
55989             Jim Blandy  <jimb@codesourcery.com>
55990
55991         * Makeconfig (run-via-rtld-prefix): New variable.
55992         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
55993         (built-program-cmd): Likewise.
55994
55995 2012-10-22  Andreas Jaeger  <aj@suse.de>
55996
55997         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
55998         __O_RSYNC if it exists, otherwise to O_SYNC.
55999
56000 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56001             Joseph Myers  <joseph@codesourcery.com>
56002
56003         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56004         /dev/null.
56005         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56006         from /dev/null
56007         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56008         /dev/null.
56009
56010 2012-10-22  Andreas Jaeger  <aj@suse.de>
56011
56012         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56013         Define always.
56014         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56015
56016         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56017         bits/fcntl-linux.h.
56018
56019         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56020         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56021
56022         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56023         to __O_LARGEFILE.
56024         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56025         to __O_LARGEFILE.
56026
56027 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56028             Joseph Myers  <joseph@codesourcery.com>
56029
56030         * config.make.in (NM): New variable.
56031
56032 2012-10-21  Andreas Jaeger  <aj@suse.de>
56033
56034         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56035         definitions and declarations that are provided by
56036         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56037
56038 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56039
56040         [BZ #14683]
56041         * elf/Makefile (tests-static): Add tst-leaks1-static.
56042         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56043         ($(objpfx)tst-leaks1-static): New rule.
56044         ($(objpfx)tst-leaks1-static-mem): Likewise.
56045         (tst-leaks1-static-ENV): New macro.
56046         * elf/dl-open.c (dl_open_worker): Check the main application
56047         only if SHARED is defined.
56048         * elf/tst-leaks1-static.c: New file.
56049
56050 2012-10-20  Andreas Jaeger  <aj@suse.de>
56051
56052         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56053         generic values for Linux.
56054         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56055         and declarations that are provided by <bits/fcntl-linux.h> and
56056         include <bits/fcntl-linux.h>.
56057         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56058         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56059
56060 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56061
56062         * io/fcntl.h: Move include of <bits/types.h> to the top and
56063         include it unconditionally.
56064
56065 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56066
56067         * wcsmbs/Makefile (tests-ifunc): New variable.
56068         (tests): Add $(tests-ifunc).
56069         * wcsmbs/test-wcschr-ifunc.c: New file.
56070         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56071         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56072         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56073         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56074         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56075
56076         * string/Makefile (tests-ifunc): New variable.
56077         (tests): Add $(tests-ifunc).
56078         * string/test-memccpy.c (TEST_NAME): New macro.
56079         * string/test-memchr.c (TEST_NAME): Likewise.
56080         * string/test-memcmp.c (TEST_NAME): Likewise.
56081         * string/test-memcpy.c (TEST_NAME): Likewise.
56082         * string/test-memmem.c (TEST_NAME): Likewise.
56083         * string/test-memmove.c (TEST_NAME): Likewise.
56084         * string/test-memset.c (TEST_NAME): Likewise.
56085         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56086         * string/test-stpcpy.c (TEST_NAME): Likewise.
56087         * string/test-stpncpy.c (TEST_NAME): Likewise.
56088         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56089         * string/test-strcasestr.c (TEST_NAME): Likewise.
56090         * string/test-strcat.c (TEST_NAME): Likewise.
56091         * string/test-strchr.c (TEST_NAME): Likewise.
56092         * string/test-strcmp.c(TEST_NAME): Likewise.
56093         * string/test-strcpy.c (TEST_NAME): Likewise.
56094         * string/test-strcspn.c (TEST_NAME): Likewise.
56095         * string/test-strlen.c (TEST_NAME): Likewise.
56096         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56097         * string/test-strncmp.c (TEST_NAME): Likewise.
56098         * string/test-strncpy.c (TEST_NAME): Likewise.
56099         * string/test-strnlen.c (TEST_NAME): Likewise.
56100         * string/test-strpbrk.c (TEST_NAME): Likewise.
56101         * string/test-strrchr.c (TEST_NAME): Likewise.
56102         * string/test-strspn.c (TEST_NAME): Likewise.
56103         * string/test-strstr.c (TEST_NAME): Likewise.
56104         * string/test-bcopy-ifunc.c: New file.
56105         * string/test-bzero-ifunc.c: Likewise.
56106         * string/test-memccpy-ifunc.c: Likewise.
56107         * string/test-memchr-ifunc.c: Likewise.
56108         * string/test-memcmp-ifunc.c: Likewise.
56109         * string/test-memcpy-ifunc.c: Likewise.
56110         * string/test-memmem-ifunc.c: Likewise.
56111         * string/test-memmove-ifunc.c: Likewise.
56112         * string/test-mempcpy-ifunc.c: Likewise.
56113         * string/test-memset-ifunc.c: Likewise.
56114         * string/test-rawmemchr-ifunc.c: Likewise.
56115         * string/test-stpcpy-ifunc.c: Likewise.
56116         * string/test-stpncpy-ifunc.c: Likewise.
56117         * string/test-strcasecmp-ifunc.c: Likewise.
56118         * string/test-strcasestr-ifunc.c: Likewise.
56119         * string/test-strcat-ifunc.c: Likewise.
56120         * string/test-strchr-ifunc.c: Likewise.
56121         * string/test-strchrnul-ifunc.c: Likewise.
56122         * string/test-strcmp-ifunc.c: Likewise.
56123         * string/test-strcpy-ifunc.c: Likewise.
56124         * string/test-strcspn-ifunc.c: Likewise.
56125         * string/test-strlen-ifunc.c: Likewise.
56126         * string/test-strncasecmp-ifunc.c: Likewise.
56127         * string/test-strncat-ifunc.c: Likewise.
56128         * string/test-strncmp-ifunc.c: Likewise.
56129         * string/test-strncpy-ifunc.c: Likewise.
56130         * string/test-strnlen-ifunc.c: Likewise.
56131         * string/test-strpbrk-ifunc.c: Likewise.
56132         * string/test-strrchr-ifunc.c: Likewise.
56133         * string/test-strspn-ifunc.c: Likewise.
56134         * string/test-strstr-ifunc.c: Likewise.
56135
56136         * debug/Makefile (tests-ifunc): New variable.
56137         (tests): Add $(tests-ifunc).
56138         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56139         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56140         * debug/test-stpcpy_chk-ifunc.c: New file.
56141         * debug/test-strcpy_chk-ifunc.c: Likewise.
56142
56143 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56144
56145         [BZ #13601]
56146         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56147         header is not read in.
56148
56149 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56150
56151         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56152         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56153         directly.  Pass built executable to script as
56154         $(built-program-cmd).
56155         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56156         $testprogram without using LD_LIBRARY_PATH and $ldso.
56157
56158         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56159         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56160         $(rtld-installed-name).
56161         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56162         (rtld_installed_name): Likewise.
56163         (library_path): Likewise.
56164         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56165         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56166         $(run-program-prefix) to tst-tables.sh.
56167         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56168         it to run tst-table-from and tst-table-to.
56169         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56170         Pass it to tst-table.sh.
56171         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56172         $(run-program-prefix) to tst-gettext.sh.
56173         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56174         tst-translit.sh.
56175         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56176         tst-gettext2.sh.
56177         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56178         to run tst-gettext.
56179         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56180         to run tst-gettext2.
56181         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56182         to run tst-translit.
56183         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56184         $(run-program-prefix) to tst-mtrace.sh.
56185         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56186         to run tst-mtrace.
56187         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56188         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56189         $(rtld-installed-name).
56190         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56191         (rtld_installed_name): Likewise.
56192         (run_program_prefix): New variable.  Use it to run wordexp-test.
56193
56194         * Makeconfig (ARCH): Remove all definitions.
56195         (machine): Likewise.
56196         [ARCH]: Remove conditional code.
56197         [!objdir]: Give error.
56198         [!objdir] (objpfx): Remove.
56199         [!objdir] (common-objpfx): Likewise.
56200         [!objdir] (common-objdir): Likewise.
56201         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56202         AC_CONFIG_FILES call.
56203         * configure: Regenerated.
56204
56205         [BZ #13888]
56206         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56207         or TMPDIR.
56208         (testout): Likewise.
56209
56210         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56211         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56212         $(rtld-installed-name).
56213         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56214         (rtld_installed_name): Likwise.
56215         (runit): Remove function.
56216         (run_getconf): New variable,  Use it for running getconf binary.
56217
56218 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56219
56220         [BZ #14716]
56221         * string/test-memmem.c (check_result): New function.
56222         (do_one_test): Use it.
56223         (check1): New function.
56224         (test_main): Use it.
56225
56226 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56227
56228         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56229
56230 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56231
56232         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56233         (_G_LSEEK64): Likewise.
56234         (_G_MMAP64): Likewise.
56235         (_G_FSTAT64): Likewise.
56236         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56237         (_G_LSEEK64): Likewise.
56238         (_G_MMAP64): Likewise.
56239         (_G_FSTAT64): Likewise.
56240         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56241         unconditional.  Call __mmap64 directly.
56242         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56243         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56244         __lseek64 directly.
56245         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56246         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56247         __mmap64 directly.
56248         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56249         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56250         __lseek64 directly.
56251         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56252         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56253         __lseek64 directly.
56254         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56255         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56256         __lseek64 directly.
56257         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56258         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56259         __fxstat64 directly.
56260         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56261         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56262         unconditional.
56263         (freopen64) [!_G_OPEN64]: Remove conditional code.
56264         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56265         unconditional.
56266         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56267         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56268         unconditional.
56269         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56270         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56271         unconditional.
56272         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56273         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56274         unconditional.
56275         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56276         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56277         unconditional.
56278         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56279         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56280         unconditional.
56281         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56282         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56283         unconditional.
56284         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56285
56286 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56287
56288         [BZ #12140]
56289         * manual/memory.texi (Malloc Tunable Parameters): Add note
56290         about free list pointers overwriting some perturb bytes.
56291         Wording suggested by Roland McGrath.
56292
56293 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56294
56295         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56296         (lgamma_test): Likewise.
56297         (tgamma_test): Likewise.
56298
56299 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56300
56301         [BZ #14700]
56302         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56303         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56304
56305 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56306
56307         * NEWS: Mention BZ #14716.
56308         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56309         when removing AVAILABLE1_USES_J macro.
56310
56311 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56312
56313         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56314         (__bswap_64): __uint64_t for unsigned 64-bit int.
56315
56316 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56317
56318         * include/string.h (memmem): Declare libc hidden alias.
56319         * string/memmem.c (memmem): Define libc hidden alias.
56320         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56321         __read, __close instead of open, read, close.
56322
56323 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56324
56325         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56326         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56327         global and hidden.
56328         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56329         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56330         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56331         Likewise.
56332         (__rawmemchr_sse2): Likewise.
56333         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56334         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56335         (__strchr_sse2): Likewise.
56336         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56337         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56338         (__strcasecmp_sse2): Likewise.
56339         (__strncasecmp_sse2): Likewise.
56340         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56341         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56342         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56343         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56344         (__strrchr_sse2): Likewise.
56345         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56346         ifunc-impl-list.c.
56347         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56348         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56349         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56350         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56351         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56352         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56353         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56354         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56355         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56356         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56357         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56358         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56359         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56360         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56361         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56362         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56363         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56364         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56365         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56366         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56367         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56368         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56369         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56370         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56371         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56372         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56373         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56374         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56375         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56376         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56377
56378         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56379         global and hidden.
56380         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56381         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56382         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56383         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56384         Likewise.
56385         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56386         Likewise.
56387         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56388         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56389         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56390         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56391         ifunc-impl-list.c.
56392         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56393         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56394         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56395         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56396         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56397         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56398         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56399         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56400         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56401         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56402         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56403         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56404         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56405         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56406         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56407         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56408         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56409         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56410         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56411         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56412         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56413         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56414         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56415         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56416         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56417         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56418         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56419         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56420         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56421         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56422         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56423         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56424         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56425         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56426         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56427         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56428         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56429         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56430         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56431         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56432         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56433
56434         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56435         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56436         * include/ifunc-impl-list.h: New file.
56437         * misc/ifunc-impl-list.c: Likewise.
56438         * misc/Makefile (routines): Add ifunc-impl-list.
56439         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56440         * string/test-string.h: Include <ifunc-impl-list.h>.
56441         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56442         TEST_NAME]: New variables.
56443         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56444         are defined.
56445         (test_init): Call __libc_ifunc_impl_list to initialize
56446         func_list if TEST_IFUNC and TEST_NAME are defined.
56447
56448         * string/Makefile (strop-tests): Add bcopy and bzero.
56449         * string/test-bcopy.c: New file.
56450         * string/test-bzero.c: Likewise.
56451         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56452         defined.
56453         * string/test-memset.c: Support bzero test if TEST_BZERO is
56454         defined.
56455         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56456         __libc_memmove.
56457         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56458         __libc_memset.
56459         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56460         of memset.
56461
56462 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56463
56464         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56465         * configure: Regenerated.
56466
56467         * Makeconfig (+link-static-before-libc): Don't include
56468         $(link-static-libc).
56469
56470         * libio/libio.h (_IO_pos_t): Remove.
56471
56472 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56473
56474         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56475         McGrath.
56476
56477 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56478
56479         * crypt/crypt-entry.c: Include fips-private.h.
56480         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56481         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56482         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56483         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56484
56485 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56486
56487         * crypt/crypt-private.h: Include stdbool.h.
56488         (_ufc_setup_salt_r): Return bool.
56489         * crypt/crypt-entry.c: Include errno.h.
56490         (__crypt_r): Return NULL with EINVAL for bad salt.
56491         * crypt/crypt_util.c (bad_for_salt): New.
56492         (_ufc_setup_salt_r): Check that salt is long enough and within
56493         the specified alphabet.
56494         * crypt/badsalttest.c: New file.
56495         * crypt/Makefile (tests): Add it.
56496         ($(objpfx)badsalttest): New.
56497
56498 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56499
56500         * NEWS: Add entry for BZ #14602.
56501
56502 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56503
56504         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56505         type-generic.
56506         * math/libm-test.inc: Update comment listing what functions and
56507         macros are tested.
56508         (isgreater_test): New function.
56509         (isgreaterequal_test): Likewise.
56510         (isless_test): Likewise.
56511         (islessequal_test): Likewise.
56512         (islessgreater_test): Likewise.
56513         (isunordered_test): Likewise.
56514         (main): Call the new functions.
56515
56516 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56517
56518         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56519         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56520         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56521         * sysdeps/i386/configure: Regenerated.
56522         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56523         * sysdeps/mach/configure: Regenerated.
56524         * sysdeps/mach/hurd/configure: Regenerated.
56525         * sysdeps/powerpc/configure: Regenerated.
56526         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56527         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56528         * sysdeps/s390/s390-32/configure: Regenerated.
56529         * sysdeps/s390/s390-64/configure: Regenerated.
56530         * sysdeps/sh/configure: Regenerated.
56531         * sysdeps/sparc/configure: Regenerated.
56532         * sysdeps/unix/sysv/linux/configure: Regenerated.
56533         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56534         * sysdeps/x86_64/configure: Regenerated.
56535
56536         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56537         defined.  Don't check if MAP is NULL.
56538
56539 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56540
56541         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56542         (_G_stat64): Likewise.
56543         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56544         (_G_stat64): Likewise.
56545         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56546         instead of struct _G_stat64.
56547         * libio/fileops.c (mmap_remap_check): Likewise.
56548         (decide_maybe_mmap): Likewise.
56549         (_IO_new_file_seekoff): Likewise.
56550         (_IO_file_stat): Likewise.
56551         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56552         _G_off64_t.
56553         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56554         instead of struct _G_stat64.
56555         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56556
56557 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56558
56559         [BZ #14602]
56560         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56561         Replace with ...
56562         (CHECK_EOL): New macro.
56563         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56564         CHECK_EOL.
56565         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56566         Replace with CHECK_EOL.
56567         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56568         Replace with CHECK_EOL.
56569
56570 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56571
56572         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56573         type-generic.
56574         * math/libm-test.inc: Update comment listing what functions and
56575         macros are tested.
56576         (finite_test): New function.
56577         (isinf_test): Likewise.
56578         (isnan_test): Likewise.
56579         (fpclassify_test): Test subnormal input.
56580         (isfinite_test): Likewise.
56581         (isnormal_test): Likewise.
56582         (main): Call the new functions.
56583
56584 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56585
56586         [BZ #14660]
56587         * Makerules (%.dynsym): Force C locale when running
56588         $(OBJDUMP) --dynamic-syms.
56589
56590 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56591
56592         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56593         <stdint.h>.
56594
56595 2012-10-06  David S. Miller  <davem@davemloft.net>
56596
56597         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56598         upper 32-bits of the length value in %o2 since we use branch-on-register
56599         tests which consider the entire 64-bit register.
56600
56601 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56602
56603         * string/test-strstr.c (check2): Add a test for page boundary.
56604
56605 2012-10-05  David S. Miller  <davem@davemloft.net>
56606
56607         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56608         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56609         file.
56610         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56611         sysdep_routines.
56612         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56613         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56614         and bzero when HWCAP_SPARC_CRYPTO is present.
56615
56616 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56617
56618         [BZ #14602]
56619         * string/test-strstr.c (check2): New function.
56620         (test_main): Call check2.
56621
56622         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56623         and bug-strchr1.
56624         * string/bug-strcasestr1.c (do_test): Moved to ...
56625         * string/test-strcasestr.c (check1): Here.  New function.
56626         (do_one_test): Break out result checking code into ...
56627         (check_result): This.  New function.
56628         (do_one_test): Call check_result.
56629         (test_main): Call check1.
56630         * string/bug-strchr1.c (do_test): Moved to ...
56631         * string/test-strchr.c (check1): Here.  New function.
56632         (do_one_test): Break out result checking code into ...
56633         (check_result): This.  New function.
56634         (do_one_test): Call check_result.
56635         (test_main): Call check1.
56636         * string/bug-strstr1.c (main): Moved to ...
56637         * string/test-strstr.c (check1): Here.  New function.
56638         (do_one_test): Break out result checking code into ...
56639         (check_result): This.  New function.
56640         (do_one_test): Call check_result.
56641         (test_main): Call check1.
56642         * string/bug-strcasestr1.c: Removed.
56643         * string/bug-strchr1.c: Likewise.
56644         * string/bug-strstr1.c: Likewise.
56645
56646         * elf/Makefile (dl-routines): Add hwcaps.
56647         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56648         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56649         (_dl_important_hwcaps): Moved to ...
56650         * elf/dl-hwcaps.c: Here.  New file.
56651         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56652
56653         [BZ #14557]
56654         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56655         if IS_IN_rtld isn't defined.
56656
56657         * elf/dl-support.c (_dl_sysinfo_map): New.
56658         Include "get-dynamic-info.h" and "setup-vdso.h".
56659         (_dl_non_dynamic_init): Call setup_vdso.
56660         * elf/dynamic-link.h: Don't include <assert.h>.
56661         (elf_get_dynamic_info): Moved to ...
56662         * elf/get-dynamic-info.h: Here.  New file.
56663         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56664         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56665         * elf/setup-vdso.h: Here.  New file.
56666         * elf/rtld.c: Include "setup-vdso.h".
56667         (dl_main): Call setup_vdso.
56668
56669 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56670
56671         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56672         creal in comment listing functions tested.  List finite, isinf,
56673         isnan, isless, islessequal, isgreater, isgreaterequal,
56674         islessgreater, isunordered, lgamma_r and pow10 as functions and
56675         macros not tested.  Mention which functions not tested are aliases
56676         for other functions.  Fix typo.  Note that signs of NaNs are not
56677         tested.
56678
56679         * scripts/config.guess: Update from config.git.
56680         * scripts/config.sub: Likewise.
56681
56682 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56683
56684         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56685         * misc/madvise.c (madvise): Renamed to __madvise.
56686         Make madvise a weak alias.
56687         * include/sys/mman.h: Declare __madvise.
56688         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56689         * sysdeps/unix/syscalls.list
56690         (madvise): Make __madvise the strong name, and madvise a weak alias.
56691         * sysdeps/unix/sysv/linux/syscalls.list
56692         (madvise, mmap): Remove redundant entries.
56693         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56694         * malloc/malloc.c (mtrim): Likewise.
56695         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56696
56697 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56698
56699         * sysdeps/mach/hurd/dl-cache.c: File removed.
56700         * config.h.in (USE_LDCONFIG): New #undef.
56701         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56702         * configure: Regenerated.
56703         * elf/Makefile (dl-routines): Add dl-cache only under
56704         [$(use-ldconfig) = yes].
56705         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56706         cache on [USE_LDCONFIG].
56707         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56708         [USE_LDCONFIG].
56709         * elf/rtld.c (dl_main): Likewise.
56710
56711 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56712
56713         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56714         _SC_LEVEL4_CACHE_LINESIZE.
56715
56716 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56717
56718         * sysdeps/unix/bsd/confstr.h: File removed.
56719
56720 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56721
56722         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56723         sys/sdt-config.h.
56724
56725 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56726
56727         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56728         Make 'mapoff' field ElfW(Off) rather than off_t.
56729
56730 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56731
56732         * nscd/Makefile: Remove nscd-cflags and all its users.
56733         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56734         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56735
56736         [BZ #10631]
56737         * malloc.c (malloc_printerr): Clarify error message.
56738
56739 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56740
56741         [BZ #14648]
56742         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56743         Set bit_FMA_Usable if FMA is supported.
56744         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56745         macro.
56746         (bit_FMA4_Usable): Updated.
56747         (index_FMA_Usable): New macro.
56748         (CPUID_FMA): Likewise.
56749         (HAS_FMA): Defined with bit_FMA_Usable.
56750
56751 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56752
56753         * bits/types.h (__swblk_t): Type removed.
56754         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56755         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56756         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56757         (__SWBLK_T_TYPE): Likewise.
56758         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56759         (__SWBLK_T_TYPE): Likewise.
56760         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56761         (__SWBLK_T_TYPE): Likewise.
56762         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56763         (__SWBLK_T_TYPE): Likewise.
56764
56765 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56766             Honza Horak <hhorak@redhat.com>
56767
56768         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56769         (xdr_mapname): Use YPMAXMAP as maxsize.
56770         (xdr_peername): Use YPMAXPEER as maxsize.
56771         (xdr_keydat): Use YPAXRECORD as maxsize.
56772         (xdr_valdat): Use YPMAXRECORD as maxsize.
56773
56774 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56775
56776         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56777
56778         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56779         * csu/init-first.c: ... here.
56780         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56781         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56782         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56783         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56784         * sysdeps/i386/init-first.c: File removed.
56785         * sysdeps/sh/init-first.c: File removed.
56786
56787 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56788
56789         [BZ #14645]
56790         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56791         if x * y might underflow to zero and z is zero.
56792         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56793         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56794         * math/libm-test.inc (min_subnorm_value): New variable.
56795         (fma_test): Add more tests.
56796         (fma_test_towardzero): Likewise.
56797         (fma_test_downward): Likewise.
56798         (fma_test_upward): Likewise.
56799         (initialize): Set min_subnorm_value.
56800
56801 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56802
56803         [BZ #14638]
56804         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56805         0 + 0.
56806         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56807         mode for addition resulting in exact zero.
56808         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56809         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56810         exact 0 + 0.
56811         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56812         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56813         * math/libm-test.inc (fma_test): Add more tests.
56814         (fma_test_towardzero): New function.
56815         (fma_test_downward): Likewise.
56816         (fma_test_upward): Likewise.
56817         (main): Call the new functions.
56818
56819 2012-09-28  David S. Miller  <davem@davemloft.net>
56820
56821         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56822
56823 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56824
56825         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56826         instead of SIGALRM.
56827
56828         * sysdeps/gnu/_G_config.h: Moved to ...
56829         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56830         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56831         * sysdeps/generic/_G_config.h: ... here.
56832
56833         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56834
56835         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56836
56837         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56838         Conditionalize target on [libnss_test1.so-version].
56839
56840         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
56841
56842         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
56843         (elfobjdir): Move out of conditionals.
56844
56845         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
56846         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
56847         (__nss_lookup_function): Conditionalize label remove_from_tree on
56848         [!DO_STATIC_NSS || SHARED], matching its only use.
56849
56850 2012-09-28  David S. Miller  <davem@davemloft.net>
56851
56852         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
56853         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
56854         file.
56855         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56856         sysdep_routines.
56857         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56858         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
56859         when HWCAP_SPARC_CRYPTO is present.
56860
56861 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56862
56863         * io/tst-mknodat.c: Create a FIFO instead of a socket.
56864
56865 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
56866
56867         [BZ #6530]
56868         * stdio-common/vfprintf.c (process_string_arg): Revert
56869         2000-07-22 change.
56870
56871 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
56872
56873         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
56874         for testcase.
56875         * stdio-common/tst-sprintf.c: Include <locale.h>
56876         (main): Test sprintf's handling of incomplete multibyte
56877         characters.
56878
56879 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
56880
56881         * elf/dl-runtime.c (VERSYMIDX): Removed.
56882         * elf/dl-version.c (VERSYMIDX): Likewise.
56883         * elf/do-rel.h (VERSYMIDX): Likewise.
56884         (VALIDX): Likewise.
56885         * elf/dynamic-link.h (VERSYMIDX): Likewise.
56886         * elf/rtld.c (VALIDX): Likewise.
56887         (ADDRIDX): Likewise.
56888         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
56889         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
56890         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
56891         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
56892         (VALIDX): Likewise.
56893         (ADDRIDX): Likewise.
56894
56895 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56896
56897         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
56898
56899 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
56900
56901         [BZ #11438]
56902         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
56903         to global scope.
56904         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
56905         addresses are in the same scope as 192.0.2/24.
56906         * posix/gai.conf: Document new scope table defaults.
56907
56908 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56909
56910         [BZ #5298]
56911         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
56912         for ftell.  Compute offsets from write pointers instead.
56913         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56914
56915 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56916
56917         [BZ #14543]
56918         * libio/Makefile (tests): New test case tst-fseek.
56919         * libio/tst-fseek.c: New test case to verify that fseek/ftell
56920         combination works in wide mode.
56921         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
56922         state when the external buffer state changes.
56923
56924 2012-09-27  David S. Miller  <davem@davemloft.net>
56925
56926         [BZ #14376]
56927         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
56928         pass reloc->r_addend in as the 'high' argument to
56929         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
56930
56931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56932
56933 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56934
56935         * rt/tst-aio2.c: Include <pthread.h>.
56936         * rt/tst-aio3.c: Likewise.
56937
56938 2012-09-27  Steve Ellcey  <sellcey@mips.com>
56939
56940         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
56941
56942 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
56943
56944         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
56945         contents on [SHARED].
56946
56947 2012-09-26  Marek Polacek  <polacek@redhat.com>
56948
56949         [BZ #14530]
56950         [BZ #13741]
56951         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
56952         for C++ and GCC <4.3 as well as for non GCC compilers.
56953
56954 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
56955
56956         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
56957
56958 2012-09-25  Roland McGrath  <roland@hack.frob.com>
56959
56960         * Makefile.in (all, install): Declare with .PHONY.
56961         Reported by Michael Hope <michael.hope@linaro.org>.
56962
56963 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56964
56965         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
56966         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
56967         system header.
56968         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
56969         Likewise.
56970         (sydep_routines): Add the new and the internal functions.
56971         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
56972         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
56973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
56974         (GLIBC_2.17): Add the new function.
56975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
56976         (GLIBC_2.17): Likewise.
56977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
56978         (GLIBC_2.17): Likewise.
56979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
56980         (GLIBC_2.17): Likewise.
56981         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
56982
56983 2012-09-25  Alan Modra  <amodra@gmail.com>
56984
56985         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
56986         Add release barrier before setting once_control to say
56987         initialisation is done.  Add hints on lwarx.  Use macro in
56988         place of isync.
56989         (clear_once_control): Add release barrier.
56990
56991 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
56992
56993         [BZ #13629]
56994         * math/s_clog.c (__clog): Handle more values close to |z| = 1
56995         specially.
56996         * math/s_clog10.c (__clog10): Likewise.
56997         * math/s_clog10f.c (__clog10f): Likewise.
56998         * math/s_clog10l.c (__clog10l): Likewise.
56999         * math/s_clogf.c (__clogf): Likewise.
57000         * math/s_clogl.c (__clogl): Likewise.
57001         * math/Makefile (libm-calls): Add x2y2m1.
57002         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57003         (__x2y2m1): Likewise.
57004         (__x2y2m1l): Likewise.
57005         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57006         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57007         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57008         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57009         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57010         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57011         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57012         * sysdeps/i386/fpu/libm-test-ulps: Update.
57013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57014
57015         [BZ #14621]
57016         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57017         int as type of variable DEPTH.
57018         (glob): Use size_t instead of int as type of variables NEWCOUNT
57019         and OLD_PATHC.
57020
57021 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57022
57023         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57024         Add s_sincosf-sse2.
57025         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57026         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57027         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57028         macros for using routine as __sincosf_ia32.
57029         Use macro for function declaration and weak_alias.
57030         * sysdeps/i386/fpu/libm-test-ulps: Update.
57031
57032         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57033         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57034
57035         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57036         subnormal argument.
57037         * math/s_cexpf.c (__cexpf): Likewise.
57038         * math/s_csinf.c (__csinf): Likewise.
57039         * math/s_csinhf.c (__csinhf): Likewise.
57040         * math/s_ctanf.c (__ctanf): Likewise.
57041         * math/s_ctanhf.c (__ctanhf): Likewise.
57042         * math/s_ccosh.c (__ccoshf): Likewise.
57043         * math/s_cexp.c (__cexpl): Likewise.
57044         * math/s_csin.c (__csin): Likewise.
57045         * math/s_csinh.c (__csinh): Likewise.
57046         * math/s_ctan.c (__ctan): Likewise.
57047         * math/s_ctanh.c (ctanh): Likewise.
57048         * math/s_ccoshl.c (__ccoshl): Likewise.
57049         * math/s_cexpl.c (__cexpl): Likewise.
57050         * math/s_csinl.c (__csinl): Likewise.
57051         * math/s_csinhl.c (__csinhl): Likewise.
57052         * math/s_ctanl.c (__ctanl): Likewise.
57053         * math/s_ctanhl.c (__ctanhl): Likewise.
57054
57055 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57056
57057         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57058         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57059         (_IO_off_t): Define to __off_t, not _G_off_t.
57060         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57061         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57062         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57063         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57064         type of __dummy and __dummy2 fields.
57065         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57066         (_G_ssize_t): Likewise.
57067         (_G_off_t): Likewise.
57068         (_G_pid_t): Likewise.
57069         (_G_uid_t): Likewise.
57070         (_G_wchar_t): Likewise.
57071         (_G_wint_t): Likewise.
57072         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57073         (_G_ssize_t): Likewise.
57074         (_G_off_t): Likewise.
57075         (_G_pid_t): Likewise.
57076         (_G_uid_t): Likewise.
57077         (_G_wchar_t): Likewise.
57078         (_G_wint_t): Likewise.
57079         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57080         (_G_ssize_t): Likewise.
57081         (_G_off_t): Likewise.
57082         (_G_pid_t): Likewise.
57083         (_G_uid_t): Likewise.
57084         (_G_wchar_t): Likewise.
57085         (_G_wint_t): Likewise.
57086
57087 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57088
57089         * malloc/arena.c: Include malloc-sysdep.h.
57090         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57091         is sufficient to shrink the heap or an unmap is needed.
57092         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57093         new function check_may_shrink_heap.
57094         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57095         new function check_may_shrink_heap.
57096
57097 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57098
57099         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57100         comments.
57101
57102 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57103
57104         * catgets/test-gencat.sh: Add "set -e".
57105         * elf/tst-pathopt.sh: Likewise.
57106         * grp/tst_fgetgrent.sh: Likewise.
57107         * iconvdata/run-iconv-test.sh: Likewise.
57108         * intl/tst-gettext.sh: Likewise.
57109         * intl/tst-gettext2.sh: Likewise.
57110         * intl/tst-gettext4.sh: Likewise.
57111         * intl/tst-gettext6.sh: Likewise.
57112         * intl/tst-translit.sh: Likewise.
57113         * io/ftwtest-sh: Likewise.
57114         * libio/test-freopen.sh: Likewise.
57115         * malloc/tst-mtrace.sh: Likewise.
57116         * posix/globtest.sh: Likewise.
57117         * posix/tst-getconf.sh: Likewise.
57118         * posix/wordexp-tst.sh: Likewise.
57119         * stdio-common/tst-printf.sh: Likewise.
57120         * stdio-common/tst-unbputc.sh: Likewise.
57121         * stdlib/tst-fmtmsg.sh: Likewise.
57122         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57123         * catgets/Makefile: Do not specify -e option when running
57124         testsuite shell scripts.
57125         * elf/Makefile: Likewise.
57126         * grp/Makefile: Likewise.
57127         * iconvdata/Makefile: Likewise.
57128         * intl/Makefile: Likewise.
57129         * io/Makefile: Likewise.
57130         * libio/Makefile: Likewise.
57131         * malloc/Makefile: Likewise.
57132         * posix/Makefile: Likewise.
57133         * stdio-common/Makefile: Likewise.
57134         * stdlib/Makefile: Likewise.
57135         * sysdeps/x86_64/Makefile: Likewise.
57136
57137         * io/ftwtest-sh: Add copyright header.
57138         * posix/globtest.sh: Likewise.
57139         * posix/tst-getconf.sh: Likewise.
57140         * posix/wordexp-tst.sh: Likewise.
57141         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57142
57143 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57144
57145         [BZ #13679]
57146         * Makeconfig (+link): Defined as $(+link-static) if
57147         $(build-shared) isn't yes.
57148         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57149         isn't yes.
57150         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57151
57152         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57153
57154         [BZ #14562]
57155         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57156         new chunk size with MALLOC_ALIGN_MASK.
57157
57158 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57159
57160         [BZ #5044]
57161         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57162         <rounding-mode.h>.
57163         (__printf_fphex): Determine rounding using get_rounding_mode and
57164         round_away.
57165         * stdio-common/tst-printf-round.c (struct hex_test): New
57166         structure.
57167         (hex_tests): New variable.
57168         (test_hex_in_one_mode): New function.
57169         (do_test): Also run tests for hex float output.
57170
57171 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57172
57173         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57174         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57175         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57176         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57177         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57178         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57179         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57180         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57181
57182 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57183
57184         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57185         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57186         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57187         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57188
57189 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57190
57191         [BZ #14579]
57192         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57193         mode only.
57194         * elf/tst-rtld-load-self.sh: New test.
57195         * elf/Makefile: Run it.
57196
57197 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57198
57199         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57200         (tst-writev-ENV): Remove.
57201         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57202
57203 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57204
57205         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57206
57207 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57208
57209         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57210         unconditional.
57211         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57212         Likewise.
57213         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57214         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57215         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57216         Likewise.
57217
57218 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57219
57220         [BZ #14587]
57221         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57222         * config.make.in (have-cpp-asm-debuginfo): Removed.
57223         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57224         * configure: Regenerated.
57225
57226 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57227
57228         [BZ #5044]
57229         * stdio-common/printf_fp.c: Include <stdbool.h> and
57230         <rounding-mode.h>.
57231         (___printf_fp): Determine rounding using get_rounding_mode and
57232         round_away.
57233         * stdio-common/tst-printf-round.c: New file.
57234         * stdio-common/Makefile (tests): Add tst-printf-round.
57235         (link-libm): New variable.
57236         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57237
57238 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57239
57240         [BZ #14576]
57241         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57242         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57243         Likewise.
57244         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57245         Likewise.
57246
57247 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57248
57249         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57250         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57251         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57252         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57253
57254 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57255
57256         [BZ #14518]
57257         * include/rounding-mode.h: New file.
57258         * sysdeps/generic/get-rounding-mode.h: Likewise.
57259         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57260         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57261         (MAX_VALUE): New macro.
57262         (MIN_VALUE): Likewise.
57263         (overflow_value): New function.
57264         (underflow_value): Likewise.
57265         (round_and_return): Use overflow_value and underflow_value to
57266         determine return values in overflow and underflow cases.  Use
57267         round_away to determine rounding depending on rounding mode.
57268         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57269         determine return values in overflow and underflow cases.
57270         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57271         (struct test_results): New structure.
57272         (struct test): Use struct test_results to store expected results
57273         for all rounding modes.
57274         (TEST): Include expected results for all rounding modes.
57275         (test_in_one_mode): New function.
57276         (do_test): Use test_in_one_mode to compute and check results.
57277         Check results for all rounding modes.
57278         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57279         $(link-libm).
57280
57281 2012-12-09  Allan McRae  <allan@archlinux.org>
57282
57283         * sysdeps/i386/fpu/libm-test-ulps: Update
57284
57285 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57286
57287         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57288         (_G_int32_t): Likewise.
57289         (_G_uint16_t): Likewise.
57290         (_G_uint32_t): Likewise.
57291         (_G_HAVE_BOOL): Likewise.
57292         (_G_HAVE_ATEXIT): Likewise.
57293         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57294         (_G_HAVE_IO_FILE_OPEN): Likewise.
57295         * sysdeps/gnu/_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/mach/hurd/_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
57312 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57313
57314         * csu/libc-tls.c: Update copyright years.
57315
57316 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57317
57318         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57319         [!_G_USING_THUNKS]: Remove conditional code.
57320         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57321         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57322
57323         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57324         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57325         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57326         (_G_VTABLE_LABEL_PREFIX): Likewise.
57327         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57328         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57329         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57330         (_G_VTABLE_LABEL_PREFIX): Likewise.
57331         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57332         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57333         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57334         (_G_VTABLE_LABEL_PREFIX): Likewise.
57335         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57336
57337 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57338
57339         * libio/Makefile: Include ../Makeconfig before tests.
57340         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57341         only if $(build-shared) is yes.
57342
57343         * iconv/gconv_db.c: Update copyright years.
57344
57345 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57346
57347         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57348         unwind info if defined PIC. Fix special cases description.
57349         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57350
57351         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57352         DP_HI_MASK entry.
57353         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57354
57355 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57356
57357         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57358
57359         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57360         is NULL.
57361
57362         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57363         (LDLIBS-tst-chk4): This.
57364         (LDFLAGS-tst-chk5): Renamed to ...
57365         (LDLIBS-tst-chk5): This.
57366         (LDFLAGS-tst-chk6): Renamed to ...
57367         (LDLIBS-tst-chk6): This.
57368         (LDFLAGS-tst-lfschk4): Renamed to ...
57369         (LDLIBS-tst-lfschk4): This.
57370         (LDFLAGS-tst-lfschk5): Renamed to ...
57371         (LDLIBS-tst-lfschk5): This.
57372         (LDFLAGS-tst-lfschk6): Renamed to ...
57373         (LDLIBS-tst-lfschk6): This.
57374
57375         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57376         on $(common-objpfx)soversions.mk.
57377
57378 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57379
57380         [BZ #10014]
57381         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57382         example host name.
57383
57384 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57385
57386         * malloc/arena.c (arena_get_retry): New function that gets
57387         another arena for the caller to try its request on.
57388         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57389         current arena cannot fulfill the request.
57390         (__libc_memalign): Likewise.
57391         (__libc_memalign): Likewise.
57392         (__libc_pvalloc): Likewise.
57393         (__libc_calloc): Likewise.
57394
57395 2012-09-05  John Tobey  <john.tobey@gmail.com>
57396
57397         [BZ #13542]
57398         * manual/arith.texi (Operations on Complex): Fix description
57399         of carg branch cut.
57400
57401 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57402
57403         [BZ #10014]
57404         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57405         host name.
57406
57407         [BZ #10038]
57408         * manual/memory.texi (Memory): Make order of menu items match
57409         order of sections.
57410
57411 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57412
57413         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57414         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57415         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57416
57417 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57418
57419         * csu/libc-tls.c (static_dtv): Renamed to ...
57420         (_dl_static_dtv): This.  Make it global.
57421         (_dl_initial_dtv): Removed.
57422         (__libc_setup_tls): Updated.
57423         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57424         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57425         DL_INITIAL_DTV.
57426
57427 2012-09-06  Petr Machata  <pmachata@redhat.com>
57428
57429         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57430         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57431         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57432         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57433
57434 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57435
57436         [BZ #14545]
57437         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57438         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57439         freeing dtv[-1].
57440
57441 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57442
57443         [BZ #14544]
57444         * Makeconfig (link-static-before-libc): Replace $(+prector)
57445         with $(+prectorT).
57446         (link-static-after-libc): Replace $(+postctor) with
57447         $(+postctorT).
57448         (link-bounded): Replace $(+prector)/$(+postctor) with
57449         $(+prectorT)/$(+postctorT).
57450         (+prectorT): New macro.
57451         (+postctorT): Likewise.
57452
57453 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57454
57455         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57456         (round_str): Handle values above the maximum for IBM long double
57457         as inexact.
57458         * stdlib/tst-strtod-round.c (tests): Regenerated.
57459
57460 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57461
57462         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57463         assembler flag.
57464         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57465         zarch_nohighgprs around the zarch optimized routines.
57466         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57467         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57468         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57469         for zarch.
57470
57471 2012-09-05  David S. Miller  <davem@davemloft.net>
57472
57473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57474
57475         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57476         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57477         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57478         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57479         entries.
57480
57481 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57482
57483         * malloc/arena.c: Fold copyright years.
57484         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57485
57486 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57487
57488         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57489
57490 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57491
57492         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57493
57494 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57495
57496         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57497         change internal state upon failure.
57498
57499 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57500
57501         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57502         * malloc/memusage.c (mmap): Likewise.
57503         (mmap64, mremap): Likewise.  Adjust name in comment.
57504
57505 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57506
57507         * libio/fileops.c: Fix typos in comments.
57508         * libio/oldfileops.c: Likewise.
57509         * libio/wfileops.c: Likewise.
57510
57511 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57512
57513         [BZ #1349]
57514         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57515         (tst-malloc-usable-ENV): Set environment for test case.
57516         * malloc/hooks.c (malloc_check_get_size): New function to get
57517         requested size.
57518         * malloc/malloc.c (musable): Use malloc_check_get_size.
57519         * malloc/tst-malloc-usable.c: New test case.
57520
57521 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57522
57523         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57524
57525 2012-09-05  Allan McRae  <allan@archlinux.org>
57526
57527         [BZ #13966]
57528         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57529         determine header location.
57530         * configure: Regenerated.
57531
57532 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57533
57534         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57535         float format.
57536         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57537         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57538         format.
57539         (test): Regenerate.
57540
57541 2012-09-04  David S. Miller  <davem@davemloft.net>
57542
57543         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57544         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57545         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57546
57547 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57548
57549         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57550         failures.
57551
57552         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57553
57554 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57555
57556         [BZ #9914]
57557         * libio/iogetdelim.c: Include <limits.h>.
57558         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57559         + len + 1 would overflow.
57560
57561 2012-09-03  Andreas Jaeger  <aj@suse.de>
57562
57563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57564         * sysdeps/i386/fpu/libm-test-ulps: Update.
57565
57566 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57567
57568         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57569         Add s_sinf-sse2, s_conf-sse2.
57570
57571         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57572         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57573         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57574         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57575
57576         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57577         for using routine as __sinf_ia32.
57578         Use macro for function declaration and weak_alias.
57579         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57580         for using routine as __cosf_ia32.
57581         Use macro for function declaration and weak_alias.
57582
57583         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57584         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57585
57586         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57587         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57588         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57589
57590         * math/libm-test.inc (cos_test): Add more test cases.
57591         (sin_test): Likewise.
57592         (sincos_test): Likewise.
57593
57594 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57595
57596         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57597         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57598         hidden.
57599         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57600
57601 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57602
57603         [BZ #14538]
57604         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57605         first element of the GOT.
57606         (elf_machine_load_address): Return the difference between
57607         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57608
57609 2012-09-01  Allan McRae  <allan@archlinux.org>
57610
57611         [BZ #13412]
57612         * configure.in (AWK): Require gawk version 3.0 or later.
57613         * configure: Regenerated.
57614
57615 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57616
57617         * sysdeps/unix/sysv/linux/kernel-features.h
57618         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57619         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57620         [__NR_clock_getres]: Make code unconditional.
57621         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57622         (clock_getcpuclockid): Remove code left unreachable by removal of
57623         conditionals.
57624         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57625         code unconditional.
57626         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57627         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57628         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57629         Make code unconditional.
57630         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57631         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57632         * sysdeps/unix/sysv/linux/clock_settime.c
57633         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57634         conditional code.
57635         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57636         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57637
57638 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57639
57640         [BZ #14476]
57641         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57642         scripts/test-installation.pl.
57643
57644         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57645         and $ld_so_version if it is set.
57646
57647 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57648
57649         [BZ #14516]
57650         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57651         failure if reading from procfs failed.
57652         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57653
57654 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57655
57656         * sysdeps/unix/sysv/linux/kernel-features.h
57657         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57658         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57659         Remove conditional code.
57660         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57661         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57662         Remove conditional code.
57663         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57664         * sysdeps/unix/sysv/linux/i386/fxstat.c
57665         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57666         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57667         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57668         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57669         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57670         * sysdeps/unix/sysv/linux/i386/lxstat.c
57671         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57672         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57673         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57674         Remove conditional code.
57675         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57676         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57677         Remove conditional code.
57678         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57679         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57680         <kernel-features.h>.
57681         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57682         Remove.
57683         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57684         Remove conditional code.
57685         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57686         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57687         Remove conditional.
57688
57689 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57690
57691         [BZ #5400]
57692         * NEWS: Add fixed bug number.
57693
57694 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57695
57696         [BZ #14519]
57697         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57698         underflowing exponent in case of negative sign.
57699         * stdlib/tst-strtod-round-data: Add more tests.
57700         * stdlib/tst-strtod-round.c (tests): Regenerated.
57701
57702         [BZ #3479]
57703         * stdlib/strtod_l.c (NDIG): Remove.
57704         (HEXNDIG): Likewise.
57705         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57706         smallest representable value.
57707         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57708         lie within an exact representation of 1/2 ulp of the result.
57709         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57710         unconditionally.
57711         (TENS_P9_IDX): Define unconditionally.
57712         (TENS_P9_SIZE): Likewise.
57713         (TENS_P10_IDX): Likewise.
57714         (TENS_P10_SIZE): Likewise.
57715         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57716         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57717         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57718         entries for 10^2^13 and 10^2^14.
57719         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57720         (TENS_P13_IDX): Define.
57721         (TENS_P13_SIZE): Likewise.
57722         (TENS_P14_IDX): Likewise.
57723         (TENS_P14_SIZE): Likewise.
57724         (_fpioconst_pow10): Change array size to
57725         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57726         unconditional.
57727         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57728         1024]: Add entries for 10^2^13 and 10^2^14.
57729         [LAST_POW10 > _LAST_POW10]: Remove #error.
57730         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57731         (_fpioconst_pow10): Change array size to
57732         FPIOCONST_POW10_ARRAY_SIZE.
57733         * stdlib/gen-fpioconst.c: New file.
57734         * stdlib/gen-tst-strtod-round.c: Likewise.
57735         * stdlib/tst-strtod-round-data: Likewise.
57736         * stdlib/tst-strtod-round.c: Likewise.
57737         * stdlib/Makefile (tests): Add tst-strtod-round.
57738
57739         [BZ #14459]
57740         * stdlib/strtod_l.c: Include <stdint.h>.
57741         (NDEBUG): Do not define.
57742         (round_and_return): Change EXPONENT parameter to type intmax_t.
57743         Rearrange calculations to avoid internal overflow possibilities.
57744         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57745         Rearrange calculations to avoid internal overflow possibilities.
57746         Assert that number fits inside MPNSIZE limbs.
57747         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57748         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57749         calculations and add assertions to avoid internal overflow
57750         possibilities.  Add casts to avoid signed/unsigned operations.
57751         * stdlib/tst-strtod-overflow.c: New file.
57752         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57753
57754 2012-08-25  Marek Polacek  <polacek@redhat.com>
57755
57756         * time/time.h: Fix some typos in comments.
57757
57758 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57759
57760         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57761         * posix/tst-rfc3484-2.c: Likewise.
57762         * posix/tst-rfc3484-3.c: Likewise.
57763
57764 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57765
57766         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57767         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57768
57769 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57770
57771         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57772         #include of fxstatat64.c.
57773
57774 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57775
57776         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57777         * shadow/getspent_r.c: Likewise.
57778         * shadow/getspnam.c: Likewise.
57779         * shadow/getspnam_r.c: Likewise.
57780         * gshadow/getsgent.c: Likewise.
57781         * gshadow/getsgent_r.c: Likewise.
57782         * gshadow/getsgnam.c: Likewise.
57783         * gshadow/getsgnam_r.c: Likewise.
57784         * inet/getnetbyad.c: Likewise.
57785         * inet/getnetbyad_r.c: Likewise.
57786         * inet/getnetbynm.c: Likewise.
57787         * inet/getnetbynm_r.c: Likewise.
57788         * inet/getnetent.c: Likewise.
57789         * inet/getnetent_r.c: Likewise.
57790         * inet/getproto.c: Likewise.
57791         * inet/getproto_r.c: Likewise.
57792         * inet/getprtent.c: Likewise.
57793         * inet/getprtent_r.c: Likewise.
57794         * inet/getprtname.c: Likewise.
57795         * inet/getprtname_r.c: Likewise.
57796         * inet/getrpcbyname.c: Likewise.
57797         * inet/getrpcbyname_r.c: Likewise.
57798         * inet/getrpcbynumber.c: Likewise.
57799         * inet/getrpcbynumber_r.c: Likewise.
57800         * inet/getrpcent.c: Likewise.
57801         * inet/getrpcent_r.c: Likewise.
57802         * inet/getaliasent.c: Likewise.
57803         * inet/getaliasent_r.c: Likewise.
57804         * inet/getaliasname.c: Likewise.
57805         * inet/getaliasname_r.c: Likewise.
57806         * nscd/getgrgid_r.c: Likewise.
57807         * nscd/getgrnam_r.c: Likewise.
57808         * nscd/gethstbyad_r.c: Likewise.
57809         * nscd/gethstbynm3_r.c: Likewise.
57810         * nscd/getpwnam_r.c: Likewise.
57811         * nscd/getpwuid_r.c: Likewise.
57812         * nscd/getsrvbynm_r.c: Likewise.
57813         * nscd/getsrvbypt_r.c: Likewise.
57814         * nscd/gai.c: Likewise.
57815
57816         * configure.in (build_nscd): New substituted variable, set
57817         by --disable-build-nscd and defaults to $use_nscd.
57818         * configure: Regenerated.
57819         * config.make.in (build-nscd): New substituted variable.
57820         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57821         Change conditional to require [$(build-nscd) = yes] as well.
57822         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57823
57824         [BZ# 13696]
57825         * configure.in (use_nscd): New substituted variable, set by
57826         --disable-nscd.  If enabled, define USE_NSCD.
57827         * configure: Regenerated.
57828         * config.h.in: Add USE_NSCD.
57829         * config.make.in (use-nscd): New substituted variable.
57830         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57831         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57832         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57833         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57834         (CFLAGS-getgrnam_r.c): Likewise.
57835         (CFLAGS-initgroups.c): Likewise.
57836         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57837         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57838         Variables removed.
57839         * inet/getnetgrent_r.c
57840         (nscd_setnetgrent): New function, broken out of ...
57841         (setnetgrent): ... here.  Call it.
57842         (innetgr): Conditionalize nscd bits on [USE_NSCD].
57843         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
57844         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
57845         * nscd/Makefile (routines, aux): Move definitions after include of
57846         Makeconfig.  Conditionalize on [$(use-nscd) != no].
57847         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
57848         Conditionalize on [USE_NSCD].
57849         (is_nscd, nscd_init_cb): Likewise.
57850         (nss_load_library): Conditionalize init callback on [USE_NSCD].
57851         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
57852         * nss/nss_db/db-init.c: Likewise.
57853         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
57854         [USE_NSCD].
57855         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
57856         (make_request): Use it.
57857         (cache_valid_p): New function.
57858         (__check_pf): Use it.
57859         * NEWS: Add item for --disable-nscd.
57860
57861 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
57862
57863         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
57864         to support sed >= 4.2.1-20-ga9bf076.
57865         * configure: Regenerated.
57866
57867 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57868
57869         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
57870         Conditionalize whole body on [IREL].
57871
57872 2012-08-22  Jeff Law <law@redhat.com>
57873
57874         [BZ #14505]
57875         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
57876         if the family is PF_UNSPEC.
57877
57878 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
57879
57880         * Makerules (lib-version): Rename from V.
57881         (install-lib-nosubdir): Change V to lib-version.
57882
57883 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
57884
57885         [BZ #14252]
57886         * powerpc32/power6/wcschr.c: New file.
57887         * powerpc32/power6/wcscpy.c: New file.
57888         * powerpc32/power6/wcsrchr.c: New file.
57889         * powerpc64/power6/wcschr.c: New file.
57890         * powerpc64/power6/wcscpy.c: New file.
57891         * powerpc64/power6/wcsrchr.c: New file.
57892
57893 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57894
57895         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
57896         (two_way_short_needle): Use it.
57897         * string/strstr.c (AVAILABLE1_USES_J): Define.
57898         * string/strcasestr.c: Likewise.
57899
57900         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
57901         array references.
57902         * string/strcasestr.c (TOLOWER): Make side-effect safe.
57903
57904         [BZ #11607]
57905         * NEWS: Add an entry.
57906         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
57907         define their defaults.
57908         (two_way_short_needle): Detect end-of-string on-the-fly.
57909         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
57910         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
57911         * string/bug-strcasestr1.c: New test.
57912         * string/Makefile: Run it.
57913
57914 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57915
57916         [BZ #11607]
57917         * string/str-two-way.h (two_way_short_needle): Optimize matching of
57918         the first character.
57919
57920 2012-08-21  Roland McGrath  <roland@hack.frob.com>
57921
57922         * csu/elf-init.c (__libc_csu_irel): Function removed.
57923         * csu/libc-start.c (apply_irel): New function.
57924         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
57925
57926 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
57927
57928         * sysdeps/unix/sysv/linux/kernel-features.h
57929         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
57930         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
57931         <kernel-features.h>.
57932         [__NR_fadvise64_64]: Make code unconditional.
57933         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
57934         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57935         !__NR_fadvise64_64)]: Likewise.
57936         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
57937         !__NR_fadvise64_64))]: Likewise.
57938         [__NR_fadvise64]: Make code unconditional.
57939         [!__NR_fadvise64]: Remove conditional code.
57940         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
57941         <kernel-features.h>.
57942         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57943         unconditional.
57944         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57945         conditional code.
57946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
57947         not include <kernel-features.h>.
57948         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57949         unconditional.
57950         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57951         conditional code.
57952         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
57953         include <kernel-features.h>.
57954         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
57955         unconditional.
57956         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
57957         conditional code.
57958
57959 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
57960
57961         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
57962         slight instruction rearrangements per scrollpipe analysis.
57963         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
57964
57965 2012-08-20  Roland McGrath  <roland@hack.frob.com>
57966
57967         * manual/syslog.texi (syslog; vsyslog, closelog):
57968         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
57969         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
57970
57971         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
57972         DSOCAPS to match condition on defining it.
57973
57974 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
57975
57976         * sysdeps/unix/sysv/linux/kernel-features.h
57977         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
57978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
57979         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57980         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
57982         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57983         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
57985         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
57986         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
57987
57988         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
57989         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
57990
57991         * sysdeps/unix/sysv/linux/kernel-features.h
57992         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
57993         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
57994         unconditional.
57995         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57996         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
57997         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
57998         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
57999         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58000         Make code unconditional.
58001         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58002         (__mmap64) [!__NR_mmap2]: Likewise.
58003         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58004         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58005         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58006         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58007         [__NR_mmap2]: Make code unconditional.
58008         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58009         (__mmap64) [!__NR_mmap2]: Likewise.
58010
58011 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58012
58013         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58014
58015 2012-08-18  Andreas Jaeger  <aj@suse.de>
58016
58017         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58018
58019 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58020
58021         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58022         * include/unistd.h (__have_sock_cloexec): Likewise.
58023         (__have_pipe2): Likewise.
58024         (__have_dup3): Likewise.
58025
58026 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58027
58028         [BZ #9685]
58029         * include/unistd.h (__have_pipe2): Change define into an extern int.
58030         (__have_dup3): Likewise.
58031         * socket/have_sock_cloexec.c: Include fcntl.h.
58032         (__have_pipe2): New variable.
58033         (__have_dup3): Likewise.
58034
58035 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58036
58037         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58038
58039 2012-08-17  Marek Polacek  <polacek@redhat.com>
58040
58041         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58042         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58043
58044 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58045
58046         * configure.in: Add AC_SUBST for sysheaders.
58047         * configure: Regenerated.
58048         * config.make.in (sysheaders): New substituted variable.
58049
58050         * sysdeps/unix/mkfifo.c: Moved ...
58051         * sysdeps/posix/mkfifo.c: ... here.
58052         * sysdeps/unix/mkfifoat.c: Moved ...
58053         * sysdeps/posix/mkfifoat.c: ... here.
58054
58055         * sysdeps/unix/utime.c: Moved ...
58056         * sysdeps/posix/utime.c: ... here.
58057
58058         * sysdeps/unix/time.c: Moved ...
58059         * sysdeps/posix/time.c: ... here.
58060         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58061         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58062
58063         * sysdeps/unix/nice.c: Moved ...
58064         * sysdeps/posix/nice.c: ... here.
58065
58066         * sysdeps/unix/alarm.c: Moved ...
58067         * sysdeps/posix/alarm.c: ... here.
58068
58069         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58070
58071 2012-08-17  Jeff Law <law@redhat.com>
58072
58073         * intl/Makefile (codeset_mo): New variable.
58074         ($(codeset_mo)): New target.
58075         (tst-codeset.out): Depend on that.  Remove explicit rule.
58076         (tst-gettext3.out, tst-gettext5.out): Likewise.
58077         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58078         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58079         * intl/tst-codeset.sh: Remove.
58080         * intl/tst-gettext3.sh: Likewise.
58081         * intl/tst-gettext5.sh: Likewise.
58082
58083 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58084
58085         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58086         * sysdeps/unix/syscalls.list: ... here.
58087
58088         * sysdeps/posix/getaddrinfo.c
58089         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58090         (gaiconf_init, gaiconf_reload): Use them.
58091         [!_STATBUF_ST_NSEC]
58092         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58093         Define using time_t rather than struct timespec.
58094
58095         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58096         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58097         Macros removed.
58098         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58099         [!NO_THREADS].
58100         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58101         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58102         Likewise.
58103
58104         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58105         __libc_cleanup_push argument.
58106
58107         * bits/param.h: New file.
58108         * misc/sys/param.h: New file.
58109         * include/sys/param.h: New file.
58110         * misc/Makefile (headers): Add bits/param.h.
58111         * sysdeps/generic/sys/param.h: File removed.
58112         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58113         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58114         * sysdeps/mach/hurd/bits/param.h: New file.
58115         * sysdeps/mach/hurd/sys/param.h: File removed.
58116
58117         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58118         last change.
58119
58120         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58121         [_IO_MTSAFE_IO].
58122         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58123         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58124         New macros.
58125
58126         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58127         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58128         rather than -D_IO_MTSAFE_IO conditionally.
58129         * stdio-common/Makefile (CPPFLAGS): Likewise.
58130         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58131         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58132         Use $(libio-mtsafe).
58133         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58134         of -D_IO_MTSAFE_IO.
58135         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58136         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58137         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58138         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58139         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58140         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58141         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58142         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58143         (CFLAGS-fread_u_chk.c): Likewise.
58144         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58145         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58146         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58147         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58148         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58149         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58150         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58151         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58152         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58153
58154         * libio/Makefile: Test [$(libc-reentrant) = yes]
58155         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58156
58157         * Makeconfig
58158         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58159         * sysdeps/pthread/configure: File removed.
58160         * sysdeps/pthread/Makeconfig: New file.
58161         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58162         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58163
58164 2012-08-16  Gary Benson  <gbenson@redhat.com>
58165
58166         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58167         unmapping the first object in a namespace.
58168
58169 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58170
58171         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58172         (__internal_setnetgrent): ... this.  Add internal_function to
58173         definition.  Add libc_hidden_def.
58174         (setnetgrent): Update caller.
58175         (internal_endnetgrent): Renamed to ...
58176         (__internal_endnetgrent): ... this.  Add internal_function to
58177         definition.  Add libc_hidden_def.
58178         (endnetgrent): Update caller.
58179         (internal_getnetgrent_r): Renamed to ...
58180         (__internal_getnetgrent_r): ... this.  Add internal_function to
58181         definition.  Add libc_hidden_def.
58182         (__getnetgrent_r): Update caller.
58183         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58184
58185 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58186
58187         * stdlib/longlong.h: Update from GCC.
58188
58189 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58190
58191         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58192         on _QL, which is set by umul_ppmm but never used.
58193         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58194         variables, which are set by GMP macros but never used.
58195         * stdio-common/_itowa.c (_itowa): Likewise.
58196         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58197         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58198
58199 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58200
58201         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58202         struct La_sh_regs is not constant.
58203         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58204         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58205         and struct La_sparc64_regs are not constant.
58206
58207 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58208
58209         * sysdeps/unix/sysv/linux/kernel-features.h
58210         (__ASSUME_POSIX_TIMERS): Remove.
58211         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58212         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58213         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58214         Make code unconditional.
58215         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58216         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58217         Make code unconditional.
58218         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58219         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58220         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58221         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58222         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58223         Make code unconditional.
58224         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58225         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58226         (__libc_missing_posix_timers): Remove.
58227
58228 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58229
58230         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58231         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58232
58233         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58234
58235         * elf/dl-sym.c: Include <stdlib.h>.
58236
58237         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58238         constants, which avoids warnings in 32-bit builds.
58239
58240         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58241         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58242
58243         * misc/lseek.c: File moved to ...
58244         * io/lseek.c: ... here.
58245
58246         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58247
58248         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58249         shifting LEN more than 31 bits at once.
58250
58251 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58252
58253         [BZ #14195]
58254         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58255         segmentation fault for a case of two empty input strings.
58256         * string/test-strncasecmp.c (check1): Renamed to...
58257         (bz12205): ...this.
58258         (bz14195): Add new testcase for two empty input strings and N > 0.
58259         (test_main): Call new testcase, adapt for renamed function.
58260
58261 2012-08-15  Andreas Jaeger  <aj@suse.de>
58262
58263         [BZ #14090]
58264         * crypt/md5test2.c: New test, based on test supplied by Serge
58265         Belyshev <belyshev@depni.sinp.msu.ru>.
58266         * crypt/Makefile (xtests): Add md5test-giant..
58267         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58268
58269 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         [BZ #14090]
58272         * crypt/md5.c (md5_process_block): Don't assume the buffer
58273         length is less than 2**32.
58274         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58275         length is less than 2**64.
58276
58277 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58278
58279         * string/str-two-way.h: Include <sys/param.h>.
58280         (MAX): Macro removed.
58281
58282         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58283         Move #define and #undef of memmove to just before and after
58284         including <string.h>.
58285
58286         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58287         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58288         and after including <string.h>.  Move declarations of
58289         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58290         to before #include "string/memmove.c".
58291
58292         * include/dirent.h: Declare __getdirentries.
58293
58294         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58295         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58296
58297 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58298
58299         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58300         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58301         * sysdeps/i386/configure: Regenerated.
58302         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58303         STABS_CURRENT_FILE, and STABS_FUN.
58304         (END): Remove call to STABS_FUN_END.
58305         (STABS_CURRENT_FILE1): Delete.
58306         (STABS_CURRENT_FILE): Likewise.
58307         (STABS_FUN): Likewise.
58308         (STABS_FUN_END): Likewise.
58309         (STABS_FUN2): Likewise.
58310         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58311         * sysdeps/x86_64/configure: Regenerated.
58312
58313 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58314
58315         * elf/dl-open.c: Include <atomic.h>.
58316         * elf/dl-lookup.c: Likewise.
58317
58318 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58319
58320         * sysdeps/unix/sysv/linux/kernel-features.h
58321         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58322         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58323         unconditionally.
58324         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58325         unconditionally.
58326         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58327         condition on __ASSUME_CLONE_THREAD_FLAGS.
58328
58329 2012-08-14  Andreas Jaeger  <aj@suse.de>
58330
58331         * sysdeps/i386/fpu/libm-test-ulps: Update.
58332
58333 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58334
58335         * include/atomic.h (atomic_exchange_and_add): Split into ...
58336         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58337         New atomic macros.
58338
58339 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58340
58341         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58342
58343 2012-08-13  Jeff Law <law@redhat.com>
58344
58345         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58346         null byte in the output string.
58347
58348 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58349
58350         * sysdeps/unix/sysv/linux/kernel-features.h
58351         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58352         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58353         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58354         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58355         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58356         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58357         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58358
58359 2012-08-09  Jeff Law <law@redhat.com>
58360
58361         [BZ #13939]
58362         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58363         When avoid_arena is set, don't retry in the that arena.  Pick the
58364         next one, whatever it might be.
58365         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58366         (arena_lock): Pass in new parameter to arena_get2.
58367         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58368         arena_get2.
58369         (__libc_malloc): Unify retrying after main arena failure with
58370         __libc_memalign version.
58371         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58372
58373 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58374
58375         [BZ #14166]
58376         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58377         to __redirect_strstr.
58378         (__strstr_sse42): Use typeof __redirect_strstr.
58379         (__strstr_ia32): Likewise.
58380         (__libc_strstr): New prototype.
58381         (strstr): Renamed to ...
58382         (__libc_strstr): This.
58383         (strstr): New strong alias of __libc_strstr.
58384         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58385         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58386         __redirect_time.
58387         Include <time.h>.
58388         (__libc_time): New prototype.
58389         (time_ifunc): Replace time with __libc_time.
58390         (time): New strong alias and hidden definition of __libc_time.
58391         (__GI_time): Remove strong alias.
58392         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58393         Include <stddef.h>.
58394         (memmove): Redefined to __redirect_memmove.
58395         (__memmove_sse2): Use typeof __redirect_memmove.
58396         (__memmove_ssse3): Likewise.
58397         (__memmove_ssse3_back): Likewise.
58398         (__libc_memmove): New prototype.
58399         (memmove): Renamed to ...
58400         (__libc_memmove): This.
58401         (memmove): New strong alias of __libc_memmove.
58402
58403 2012-08-08  Mark Salter  <msalter@redhat.com>
58404
58405         * elf/elf.h
58406         (R_MN10300_TLS_GD): Define.
58407         (R_MN10300_TLS_LD): Likewise.
58408         (R_MN10300_TLS_LDO): Likewise.
58409         (R_MN10300_TLS_GOTIE): Likewise.
58410         (R_MN10300_TLS_IE): Likewise.
58411         (R_MN10300_TLS_LE): Likewise.
58412         (R_MN10300_TLS_DTPMOD): Likewise.
58413         (R_MN10300_TLS_DTPOFF): Likewise.
58414         (R_MN10300_TLS_TPOFF): Likewise.
58415         (R_MN10300_SYM_DIFF): Likewise.
58416         (R_MN10300_ALIGN): Likewise.
58417         (R_MN10300_NUM): Update.
58418
58419 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58420
58421         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58422         Remove.
58423
58424 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58425
58426         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58427
58428         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58429         sysdeps/unix -> sysdeps/posix move.
58430         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58431
58432 2012-08-07      Allan McRae     <allan@archlinux.org>
58433
58434         [BZ #14303]
58435         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58436         (SUNOS_CPP): Likewise.
58437         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58438         not found.
58439         (open_input): Call CPP using execvp.
58440
58441 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58442
58443         * sysdeps/unix/sysv/linux/kernel-features.h
58444         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58445         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58446         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58447         (__ASSUME_WAITID_SYSCALL): Likewise.
58448         * sysdeps/unix/sysv/linux/dl-execstack.c
58449         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58450         code unconditional.
58451         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58452         conditional code.
58453         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58454         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58455         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58456         code.
58457         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58458         unconditional.
58459         [__ASSUME_WAITID_SYSCALL]: Likewise.
58460         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58461
58462 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58463
58464         * sysdeps/unix/closedir.c: Renamed to ...
58465         * sysdeps/posix/closedir.c: ... here.
58466         * sysdeps/unix/dirfd.c: Renamed to ...
58467         * sysdeps/posix/dirfd.c: ... here.
58468         * sysdeps/unix/dirstream.h: Renamed to ...
58469         * sysdeps/posix/dirstream.h: ... here.
58470         * sysdeps/unix/fdopendir.c: Renamed to ...
58471         * sysdeps/posix/fdopendir.c: ... here.
58472         * sysdeps/unix/opendir.c: Renamed to ...
58473         * sysdeps/posix/opendir.c: ... here.
58474         * sysdeps/unix/readdir.c: Renamed to ...
58475         * sysdeps/posix/readdir.c: ... here.
58476         * sysdeps/unix/readdir_r.c: Renamed to ...
58477         * sysdeps/posix/readdir_r.c: ... here.
58478         * sysdeps/unix/rewinddir.c: Renamed to ...
58479         * sysdeps/posix/rewinddir.c: ... here.
58480         * sysdeps/unix/seekdir.c: Renamed to ...
58481         * sysdeps/posix/seekdir.c: ... here.
58482         * sysdeps/unix/telldir.c: Renamed to ...
58483         * sysdeps/posix/telldir.c: ... here.
58484         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58485         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58486         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58487         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58488
58489         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58490         * bits/fcntl.h: ... here.
58491
58492         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58493         not 0.
58494         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58495         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58496         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58497         (struct flock): Move l_start, l_len to the beginning.
58498         Use __pid_t for l_pid.
58499         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58500         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58501         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58502         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58503         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58504         [__USE_LARGEFILE64] (struct flock64): New type.
58505         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58506
58507         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58508         * bits/dirent.h: ... here.
58509
58510         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58511         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58512
58513 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58514
58515         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58516         Change from 2.6.0 to 2.6.16.
58517         * sysdeps/unix/sysv/linux/configure: Regenerated.
58518         * sysdeps/unix/sysv/linux/kernel-features.h
58519         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58520         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58521         version.
58522         (__ASSUME_UTIMES): Likewise.
58523         (__ASSUME_CLONE_STOPPED): Remove.
58524         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58525         architectures, not kernel version.
58526         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58527         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58528         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58529         (__ASSUME_WAITID_SYSCALL): Likewise.
58530         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58531         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58532         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58533         refer to older versions.
58534
58535 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58536
58537         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58538         Define alphasort64 as an alias.
58539         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58540         Define versionsort64 as an alias.
58541         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58542         Define scandir64 as an alias.
58543         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58544         Define scandirat64 as an alias.
58545         * dirent/alphasort64.c (alphasort64):
58546         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58547         * dirent/versionsort64.c: Likewise.
58548         * dirent/scandir64.c: Likewise.
58549         * dirent/scandirat64.c: Likewise.
58550         * sysdeps/wordsize-64/alphasort.c: File removed.
58551         * sysdeps/wordsize-64/alphasort64.c: File removed.
58552         * sysdeps/wordsize-64/scandir.c: File removed.
58553         * sysdeps/wordsize-64/scandir64.c: File removed.
58554         * sysdeps/wordsize-64/scandirat.c: File removed.
58555         * sysdeps/wordsize-64/scandirat64.c: File removed.
58556         * sysdeps/wordsize-64/versionsort.c: File removed.
58557         * sysdeps/wordsize-64/versionsort64.c: File removed.
58558         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58559         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58560         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58561         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58562         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58563         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58564         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58565         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58566
58567         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58568         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58569         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58570         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58571         [defined __arch64__ || defined __sparcv9]
58572         (__INO_T_MATCHES_INO64_T): New macro.
58573         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58574         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58575         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58576         * sysdeps/unix/sysv/linux/bits/dirent.h
58577         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58578         (_DIRENT_MATCHES_DIRENT64): New macro.
58579
58580         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58581         Define lockf64 as an alias.
58582         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58583         Define fseeko64 as an alias.
58584         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58585         Define ftello64 as an alias.
58586         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58587         Define _IO_fgetpos64 and fgetpos64 as aliases.
58588         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58589         Define _IO_fsetpos64 and fsetpos64 as aliases.
58590         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58591         Conditionalize body on this.
58592         * libio/fseeko64.c: Likewise.
58593         * libio/ftello64.c: Likewise.
58594         * libio/iofgetpos64.c: Likewise.
58595         * libio/iofsetpos64.c: Likewise.
58596         * sysdeps/wordsize-64/lockf.c: File removed.
58597         * sysdeps/wordsize-64/lockf64.c: File removed.
58598         * sysdeps/wordsize-64/fseeko.c: File removed.
58599         * sysdeps/wordsize-64/fseeko64.c: File removed.
58600         * sysdeps/wordsize-64/ftello.c: File removed.
58601         * sysdeps/wordsize-64/ftello64.c: File removed.
58602         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58603         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58604         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58605         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58606         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58607         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58608         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58609         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58610         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58611         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58612         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58613         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58614         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58615         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58616
58617         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58618         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58619         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58620         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58621         [defined __arch64__ || defined __sparcv9]
58622         (__OFF_T_MATCHES_OFF64_T): New macro.
58623         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58624         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58625         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58626         (__OFF_T_MATCHES_OFF64_T): New macro.
58627
58628 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58629
58630         * stdlib/secure-getenv.c (__secure_getenv): Replace
58631         GLIBC_2_16 with GLIBC_2_17.
58632
58633 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58634
58635         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58636         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58637
58638 2012-08-03  David S. Miller  <davem@davemloft.net>
58639
58640         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58641
58642 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58643
58644         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58645         Remove.
58646         (__ASSUME_CORRECT_SI_PID): Likewise.
58647         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58648         (__ASSUME_TMPFS_NAME): Likewise.
58649         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58650         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58651         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58652         (HAVE_AUX_SECURE): Make definition unconditional.
58653         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58654         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58655
58656 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58657
58658         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58659         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58660         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58661         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58662         __eloop_threshold instead of SYMLOOP_MAX.
58663
58664         * sysdeps/generic/eloop-threshold.h: New file.
58665         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58666         of MAXSYMLINKS.
58667         * elf/chroot_canon.c (chroot_canon): Likewise.
58668
58669 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58670
58671         [BZ #13717]
58672         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58673         Change to 2.6.0 everywhere.
58674         * sysdeps/unix/sysv/linux/configure: Regenerated.
58675         * sysdeps/unix/sysv/linux/kernel-features.h
58676         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58677         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58678         kernel versions.
58679         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58680         (__ASSUME_FUTEX_REQUEUE): Remove.
58681         (__ASSUME_STATFS64): Define unconditionally.
58682         (__ASSUME_AT_SECURE): Likewise.
58683         (__ASSUME_CORRECT_SI_PID): Likewise.
58684         (__ASSUME_TGKILL): Define without depending on kernel version for
58685         i386.
58686         (__ASSUME_UTIMES): Likewise.
58687         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58688         kernel version.
58689         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58690         (__ASSUME_TMPFS_NAME): Likewise.
58691         * README: Update reference to Linux kernel versions.
58692
58693 2012-08-02  Marek Polacek  <polacek@redhat.com>
58694
58695         [BZ# 14150]
58696         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58697         libc_cv_asm_type_prefix with %.
58698         * configure: Regenerated.
58699         * include/libc-symbols.h: Remove comment about
58700         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58701         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58702         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58703         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58704         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58705         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58706         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58707         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58708         * elf/tst-unique2mod1.c: Likewise.
58709         * elf/tst-unique1mod2.c: Likewise.
58710         * elf/tst-unique1mod1.c: Likewise.
58711         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58712         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58713         Replace ASM_TYPE_DIRECTIVE with .type.
58714         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58715         * sysdeps/i386/sysdep.h: Likewise.
58716         * sysdeps/x86_64/sysdep.h: Likewise.
58717         * sysdeps/sh/sysdep.h: Likewise.
58718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58719         Do not define ASM_TYPE_DIRECTIVE.
58720         * sysdeps/powerpc/sysdep.h: Likewise.
58721         * sysdeps/powerpc/powerpc32/sysdep.h:
58722         Replace ASM_TYPE_DIRECTIVE with .type.
58723         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58724         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58725         * sysdeps/i386/fpu/e_powf.S: Likewise.
58726         * sysdeps/i386/fpu/e_expl.S: Likewise.
58727         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58728         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58729         * sysdeps/i386/fpu/e_pow.S: Likewise.
58730         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58731         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58732         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58733         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58734         * sysdeps/i386/fpu/e_log2.S: Likewise.
58735         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58736         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58737         * sysdeps/i386/fpu/e_powl.S: Likewise.
58738         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58739         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58740         * sysdeps/i386/fpu/e_logl.S: Likewise.
58741         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58742         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58743         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58744         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58745         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58746         * sysdeps/i386/fpu/e_log.S: Likewise.
58747         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58748         * sysdeps/i386/fpu/e_logf.S: Likewise.
58749         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58750         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58751         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58752         * sysdeps/i386/fpu/e_log10.S: Likewise.
58753         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58754         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58755         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58756         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58757         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58758         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58759         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58760         * sysdeps/i386/i686/strtok.S: Likewise.
58761         * sysdeps/i386/i386-mcount.S: Likewise.
58762         * sysdeps/i386/strtok.S: Likewise.
58763         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58764         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58765         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58766         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58767         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58768         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58769         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58770         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58771         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58772         * sysdeps/x86_64/_mcount.S: Likewise.
58773         * sysdeps/x86_64/strtok.S: Likewise.
58774         * sysdeps/sh/_mcount.S: Likewise.
58775
58776 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58777
58778         * libio/iofopen.c: Include <fcntl.h>.
58779         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58780         (_IO_fopen64, fopen64): Define as aliases.
58781         * libio/iofopen64.c: Include <fcntl.h>.
58782         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58783         Conditionalize body on this.
58784         * sysdeps/wordsize-64/iofopen.c: File removed.
58785         * sysdeps/wordsize-64/iofopen64.c: File removed.
58786
58787 2012-08-01  Marek Polacek  <polacek@redhat.com>
58788
58789         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58790         Use dlfcn directly instead of a variable.
58791         (binfmt-subdir): Do not define.
58792         (dlfcn): Likewise.
58793
58794 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58795
58796         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58797         Remove all definitions.
58798         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58799         <kernel-features.h>.
58800         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58801         (miss_F_GETOWN_EX): Remove all definitions.
58802         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58803         macro definition.
58804         [!__ASSUME_FCNTL64]: Remove conditional code.
58805         [__ASSUME_FCNTL64]: Make code unconditional.
58806         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58807         <kernel-features.h>.
58808         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58809         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58810         (lockf64) [__NR_fcntl64]: Make code unconditional.
58811         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58812
58813         * sysdeps/unix/sysv/linux/kernel-features.h
58814         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58815         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58816         Make code unconditional.
58817         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58818         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58820         [__NR_vfork]: Make code unconditional.
58821         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58822         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58824         [__NR_vfork]: Make code unconditional.
58825         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58826         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58827
58828 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58829
58830         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58831         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58832
58833         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58834         Define mkstemp64 as an alias.
58835         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58836         Define mkstemps64 as an alias.
58837         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58838         Define mkostemp64 as an alias.
58839         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58840         Define mkostemps64 as an alias.
58841         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
58842         Conditionalize body on this.
58843         * misc/mkostemp64.c: Likewise.
58844         * misc/mkostemps64.c: Likewise.
58845         * misc/mkstemps64.c: Likewise.
58846         * sysdeps/wordsize-64/mkstemp64.c: File removed.
58847         * sysdeps/wordsize-64/mkostemp64.c: File removed.
58848         * sysdeps/wordsize-64/mkostemp.c: File removed.
58849         * sysdeps/wordsize-64/mkstemp.c: File removed.
58850         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
58851         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
58852         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
58853         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
58854
58855         [BZ #14138]
58856         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
58857         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
58858         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
58859         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
58860
58861         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
58862         compat_symbol macros from <shlib-compat.h> rather than the underlying
58863         default_symbol_version and symbol_version macros, so that DEFAULT
58864         lines in shlib-versions are respected.
58865         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
58866
58867 2012-08-01  Florian Weimer  <fweimer@redhat.com>
58868
58869         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
58870         Declare with warn_unused_result.
58871         (setgid, setregid, setegid, setresgid): Likewise.
58872         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
58873         Likewise.
58874         * WUR-REPORT: Remove set*id functions.
58875
58876 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
58877
58878         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
58879
58880 2012-07-31  Roland McGrath  <roland@hack.frob.com>
58881
58882         [BZ #10191]
58883         * include/sys/socket.h (__libc_accept, __libc_accept4):
58884         Add attribute_hidden.
58885         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
58886
58887         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
58888         use of PTR_MANGLE.
58889         * inet/getnetgrent_r.c (setup): Likewise.
58890
58891         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
58892
58893 2012-07-31  David S. Miller  <davem@davemloft.net>
58894
58895         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58896
58897 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
58898
58899         [BZ #13629]
58900         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
58901         value between 1.0 and 2.0 and smaller part has absolute value less
58902         than 1.0.
58903         * math/s_clog10.c (__clog10): Likewise.
58904         * math/s_clog10f.c (__clog10f): Likewise.
58905         * math/s_clog10l.c (__clog10l): Likewise.
58906         * math/s_clogf.c (__clogf): Likewise.
58907         * math/s_clogl.c (__clogl): Likewise.
58908         * math/libm-test.inc (clog_test): Add more tests.
58909         (clog10_test): Likewise.
58910         * sysdeps/i386/fpu/libm-test-ulps: Update.
58911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58912
58913 2012-07-31  Florian Weimer  <fweimer@redhat.com>
58914
58915         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
58916         Exit with zero in case no suitable GID is found, and write a
58917         message to standard error.
58918
58919 2012-07-30  Roland McGrath  <roland@hack.frob.com>
58920
58921         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
58922         rather than to 1.
58923         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
58924         (MAXPATHLEN): Removed.
58925         (NOGROUP, NODEV): New macros.
58926         (setbit, clrbit, isset, isclr): New macros.
58927         (howmany, roundup, powerof2): New macros.
58928         (DEV_BSIZE): New macro.
58929
58930         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
58931         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
58932
58933         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
58934         definition on [!__NO_LONG_DOUBLE_MATH].
58935
58936         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
58937         PTR_MANGLE and PTR_DEMANGLE.
58938
58939         * socket/accept4.c (accept4): Rename to __libc_accept4.
58940         Define accept4 as a weak alias.
58941
58942         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
58943         on [_DIRENT_HAVE_D_TYPE].
58944         * io/ftw.c (ftw_dir): Likewise.
58945
58946         * io/xmknod.c (__xmknod): Don't check PATH for being null.
58947
58948         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
58949
58950         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
58951         Use the BSD numbers rather than the arbitrary ones we had.
58952         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
58953         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
58954         (SIGXCPU, SIGXFSZ): New macros.
58955         (_NSIG): Now 32.
58956
58957         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
58958         initializer on [_LIBC_REENTRANT].
58959
58960         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
58961         definitions inside [_POSIX_MAPPED_FILES].
58962
58963         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
58964
58965         * dirent/opendir.c: Include <fcntl.h>.
58966
58967         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
58968         (__libc_getspecific): Likewise.
58969         (__libc_key_create): Likewise.
58970
58971         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
58972         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
58973         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
58974         (tmpfile64): Define as alias.
58975         * sysdeps/wordsize-64/tmpfile.c: File removed.
58976         * sysdeps/wordsize-64/tmpfile64.c: File removed.
58977         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
58978         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
58979
58980         * stdio-common/vfscanf.c: Include <stdbool.h>.
58981         * nss/makedb.c: Likewise.
58982         * stdio-common/_i18n_number.h: Likewise.
58983         * argp/argp-help.c: Likewise.
58984         * posix/wordexp.c: Likewise.
58985         * sysdeps/posix/spawni.c: Likewise.
58986         * nss/nss_files/files-initgroups.c: Likewise.
58987         * stdio-common/reg-modifier.c: Include <stdlib.h>.
58988         * nss/nss_files/files-initgroups.c: Likewise.
58989         * nss/nss_db/db-netgrp.c: Likewise.
58990         * nss/nss_db/db-initgroups.c: Likewise.
58991         * io/fchmodat.c: Include <sys/stat.h>.
58992
58993         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
58994         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
58995
58996         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
58997         [HAVE_MMAP].
58998
58999         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59000         Add multiple inclusion protection.
59001
59002 2012-07-27  David S. Miller  <davem@davemloft.net>
59003
59004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59005
59006 2012-07-27  Gary Benson  <gbenson@redhat.com>
59007
59008         [BZ #14298]
59009         * elf/rtld.c: Include <stap-probe.h>.
59010         (dl_main): Added static probes "init_start" and "init_complete".
59011         * elf/dl-load.c: Include <stap-probe.h>.
59012         (lose): Take new parameter "nsid".
59013         Added static probe "map_failed".
59014         (_dl_map_object_from_fd): Pass namespace id to lose.
59015         Added static probe "map_start".
59016         (open_verify): Pass namespace id to lose.
59017         * elf/dl-open.c: Include <stap-probe.h>.
59018         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59019         and "reloc_complete".
59020         * elf/dl-close.c: Include <stap-probe.h>.
59021         (_dl_close_worker): Added static probes "unmap_start" and
59022         "unmap_complete".
59023         * elf/rtld-debugger-interface.txt: New file documenting the above.
59024
59025 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59026
59027         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59028         rather than a string variable.
59029         * sunrpc/rpc_main.c (h_output): Likewise.
59030         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59031
59032 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59033
59034         * inet/check_native.c: New file.
59035
59036 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59037
59038         [BZ #13629]
59039         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59040         if larger part has absolute value 1.0.
59041         * math/s_clog10.c (__clog10): Likewise.
59042         * math/s_clog10f.c (__clog10f): Likewise.
59043         * math/s_clog10l.c (__clog10l): Likewise.
59044         * math/s_clogf.c (__clogf): Likewise.
59045         * math/s_clogl.c (__clogl): Likewise.
59046         * math/libm-test.inc (clog_test): Add more tests.
59047         (clog10_test): Likewise.
59048         * sysdeps/i386/fpu/libm-test-ulps: Update.
59049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59050
59051         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59052         (pltexit): Likewise.
59053         (La_regs): Likewise.
59054         (La_retval): Likewise.
59055         (int_retval): Likewise.
59056         Update #error for removed macros to refer only to definitions in
59057         tst-audit.h.
59058         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59059         macro.
59060         (pltexit): Likewise.
59061         (La_regs): Likewise.
59062         (La_retval): Likewise.
59063         (int_retval): Likewise.
59064         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59065         macro.
59066         (pltexit): Likewise.
59067         (La_regs): Likewise.
59068         (La_retval): Likewise.
59069         (int_retval): Likewise.
59070         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59071         macro.
59072         (pltexit): Likewise.
59073         (La_regs): Likewise.
59074         (La_retval): Likewise.
59075         (int_retval): Likewise.
59076         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59077         macro.
59078         (pltexit): Likewise.
59079         (La_regs): Likewise.
59080         (La_retval): Likewise.
59081         (int_retval): Likewise.
59082         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59083         macro.
59084         (pltexit): Likewise.
59085         (La_regs): Likewise.
59086         (La_retval): Likewise.
59087         (int_retval): Likewise.
59088         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59089         macro.
59090         (pltexit): Likewise.
59091         (La_regs): Likewise.
59092         (La_retval): Likewise.
59093         (int_retval): Likewise.
59094         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59095         macro definitions in tst-audit.h.
59096         * sysdeps/i386/tst-audit.h: New file.
59097         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59098         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59099         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59100         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59101         * sysdeps/sh/tst-audit.h: Likewise.
59102         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59103         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59104         * sysdeps/x86_64/tst-audit.h: Likewise.
59105
59106 2012-07-26  Andreas Jaeger  <aj@suse.de>
59107
59108         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59109         ptrace.
59110
59111         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59112         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59113         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59114         PTRACE_O_MASK.
59115         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59116         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59117         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59118
59119         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59120         value.
59121
59122         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59123         _sigsys.
59124         (si_call_addr, si_syscall, si_arch): Define new macro.
59125         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59126         _sigsys.
59127         (si_call_addr, si_syscall, si_arch): Define new marcro.
59128         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59129         _sigsys.
59130         (si_call_addr, si_syscall, si_arch): Define new macro.
59131         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59132         _sigsys.
59133         (si_call_addr, si_syscall, si_arch): Define new macro.
59134
59135 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59136
59137         [BZ #13717]
59138         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59139         Change to 2.4.21 where previously 2.4.1.
59140         * sysdeps/unix/sysv/linux/configure: Regenerated.
59141         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59142         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59143         Linux kernel version.
59144         (__ASSUME_STD_AUXV): Remove.
59145         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59146         kernel version.
59147         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59148         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59149         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59150         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59151         (__ASSUME_NETLINK_SUPPORT): Likewise.
59152         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59153         (__no_netlink_support): Remove conditional definition.
59154         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59155         Remove.
59156         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59157         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59158         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59159         (if_nameindex_ioctl): Remove.
59160         (if_nameindex_netlink): Do not handle __no_netlink_support.
59161         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59162         code.
59163         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59164         Remove conditional code.
59165         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59166         code.
59167         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59168         unconditional.
59169         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59170         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59171         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59172         Remove.
59173         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59174         [!__ASSUME_STD_AUXV]: Remove conditional code.
59175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59176         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59177         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59179         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59180         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59181         code.
59182         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59184         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59185         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59186         conditional code.
59187         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59189         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59190         code.
59191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59192         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59193         conditional code.
59194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59195         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59196         code unconditional.
59197         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59198         conditional code.
59199         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59200         unconditional.
59201         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59202         conditional code.
59203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59204         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59205         unconditional.
59206         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59207         conditional code.
59208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59209         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59210         code unconditional.
59211         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59212         conditional code.
59213         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59214         unconditional.
59215         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59216         conditional code.
59217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59218         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59219         code unconditional.
59220         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59221         conditional code.
59222         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59223         unconditional.
59224         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59225         conditional code.
59226
59227 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59228
59229         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59230         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59231         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59232         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59233         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59234         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59235         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59236         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59237         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59238         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59239         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59240         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59241         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59242         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59243         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59244         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59245         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59246         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59247         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59248         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59249         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59250         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59251         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59252
59253 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59254
59255         * Versions.def: Add GLIBC_2.17.
59256         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59257         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59258         Introduce __libc_secure_getenv.
59259         * stdlib/Versions (2.17): Add secure_getenv
59260         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59261         * stdlib/secure-getenv.c: Rename __secure_getenv to
59262         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59263         symbol __secure_getenv for GLIBC_2.0.
59264         * stdlib/tst-secure-getenv.c: New.
59265         * stdlib/Makefile (tests): Add testcase.
59266         * manual/startup.texi (Environment Access): Document
59267         secure_getenv.
59268         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59269         __libc_secure_getenv.
59270         * inet/ruserpass.c (ruserpass): Likewise.
59271         * malloc/mtrace.c (mtrace): Likewise.
59272         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59273         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59274         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59275         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59276         HAVE_SECURE_GETENV.
59277         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59278         __secure_getenv to __libc_secure_getenv.
59279         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59281         Likewise.
59282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59283         Likewise.
59284         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59285         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59286         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59287         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59288         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59289         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59291
59292 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59293
59294         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59295         (struct La_i86_retval): Likewise.
59296         (struct La_x86_64_regs): Likewise.
59297         (struct La_x86_64_retval): Likewise.
59298         (struct La_x32_regs): Likewise.
59299         (struct La_x32_retval): Likewise.
59300         (struct La_ppc32_regs): Likewise.
59301         (struct La_ppc32_retval): Likewise.
59302         (struct La_ppc64_regs): Likewise.
59303         (struct La_ppc64_retval): Likewise.
59304         (struct La_sh_regs): Likewise.
59305         (struct La_sh_retval): Likewise.
59306         (struct La_s390_32_regs): Likewise.
59307         (struct La_s390_32_retval): Likewise.
59308         (struct La_s390_64_regs): Likewise.
59309         (struct La_s390_64_retval): Likewise.
59310         (struct La_sparc32_regs): Likewise.
59311         (struct La_sparc32_retval): Likewise.
59312         (struct La_sparc64_regs): Likewise.
59313         (struct La_sparc64_retval): Likewise.
59314         (struct audit_ifaces): Remove architecture-specific pltenter and
59315         pltexit members.
59316         * sysdeps/i386/ldsodefs.h: New file.
59317         * sysdeps/powerpc/ldsodefs.h: Likewise.
59318         * sysdeps/s390/ldsodefs.h: Likewise.
59319         * sysdeps/sh/ldsodefs.h: Likewise.
59320         * sysdeps/sparc/ldsodefs.h: Likewise.
59321         * sysdeps/x86_64/ldsodefs.h: Likewise.
59322
59323 2012-07-25  Marek Polacek  <polacek@redhat.com>
59324
59325         [BZ #6808]
59326         * math/libm-test.inc (yn_test): Add another test.
59327         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59328         to ERANGE when the result is +-Inf.
59329         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59330         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59331         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59332         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59333
59334 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59335
59336         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59337         equal to 0.
59338         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59339         clock_t.
59340         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59341
59342 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59343
59344         * configure.in <sysdeps resolving>: Correct printing
59345         Implies_before.
59346         * configure: Regenerate.
59347
59348 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59349
59350         * math/w_ilogb.c: Include <limits.h>.
59351         * math/w_ilogbl.c: Likewise.
59352
59353 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59354
59355         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59356         va_copy.  Document allowing for unavailable va_copy only as
59357         pre-C99 compatibility.
59358         * manual/string.texi (Copying and Concatenation): Use va_copy
59359         instead of __va_copy in concat example.
59360
59361 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59362
59363         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59364         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59365         it if not null.
59366
59367         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59368         with O_NOLINK passed to __file_name_lookup.
59369
59370         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59371         with O_NOLINK passed to __file_name_lookup.
59372
59373         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59374         negative N or less than NGIDS.
59375
59376         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59377         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59378         enough.  Use memcpy instead of strncpy.
59379
59380 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59381
59382         * elf/Makefile (check-data): Remove.
59383         (localplt.data): New vpath directive.
59384         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59385         instead of $(check-data).
59386         * scripts/data/localplt-generic.data: Move to ...
59387         * sysdeps/generic/localplt.data: ... here.
59388         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59389         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59390         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59392         ... here.
59393         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59395         ... here.
59396         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59397         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59398         ... here.
59399         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59401         ... here.
59402         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59403         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59404         ... here.
59405         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59406         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59407         ... here.
59408
59409 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59410
59411         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59412         PPC32 and PPC64 files.
59413         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59414         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59415
59416 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59417
59418         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59419         __makecontext_ret to ...
59420         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59421         ... here and call exit if uc_link is NULL.  New file.
59422         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59423         __makecontext_ret.S.
59424         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59425         __makecontext_ret to ...
59426         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59427         ... here and call exit if uc_link is NULL.  New file.
59428         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59429         __makecontext_ret.S.
59430
59431 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59432
59433         * elf/elf.h (R_390_IRELATIVE): New definition.
59434         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59435         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59436         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59437         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59438         (elf_machine_lazy_rel): Likewise.
59439         * sysdeps/s390/dl-irel.h: New file.
59440         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59441         * sysdeps/s390/s390-64/memset.S: New asm code.
59442         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59443         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59444         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59445         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59446         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59447         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59448         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59449         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59450         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59451         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59452         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59453         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59454         * sysdeps/s390/s390-32/memset.S: New asm code.
59455         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59456
59457 2012-07-17  Marek Polacek  <polacek@redhat.com>
59458
59459         [BZ #14349]
59460         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59461         * sysdeps/s390/s390-64/configure.in: Likewise.
59462         * sysdeps/sparc/configure.in: Likewise.
59463         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59464         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59465         * sysdeps/i386/configure.in: Likewise.
59466         * sysdeps/x86_64/configure.in: Likewise.
59467         * sysdeps/sh/configure.in: Likewise.
59468         * sysdeps/s390/s390-32/configure: Regenerated.
59469         * sysdeps/s390/s390-64/configure: Likewise.
59470         * sysdeps/x86_64/configure: Likewise.
59471         * sysdeps/sh/configure: Likewise.
59472         * sysdeps/powerpc/powerpc64/configure: Likewise.
59473         * sysdeps/powerpc/powerpc32/configure: Likewise.
59474         * sysdeps/sparc/configure: Likwise.
59475         * sysdeps/i386/configure: Likewise.
59476
59477         * elf/dl-open.c: Comment fixes.
59478
59479 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59480
59481         * Makefile [CXX] (check-data): Remove.
59482         [CXX] (c++-types.data): New vpath directive.
59483         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59484         vpath.  Do not allow for C++ type data being missing.
59485         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59486         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59487         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59488         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59489         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59490         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59491         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59493         ... here.
59494         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59496         ... here.
59497         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59499         ... here.
59500         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59502         ... here.
59503         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59504         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59505         ... here.
59506         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59508         ... here.
59509         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59510         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59511         ... here.
59512         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59514
59515         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59516         definitions to architecture-specific files.
59517         (TLS_IE): Likewise.
59518         (TLS_LD): Likewise.
59519         (TLS_GD): Likewise.
59520         * sysdeps/i386/tls-macros.h: New file.
59521         * sysdeps/powerpc/tls-macros.h: Likewise.
59522         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59523         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59524         * sysdeps/sh/tls-macros.h: Likewise.
59525         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59526         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59527         * sysdeps/x86_64/tls-macros.h: Likewise.
59528
59529 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59530
59531         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59532         zero value for regular exit case.
59533
59534         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59535         (__start_context): Preserve zero value for regular exit case.
59536
59537 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59538             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59539
59540         * manual/setjmp.texi (setcontext): Clarify normal process
59541         termination when uc_link is the null pointer.
59542         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59543         exit call.
59544
59545 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59546
59547         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59548         preprocessor.  Test for each exception mask separately.
59549
59550 2012-07-16  Andreas Jaeger  <aj@suse.de>
59551
59552         * po/ru.po: Update from translation team.
59553
59554 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59555
59556         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59557         equal to 0.
59558         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59559         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59560         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59561         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59562         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59563
59564 2012-07-13  Andreas Jaeger  <aj@suse.de>
59565
59566         * po/fr.po: Update from translation team.
59567
59568 2012-07-12  Marek Polacek  <polacek@redhat.com>
59569
59570         [BZ #14173]
59571         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59572         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59573         loop condition.
59574
59575 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59576
59577         [BZ #13717]
59578         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59579         Change to 2.4.1 where previously 2.4.0.
59580         * sysdeps/unix/sysv/linux/configure: Regenerated.
59581         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59582         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59583         version.
59584         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59585         (__ASSUME_AT_CLKTCK): Remove.
59586         (__ASSUME_AT_PAGESIZE): Likewise.
59587         (__ASSUME_AT_XID): Likewise.
59588         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59589         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59590         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59591         unconditionally.
59592         (HAVE_AUX_PAGESIZE): Likewise.
59593         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59594         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59595         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59596
59597 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59598
59599         [BZ #14307]
59600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59601         the temporary buffer used to invoke __gethostbyname2_r,
59602         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59603         host_data / struct gaih_addrtuple.
59604         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59605         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59606         header file nss/nsswitch.h.
59607         * nss/nsswitch.h (global scope): Add definition of implementation
59608         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59609         resolv/nss_dns/dns-host.c).
59610
59611 2012-07-11  Andreas Jaeger  <aj@suse.de>
59612
59613         * po/fr.po: Update from translation team.
59614
59615         * po/sv.po: Update from translation team
59616         * po/fr.po: Another update from translation team.
59617
59618 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59619
59620         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59621         for subnormals or multiply small sinh result by itself.
59622         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59624
59625 2012-07-11  David S. Miller  <davem@davemloft.net>
59626
59627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59628
59629 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59630
59631         [BZ #14347]
59632         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59633         (INTERNAL_MARK): Shift it here.
59634
59635 2012-07-10  Marek Polacek  <polacek@redhat.com>
59636
59637         [BZ #14151]
59638         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59639         libc_cv_asm_global_directive with .globl.
59640         * configure: Regenerated.
59641         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59642         with .globl.
59643         * sysdeps/i386/configure: Regenerated.
59644         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59645         with .globl.
59646         * sysdeps/x86_64/configure: Regenerated.
59647         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59648         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59649         * elf/tst-unique2mod2.c: Likewise.
59650         * elf/tst-unique2mod1.c: Likewise.
59651         * elf/tst-unique1mod2.c: Likewise.
59652         * elf/tst-unique1mod1.c: Likewise.
59653         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59654         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59655         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59656         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59657         * sysdeps/mach/sysdep.h: Likewise.
59658         * sysdeps/i386/sysdep.h: Likewise.
59659         * sysdeps/i386/i386-mcount.S: Likewise.
59660         * sysdeps/x86_64/_mcount.S: Likewise.
59661         * sysdeps/x86_64/sysdep.h: Likewise.
59662         * sysdeps/sh/_mcount.S: Likewise.
59663         * sysdeps/sh/sysdep.h: Likewise.
59664         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59665         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59666         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59667         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59668         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59669         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59670         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59671         * locale/localeinfo.h: Likewise.
59672         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59673         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59674
59675 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59676
59677         [BZ #14336]
59678         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59679         system".
59680         * manual/message.texi (The Uniforum approach): Likewise.
59681         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59682         (glibc iconv Implementation): Likewise.
59683
59684 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59685
59686         [BZ #14337]
59687         * math/s_clog.c (__clog): Avoid scaling a value down where that
59688         could result in underflow.
59689         * math/s_clog10.c (__clog10): Likewise.
59690         * math/s_clog10f.c (__clog10f): Likewise.
59691         * math/s_clog10l.c (__clog10l): Likewise.
59692         * math/s_clogf.c (__clogf): Likewise.
59693         * math/s_clogl.c (__clogl): Likewise.
59694         * math/libm-test.inc (clog_test): Add more tests.
59695         (clog10_test): Likewise.
59696         * sysdeps/i386/fpu/libm-test-ulps: Update.
59697         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59698
59699 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59700
59701         [BZ #14283]
59702         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59703         by 7 not 8 to examine high bit of fractional part.
59704
59705         [BZ #14042]
59706         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59707         for call to __mcount_internal.
59708         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59709         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59710         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59711
59712 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59713
59714         [BZ #14154]
59715         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59716         approximation for values within 0x1p-13f of an odd multiple of
59717         pi/4.
59718         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59719         exception.  Add more tests.
59720         * sysdeps/i386/fpu/libm-test-ulps: Update.
59721
59722         [BZ #6778]
59723         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59724         inputs and return -1 for them.  Do not check for +Inf in case not
59725         reachable for +Inf.
59726         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59727         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59728         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59729         and return -1 for them.  Do not check for +Inf in case not
59730         reachable for +Inf.
59731         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59732         define.
59733         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59734         and return -1 for them.  Do not check for +Inf in case not
59735         reachable for +Inf.
59736         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59737         spurious underflow.
59738         * sysdeps/i386/fpu/libm-test-ulps: Update.
59739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59740
59741 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59742
59743         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59744
59745 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59746
59747         [BZ #14157]
59748         [BZ #14331]
59749         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59750         could result in spurious underflow.  Scale down values above
59751         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59752         * math/s_csqrtf.c (__csqrtf): Likewise.
59753         * math/s_csqrtl.c (__csqrtl): Likewise.
59754         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59755         spurious underflow.
59756         * sysdeps/i386/fpu/libm-test-ulps: Update.
59757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59758
59759 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59760
59761         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59762         xopen-msg.sed.
59763         * catgets/xopen-msg.awk: New file.
59764         * catgets/xopen-msg.sed: Removed.
59765
59766         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59767         po2text.sed.
59768         * intl/po2test.awk: New file.
59769         * intl/po2test.sed: Removed.
59770
59771 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59772
59773         [BZ #14328]
59774         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59775         or multiply small sinh result by itself.
59776         * math/s_ctanf.c (__ctanf): Likewise.
59777         * math/s_ctanh.c (__ctanh): Likewise.
59778         * math/s_ctanhf.c (__ctanhf): Likewise.
59779         * math/s_ctanhl.c (__ctanhl): Likewise.
59780         * math/s_ctanl.c (__ctanl): Likewise.
59781         * math/libm-test.inc (ctan_test_tonearest): New function.
59782         (ctan_test_towardzero): Likewise.
59783         (ctan_test_downward): Likewise.
59784         (ctan_test_upward): Likewise.
59785         (ctanh_test_tonearest): Likewise.
59786         (ctanh_test_towardzero): Likewise.
59787         (ctanh_test_downward): Likewise.
59788         (ctanh_test_upward): Likewise.
59789         (main): Call these new functions.
59790         * sysdeps/i386/fpu/libm-test-ulps: Update.
59791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59792
59793 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59794
59795         * .gitignore: Delete /ports entry.
59796
59797 2012-07-03  Andreas Jaeger  <aj@suse.de>
59798
59799         * po/bg.po: Update from translation team.
59800         * po/cs.po: Likewise.
59801         * po/de.po: Likewise.
59802         * po/hr.po: Likewise.
59803         * po/nl.pl: Likewise.
59804         * po/pl.po: Likewise.
59805         * po/vi.po: Likewise.
59806
59807 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59808
59809         * Makeconfig [!+link] (+link-before-libc): New variable.
59810         [!+link] (+link-after-libc): Likewise.
59811         [!+link] (+link-tests): Likewise.
59812         [!+link] (+link): Define in terms of $(+link-before-libc) and
59813         $(+link-after-libc).
59814         [!+link-static] (+link-static-before-libc): New variable.
59815         [!+link-static] (+link-static-after-libc): Likewise.
59816         [!+link-static] (+link-static-tests): Likewise.
59817         [!+link-static] (+link-static): Define in terms of
59818         $(+link-static-before-libc) and $(+link-static-after-libc).
59819         [build-shared] (link-libc-before-gnulib): New variable.
59820         [build-shared] (link-libc-tests): Likewise.
59821         [build-shared] (link-libc): Define in terms of
59822         $(link-libc-before-gnulib).
59823         [!build-shared] (link-libc-tests): New variable.
59824         (link-libc-static-tests): New variable.
59825         [!gnulib] (gnulib-arch): New variable.
59826         [!gnulib] (gnulib-tests): Likewise.
59827         [!gnulib] (static-gnulib-arch): Likewise.
59828         [!gnulib] (static-gnulib-tests): Likewise.
59829         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59830         Define with "=" instead of ":=".
59831         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59832         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59833         * Rules (binaries-all-notests): New variable.
59834         (binaries-all-tests): Likewise.
59835         (binaries-static-notests): Likewise.
59836         (binaries-static-tests): Likewise.
59837         (binaries-all): Define using $(binaries-all-notests) and
59838         $(binaries-all-tests).
59839         (binaries-static): Define using $(binaries-static-notests) and
59840         $(binaries-static-tests).
59841         (binaries-shared-tests): New variable.
59842         (binaries-shared-notests): Likewise.
59843         (binaries-shared): Remove variable.
59844         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
59845         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
59846         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
59847         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
59848         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
59849         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
59850         * elf/Makefile (sln-modules): New variable.
59851         (extra-objs): Add $(sln-modules:=.o).
59852         (ldconfig-modules): Add static-stubs.
59853         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
59854         * elf/static-stubs.c: New file.
59855
59856         [BZ #14283]
59857         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
59858         by 7 not 8 to examine high bit of fractional part.  Use volatile
59859         variables when splitting into final array of floats if
59860         __FLT_EVAL_METHOD__ != 0.
59861         * math/libm-test.inc (cos_test): Add another test.
59862         (sin_test): Likewise.
59863         * sysdeps/i386/fpu/libm-test-ulps: Update.
59864
59865         [BZ #14273]
59866         * math/libm-test.inc (cosh_test): Add more tests.
59867
59868         * version.h (RELEASE): Set to "development".
59869         (VERSION): Set to "2.16.90".
59870
59871 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
59872
59873         * NEWS: Update copyright. Remove last-updated date.
59874         Mention math library bug fixes and timezone data changes.
59875         * README: Mention GNU/Hurd, x32, and HPPA support status.
59876
59877 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
59878
59879         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
59880
59881 2012-06-27  Andreas Jaeger  <aj@suse.de>
59882
59883         * manual/contrib.texi (Contributors): Add Samuel Thibault.
59884
59885 2012-06-25  Andreas Jaeger  <aj@suse.de>
59886
59887         * sysdeps/s390/fpu/libm-test-ulps: Update.
59888
59889 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
59890             Thomas Schwinge  <thomas@codesourcery.com>
59891
59892         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
59893         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
59894         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
59895         fanotify_mark.
59896
59897 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
59898
59899         * sysdeps/mach/start.c: Remove file.
59900         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
59901         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
59902         * sysdeps/sh/init-first.c: Likewise.
59903
59904         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
59905         registers for frame unwinding purposes, add CFI directives.
59906         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59907         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
59908         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
59909         Likewise.
59910
59911         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
59912         __fortify_fail returning.
59913         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59914
59915         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
59916         sysdeps/sh/____longjmp_chk.S.
59917         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
59918         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
59919         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
59920         (gen-as-const-headers): Append sigaltstack-offsets.sym.
59921
59922         * sysdeps/sh/abort-instr.h: New file.
59923         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
59924         process in case exit returns.
59925
59926         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
59927         initialize the GOT register before use.
59928
59929         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
59930         calculation of ARGC > 4.
59931
59932         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
59933         meaningful names to some local labels.
59934
59935 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
59936             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59937
59938         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
59939         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
59940         (__arch_compare_and_exchange_val_16_acq): Likewise.
59941         (__arch_compare_and_exchange_val_32_acq): Likewise.
59942         (atomic_exchange_and_add): Fix gUSA sequence.
59943         (atomic_add): Likewise.
59944         (atomic_add_negative): Likewise.
59945         (atomic_add_zero): Likewise.
59946         (atomic_bit_test_set): Likewise.
59947
59948 2012-06-22  Andreas Schwab  <schwab@redhat.com>
59949
59950         [BZ #13579]
59951         * include/link.h (struct link_map): Add l_free_initfini.
59952         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
59953         l_initfini.
59954         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
59955         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
59956         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
59957         set.
59958
59959 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
59960
59961         * configure.in: Use AC_LANG_SOURCE.
59962         * configure: Regenerate.
59963
59964 2012-06-22  Roland McGrath  <roland@hack.frob.com>
59965
59966         * configure.in (libc_cv_localstatedir): New substituted variable.
59967         * configure: Regenerated.
59968         * config.make.in (localstatedir): New variable, substituted from
59969         libc_cv_localstatedir.
59970         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
59971         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
59972         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
59973         * sysdeps/gnu/configure: Regenerated.
59974
59975 2012-06-21  Jeff Law  <law@redhat.com>
59976
59977         [BZ #14277]
59978         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
59979         free.  Simplify list management for _LIBC case.
59980
59981 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
59982
59983         [BZ #14273]
59984         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
59985         Clear sign bit of 64-bit integer value before comparing against
59986         overflow value.
59987
59988         * sysdeps/mach/configure: Regenerated.
59989
59990 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
59991
59992         [BZ #14278]
59993         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
59994
59995 2012-06-21  Jeff Law  <law@redhat.com>
59996
59997         [BZ #13882]
59998         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
59999         uint16_t for elements in the "seen" array to avoid char overflows.
60000         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60001         * elf/dl-open.c (dl_open_worker): Likewise.
60002
60003 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60004
60005         * scripts/list-sources.sh: Scan PORTS for translations.
60006         * po/libc.pot: Regenerated.
60007
60008 2012-06-21  Andreas Jaeger  <aj@suse.de>
60009
60010         [BZ #12194]
60011         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60012         warning.
60013         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60014         * bits/byteswap-16.h (__bswap_16): Likewise.
60015         * bits/byteswap.h (__bswap_constant_16): Likewise.
60016
60017 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60018
60019         [BZ #14117]
60020         * sysdeps/i386/fpu_control.h: Removed.
60021         * sysdeps/x86_64/fpu_control.h: Moved to ...
60022         * sysdeps/x86/fpu_control.h: Here.
60023
60024         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60025         (_FPU_SETCW): Likewise.
60026
60027 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60028
60029         [BZ #14117]
60030         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60031         * sysdeps/x86/fpu/bits/mathinline.h: This.
60032         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60033
60034         [BZ #14050]
60035         [BZ #14117]
60036         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60037         functions if __x86_64__ is defined.
60038
60039 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60040
60041         * string/endian.h: Add !__ASSEMBLER__ condition for including
60042         conversion interfaces.
60043
60044 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60045
60046         [BZ #14241]
60047         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60048         of ABS(x) in calculating zero to negative powers other than odd
60049         integers.
60050         * math/libm-test.inc (pow_test): Add more tests.
60051
60052 2012-06-15  Andreas Jaeger  <aj@suse.de>
60053
60054         * manual/contrib.texi (Contributors): Update entry of Liubov
60055         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60056         Machado Filho.
60057
60058 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60059
60060         * string/string.h: Add __wur to GNU version of strerror_r.
60061
60062 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60063
60064         [BZ #14229]
60065         * string/Makefile (tests): Add tst-strtok_r.
60066         * string/tst-strtok_r.c: New file.
60067         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60068         RAX_LP/RDX_LP on SAVE_PTR.
60069
60070 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60071
60072         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60073
60074 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60075
60076         * libm_test.inc (csqrt_test): Allow more spurious underflow
60077         exceptions.
60078         (j0_test): Likewise.
60079         (j1_test): Likewise.
60080         (y0_test): Likewise.
60081         (y1_test): Likewise.
60082
60083 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60084
60085         * po/Makefile (libc.pot): Use UTF-8 charset.
60086
60087 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60088
60089         [BZ #14210]
60090         Suppress sign-conversion warning from FD_SET.
60091         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60092         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60093         not unsigned long int.
60094         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60095
60096 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60097
60098         [BZ #14050]
60099         [BZ #14117]
60100         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60101         __extern_always_inline instead of __extern_inline.
60102         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60103         (__signbit): Likewise.
60104         (__signbitl): Support C++ namespace.
60105         (lrintf): New inline function.
60106         (lrint): Likewise.
60107         (llrintf): Likewise.
60108         (llrint): Likewise.
60109         (fmaxf): Likewise.
60110         (fmax): Likewise.
60111         (fminf): Likewise.
60112         (fmin): Likewise.
60113         (rint): Likewise.
60114         (rintf): Likewise.
60115         (ceil): Likewise.
60116         (ceilf): Likewise.
60117         (floor): Likewise.
60118         (floorf): Likewise.
60119         (nearbyint): Likewise.
60120         (nearbyintf): Likewise.
60121
60122 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60123
60124         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60125         non-default versions.
60126
60127 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60128
60129         [BZ #14218]
60130         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60131
60132 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60133
60134         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60135         (FE_UPWARD, FE_DOWNWARD): Don't define.
60136         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60137         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60138
60139         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60140         reading it.
60141         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60142         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60143
60144 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60145
60146         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60147         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60148         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60149         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60150
60151 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60152
60153         [BZ #14117]
60154         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60155         * sysdeps/i386/fpu/Implies: New file.
60156         * sysdeps/x86_64/fpu/Implies: Likewise.
60157         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60158         * sysdeps/x86/fpu/bits/fenv.h: This.
60159
60160         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60161         __SSE_MATH__.
60162
60163 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60164
60165         [BZ #14134]
60166         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60167         character 0xffff that matches the last element of the
60168         conversion table.
60169
60170 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60171
60172         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60173         fmodl commit.
60174
60175 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60176
60177         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60178         values higher than 25.6283.
60179
60180 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60181
60182         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60183         subnormal exponent extraction and add some __builtin_expect.
60184         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60185         Fix for subnormal mantissa calculation.
60186
60187 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60188
60189         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60190         cpu2 is -1 and errno is not ENOSYS.
60191
60192 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60193
60194         [BZ #14117]
60195         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60196         * sysdeps/x86/bits/string.h: This.
60197         * sysdeps/x86_64/bits/string.h: Removed.
60198
60199         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60200         if not compiling for x86-64, but compiling for >= i486.
60201
60202         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60203         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60204
60205         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60206         New macro from Linux kernel 3.4.0.
60207         (FP_XSTATE_MAGIC2): Likewise.
60208         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60209         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60210         (struct _fpx_sw_bytes): New struct.
60211         (struct _xsave_hdr): Likewise.
60212         (struct _ymmh_state): Likewise.
60213         (struct _xstate): Likewise.
60214
60215         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60216         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60217         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60218         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60219         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60220         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60221
60222         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60223         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60224         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60225         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60226         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60227         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60228
60229 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60230
60231         [BZ #13743]
60232         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60233         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60234         (sysdep_headers): Include sys/platform/ppc.h.
60235         * sysdeps/powerpc/test-gettimebase.c: Test for
60236         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60237         * manual/Makefile (appendices): Include platform.texi.
60238         * manual/contrib.texi (Contributors): Update @node pointers.
60239         * manual/maint.texi (Maintenance): Likewise.
60240         (Platform): New node.
60241         * manual/platform.texi: New file.  Document the new features.
60242
60243 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60244             Jakub Jelinek  <jakub@redhat.com>
60245
60246         [BZ #14188]
60247         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60248         where __builtin_expect is unavailable.
60249
60250 2012-06-03  David S. Miller  <davem@davemloft.net>
60251
60252         * stdlib/longlong.h: Updated from GCC.
60253
60254 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60255
60256         [BZ #14042]
60257         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60258         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60259         __mcount_internal.
60260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60261         (GLIBC_2.16): Likewise.
60262
60263 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60264
60265         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60266
60267 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60268
60269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60270         (default-abi): New variable.
60271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60272         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60273         variable.
60274         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60275         Likewise.
60276         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60277         Likewise.
60278         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60279         Likewise.
60280
60281         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60282         definition.  Document in comment.
60283
60284 2012-06-01  David S. Miller  <davem@davemloft.net>
60285
60286         * stdlib/longlong.h: Updated from GCC.
60287
60288 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60289
60290         [BZ #14117]
60291         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60292         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60293         sys/debugreg.h sys/io.h here.
60294         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60295         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60296         sys/io.h.
60297         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60298         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60299         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60300         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60301         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60302         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60303
60304         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60305         Define only if __x86_64__ is defined.
60306
60307 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60308
60309         [BZ #14048]
60310         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60311         Use int64_t for variable i.
60312         * math/libm-test.inc (fmod_test): Add more tests.
60313
60314         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60315         z computation is not scheduled after fetestexcept.
60316         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60317         Use math_force_eval instead of asm to ensure calculation scheduled
60318         before exception test.
60319         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60320         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60321
60322 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60323
60324         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60325         computation is not scheduled after fetestexcept.
60326
60327 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60328
60329         [BZ #14117]
60330         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60331         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60332
60333 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60334
60335         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60336         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60337
60338 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60339
60340         [BZ #14117]
60341         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60342         <bits/wordsize.h>.
60343         (__WCHAR_MIN): Support __WORDSIZE == 64.
60344         (__WCHAR_MAX): Likewise.
60345
60346         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60347         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60348
60349         [BZ #14183]
60350         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60351         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60352
60353         [BZ #14117]
60354         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60355         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60356
60357         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60358         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60359
60360         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60361         Defined to 1 if __x86_64__ isn't defined.
60362         (_STAT_VER_LINUX_OLD): New.
60363         (st_atime): Remove duplicate.
60364         (st_mtime): Likewise.
60365         (st_ctime): Likewise.
60366
60367 2012-05-31  David S. Miller  <davem@davemloft.net>
60368
60369         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60370         entries.
60371
60372 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60373
60374         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60375         gen-libm-test.pl.
60376
60377         [BZ #14132]
60378         * elf/dl-reloc.c: Include <_itoa.h>.
60379         (_dl_reloc_bad_type): Remove use of INTUSE.
60380         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60381         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60382         * stdio-common/psiginfo.c (psiginfo): Likewise.
60383         * stdio-common/psignal.c (psignal): Likewise.
60384         * string/strsignal.c (strsignal): Likewise.
60385         * include/signal.h (_sys_siglist): Declare hidden proto.
60386         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60387         INTVARDEF with libc_hidden_data_def.
60388         * stdio-common/itoa-udigits.c: Likewise.
60389         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60390         (_itoa_lower_digits_internal): Remove declaration.
60391         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60392         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60393         (_sys_sigabbrev_internal): Remove aliases.
60394         (_sys_siglist): Define hidden alias.
60395
60396 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60397
60398         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60399         bits/sysctl.h.
60400
60401 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60402
60403         [BZ #14117]
60404         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60405         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60406
60407         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60408         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60409         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60410         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60411         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60412         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60413
60414         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60415         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60416         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60417
60418         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60419         with __addr.
60420         (insw): Likewise.
60421         (insl): Likewise.
60422         (outsb): Likewise.
60423         (outsw): Likewise.
60424         (outsl): Likewise.
60425
60426         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60427         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60428         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60429
60430         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60431         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60432         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60433         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60434         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60435         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60436
60437         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60438         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60439
60440         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60441         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60442
60443         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60444         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60445         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60446
60447         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60448         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60449         to ...
60450         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60451
60452         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60453         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60454         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60455
60456         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60457         for x86-64.
60458         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60459
60460 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60461
60462         * math/math.h (M_El): Use two more decimal places.
60463         (M_LOG2El): Likewise.
60464         (M_LOG10El): Likewise.
60465         (M_LN2l): Likewise.
60466         (M_LN10l): Likewise.
60467         (M_PIl): Likewise.
60468         (M_PI_2l): Likewise.
60469         (M_PI_4l): Likewise.
60470         (M_1_PIl): Likewise.
60471         (M_2_PIl): Likewise.
60472         (M_2_SQRTPIl): Likewise.
60473         (M_SQRT2l): Likewise.
60474         (M_SQRT1_2l): Likewise.
60475
60476 2012-05-31  David S. Miller  <davem@davemloft.net>
60477
60478         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60479         values between float registers.
60480         * sysdeps/sparc/sparc64/memset.S: Likewise.
60481         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60482
60483 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60484
60485         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60486         -D_FORTIFY_SOURCE=1.
60487         (CPPFLAGS-tst-longjmp_chk.c): Define.
60488         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60489         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60490         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60491         CFLAGS-tst-wchar-h.c.
60492
60493 2012-05-31  Marek Polacek  <polacek@redhat.com>
60494
60495         [BZ #14132]
60496         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60497         __endmntent_internal): Remove declaration.
60498         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60499         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60500         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60501
60502 2012-05-30  David S. Miller  <davem@davemloft.net>
60503
60504         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60505         (___Q_simulate_exceptions): Use real FP ops rather than writing
60506         into the %fsr.
60507         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60508         Likewise.
60509
60510 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60511
60512         [BZ #14117]
60513         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60514         * sysdeps/x86/bits/xtitypes.h: This.
60515
60516         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60517         * sysdeps/x86/bits/wordsize.h: This.
60518
60519         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60520         * sysdeps/x86/bits/huge_vall.h: This.
60521
60522         * sysdeps/i386/bits/select.h: Removed.
60523         * sysdeps/x86_64/bits/select.h: Renamed to ...
60524         * sysdeps/x86/bits/select.h: This.
60525
60526         * sysdeps/i386/bits/setjmp.h: Removed.
60527         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60528         * sysdeps/x86/bits/setjmp.h: This.
60529
60530         * sysdeps/i386/bits/mathdef.h: Removed.
60531         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60532         * sysdeps/x86/bits/mathdef.h: This.
60533
60534 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60535
60536         [BZ #14132]
60537         * include/sys/socket.h (__connect_internal)
60538         (__libc_sa_len_internal): Remove declaration.
60539         (__connect, __libc_sa_len): Declare hidden_proto.
60540         (SA_LEN): Remove use of INTUSE.
60541         * socket/connect.c: Add libc_hidden_def.
60542         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60543         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60544         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60545         alias.
60546         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60547         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60548         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60549         of adding _internal alias.
60550
60551 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60552
60553         [BZ #14117]
60554         * sysdeps/i386/bits/link.h: Removed.
60555         * sysdeps/i386/bits/linkmap.h: Likewise.
60556         * sysdeps/x86_64/bits/link.h: Renamed to ...
60557         * sysdeps/x86/bits/link.h: This.
60558         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60559         * sysdeps/x86/bits/linkmap.h: This.
60560
60561         * sysdeps/i386/bits/endian.h: Removed.
60562         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60563         * sysdeps/x86/bits/endian.h: This.
60564
60565         * sysdeps/i386/bits/byteswap.h: Removed.
60566         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60567         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60568         * sysdeps/x86/bits/byteswap.h: This.
60569         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60570         * sysdeps/x86/bits/byteswap-16.h: This.
60571         * sysdeps/i386/Implies: Add x86.
60572         * sysdeps/x86_64/Implies: Likewise.
60573
60574 2012-05-30  David S. Miller  <davem@davemloft.net>
60575
60576         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60577         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60578         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60579         (FP_TRAPPING_EXCEPTIONS): Define.
60580         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60581         (FP_TRAPPING_EXCEPTIONS): Define.
60582         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60583         subnormals only when inexact has been signalled or underflow
60584         exceptions are enabled.
60585         (_FP_PACK_CANONICAL): Likewise.
60586
60587 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60588
60589         [BZ #14183]
60590         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60591         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60592
60593 2012-05-30  Richard Henderson  <rth@twiddle.net>
60594
60595         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60596         with #ifndef NOT_IN_libc.
60597
60598         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60599         marked to avoid plt entry.
60600
60601 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60602
60603         [BZ #14112]
60604         * Makeconfig (default-abi): New macro.
60605         (abi-includes): Likewise.
60606         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60607         $(abi-$(default-abi)-lib-soname) for soname if defined.
60608         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60609         abi-variants.
60610         * Makefile (installed-stubs): Likewise.
60611         * include/stubs-biarch.h: Removed.
60612         * scripts/lib-names.awk: Only handle one library at a time.
60613         * scripts/soversions.awk: Remove WORDSIZE support.
60614         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60615         entries.
60616         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60617         Removed.
60618         (syscall-list-default-condition): Likewise.
60619         (syscall-list-default-condition): Likewise.
60620         (syscall-list-includes): Likewise.
60621         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60622         syscall-list-* with abi-*.  Handle undefined abi-variants.
60623         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60624         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60625         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60626         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60627         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60628         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60629         Removed.
60630         (syscall-list-32-options): Likewise.
60631         (syscall-list-32-condition): Likewise.
60632         (syscall-list-64-options): Likewise.
60633         (syscall-list-64-condition): Likewise.
60634         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60635         macro.
60636         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60637         Renamed to ...
60638         (abi-*): This.
60639         (abi-64-ld-soname): New macro.
60640         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60641         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60642         Renamed to ...
60643         (abi-*): This.
60644         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60645         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60646
60647 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60648
60649         * sysdeps/unix/sysv/linux/kernel-features.h
60650         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60651         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60652         include <kernel-features.h>.
60653         [!__NR_ftruncate64]: Remove conditional code.
60654         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60655         [__NR_ftruncate64]: Make code unconditional.
60656         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60657         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60658         include <kernel-features.h>.
60659         [!__NR_ftruncate64]: Remove conditional code.
60660         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60661         [__NR_ftruncate64]: Make code unconditional.
60662         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60664         include <kernel-features.h>.
60665         [!__NR_ftruncate64]: Remove conditional code.
60666         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60667         [__NR_ftruncate64]: Make code unconditional.
60668         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60670         include <kernel-features.h>.
60671         [!__NR_ftruncate64]: Remove conditional code.
60672         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60673         [__NR_ftruncate64]: Make code unconditional.
60674         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60675
60676         * configure.in (libc_cv_fpie): Weaken to a compile test using
60677         LIBC_TRY_CC_OPTION.
60678         * configure: Regenerated.
60679
60680 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60681
60682         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60683         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60684         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60685         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60686         Refreshed.
60687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60688         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60693         Refreshed.
60694
60695 2012-05-27  David S. Miller  <davem@davemloft.net>
60696
60697         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60698         (___Q_zero): New.
60699         (__Q_simulate_exceptions): Return void.  Change to simulate
60700         exceptions by writing into the %fsr.
60701         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60702         (__Qp_handle_exceptions): Likewise.
60703         (numbers): Delete.
60704         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60705         __Qp_handle_exceptions.
60706         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60707         __Qp_handle_exceptions.
60708         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60709         as unused and give dummy FP_RND_NEAREST initializer.
60710         (FP_INHIBIT_RESULTS): Define.
60711         (___Q_simulate_exceptions): Update declaration.
60712         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60713         formatting.
60714         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60715         as unused and give dummy FP_RND_NEAREST initializer.
60716         (__Qp_handle_exceptions): Update declaration.
60717         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60718         formatting.
60719
60720 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60721
60722         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60723         the temporary FPU control word.
60724         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60725         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60726         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60727         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60728         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60729         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60730         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60731         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60732         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60733         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60734         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60735
60736 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60737
60738         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60739         fields.
60740
60741 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60742
60743         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60744         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60745         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60746         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60747         Likewise.
60748         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60749         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60750         Likewise.
60751
60752 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60753
60754         * po/h.po: Update from translation team.
60755
60756 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60757
60758         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60759
60760         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60761         handling of denormals.
60762         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60763         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60764         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60765         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60766         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60767         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60768         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60769         Likewise.
60770
60771 2012-05-26  Marek Polacek  <polacek@redhat.com>
60772
60773         [BZ #14152]
60774         * math/libm-test.inc (fma_test): Don't always expect underflow
60775         exception.
60776
60777 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60778
60779         [BZ #12416]
60780         * elf/tst-execstack.c: Include stackinfo.h.
60781         (do_test): Adjust test case to ensure that pthread_getattr_np
60782         behaviour remains the same after marking stack executable.
60783
60784 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60785
60786         * sysdeps/unix/sysv/linux/kernel-features.h
60787         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60788         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60789         kernel-features.h.
60790         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60791         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60792         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60793         kernel-features.h.
60794         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60795         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60796
60797 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60798
60799         * configure.in: Define the default includes to being none.
60800         * configure: Regenerated.
60801
60802 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60803
60804         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60805         * sysdeps/x86_64/setjmp.S: Likewise.
60806         * sysdeps/i386/bsd-setjmp.S: Likewise.
60807         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60808         * sysdeps/i386/setjmp.S: Likewise.
60809         * sysdeps/i386/__longjmp.S: Likewise.
60810         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60811         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60812
60813         * include/stap-probe.h: New file.
60814         * configure.in: Handle --enable-systemtap.
60815         * configure: Regenerated.
60816         * config.h.in (USE_STAP_PROBE): New #undef.
60817         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60818         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60819         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60820
60821 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60822
60823         [BZ #13717]
60824         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60825         to 2.4.0 where earlier.
60826         * sysdeps/unix/sysv/linux/configure: Regenerated.
60827         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60828         <kernel-features.h>.
60829         [__ASSUME_32BITUIDS]: Make code unconditional.
60830         [!__ASSUME_32BITUIDS]: Remove conditional code.
60831         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60832         <kernel-features.h>.
60833         [__ASSUME_32BITUIDS]: Make code unconditional.
60834         [!__ASSUME_32BITUIDS]: Remove conditional code.
60835         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60836         [__ASSUME_32BITUIDS]: Make code unconditional.
60837         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60838         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60839         <kernel-features.h>.
60840         [__ASSUME_32BITUIDS]: Make code unconditional.
60841         [!__ASSUME_32BITUIDS]: Remove conditional code.
60842         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
60843         <kernel-features.h>.
60844         [__ASSUME_32BITUIDS]: Make code unconditional.
60845         [!__ASSUME_32BITUIDS]: Remove conditional code.
60846         * sysdeps/unix/sysv/linux/i386/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
60879         <kernel-features.h>.
60880         [__NR_setresgid] (__setresgid): Do not declare.
60881         [__ASSUME_32BITUIDS]: Make code unconditional.
60882         [!__ASSUME_32BITUIDS]: Remove conditional code.
60883         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
60884         <kernel-features.h>.
60885         [__NR_setresuid] (__setresuid): Do not declare.
60886         [__ASSUME_32BITUIDS]: Make code unconditional.
60887         [!__ASSUME_32BITUIDS]: Remove conditional code.
60888         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
60889         <kernel-features.h>.
60890         [__ASSUME_32BITUIDS]: Make code unconditional.
60891         [!__ASSUME_32BITUIDS]: Remove conditional code.
60892         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
60893         <kernel-features.h>.
60894         [__ASSUME_32BITUIDS]: Make code unconditional.
60895         [!__ASSUME_32BITUIDS]: Remove conditional code.
60896         * sysdeps/unix/sysv/linux/i386/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
60929         (__ASSUME_SETRESUID_SYSCALL): Remove.
60930         (__ASSUME_SETRESGID_SYSCALL): Likewise.
60931         (__ASSUME_32BITUIDS): Likewise.
60932         (__ASSUME_LDT_WORKS): Likewise.
60933         (__ASSUME_O_DIRECTORY): Likewise.
60934         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
60935         architecture but not kernel version.
60936         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
60937         (__ASSUME_MMAP2_SYSCALL): Likewise.
60938         (__ASSUME_STAT64_SYSCALL): Likewise.
60939         (__ASSUME_IPC64): Likewise.
60940         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
60941         <kernel-features.h>.
60942         [__ASSUME_32BITUIDS]: Make code unconditional.
60943         [!__ASSUME_32BITUIDS]: Remove conditional code.
60944         * sysdeps/unix/sysv/linux/opendir.c: Do not include
60945         <kernel-features.h>.
60946         [__ASSUME_O_DIRECTORY]: Make code unconditional.
60947         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
60948         132096]: Remove conditional code.
60949         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
60950         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
60951         <kernel-features.h>.
60952         [__ASSUME_32BITUIDS]: Make code unconditional.
60953         [!__ASSUME_32BITUIDS]: Remove conditional code.
60954         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
60955         <kernel-features.h>.
60956         [__ASSUME_32BITUIDS]: Make code unconditional.
60957         [!__ASSUME_32BITUIDS]: Remove conditional code.
60958         * sysdeps/unix/sysv/linux/setegid.c: Do not include
60959         <kernel-features.h>.
60960         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
60961         unconditional.
60962         (__setresgid): Do not declare.
60963         [__ASSUME_32BITUIDS]: Make code unconditional.
60964         [!__ASSUME_32BITUIDS]: Remove conditional code.
60965         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
60966         <kernel-features.h>.
60967         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
60968         unconditional.
60969         (__setresuid): Do not declare.
60970         [__ASSUME_32BITUIDS]: Make code unconditional.
60971         [!__ASSUME_32BITUIDS]: Remove conditional code.
60972         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
60973         <kernel-features.h>.
60974         [__ASSUME_32BITUIDS]: Make code unconditional.
60975         [!__ASSUME_32BITUIDS]: Remove conditional code.
60976         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
60977         <kernel-features.h>.
60978         [__ASSUME_32BITUIDS]: Make code unconditional.
60979         [!__ASSUME_32BITUIDS]: Remove conditional code.
60980
60981 2012-05-25  Richard Henderson  <rth@twiddle.net>
60982
60983         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
60984         dl_hwcap to ifunc resolver.
60985         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
60986         elf_ifunc_invoke.
60987         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
60988         dl_hwcap to ifunc resolver.
60989         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
60990
60991 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
60992
60993         [BZ #14153]
60994         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
60995         for |x| <= 2**-26, not 2**-57.
60996         * math/libm-test.inc (acos_test): Do not allow spurious underflow
60997         exception.
60998
60999 2012-05-24  Jeff Law  <law@redhat.com>
61000
61001         * stdio-common/Makefile (tests): Add bug25.
61002         * stdio-common/bug25.c: New test.
61003
61004 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61005
61006         [BZ #13576]
61007         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61008         multiple of MALLOC_ALIGNMENT in size.
61009         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61010
61011 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61012
61013         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61014         Require >= 256.
61015         (FILENAME_MAX): Use macro-int-constant.
61016         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61017         (_IOFBF): Use macro-int-constant.
61018         (_IOLBF): Likewise.
61019         (_IONBF): Likewise.
61020         (SEEK_CUR): Likewise.
61021         (SEEK_END): Likewise.
61022         (SEEK_SET): Likewise.
61023         (TMP_MAX): Likewise.
61024         (EOF): Use macro-int-constant.  Require < 0.
61025         (NULL): Use macro-constant.  Require == 0.
61026         (stdin): Require type to be FILE *.
61027         (stdout): Likewise.
61028         (stderr): Likewise.
61029         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61030         macro-int-constant.
61031         (EXIT_SUCCESS): Likewise.
61032         (NULL): Use macro-constant.  Require == 0.
61033         (RAND_MAX): Use macro-int-constant.
61034         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61035         [C99-based standards] (strtof): Require function.
61036         [C99-based standards] (strtold): Likewise.
61037         [C99-based standards] (strtoll): Likewise.
61038         [C99-based standards] (strtoull): Likewise.
61039         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61040         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61041         [ISO || ISO99 || ISO11] (math.h): Likewise.
61042         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61043         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61044         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61045
61046 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61047
61048         [BZ #14132]
61049         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61050         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61051         * intl/dgettext.c (DCGETTEXT): Likewise.
61052         * intl/gettext.c (DCGETTEXT): Likewise.
61053         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61054         * posix/regex_internal.h (gettext): Likewise.
61055         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61056         Remove declaration.
61057         * include/argz.h (__argz_count_internal)
61058         (__argz_stringify_internal): Remove declaration.
61059         (__argz_count, __argz_stringify): Declare hidden proto.
61060         * intl/dcgettext.c: Remove use of INTDEF.
61061         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61062         * string/argz-stringify.c: Likewise.
61063         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61064         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61065         Declare hidden proto.
61066         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61067         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61068         Declare hidden proto.
61069         * include/stdio.h (__asprintf_internal): Don't declare.
61070         (__asprintf): Don't define as macro.  Declare hidden proto.
61071         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61072         (__fsetlocking): Declare hidden proto.
61073         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61074         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61075         hidden proto.
61076         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61077         (_IO_setlinebuf): Remove use of INTUSE.
61078         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61079         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61080         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61081         Remove declaration.
61082         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61083         (_IO_do_flush): Remove use of INTUSE.
61084         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61085         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61086         (_IO_adjust_column, _IO_least_wmarker)
61087         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61088         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61089         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61090         (_IO_default_doallocate, _IO_wdefault_doallocate)
61091         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61092         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61093         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61094         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61095         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61096         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61097         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61098         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61099         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61100         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61101         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61102         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61103         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61104         proto.
61105         (_IO_flush_all_internal, _IO_adjust_column_internal)
61106         (_IO_default_uflow_internal, _IO_default_finish_internal)
61107         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61108         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61109         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61110         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61111         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61112         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61113         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61114         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61115         (_IO_file_close_internal, _IO_file_close_it_internal)
61116         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61117         (_IO_file_init_internal, _IO_file_attach_internal)
61118         (_IO_file_fopen_internal, _IO_file_read_internal)
61119         (_IO_file_sync_internal, _IO_file_seek_internal)
61120         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61121         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61122         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61123         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61124         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61125         (_IO_list_all_internal, _IO_link_in_internal)
61126         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61127         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61128         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61129         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61130         (_IO_do_write_internal, _IO_padn_internal)
61131         (_IO_getline_info_internal, _IO_getline_internal)
61132         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61133         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61134         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61135         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61136         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61137         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61138         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61139         with libc_hidden_ver, remove use of INTUSE.
61140         * libio/genops.c: Likewise.
61141         * libio/freopen.c: Likewise.
61142         * libio/freopen64.c: Likewise.
61143         * libio/iofclose.c: Likewise.
61144         * libio/iofdopen.c: Likewise.
61145         * libio/iofflush.c: Likewise.
61146         * libio/iofflush_u.c: Likewise.
61147         * libio/iofgets.c: Likewise.
61148         * libio/iofgets_u.c: Likewise.
61149         * libio/iofopen.c: Likewise.
61150         * libio/iofopncook.c: Likewise.
61151         * libio/iofread.c: Likewise.
61152         * libio/iofread_u.c: Likewise.
61153         * libio/ioftell.c: Likewise.
61154         * libio/iofwrite.c: Likewise.
61155         * libio/iogetline.c: Likewise.
61156         * libio/iogets.c: Likewise.
61157         * libio/iogetwline.c: Likewise.
61158         * libio/iopadn.c: Likewise.
61159         * libio/iopopen.c: Likewise.
61160         * libio/ioseekoff.c: Likewise.
61161         * libio/ioseekpos.c: Likewise.
61162         * libio/iosetbuffer.c: Likewise.
61163         * libio/iosetvbuf.c: Likewise.
61164         * libio/ioungetc.c: Likewise.
61165         * libio/ioungetwc.c: Likewise.
61166         * libio/iovdprintf.c: Likewise.
61167         * libio/iovsprintf.c: Likewise.
61168         * libio/iovsscanf.c: Likewise.
61169         * libio/memstream.c: Likewise.
61170         * libio/obprintf.c: Likewise.
61171         * libio/oldfileops.c: Likewise.
61172         * libio/oldiofclose.c: Likewise.
61173         * libio/oldiofdopen.c: Likewise.
61174         * libio/oldiofopen.c: Likewise.
61175         * libio/oldiopopen.c: Likewise.
61176         * libio/oldstdfiles.c: Likewise.
61177         * libio/putc.c: Likewise.
61178         * libio/setbuf.c: Likewise.
61179         * libio/setlinebuf.c: Likewise.
61180         * libio/stdfiles.c: Likewise.
61181         * libio/strops.c: Likewise.
61182         * libio/vasprintf.c: Likewise.
61183         * libio/vscanf.c: Likewise.
61184         * libio/vsnprintf.c: Likewise.
61185         * libio/vswprintf.c: Likewise.
61186         * libio/wfiledoalloc.c: Likewise.
61187         * libio/wfileops.c: Likewise.
61188         * libio/wgenops.c: Likewise.
61189         * libio/wmemstream.c: Likewise.
61190         * libio/wstrops.c: Likewise.
61191         * libio/__fpurge.c: Likewise.
61192         * libio/__fsetlocking.c: Likewise.
61193         * assert/assert.c: Likewise.
61194         * debug/fgets_chk.c: Likewise.
61195         * debug/fgets_u_chk.c: Likewise.
61196         * debug/fread_chk.c: Likewise.
61197         * debug/fread_u_chk.c: Likewise.
61198         * debug/gets_chk.c: Likewise.
61199         * debug/obprintf_chk.c: Likewise.
61200         * debug/vasprintf_chk.c: Likewise.
61201         * debug/vdprintf_chk.c: Likewise.
61202         * debug/vsnprintf_chk.c: Likewise.
61203         * debug/vsprintf_chk.c: Likewise.
61204         * malloc/mtrace.c: Likewise.
61205         * misc/error.c: Likewise.
61206         * misc/syslog.c: Likewise.
61207         * stdio-common/asprintf.c: Likewise.
61208         * stdio-common/fxprintf.c: Likewise.
61209         * stdio-common/getw.c: Likewise.
61210         * stdio-common/isoc99_fscanf.c: Likewise.
61211         * stdio-common/isoc99_scanf.c: Likewise.
61212         * stdio-common/isoc99_vfscanf.c: Likewise.
61213         * stdio-common/isoc99_vscanf.c: Likewise.
61214         * stdio-common/isoc99_vsscanf.c: Likewise.
61215         * stdio-common/printf-prs.c: Likewise.
61216         * stdio-common/printf_fp.c: Likewise.
61217         * stdio-common/printf_fphex.c: Likewise.
61218         * stdio-common/printf_size.c: Likewise.
61219         * stdio-common/putw.c: Likewise.
61220         * stdio-common/scanf.c: Likewise.
61221         * stdio-common/sprintf.c: Likewise.
61222         * stdio-common/tmpfile.c: Likewise.
61223         * stdio-common/vfprintf.c: Likewise.
61224         * stdio-common/vfscanf.c: Likewise.
61225         * stdlib/strfmon_l.c: Likewise.
61226         * sunrpc/openchild.c: Likewise.
61227         * sunrpc/xdr_stdio.c: Likewise.
61228         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61229         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61230
61231 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61232
61233         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61234
61235         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61236         in the third column, to generate for the shared library an IFUNC
61237         that uses _dl_vdso_vsym.
61238         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61239         * Makeconfig (object-suffixes-noshared): New variable.
61240
61241         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61242         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61243         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61244         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61245
61246         [BZ #14132]
61247         * include/sys/time.h (__gettimeofday): Remove macro.
61248         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61249         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61250         Remove INTDEF.
61251         (__gettimeofday): Add libc_hidden_def.
61252         (gettimeofday): Add libc_hidden_weak.
61253         * sysdeps/mach/gettimeofday.c: Likewise.
61254         * sysdeps/posix/gettimeofday.c: Likewise.
61255         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61256         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61257         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61258         (__gettimeofday_internal): Remove strong_alias.
61259         (__gettimeofday): Add libc_hidden_def.
61260         (gettimeofday): Add libc_hidden_weak.
61261         * sysdeps/unix/syscalls.list (gettimeofday):
61262         Remove __gettimeofday_internal alias.
61263
61264 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61265             H.J. Lu  <hongjiu.lu@intel.com>
61266
61267         [BZ #12495]
61268         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61269         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61270         (largebin_index_32_big): New.
61271         (largebin_index): Use it for 16-byte alignment.
61272         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61273         correction with front_misalign.
61274
61275 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61276
61277         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61278         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61279         Likewise.
61280         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61281         Likewise.
61282         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61283         Likewise.
61284         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61285         Likewise.
61286         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61287         Likewise.
61288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61289         Likewise.
61290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61291         Likewise.
61292         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61293         Likewise.
61294         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61295         Likewise.
61296         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61297         Likewise.
61298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61299         Likewise.
61300         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61301         Likewise.
61302
61303         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61304         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61305
61306 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61307
61308         [BZ #10846]
61309         [BZ #14036]
61310         * math/libm-test.inc (exp_test): Add test from bug 14036.
61311         (pow_test): Add test from bug 10846.
61312
61313         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61314         and other flags.
61315         (special_function): Do not include flags in test name.
61316         (parse_args): Likewise.
61317         * sysdeps/i386/fpu/libm-test-ulps: Update.
61318         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61319         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61320         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61322
61323         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61324         exceptions.
61325         * math/libm-test.inc ("Philosophy"): Update comment about
61326         exception testing.
61327         (UNDERFLOW_EXCEPTION): New macro.
61328         (UNDERFLOW_EXCEPTION_OK): Likewise.
61329         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61330         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61331         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61332         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61333         (INVALID_EXCEPTION_OK): Update value.
61334         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61335         (OVERFLOW_EXCEPTION_OK): Likewise.
61336         (IGNORE_ZERO_INF_SIGN): Likewise.
61337         (test_exceptions): Handle underflow exceptions.
61338         (acos_test): Update for underflow exception expectations.
61339         (cexp_test): Likewise.
61340         (clog_test): Likewise.
61341         (clog10_test): Likewise.
61342         (csqrt_test): Likewise.
61343         (ctan_test): Likewise.
61344         (ctanh_test): Likewise.
61345         (exp_test): Likewise.
61346         (exp10_test): Likewise.
61347         (exp2_test): Likewise.
61348         (expm1_test): Likewise.
61349         (fma_test): Likewise.
61350         (j0_test): Likewise.
61351         (jn_test): Likewise.
61352         (nexttoward_test): Likewise.
61353         (pow_test): Likewise.
61354         (scalbn_test): Likewise.
61355         (scalbln_test): Likewise.
61356         (tan_test): Likewise.
61357         (y1_test): Likewise.
61358         * sysdeps/i386/fpu/libm-test-ulps: Update.
61359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61360
61361 2012-05-23  David S. Miller  <davem@davemloft.net>
61362
61363         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61364         (__libc_sigaction): Remove unused local variables.
61365
61366 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61367
61368         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61369
61370 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         mktime: avoid signed integer overflow
61373         * time/mktime.c (__mktime_internal): Do not mishandle the case
61374         where diff == INT_MIN.
61375
61376         mktime: simplify computation of average
61377         * time/mktime.c (ranged_convert): Use new time_t_avg function
61378         instead of rolling our own (probably-slower) code.
61379
61380         mktime: do not assume signed right shift propagates sign bit
61381         * time/mktime.c (isdst_differ): New static function.
61382         (__mktime_internal): No need to normalize tm_isdst now.
61383         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61384         tm_isdst values.
61385
61386         mktime: merge another wrapv change from gnulib
61387         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61388         from some compilers.
61389
61390         mktime: remove incorrect attempt at unusual arithmetics
61391         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61392         The code didn't really work on such machines anyway.
61393         (TYPE_MINIMUM): Assume two's complement.
61394         (twos_complement_arithmetic): Verify that long_int and time_t
61395         are two's complement (or unsigned, in the latter case).
61396
61397         mktime: check signed shifts on long_int and time_t, too
61398         * time/mktime.c (SHR): Check that shifts work as desired
61399         on the types long_int and time_t too, as SHR is used on
61400         such types.
61401
61402         mktime: do not assume 'long' is wide enough
61403         * time/mktime.c (verify): Move decl up.
61404         (long_int): New type.
61405         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61406         to remove assumption in the code that 'long' is wide enough to
61407         store year values.  This assumption is not true on x32 and on
61408         some non-glibc platforms.
61409
61410         mktime: merge wrapv change from gnulib
61411         * time/mktime.c (WRAPV): New macro.
61412         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61413         (guess_time_tm, __mktime_internal): Do not assume that signed
61414         integer overflow wraps around; modern compilers generate code
61415         where this assumption is no longer valid.
61416
61417 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61418
61419         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61420         Replace "jmp L(pseudo_end)" with "ret".
61421         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61422         Likewise.
61423
61424 2012-05-23  Andreas Jaeger  <aj@suse.de>
61425
61426         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61427         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61428
61429 2012-05-23  Andreas Jaeger  <aj@suse.de>
61430             Maximilian Attems  <max@stro.at>
61431
61432         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61433         New macros.
61434
61435 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61436
61437         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61438         code so that pseudo_end is just ret and the stack pointer is
61439         correct also for static library in error case.
61440
61441 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61442
61443         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61444         move to syscalls.list.
61445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61449
61450         * manual/install.texi (Running make install): Do not mention Linux
61451         kernel version for which pt_chown is not needed.
61452         (Linux): Do not mention problems with nscd with 2.0 kernels.
61453         * INSTALL: Regenerated.
61454
61455 2012-05-23  Andreas Jaeger  <aj@suse.de>
61456
61457         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61458         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61459         macro.
61460         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61461         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61462         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61463         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61464         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61465         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61466         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61467         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61468         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61469         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61470         * sysdeps/unix/sysv/linux/bits/in.h
61471         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61472
61473 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61474
61475         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61476         (PREPARE_VERSION): Just use assert instead, it will be elided
61477         under [NDEBUG] anyway.
61478
61479 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61480
61481         * sysdeps/unix/sysv/linux/Makefile: Include
61482         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61483         (sysdep_routines): Remove sysctl.
61484         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61485         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61486         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61487         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61488         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61489
61490 2012-05-22  Andreas Jaeger  <aj@suse.de>
61491
61492         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61493         that pseudo_end is just ret and the stack pointer is correct also
61494         for static library in error case.
61495
61496 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61497
61498         [BZ #14122]
61499         * nss/nsswitch.c (defconfig_entries): New variable.
61500         (__nss_database_lookup): Don't leak defconfig entries.
61501         (nss_parse_service_list): Don't leak on error paths.
61502         (free_database_entries): New function.
61503         (free_defconfig): New function.
61504         (free_mem): Move common code to free_database_entries.
61505
61506 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61507
61508         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61509         Add arch_prctl.
61510         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61511
61512         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61513         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61515         New macro.
61516         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61517         (INTERNAL_SYSCALL_TYPES): Likewise.
61518         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61519         (LOAD_REGS_TYPES_[1-6]): Likewise.
61520         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61521         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61522
61523 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61524
61525         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61526         copysignl for GLIBC_2_0.
61527         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61528         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61529         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61530         logbl for GLIBC_2_0.
61531         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61532         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61533
61534 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61535
61536         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61537         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61538
61539         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61540         Use "neg %eax".
61541
61542         * time/mktime.c: Update copyright years.
61543
61544 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61545
61546         mktime: merge comment-quoting-style change from gnulib
61547         * time/mktime.c: Quote 'like this' in comments.
61548         The GNU coding standards suggest that we no longer quote `like this',
61549         as "`" and "'" are typically rendered asymmetrically nowadays.
61550         The typical gnulib style is to quote 'like this' when quoting
61551         code, and "like this" when quoting English.
61552
61553         * time/mktime.c (compile-command): Add "-I.".
61554
61555         mktime: merge mktime-internal.h change from gnulib
61556         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61557
61558         mktime: merge time_r change from gnulib
61559         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61560
61561         mktime: merge DEBUG change from gnulib
61562         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61563         case system <time.h> has a #define.
61564
61565         mktime: merge <sys/types.h> change from gnulib
61566         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61567         since <time.t> is now guaranteed to define time_t.
61568
61569         mktime: merge HAVE_CONFIG_H change from gnulib
61570         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61571
61572 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61573
61574         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61575         Use "neg %eax".
61576
61577         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61578         __rlim_t cast.
61579         (struct rusage): Use anonymous union to pad each field to
61580         __syscall_slong_t.
61581
61582 2012-05-21  David S. Miller  <davem@davemloft.net>
61583
61584         * Makefules (o-iterator): Remove .s cases.
61585         (compile-command.s): Delete.
61586         (COMPILE.s): Delete.
61587         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61588
61589 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61590
61591         * configure.in (libc_cv_predef_stack_protector): Only consider
61592         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61593         * configure: Regenerated.
61594
61595 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61596
61597         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61598         New macro.  Use R*LP on int and pointer.
61599         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61600         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61601         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61602         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61603
61604         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61605         [__WORDSIZE_TIME64_COMPAT32] instead of
61606         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61607         (struct utmp): Likewise.
61608         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61609         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61610         Renamed to ...
61611         (__WORDSIZE_TIME64_COMPAT32): This.
61612         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61613         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61614         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61615         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61616         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61617         (__WORDSIZE_TIME64_COMPAT32): New macro.
61618
61619 2012-05-21  Andreas Jaeger  <aj@suse.de>
61620
61621         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61622         only if [SHARED]. Add prototype for __wcschr_ia32.
61623
61624 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61625
61626         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61627         of %rbp unmolested in the jmp_buf while mangling the low bits.
61628         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61629         unmolested high bits of %rbp while demangling the low bits.
61630         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61631
61632 2012-05-21  Andreas Jaeger  <aj@suse.de>
61633
61634         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61635         * sunrpc/svc_simple.c: Use it for registerrpc.
61636         * sunrpc/xcrypt.c: Use it for passwd2des.
61637
61638         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61639
61640 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61641
61642         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61643         Don't define if [__SYSCALL_WORDSIZE != 32].
61644         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61645         New macro.
61646
61647 2012-05-21  Bruno Haible  <bruno@clisp.org>
61648             Andreas Jaeger  <aj@suse.de>
61649
61650         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61651         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61652         inptr and inend for must_buffer_ch.
61653         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61654         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61655         * stdio-common/Makefile (tests): Remove bug15.
61656         (bug15-ENV): Remove macro.
61657         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61658         anymore.
61659
61660 2012-05-19  Andreas Jaeger  <aj@suse.de>
61661             Roland McGrath  <roland@hack.frob.com>
61662
61663         * manual/contrib.texi: Completely rewritten. It contains now an
61664         alphabetical list of contributors and their contributions.
61665
61666 2012-05-21  Richard Henderson  <rth@twiddle.net>
61667
61668         * misc/getauxval.c (__getauxval): Use unsigned long int.
61669         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61670         (getauxval): Use unsigned long int.
61671
61672 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61673
61674         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61675
61676 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61677
61678         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61679         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61680         __alignof__ (long double).
61681
61682 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61683
61684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61685
61686 2012-05-20  Richard Henderson  <rth@twiddle.net>
61687
61688         * misc/getauxval.c: New file.
61689         * misc/sys/auxv.h: New file.
61690         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61691         (routines): Add getauxval.
61692         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61693         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61694         * elf/dl-sysdep.c (_dl_auxv): Remove.
61695         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61696         * elf/dl-support.c (_dl_auxv): New variable.
61697         (_dl_aux_init): Initialize it.
61698         * manual/startup.texi (Auxiliary Vector): New node.
61699         * sysdeps/generic/bits/hwcap.h: New file.
61700         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61701         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61702         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61703         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61704         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61705         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61707         Update.
61708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61709         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61710         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61711         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61713         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61714         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61715         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61716
61717 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61718
61719         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61720
61721 2012-05-19  David S. Miller  <davem@davemloft.net>
61722
61723         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61724
61725 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61726
61727         [BZ #14123]
61728         * math/s_ccosh.c: Include <float.h>
61729         (__ccosh): Avoid internal overflow calculating sinh and cosh
61730         values before multiplying by sin and cos values.
61731         * math/s_ccoshf.c: Likewise.
61732         * math/s_ccoshl.c: Likewise.
61733         * math/s_csin.c: Likewise.
61734         * math/s_csinf.c: Likewise.
61735         * math/s_csinl.c: Likewise.
61736         * math/s_csinh.c: Likewise.
61737         * math/s_csinhf.c: Likewise.
61738         * math/s_csinhl.c: Likewise.
61739         * math/libm-test.inc (ccos_test): Add more tests.
61740         (ccosh_test): Likewise.
61741         (csin_test): Likewise.
61742         (csinh_test): Likewise.
61743         * sysdeps/i386/fpu/libm-test-ulps: Update.
61744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61745
61746 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61747
61748         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61749         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61750
61751         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61752
61753 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61754
61755         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61756         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61757         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61758         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61759         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61760         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61761         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61762         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61763         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61764         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61765         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61766         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61767         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61768         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61769         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61770         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61771         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61772         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61773         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61774         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61775         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61776         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61777         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61778         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61779         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61780         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61781         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61782         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61783         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61784         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61785         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61786
61787 2012-05-18  Andreas Jaeger  <aj@suse.de>
61788
61789         * csu/.gitignore: Delete.
61790
61791 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61792
61793         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61794         (timex): Use __syscall_slong_t.
61795
61796 2012-05-18  Andreas Jaeger  <aj@suse.de>
61797             Carlos O'Donell  <carlos_odonell@mentor.com>
61798
61799         * manual/install.texi (Configuring and compiling): Update
61800         description about files modified in the source directory.
61801         * INSTALL: Regenerated.
61802
61803 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61804
61805         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61806         value.  Use "or" to set return value to -1.
61807         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61808         negate return value.
61809
61810 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61811
61812         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61813         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61814         failure if the compiler has Graphite support disabled.
61815         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61816         Likewise.
61817         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61818         (CFLAGS-memmove.c): Likewise.
61819         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61820         Likewise.
61821
61822 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61823
61824         * sysdeps/x86_64/x32/_itoa.h: New file.
61825
61826         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61827         getdents system call only if kernel and user dirents have the
61828         same d_ino and d_off.
61829
61830         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61831         LLONG_MAX != LONG_MAX.
61832         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61833         (_fitoa_word): Likewise.
61834
61835         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61836         years.
61837         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61838         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61839         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61840
61841         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
61842         include <bits/wordsize.h>.  Check __x86_64__ instead of
61843         __WORDSIZE.
61844         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
61845         if __x86_64__ is defined.  Use anonymous union on fpstate.
61846
61847         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
61848         anonymous union.
61849
61850 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
61851
61852         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
61853         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
61854         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
61855         Refer to _rtld_local_ro instead of _rtld_global_ro.
61856         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
61857         Likewise.
61858         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
61859         Likewise.
61860         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
61861         Likewise.
61862         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
61863         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
61864         of _rtld_global, and rtld_progname instead of _dl_argv[0].
61865
61866         [BZ #10882]
61867         * sysdeps/powerpc/powerpc32/dl-machine.c
61868         (__elf_machine_runtime_setup) [PROF]: Don't reference
61869         _dl_prof_resolve.
61870
61871 2012-05-18  Andreas Jaeger  <aj@suse.de>
61872
61873         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
61874         function only available for GCCs before 3.4 since GCC 3.4
61875         introduced a builtin.
61876         (lrint): Likewise.
61877         (llrintf): Likewise.
61878         (llrint): Likewise.
61879         (fmaxf): Likewise.
61880         (fmax): Likewise.
61881         (fminf): Likewise.
61882         (fmin): Likewise.
61883         (rint): Likewise.
61884         (rintf): Likewise.
61885         (nearbyint): Likewise.
61886         (nearbyintf): Likewise.
61887         (ceil): Likewise.
61888         (ceilf): Likewise.
61889         (floor): Likewise.
61890         (floorf): Likewise.
61891
61892 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61893
61894         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
61895         on both fields and cast pointer to __syscall_ulong_t.
61896
61897         * bits/types.h (__fsword_t): New type.
61898         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
61899         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
61900         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
61901         (__FSWORD_T_TYPE): Likewise.
61902         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
61903         (__FSWORD_T_TYPE): Likewise.
61904         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
61905         (__FSWORD_T_TYPE): Likewise.
61906         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
61907         (__FSWORD_T_TYPE): Likewise.
61908         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
61909         __SWORD_TYPE with __fsword_t.
61910         (statfs64): Likewise.
61911
61912 2012-05-17  David S. Miller  <davem@davemloft.net>
61913
61914         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
61915
61916 2012-05-17  Andreas Jaeger  <aj@suse.de>
61917
61918         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
61919         warning.
61920
61921 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61922
61923         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
61924
61925 2012-05-17  Andreas Jaeger  <aj@suse.de>
61926
61927         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
61928         when it is used.
61929
61930 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61931
61932         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
61933
61934 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61935
61936         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
61937         * sysdeps/x86_64/tst-mallocalign1.c: New file.
61938
61939 2012-05-17  Andreas Jaeger  <aj@suse.de>
61940             Carlos O'Donell  <carlos_odonell@mentor.com>
61941
61942         [BZ #14059]
61943         * sysdeps/x86_64/multiarch/init-arch.h
61944         (bit_YMM_Usable): Rename to...
61945         (bit_AVX_Usable): ... this.
61946         (bit_FMA4_Usable): New macro.
61947         (bit_XMM_state): New macro.
61948         (bit_YMM_state): New macro.
61949         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
61950         [__ASSEMBLER__] (index_AVX_Usable): ... this.
61951         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
61952         (CPUID_OSXSAVE): New macro.
61953         (CPUID_AVX): New macro.
61954         (CPUID_FMA4): New macro.
61955         (index_YMM_Usable): Rename to...
61956         (index_AVX_Usable): ... this.
61957         (HAS_AVX): Use HAS_ARCH_FEATURE.
61958         (HAS_FMA4): Likewise.
61959         (HAS_YMM_USABLE): Remove.
61960         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
61961         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
61962         are present.
61963         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
61964         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
61965         * sysdeps/x86_64/multiarch/Makefile: Likewise.
61966         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
61967         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
61968
61969 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
61970
61971         * math/libm-test.c: Support platforms without multiple rounding modes.
61972         * math/bug-nextafter.c: Support platforms without FP exceptions.
61973         * math/bug-nexttoward.c: Likewise.
61974         * math/test-fenv.c: Likewise.
61975         * math/test-misc.c: Likewise.
61976         * stdlib/bug-getcontext.c: Likewise.
61977
61978 2012-05-17  Andreas Jaeger  <aj@suse.de>
61979
61980         * manual/examples/search.c (critter_cmp): Change signature to
61981         avoid warnings.
61982         * manual/string.texi (Collation Functions): Likewise.
61983
61984 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
61985
61986         * bits/types.h: Fold copyright years.
61987         * bits/typesizes.h: Likewise.
61988         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
61989         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
61990         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
61991         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
61992         * time/time.h: Likewise.
61993
61994 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
61995
61996         [BZ #208]
61997         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
61998         in instead of returning them.  Return void.
61999         (__libc_mallinfo): Accumulate over all arenas.
62000         (__malloc_stats): Adjust for change in int_mallinfo interface.
62001
62002 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62003
62004         [BZ #10375]
62005         * configure.in (NM): Add AC_CHECK_TOOL for it.
62006         (libc_extra_cflags): New substituted variable.
62007         Check for -fstack-protector being used implicitly.
62008         * configure: Regenerated.
62009         * config.make.in (config-extra-cflags): New variable,
62010         gets @libc_extra_cflags@.
62011         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62012
62013         [BZ #10375]
62014         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62015         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62016         * configure: Regenerated.
62017         * config.make.in (CPPUNDEFS): New substituted variable.
62018         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62019         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62020         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62021
62022 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62023
62024         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62025         (mq_attr): Use __syscall_slong_t.
62026
62027 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62028
62029         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62030         Check __x86_64__ instead of __WORDSIZE.
62031         (_STAT_VER_LINUX): Likewise.
62032         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62033         __syscall_ulong_t and __syscall_slong_t.
62034         (stat64): Likewise.
62035
62036 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62037
62038         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62039
62040 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62041
62042         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62043
62044 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62045
62046         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62047         __syscall_ulong_t.
62048
62049         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62050         include <bits/wordsize.h>.  Check __x86_64__ instead of
62051         __WORDSIZE.
62052         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62053         defined.
62054         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62055
62056         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62057         include <bits/wordsize.h>.  Check __x86_64__ instead of
62058         __WORDSIZE.
62059         (user_regs_struct): Use "__extension__ unsigned long long"
62060         instead of "unsigned long" if __x86_64__ is defined.
62061         (user): Likewise.  Pad after pointer field if __ILP32__ is
62062         defined.
62063
62064 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62065
62066         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62067         versions 5 to 9.
62068         * configure: Regenerated.
62069         * manual/install.texi (texinfo): Increase version requirement to
62070         4.5 or later.
62071         * INSTALL: Regenerated.
62072
62073         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62074
62075 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62076
62077         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62078
62079         * sysdeps/x86_64/x32/ffs.c: New file.
62080
62081         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62082         __syscall_ulong_t.
62083         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62084         defined.  Use __syscall_ulong_t.
62085         (shminfo): Use __syscall_ulong_t.
62086         (shm_info): Likewise.
62087
62088         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62089         __syscall_ulong_t.
62090
62091         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62092         <bits/wordsize.h>.
62093         (msgqnum_t): Use __syscall_ulong_t.
62094         (msglen_t): Likewise.
62095         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62096         __syscall_ulong_t.
62097
62098         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62099         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62100
62101         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62102
62103         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62104         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62105
62106         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62107         __syscall_slong_t.
62108
62109         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62110         include <bits/wordsize.h>.  Check __x86_64__ instead of
62111         __WORDSIZE.
62112
62113         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62114         "unsigned long long int" if __x86_64__ is defined.
62115         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62116
62117         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62118         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62119         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62120
62121         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62122         <stdint.h>.
62123         (GET_PC): Cast to uintptr_t first.
62124         (GET_FRAME): Likewise.
62125         (GET_STACK): Likewise.
62126
62127         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62128         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62129         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62130         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62131         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62132         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62133         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62134         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62135         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62136         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62137         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62138         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62139         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62140         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62141         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62142         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62143         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62144         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62145         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62146         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62147         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62148         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62149         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62150         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62151         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62152         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62153         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62154         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62155         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62156
62157 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62158
62159         * Makerules (+depfiles): Also collect depfiles from .oS in
62160         $(extra-objs).
62161         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62162         .oS, $(libnldbl-routines)).
62163
62164         * Makerules (native-compile-mkdep-flags): Define.
62165         * sunrpc/Makefile (extra-objs): Add $(addprefix
62166         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62167         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62168         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62169         calling $(make-target-directory).
62170
62171 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62172
62173         * bits/types.h (__snseconds_t): Removed.
62174         * time/time.h (struct timespec): Replace __snseconds_t with
62175         __syscall_slong_t.
62176         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62177         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62178         Likewise.
62179         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62180         (__SNSECONDS_T_TYPE): Likewise.
62181         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62182         (__SNSECONDS_T_TYPE): Likewise.
62183         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62184         (__SNSECONDS_T_TYPE): Likewise.
62185
62186 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62187
62188         * sysdeps/mach/hurd/bits/typesizes.h
62189         (__SYSCALL_SLONG_TYPE): New macro.
62190         (__SYSCALL_ULONG_TYPE): Likewise.
62191
62192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62193
62194         * bits/types.h (__syscall_slong_t): New type.
62195         (__syscall_ulong_t): Likewise.
62196
62197         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62198         (__SYSCALL_ULONG_TYPE): Likewise.
62199         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62200         (__SYSCALL_SLONG_TYPE): Likewise.
62201         (__SYSCALL_ULONG_TYPE): Likewise.
62202         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62203         (__SYSCALL_SLONG_TYPE): Likewise.
62204         (__SYSCALL_ULONG_TYPE): Likewise.
62205         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62206         (__SYSCALL_SLONG_TYPE): Likewise.
62207         (__SYSCALL_ULONG_TYPE): Likewise.
62208
62209 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62210
62211         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62212         Add sigaltstack-offsets.sym.
62213         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62214         <sigaltstack-offsets.h>.
62215         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62216         longjmp_msg pointer.
62217         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62218         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62219         signal stack.
62220         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62221
62222 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62223
62224         * elf/stackguard-macros.h: Remove file.
62225         * sysdeps/generic/stackguard-macros.h: New file.
62226         * sysdeps/i386/stackguard-macros.h: Likewise.
62227         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62228         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62229         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62230         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62231         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62232         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62233         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62234         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62235         <elf/stackguard-macros.h>.
62236
62237         [BZ #14109]
62238         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62239         __aligned__ in attribute.
62240         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62241         (gregset_t): Likewise.
62242
62243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62244
62245         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62246         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62247         * sysdeps/x86_64/x32/Implies-after: New file.
62248
62249 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62250
62251         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62252         and access return value for _dl_profile_fixup.  Use R10_LP to
62253         load frame size.
62254
62255 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62256
62257         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62258
62259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62260
62261         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62262         * sysdeps/x86_64/x32/sysdep.h: New file.
62263
62264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62265
62266         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62267         * sysdeps/x86_64/setjmp.S: Likewise.
62268
62269 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62270
62271         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62272         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62273         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62274         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62275         remove unused global constant.
62276
62277 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62278
62279         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62280         include of <not-cancel.h>.
62281
62282 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62283
62284         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62285
62286 2012-05-15  Jeff Law  <law@redhat.com>
62287             Andreas Jaeger  <aj@suse.de>
62288
62289         [BZ #13594]
62290         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62291         out from...
62292         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62293         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62294         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62295         code changing __hst_map_handle.map.
62296
62297 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62298
62299         * configure.in (sysnames): Look for Implies-before and Implies-after
62300         files.
62301         * configure: Regenerated.
62302
62303 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62304
62305         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62306         8-byte data alignment with LP_SIZE alignment.
62307
62308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62309
62310         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62311         into R10_LP.
62312
62313 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62314
62315         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62316
62317 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62318
62319         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62320         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62321         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62322         Likewise.
62323         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62324
62325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62326
62327         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62328         (stackinfo_sub_sp): Likewise.
62329
62330 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62331
62332         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62333         RAX_LP.
62334
62335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62336
62337         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62338         into R*_LP.
62339
62340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62341
62342         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62343         sizes into R*_LP.
62344
62345 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62346
62347         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62348
62349 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62350
62351         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62352         into R11_LP and load __x86_64_shared_cache_size_half into
62353         R8_LP.
62354
62355 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62356
62357         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62358         R8_LP.
62359
62360 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62361
62362         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62363         logb for POWER7.
62364         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62365         logbf for POWER7.
62366         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62367         logbl for POWER7.
62368         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62369         powerpc32/power7/fpu/s_logb.c via #include.
62370         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62371         powerpc32/power7/fpu/s_logbf.c via #include.
62372         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62373         powerpc32/power7/fpu/s_logbl.c via #include.
62374
62375 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62376
62377         * README.libm: Remove file.
62378
62379 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62380
62381         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62382         count for x32.  Use R*_LP and omit operand-size suffix.
62383
62384 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62385
62386         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62387         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62388         * sysdeps/x86_64/x32/shlib-versions: New file.
62389
62390 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62391
62392         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62393         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62394         Use _dl_fatal_printf instead.
62395
62396 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62397
62398         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62399         set if not set by the user.  Do not allow for being unset.
62400         * sysdeps/unix/sysv/linux/configure: Regenerated.
62401
62402 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62403
62404         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62405         the `q' suffix from lea and replace .quad with ASM_ADDR.
62406
62407 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62408
62409         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62410         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62411         instead of $17.
62412         (PTR_DEMANGLE): Likewise.
62413
62414 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62415
62416         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62417         (LP_OP): Likewise.
62418         (ASM_ADDR): Likewise.
62419         (RAX_LP): Likewise.
62420         (RBP_LP): Likewise.
62421         (RBX_LP): Likewise.
62422         (RCX_LP): Likewise.
62423         (RDI_LP): Likewise.
62424         (RSI_LP): Likewise.
62425         (RSP_LP): Likewise.
62426         (R8_LP): Likewise.
62427         (R9_LP): Likewise.
62428         (R10_LP): Likewise.
62429         (R10_LP): Likewise.
62430         (R11_LP): Likewise.
62431         (R12_LP): Likewise.
62432         (R13_LP): Likewise.
62433         (R14_LP): Likewise.
62434         (R15_LP): Likewise.
62435
62436 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62437
62438         * sysdeps/x86_64/x32/dl-machine.h: New file.
62439
62440 2012-05-14  Andreas Jaeger  <aj@suse.de>
62441
62442         * manual/Makefile (subdir): Remove export of subdir.
62443         (all): Remove target.
62444         (.PHONY): Remove all from list.
62445         (mkinstalldirs): Remove.
62446         (.PHONY): Remove installdirs from list.
62447         ($(inst_infodir)/libc.info): Use make-target-directory.
62448         (installdirs): Remove.
62449         (subdir_%): Remove.
62450         (glibc-targets): Remove.
62451         (lib): Remove.
62452         (stubs): Remove.
62453         ($(objpfx)stubs ../po/manual.pot): Remove.
62454         ($(objpfx)stamp%): Remove.
62455         (make-target-directory): Remove.
62456         (subdir_install): Remove.
62457         (routines): Remove.
62458         (aux): Remove.
62459         (sources): Remove.
62460         (objects): Remove.
62461         (headers): Remove.
62462
62463         [BZ #13750]
62464         * manual/.gitignore: Remove, it's not needed anymore.
62465         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62466         all files in it.
62467         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62468         directory.
62469         (texis): Renamed to $(objpfx)texis.
62470         (texis-path): New, contains path to generated files.
62471         (chapters.%): Use texis-path for complete path, add extra argument
62472         libc-texinfo.sh.
62473         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62474         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62475         (summary,texi, stamp-summary): Use complete path of
62476         files. Generate files in build dir.
62477         (dir-add.texi): Build in build dir.
62478         (libm-err.texi,stamp-libm-err): Likewise.
62479         (version.texi, stamp-version): Likewise.
62480         (.%c.texi): Likewise.
62481         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62482         (mostlyclean): Remove target.
62483         (realclean): Remove target.
62484         (generated): Add new variable with contents from mostlyclean and
62485         realclean, remove entries duplicated in common-mostlyclean, add
62486         stamp-libm-err and stamp-version.
62487         (generated-dirs): Add libc directory.
62488         ($(inst_infodir)/libc.info): Install files from build dir.
62489
62490         * manual/install.texi (Configuring and compiling): Adjust since
62491         the info files are not part of the tar ball anymore.
62492
62493 2012-05-14  Andreas Jaeger  <aj@suse.de>
62494
62495         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62496         variable.
62497
62498 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62499
62500         [BZ #13717]
62501         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62502         to 2.2.0 where earlier.
62503         * sysdeps/unix/sysv/linux/configure: Regenerated.
62504         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62505         Remove conditional code.
62506         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62507         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62508         Remove conditional code.
62509         [!__NR_lchown]: Likewise.
62510         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62511         [__NR_lchown]: Likewise.
62512         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62513         comment referencing __ASSUME_LCHOWN_SYSCALL.
62514         * sysdeps/unix/sysv/linux/i386/sigaction.c
62515         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62516         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62517         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62518         Remove conditional code.
62519         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62520         (__protocol_available): Remove #if 0 code.
62521         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62522         conditional code.
62523         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62524         * sysdeps/unix/sysv/linux/kernel-features.h
62525         (__ASSUME_GETCWD_SYSCALL): Don't define.
62526         (__ASSUME_REALTIME_SIGNALS): Likewise.
62527         (__ASSUME_PREAD_SYSCALL): Likewise.
62528         (__ASSUME_PWRITE_SYSCALL): Likewise.
62529         (__ASSUME_POLL_SYSCALL): Likewise.
62530         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62531         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62532         non-SPARC.
62533         (__ASSUME_SIOCGIFNAME): Don't define.
62534         (__ASSUME_MSG_NOSIGNAL): Likewise.
62535         (__ASSUME_SENDFILE): Define unconditionally.
62536         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62537         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62538         conditional code.
62539         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62540         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62541         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62542         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62543         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62544         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62545         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62547         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62548         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62550         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62551         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62553         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62554         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62556         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62557         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62559         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62560         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62562         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62563         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62565         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62566         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62568         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62569         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62570         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62571         Remove conditional code.
62572         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62573         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62574         Remove conditional code.
62575         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62576         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62577         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62578         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62579         Remove conditional code.
62580         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62581         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62582         Remove conditional code.
62583         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62584         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62585         Remove conditional code.
62586         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62587         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62588         Remove conditional code.
62589         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62590         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62591         Remove conditional code.
62592         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62593         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62594         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62595         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62596         * sysdeps/unix/sysv/linux/sigaction.c
62597         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62598         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62599         * sysdeps/unix/sysv/linux/sigpending.c
62600         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62601         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62602         * sysdeps/unix/sysv/linux/sigprocmask.c
62603         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62604         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62605         * sysdeps/unix/sysv/linux/sigsuspend.c
62606         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62607         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62608         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62609         (__libc_missing_rt_sigs): Remove.
62610         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62611         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62612         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62613         Remove conditional code.
62614         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62615         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62616         return 1.
62617         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62618         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62619         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62620         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62621
62622 2012-05-14  Andreas Jaeger  <aj@suse.de>
62623
62624         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62625         it's not used in glibc.
62626         (__coshm1): Likewise.
62627         (__acosh1p): Likewise.
62628         (__sgn): Likewise.
62629
62630         * manual/string.texi (Copying and Concatenation): Add missing
62631         variable in concat example.
62632         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62633
62634 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62635
62636         [BZ #14103]
62637         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62638         __builtin_clzl with __builtin_clzll.
62639
62640 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62641
62642         [BZ #14104]
62643         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62644         libc_freeres_ptr.
62645
62646 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62647
62648         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62649         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62650         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62651         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62652
62653 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62654
62655         * NEWS: Update ia64 info.
62656
62657 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62658
62659         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62660         used as bcopy.
62661
62662 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62663
62664         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62665         * sysdeps/unix/syscalls.list (dup3): Likewise.
62666         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62667         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62668
62669 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62670
62671         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62672         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62673
62674 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62675
62676         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62677         thread pointer.
62678         (TLS_IE): Use mov/add instead of movq/addq to load thread
62679         pointer.
62680         (TLS_GD_PREFIX): New.
62681         (TLS_GD): Use it.
62682
62683 2012-05-11  David S. Miller  <davem@davemloft.net>
62684
62685         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62686         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62687         (_FPU_SETCW): Likewise.
62688
62689 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62690
62691         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62692         is 32-byte aligned.
62693
62694 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62695
62696         [BZ #11837]
62697         * iconvdata/gb18030.c: Update tables.
62698         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62699         characters specially.
62700         (BODY for TO_LOOP): Add encoding of missing ranges.
62701
62702 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62703
62704         [BZ #13673]
62705         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62706         * sysdeps/mach/hurd/dup3.c: Likewise.
62707         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62708         * sysdeps/powerpc/memmove.c:: Likewise.
62709
62710 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62711
62712         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62713         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62714
62715 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62716
62717         * elf/elf.h (R_X86_64_RELATIVE64): New.
62718         (R_X86_64_NUM): Updated.
62719         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62720         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62721         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62722         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62723         tst-quad1pie tst-quad2pie
62724         (modules-names): Add tst-quadmod1 tst-quadmod2.
62725         ($(objpfx)tst-quad1): New dependency.
62726         ($(objpfx)tst-quad2): Likewise.
62727         ($(objpfx)tst-quad1pie): Likewise.
62728         ($(objpfx)tst-quad2pie): Likewise.
62729         * sysdeps/x86_64/tst-quad1.c: New file.
62730         * sysdeps/x86_64/tst-quad1pie.c: New file.
62731         * sysdeps/x86_64/tst-quad2.c: Likewise.
62732         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62733         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62734         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62735         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62736         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62737
62738 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62739
62740         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62741         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62742         * streams/stropts.h (t_scalar_t): Define type.
62743
62744         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62745         (_PATH_PRESERVE): Set to "/var/lib".
62746         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62747
62748         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62749         instead of int.
62750
62751         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62752         if __dir_mkfile succeeded.
62753
62754         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62755         checking for _hurd_dtablesize.  Unlock it right after having
62756         finished _hurd_dtable allocation.
62757
62758 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62759
62760         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62761         * sysdeps/mach/hurd/configure: Regenerated.
62762         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62763         special-casing to...
62764         * sysdeps/gnu/configure.in: ... this new file.
62765         * sysdeps/unix/sysv/linux/configure: Regenerated.
62766         * sysdeps/gnu/configure: New generated file.
62767
62768         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62769         for Linux: use nsec instead of usec, as well as:
62770         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62771         members of type struct timespec.
62772         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62773         New macros.
62774         (struct stat64): Likewise.
62775         (_STATBUF_ST_NSEC): New macro.
62776         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62777
62778         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62779         __strtoul_internal rather than strtoul.
62780
62781 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62782
62783         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62784         and reject them.
62785
62786 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62787
62788         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62789         which preserves existing values.
62790         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62791
62792 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62793
62794         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62795         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62796         greater than FD_SETSIZE.
62797
62798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62799
62800         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62801         allocated, call __vm_protect to finish enabling the existing space, and
62802         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62803         allocate the remainder.
62804
62805 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62806
62807         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62808         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62809
62810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62811
62812         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62813         sysdeps/mach/hurd/readlink.c.
62814
62815         * posix/tst-sysconf.c (posix_options): Only use
62816         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62817         _POSIX_SYNCHRONIZED_IO when they are defined
62818         * sysdeps/mach/hurd/bits/posix_opt.h:
62819         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62820         (_XOPEN_REALTIME): Undefine macro.
62821         (_XOPEN_REALTIME_THREADS): Undefine macro.
62822         (_XOPEN_SHM): Undefine macro.
62823         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62824         macro to -1.
62825         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62826         macro to -1.
62827         (_POSIX_ASYNC_IO): Undefine macro.
62828         (_POSIX_PRIORITIZED_IO): Undefine macro.
62829         (_POSIX_SPIN_LOCKS): Define macro to -1.
62830
62831         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62832         SA_NODEFER, SA_RESETHAND.
62833         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62834         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62835         F_DUPFD_CLOEXEC.
62836
62837 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62838
62839         * elf/Makefile (pldd-modules): Define unconditionally.
62840
62841 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62842
62843         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
62844
62845 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62846
62847         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
62848         Return ENOENT when name is empty.
62849         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
62850
62851 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62852
62853         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
62854
62855         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
62856
62857 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62858
62859         Fix mlock in all cases except non-readable pages.
62860         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
62861         instead of VM_PROT_ALL as parameter to __vm_wire function.
62862
62863         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
62864         (__mkdir): When path is `/', just fail with EEXIST.
62865         * sysdeps/mach/hurd/mkdirat.c: Likewise.
62866
62867 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62868
62869         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
62870         <sys/uio.h> (for writev).
62871         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
62872         and <sys/param.h> (for MIN).
62873
62874 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62875
62876         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
62877         REQUESTED_TIME.  Properly set the remaining time and return EINTR
62878         if interrupted.
62879
62880 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62881
62882         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
62883         Depend on against $(link-rpcuserlibs).
62884
62885 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62886
62887         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
62888         (__libc_stack_end): Do not use attribute_relro.
62889         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
62890         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
62891         to libthread-provided value.
62892         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
62893         attribute_relro.
62894
62895 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62896
62897         [BZ #3748]
62898         * bits/libc-lock.h (__libc_once_get): New macro.
62899         * sysdeps/mach/bits/libc-lock.h: Likewise.
62900         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
62901         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
62902         instead of using implementation details.
62903
62904         * libio/fileops.c: Unconditionally include <kernel-features.h>.
62905         * libio/freopen.c: Likewise.
62906         * libio/freopen64.c: Likewise.
62907         * misc/syslog.c: Likewise.
62908         * nscd/connections.c: Likewise.
62909         * nscd/netgroupcache.c: Likewise.
62910         * sysdeps/posix/getcwd.c: Likewise.
62911
62912 2012-05-10  Roland McGrath  <roland@hack.frob.com>
62913
62914         * math/w_ilogbf.c: Add #include <limits.h>.
62915
62916 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62917
62918         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
62919         path instead of returning without unlocking.
62920
62921         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
62922         immediate-write ioctls.
62923         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
62924
62925 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62926
62927         * sysdeps/mach/hurd/i386/init-first.c (init): Use
62928         __builtin_frame_address instead of making assumptions about the
62929         location of the return address relative to DATA.  Force early load of
62930         the return address.
62931         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
62932         __builtin_frame_address.
62933
62934         dup3 for GNU Hurd.
62935         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
62936         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
62937         implement dup3 and do some further code clean-ups.
62938         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
62939         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
62940
62941 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62942
62943         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
62944
62945         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
62946         HURD_CRITICAL_END around holding _hurd_dtable_lock.
62947         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
62948         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
62949         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
62950         d->port.lock.
62951
62952         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
62953         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
62954         when handler == SIG_ERR, not when handler != SIG_ERR.
62955
62956 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62957
62958         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
62959         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
62960         definitions.
62961
62962         accept4 for GNU Hurd.
62963         * include/sys/socket.h (__libc_accept4): New prototype.
62964         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
62965         to implement __libc_accept4.
62966         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
62967         __libc_accept4.
62968         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
62969
62970         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
62971         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
62972         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
62973         signal-defines.sym.
62974
62975 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62976
62977         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
62978
62979 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62980
62981         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
62982         assertion on O_CLOEXEC flag.
62983         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
62984         * hurd/intern-fd.c: Likewise.
62985         * hurd/port2fd.c: Likewise.
62986
62987 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62988
62989         [BZ #3906]
62990         * bits/in.h (IPV6_PKTINFO): Define new macro.
62991         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
62992
62993 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62994
62995         [BZ #13954]
62996         [BZ #13955]
62997         [BZ #13956]
62998         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
62999         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63000         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63001         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63002         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63003         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63004         * math/libm-test.inc (logb_test) : Additional logb tests.
63005
63006 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63007             Andreas Jaeger  <aj@suse.de>
63008
63009         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63010         * configure: Regenerated.
63011         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63012         * config.make.in (link-obsolete-rpc): New substituted variable.
63013         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63014         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63015         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63016         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63017         so that libc.a contains the symbols.
63018         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63019         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63020         * sunrpc/auth_none.c: Likewise.
63021         * sunrpc/auth_unix.c: Likewise.
63022         * sunrpc/authdes_prot.c: Likewise.
63023         * sunrpc/authuxprot.c: Likewise.
63024         * sunrpc/clnt_gen.c: Likewise.
63025         * sunrpc/clnt_perr.c: Likewise.
63026         * sunrpc/clnt_raw.c: Likewise.
63027         * sunrpc/clnt_simp.c: Likewise.
63028         * sunrpc/clnt_tcp.c: Likewise.
63029         * sunrpc/clnt_udp.c: Likewise.
63030         * sunrpc/clnt_unix.c: Likewise.
63031         * sunrpc/des_crypt.c: Likewise.
63032         * sunrpc/des_soft.c: Likewise.
63033         * sunrpc/get_myaddr.c: Likewise.
63034         * sunrpc/key_call.c: Likewise.
63035         * sunrpc/key_prot.c: Likewise.
63036         * sunrpc/netname.c: Likewise.
63037         * sunrpc/pm_getmaps.c: Likewise.
63038         * sunrpc/pm_getport.c: Likewise.
63039         * sunrpc/pmap_clnt.c: Likewise.
63040         * sunrpc/pmap_prot.c: Likewise.
63041         * sunrpc/pmap_prot2.c: Likewise.
63042         * sunrpc/pmap_rmt.c: Likewise.
63043         * sunrpc/publickey.c: Likewise.
63044         * sunrpc/rpc_cmsg.c: Likewise.
63045         * sunrpc/rpc_common.c: Likewise.
63046         * sunrpc/rpc_dtable.c: Likewise.
63047         * sunrpc/rpc_prot.c: Likewise.
63048         * sunrpc/rpc_thread.c: Likewise.
63049         * sunrpc/rtime.c: Likewise.
63050         * sunrpc/svc.c: Likewise.
63051         * sunrpc/svc_auth.c: Likewise.
63052         * sunrpc/svc_raw.c: Likewise.
63053         * sunrpc/svc_run.c: Likewise.
63054         * sunrpc/svc_tcp.c: Likewise.
63055         * sunrpc/svc_udp.c: Likewise.
63056         * sunrpc/svc_unix.c: Likewise.
63057         * sunrpc/svcauth_des.c: Likewise.
63058         * sunrpc/xcrypt.c: Likewise.
63059         * sunrpc/xdr.c: Likewise.
63060         * sunrpc/xdr_array.c: Likewise.
63061         * sunrpc/xdr_float.c: Likewise.
63062         * sunrpc/xdr_intXX_t.c: Likewise.
63063         * sunrpc/xdr_mem.c: Likewise.
63064         * sunrpc/xdr_rec.c: Likewise.
63065         * sunrpc/xdr_ref.c: Likewise.
63066         * sunrpc/xdr_sizeof.c: Likewise.
63067         * sunrpc/xdr_stdio.c: Likewise.
63068
63069 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63070
63071         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63072         change.  Update copyright years.
63073
63074 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63075
63076         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63077
63078 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63079             Joseph Myers  <joseph@codesourcery.com>
63080             Paul Pluzhnikov  <ppluzhnikov@google.com>
63081
63082         [BZ #14012]
63083         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63084         requiring rpcgen.
63085         [cross-compiling] (extra-libs): Likewise.
63086         [cross-compiling] (extra-libs-others): Likewise.
63087         [cross-compiling] (librpcsvc-routines): Likewise.
63088         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63089         [cross-compiling] (omit-deps): Likewise.
63090         (sunrpc-CPPFLAGS): New variable.
63091         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63092         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63093         (cross-rpcgen-objs): New variable.
63094         (extra-objs): Append $(cross-rpcgen-objs).
63095         ($(cross-rpcgen-objs)): New rule.
63096         ($(objpfx)cross-rpcgen): Likewise.
63097         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63098         comment.
63099         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63100         ($(objpfx)x%.stmp): Likewise.
63101         * sunrpc/proto.h [IS_IN_build] (_): Define.
63102         [IS_IN_build] (_libc_intl_domainname): Likewise.
63103
63104 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63105
63106         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63107         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63108         and R_X86_64_TPOFF64.
63109
63110 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63111
63112         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63113         sysdeps/unix/sysv/syscalls.list.
63114         (stime): Likewise.
63115         (utime): Likewise.
63116         * sysdeps/unix/sysv/syscalls.list: Remove file.
63117
63118 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63119
63120         [BZ #3440]
63121         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63122         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63123         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63124         (__LC_IDENTIFICATION): Make these macros useful in #if
63125         expressions, as required by C99.
63126
63127 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63128
63129         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63130         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63131         after this.
63132
63133 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63134
63135         * stdlib/longlong.h: Updated from GCC.
63136
63137 2012-05-09  Andreas Jaeger  <aj@suse.de>
63138
63139         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63140         default is first entry.
63141         (run_mode): Set type.
63142         (main): Remove informal message about syslog.
63143         (options): Fix typo.
63144
63145         [BZ #14053]
63146         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63147         to asm.
63148         (lrint): Likewise.
63149         (llrintf): Likewise.
63150         (llrint): Likewise.
63151         (rint): Likewise.
63152         (rintf): Likewise.
63153         (nearbyint): Likewise.
63154         (nearbyintf): Likewise.
63155
63156 2012-05-09  Andreas Jaeger  <aj@suse.de>
63157             Pedro Alves  <palves@redhat.com>
63158
63159         * nscd/nscd.c (run_mode): Use enum.
63160         (main): Cleanup coding style issue.
63161
63162 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63163             Andreas Jaeger  <aj@suse.de>
63164
63165         * nscd/nscd.c (go_background): Replaced with...
63166         (run_mode): ... this.
63167         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63168         (options): Add -F --foreground.
63169         (main): Implement it.
63170         (parse_opt): Parse it.
63171
63172 2012-05-09  Andreas Jaeger  <aj@suse.de>
63173
63174         [BZ #14083]
63175         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63176         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63177         -Wconversion warning.
63178         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63179         Likewise.
63180
63181 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63182
63183         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63184         == 0.
63185         (LC_ALL): Use macro-int-constant.
63186         (LC_COLLATE): Likewise.
63187         (LC_CTYPE): Likewise.
63188         (LC_MESSAGES): Likewise.
63189         (LC_MONETARY): Likewise.
63190         (LC_NUMERIC): Likewise.
63191         (LC_TIME): Likewise.
63192         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63193         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63194         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63195         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63196         Specify type.
63197         [C99-based standards] (float_t): Expect type.
63198         [C99-based standards] (double_t): Expect type.
63199         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63200         type.
63201         [C99-based standards] (HUGE_VALL): Likewise.
63202         [C99-based standards] (INFINITY): Likewise.
63203         [C99-based standards] (NAN): Likewise.
63204         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63205         [C99-based standards] (FP_NAN): Likewise.
63206         [C99-based standards] (FP_NORMAL): Likewise.
63207         [C99-based standards] (FP_SUBNORMAL): Likewise.
63208         [C99-based standards] (FP_ZERO): Likewise.
63209         [C99-based standards] (FP_FAST_FMA): Use
63210         optional-macro-int-constant.  Specify type.  Require == 1.
63211         [C99-based standards] (FP_FAST_FMAF): Likewise.
63212         [C99-based standards] (FP_FAST_FMAL): Likewise.
63213         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63214         [C99-based standards] (FP_ILOGBNAN): Likewise.
63215         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63216         Specify type.
63217         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63218         [C99-based standards] (math_errhandling): Specify type.
63219         [ISO99 || ISO11] (signgam): Do not allow.
63220         [non-C99-based standards] (copysignf): Do not allow.
63221         [non-C99-based standards] (exp2f): Likewise.
63222         [non-C99-based standards] (log2f): Likewise.
63223         [non-C99-based standards] (modff): Allow.
63224         [non-C99-based standards] (erff): Do not allow.
63225         [non-C99-based standards] (erfcf): Likewise.
63226         [non-C99-based standards] (gammaf): Likewise.
63227         [non-C99-based standards] (hypotf): Likewise.
63228         [non-C99-based standards] (j0f): Likewise.
63229         [non-C99-based standards] (j1f): Likewise.
63230         [non-C99-based standards] (jnf): Likewise.
63231         [non-C99-based standards] (lgammaf): Likewise.
63232         [non-C99-based standards] (tgammaf): Likewise.
63233         [non-C99-based standards] (y0f): Likewise.
63234         [non-C99-based standards] (y1f): Likewise.
63235         [non-C99-based standards] (ynf): Likewise.
63236         [non-C99-based standards] (isnanf): Likewise.
63237         [non-C99-based standards] (acoshf): Likewise.
63238         [non-C99-based standards] (asinhf): Likewise.
63239         [non-C99-based standards] (atanhf): Likewise.
63240         [non-C99-based standards] (cbrtf): Likewise.
63241         [non-C99-based standards] (expm1f): Likewise.
63242         [non-C99-based standards] (ilogbf): Likewise.
63243         [non-C99-based standards] (log1pf): Likewise.
63244         [non-C99-based standards] (logbf): Likewise.
63245         [non-C99-based standards] (nextafterf): Likewise.
63246         [non-C99-based standards] (remainderf): Likewise.
63247         [non-C99-based standards] (rintf): Likewise.
63248         [non-C99-based standards] (scalbf): Likewise.
63249         [non-C99-based standards] (copysignl): Likewise.
63250         [non-C99-based standards] (exp2l): Likewise.
63251         [non-C99-based standards] (log2l): Likewise.
63252         [non-C99-based standards] (modfl): Allow.
63253         [non-C99-based standards] (erfl): Do not allow.
63254         [non-C99-based standards] (erfcl): Likewise.
63255         [non-C99-based standards] (gammal): Likewise.
63256         [non-C99-based standards] (hypotl): Likewise.
63257         [non-C99-based standards] (j0l): Likewise.
63258         [non-C99-based standards] (j1l): Likewise.
63259         [non-C99-based standards] (jnl): Likewise.
63260         [non-C99-based standards] (lgammal): Likewise.
63261         [non-C99-based standards] (tgammal): Likewise.
63262         [non-C99-based standards] (y0l): Likewise.
63263         [non-C99-based standards] (y1l): Likewise.
63264         [non-C99-based standards] (ynl): Likewise.
63265         [non-C99-based standards] (isnanl): Likewise.
63266         [non-C99-based standards] (acoshl): Likewise.
63267         [non-C99-based standards] (asinhl): Likewise.
63268         [non-C99-based standards] (atanhl): Likewise.
63269         [non-C99-based standards] (cbrtl): Likewise.
63270         [non-C99-based standards] (expm1l): Likewise.
63271         [non-C99-based standards] (ilogbl): Likewise.
63272         [non-C99-based standards] (log1pl): Likewise.
63273         [non-C99-based standards] (logbl): Likewise.
63274         [non-C99-based standards] (nextafterl): Likewise.
63275         [non-C99-based standards] (remainderl): Likewise.
63276         [non-C99-based standards] (rintl): Likewise.
63277         [non-C99-based standards] (scalbl): Likewise.
63278         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63279         [non-C99-based standards] (FP_*): Do not allow.
63280         [C99-based standards] (FP_*): Change to
63281         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63282         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63283         allow.
63284         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63285         (SIG_ERR): Likewise.
63286         [X/Open-based standards] (SIG_HOLD): Likewise.
63287         (SIG_IGN): Likewise.
63288         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63289         positive value.
63290         (SIGFPE): Likewise.
63291         (SIGILL): Likewise.
63292         (SIGINT): Likewise.
63293         (SIGSEGV): Likewise.
63294         (SIGTER): Likewise.
63295         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63296         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63297         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63298         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63299         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63300         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63301         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63302         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63303         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63304         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63305         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63306         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63307         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63308         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63309         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63310         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63311         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63312         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63313         [X/Open-based standards] (SIGTRAP): Likewise.
63314         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63315         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63316         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63317         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63318         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63319         allow.
63320
63321 2012-05-08  Ian Wienand  <ianw@vmware.com>
63322
63323         [BZ #14080]
63324         * time/tzset.c (__tzset_parse_tz): Update default rules for
63325         daylight time changes in the Energy Policy Act of 2005.
63326
63327 2012-05-09  Andreas Jaeger  <aj@suse.de>
63328
63329         [BZ #13983]
63330         * elf/ldconfig.c (parse_conf): Change string to make clear that
63331         ldconfig only issued a warning if ld.so.conf does not exist.
63332
63333 2012-05-08  David S. Miller  <davem@davemloft.net>
63334
63335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63336         movxtod instead of popping the value on the stack.
63337
63338         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63339
63340 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63341
63342         * config.h.in: Add HAVE_ARM_PCS_VFP.
63343
63344 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63345
63346         [BZ #13979]
63347         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63348         checking but the checks are disabled for any reason.
63349
63350 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63351
63352         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63353         and ELF64_R_TYPE with ELFW(R_TYPE).
63354
63355 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63356
63357         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63358         (ulimit): Likewise.
63359
63360         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63361         (settimeofday): Likewise.
63362
63363 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63364
63365         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63366         a struct th_u2 inside the union, and move tu_block/tu_code into
63367         a new th_u3 union of tu_block/tu_code inside of that.  Move
63368         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63369         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63370         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63371         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63372         (th_stuff): Change to th_u1.tu_stuff.
63373         (th_data): Define.
63374         (th_msg): Change to th_u1.th_u2.tu_data.
63375
63376 2012-05-07  David S. Miller  <davem@davemloft.net>
63377
63378         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63379
63380         [BZ #14074]
63381         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63382         (SETUP_PIC_REG): Use it.
63383         (SETUP_PIC_REG_LEAF): Use it.
63384
63385 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63386
63387         [BZ #13885]
63388         [BZ #13923]
63389         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63390         USE_AS_EXPM1L.
63391         (EXPL_FINITE): Likewise.
63392         (FLDLOG): Likewise.
63393         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63394         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63395         e_expl.S.
63396         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63397         USE_AS_EXPM1L.
63398         (EXPL_FINITE): Likewise.
63399         (FLDLOG): Likewise.
63400         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63401         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63402         e_expl.S.
63403         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63404         test of -max_value argument for long double.
63405         * sysdeps/i386/fpu/libm-test-ulps: Update.
63406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63407
63408 2012-05-06  David S. Miller  <davem@davemloft.net>
63409
63410         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63411         quad soft-float symbols whose references which are compiler
63412         generated.
63413         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63414
63415 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63416
63417         [BZ #13884]
63418         [BZ #13914]
63419         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63420         USE_AS_EXP10L.
63421         (EXPL_FINITE): Likewise.
63422         (FLDLOG): Likewise.
63423         (c0): Likewise.
63424         (c1): Likewise.
63425         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63426         Adjust comments for base varying.
63427         (__expl_finite): Change alias to EXPL_FINITE.
63428         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63429         e_expl.S.
63430         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63431         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63432         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63433         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63434         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63435         USE_AS_EXP10L.
63436         (EXPL_FINITE): Likewise.
63437         (FLDLOG): Likewise.
63438         (c0): Likewise.
63439         (c1): Likewise.
63440         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63441         Adjust comments for base varying.
63442         (__expl_finite): Change alias to EXPL_FINITE.
63443         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63444         tests for bugs.
63445         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63446
63447         [BZ #14064]
63448         * math/libm-test.inc (check_float_internal): Correct ulp
63449         calculation for subnormal expected results.
63450
63451 2012-05-06  Andreas Jaeger  <aj@suse.de>
63452
63453         * Makeconfig (+math-flags): New, set to -frounding-math.
63454         (+cflags): Add +math-flags so that all of glibc gets compiled with
63455         it.
63456
63457         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63458
63459 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63460
63461         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63462         Disable one test.
63463
63464         [BZ #13787]
63465         [BZ #13922]
63466         [BZ #14036]
63467         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63468         (__ieee754_expl): Allow for and saturate large arguments.
63469         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63470         (u_threshold): Likewise.
63471         (__exp): Call __ieee754_exp before checking for overflow and
63472         underflow.
63473         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63474         (u_threshold): Likewise.
63475         (__expf): Call __ieee754_expf before checking for overflow and
63476         underflow.
63477         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63478         (u_threshold): Likewise.
63479         (__expl): Call __ieee754_expl before checking for overflow and
63480         underflow.
63481         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63482         (__ieee754_expl): Allow for and saturate large arguments.
63483         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63484         missing overflow exception on overflow.
63485         (expm1_test): Do not allow missing overflow exception on overflow.
63486
63487         * sysdeps/i386/fpu/e_expl.c: Move to ...
63488         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63489         rather than using inline asm.
63490         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63491         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63492         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63493
63494         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63495         (nice): Likewise.
63496         (poll): Likewise.
63497         (signal): Likewise.
63498         (time): Likewise.
63499         (times): Likewise.
63500
63501 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63502
63503         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63504         sysdeps/unix/common/syscalls.list.
63505         (fchmod): Likewise.
63506         (fchown): Likewise.
63507         (ftruncate): Likewise.
63508         (getrusage): Likewise.
63509         (gettimeofday): Likewise.
63510         (setpgid): Likewise.
63511         (setregid): Likewise.
63512         (setreuid): Likewise.
63513         (sigaction): Likewise.
63514         (truncate): Likewise.
63515         (vhangup): Likewise.
63516         * sysdeps/unix/common/syscalls.list: Remove file.
63517         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63518         * sysdeps/unix/sysv/linux/Implies: Likewise.
63519
63520 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63521
63522         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63523         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63524         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63525         Moved to ...
63526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63527         Here.
63528         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63529         to ...
63530         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63531         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63532         to ...
63533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63534         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63535         to ...
63536         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63537         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63538         to ...
63539         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63540         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63541         to ...
63542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63543         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63544         to ...
63545         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63546         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63547         to ...
63548         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63549         Here.
63550         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63551         to ...
63552         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63553         Here.
63554         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63555         to ...
63556         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63557         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63558         Moved to ...
63559         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63560         Here.
63561         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63562         to ...
63563         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63564
63565 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63566
63567         * sysdeps/unix/common/bits/dirent.h: Remove file.
63568         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63569
63570         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63571         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63572         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63573         * sysdeps/unix/bsd/isatty.c: Likewise.
63574         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63575         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63576         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63577
63578 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63579
63580         [BZ #13563]
63581         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63582         long double comparison inaccuracies.
63583         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63584         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63585
63586 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63587
63588         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63589         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63590
63591 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63592
63593         [BZ #14049]
63594         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63595         nonzero digits before rounding a hex value.
63596         * stdlib/tst-strtod.c (tests): Add another test.
63597
63598 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63599
63600         * sysdeps/s390/fpu/libm-test-ulps: Update.
63601
63602 2012-05-03  Andreas Jaeger  <aj@suse.de>
63603
63604         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63605         does not get optimized out.
63606         (malloc_opt_barrier): New.
63607
63608 2012-05-03  Andreas Jaeger  <aj@suse.de>
63609             Roland McGrath  <roland@hack.frob.com>
63610
63611         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63612         intermediate file deletion.
63613         (generated): Add .symlist files.
63614
63615 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63616
63617         [BZ #13775]
63618         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63619         Redirect under this condition.
63620         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63621         [__USE_GNU] (__dprintf_chk): Not under this condition.
63622         [__USE_GNU] (__vdprintf_chk): Likewise.
63623         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63624         under this condition.
63625         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63626         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63627         [__USE_XOPEN2K8] (vdprintf): Likewise.
63628         [__USE_GNU] (__dprintf_chk): Not under this condition.
63629         [__USE_GNU] (__vdprintf_chk): Likewise.
63630         [__USE_GNU] (dprintf): Likewise.
63631         [__USE_GNU] (vdprintf): Likewise.
63632
63633 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63634
63635         * elf/Makefile (common-generated): Set this instead of generated for
63636         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63637         $(all-built-dso)-derived lists.
63638
63639 2012-05-03  Andreas Jaeger  <aj@suse.de>
63640
63641         * sysdeps/i386/fpu/libm-test-ulps: Update.
63642
63643         * FAQ: Removed.
63644         * FAQ.in: Likewise.
63645         * scripts/gen-FAQ.pl: Likewise.
63646         * manual/install.texi (Installation): Point to online location of
63647         FAQ.
63648         * Makefile (files-for-dist): Remove FAQ.
63649         (FAQ): Remove.
63650
63651 2012-05-02  Allan McRae  <allan@archlinux.org>
63652
63653         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63654         (LDFLAGS-reldepmod5.so): Likewise.
63655         (LDFLAGS-reldep6mod1.so): Likewise.
63656         (LDFLAGS-reldep6mod4.so): Likewise.
63657         (LDFLAGS-reldep8mod3.so): Likewise.
63658         (LDFLAGS-unload4mod1.so): Likewise.
63659         (LDFLAGS-unload4mod2.so): Likewise.
63660         (LDFLAGS-tst-initorder): Likewise.
63661         (LDFLAGS-tst-initordera2.so): Likewise.
63662         (LDFLAGS-tst-initordera3.so): Likewise.
63663         (LDFLAGS-tst-initordera4.so): Likewise.
63664         (LDFLAGS-tst-initorderb2.so): Likewise.
63665         (LDFLAGS-noload): Likewise.
63666         (LDFLAGS-next): Likewise.
63667         (LDFLAGS-order2mod1.so): Likewise.
63668         (LDFLAGS-order2mod2.so): Likewise.
63669         (LDFLAGS-tst-initorder2): Likewise.
63670         (LDFLAGS-tst-initorder2a.so): Likewise.
63671         (LDFLAGS-tst-initorder2b.so): Likewise.
63672         (LDFLAGS-tst-initorder2c.so): Likewise.
63673         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63674
63675 2012-05-02  David S. Miller  <davem@davemloft.net>
63676
63677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63678
63679 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63680
63681         [BZ #14055]
63682         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63683
63684 2012-05-02  Andreas Jaeger  <aj@suse.de>
63685
63686         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63687         since we manipulate rounding mode.
63688         (CPPFLAGS-test-idouble.c): Likewise.
63689         (CPPFLAGS-test-ifloat.c): Likewise.
63690         (CFLAGS-test-ldouble.c): Likewise.
63691         (CFLAGS-test-double.c): Likewise.
63692         (CFLAGS-test-float.c): Likewise.
63693         (CFLAGS-test-misc.c): Likewise.
63694         (CFLAGS-test-test-fenv.c): Likewise.
63695
63696 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63697
63698         [BZ #2550]
63699         [BZ #2570]
63700         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63701         comparisons to determine direction to adjust input.
63702
63703 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63704
63705         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63706         output to the target.
63707
63708         * scripts/localplt.awk: New file.
63709         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63710         (check-localplt-CFLAGS): Variable removed.
63711         ($(all-built-dso:=.jmprel)): New static pattern rule.
63712         (generated): Add those targets.
63713         (localplt-built-dso): New variable.
63714         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63715
63716         * elf/check-localplt.c: File removed.
63717
63718         * scripts/check-execstack.awk: New file.
63719         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63720         (check-execstack-CFLAGS): Variable removed.
63721         ($(objpfx)check-execstack.h): Target removed.
63722         ($(objpfx)execstack-default): New target.
63723         (generated): Add that instead of check-execstack.h.
63724         ($(all-built-dso:=.phdr)): New static pattern rule.
63725         (generated): Add those targets.
63726         * elf/check-execstack.c: File removed.
63727
63728         * scripts/check-textrel.awk: New file.
63729         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63730         (check-textrel-CFLAGS): Variable removed.
63731         (all-built-dso): Use := to define.o
63732         ($(all-built-dso:=.dyn)): New static pattern rule.
63733         (generated): Add those targets.
63734         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63735         * config.make.in (READELF): New substituted variable.
63736         * elf/check-textrel.c: File removed.
63737
63738 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63739
63740         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63741         allow.
63742         * conform/data/ctype.h-data [C99-based standards] (isblank):
63743         Expect function.
63744         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63745         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63746         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63747         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63748         Specify type.  Require positive value.
63749         (EILSEQ): Likewise.
63750         (ERANGE): Likewise.
63751         [ISO || POSIX] (EILSEQ): Do not expect.
63752         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63753         Specify type.  Require positive value.
63754         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63755         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63756         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63757         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63758         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63759         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63760         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63761         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63762         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63763         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63764         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63765         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63766         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63767         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63768         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63769         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63770         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63771         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63772         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63773         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63774         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63775         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63776         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63777         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63778         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63779         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63780         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63781         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63782         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63783         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63784         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63785         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63786         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63787         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63788         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63789         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63790         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63791         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63792         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63793         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63794         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63795         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63796         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63797         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63798         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63799         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63800         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63801         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63802         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63803         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63804         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63805         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63806         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63807         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63808         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63809         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63810         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63811         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63812         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63813         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63814         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63815         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63816         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63817         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63818         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63819         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63820         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63821         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63822         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63823         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63824         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63825         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63826         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63827         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63828         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63829         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63830         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63831         Require >= 2.
63832         (FLT_ROUNDS): Expect as macro, not constant.
63833         (FLT_MANT_DIG): Use macro-int-constant.
63834         (DBL_MANT_DIG): Likewise.
63835         (LDBL_MANT_DIG): Likewise.
63836         (FLT_DIG): Likewise.
63837         (DBL_DIG): Likewise.
63838         (LDBL_DIG): Likewise.
63839         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63840         (DBL_MIN_EXP): Likewise.
63841         (LDBL_MIN_EXP): Likewise.
63842         (FLT_MAX_EXP): Use macro-int-constant.
63843         (DBL_MAX_EXP): Likewise.
63844         (LDBL_MAX_EXP): Likewise.
63845         (FLT_MAX_10_EXP): Likewise.
63846         (DBL_MAX_10_EXP): Likewise.
63847         (LDBL_MAX_10_EXP): Likewise.
63848         (FLT_MAX): Use macro-constant.
63849         (DBL_MAX): Likewise.
63850         (LDBL_MAX): Likewise.
63851         (FLT_EPSILON): Use macro-constant.  Give upper bound.
63852         (DBL_EPSILON): Likewise.
63853         (LDBL_EPSILON): Likewise.
63854         (FLT_MIN): Likewise.
63855         (DBL_MIN): Likewise.
63856         (LDBL_MIN): Likewise.
63857         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
63858         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
63859         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
63860         [ISO11] (FLT_HAS_SUBNORM): Likewise.
63861         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
63862         [ISO11] (DBL_DECIMAL_DIG): Likewise.
63863         [ISO11] (FLT_DECIMAL_DIG): Likewise.
63864         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
63865         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
63866         [ISO11] (FLT_TRUE_MIN): Likewise.
63867         [ISO11] (LDBL_TRUE_MIN): Likewise.
63868         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63869         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
63870         (SCHAR_MIN): Use macro-int-constant.  Specify type.
63871         (SCHAR_MAX): Likewise.
63872         (UCHAR_MAX): Likewise.
63873         (CHAR_MIN): Likewise.
63874         (CHAR_MAX): Likewise.
63875         (MB_LEN_MAX): Use macro-int-constant.
63876         (SHRT_MIN): Use macro-int-constant.  Specify type.
63877         (SHRT_MAX): Likewise.
63878         (USHRT_MAX): Likewise.
63879         (INT_MAX): Likewise.
63880         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
63881         bound negative.
63882         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63883         bound with "U".
63884         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63885         bound with "L".
63886         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
63887         bound negative.  Suffix upper bound with "L".
63888         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63889         bound with "UL".
63890         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
63891         Specify type.
63892         [C99-based standards] (LLONG_MAX): Likewise.
63893         [C99-based standards] (ULLONG_MAX): Likewise.
63894         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
63895         == 0.
63896         [ISO11] (max_align_t): Require type.
63897         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63898
63899         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
63900         from $CFLAGS, without defining away __attribute__ calls.
63901         (checknamespace): Use $CFLAGS_namespace.
63902
63903         * conform/conformtest.pl (@keywords): Only include C99 keywords
63904         for standards based on C99 or C11.
63905
63906         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
63907         Disable tests.
63908         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
63909         UNIX98]: Likewise.
63910
63911         * conform/conformtest.pl: Handle "macro-int-constant" and test for
63912         usability of symbols in #if.
63913
63914         * conform/conformtest.pl: If macro or constant types start
63915         "promoted:", expect the symbol to be of the following type
63916         promoted by the integer promotions.
63917
63918         * conform/conformtest.pl: Parse all "constant" and "macro" lines
63919         in one place.  Also handle "macro-constant".
63920
63921         * conform/conformtest.pl: Only accept expected macro values with
63922         "==".  Parse all "macro" lines in one place.
63923         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
63924
63925         * conform/conformtest.pl: Handle braced types on "constant" lines
63926         instead of handling "typed-constant".
63927         * conform/data/signal.h-data: Use "constant" instead of
63928         "typed-constant".
63929
63930         * conform/conformtest.pl: Handle "optional-" at start of lines in
63931         one place rather than duplicating several cases.  Handle each
63932         format of "macro" line with initial "optional-".
63933
63934         * conform/conformtest.pl: Only accept expected constant or
63935         optional-constant values with "==".  Parse all "constant" lines in
63936         one place.  Parse all "optional-constant" lines in one place.
63937         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
63938         * conform/data/fmtmsg.h-data: Likewise.
63939         * conform/data/netinet/in.h-data: Likewise.
63940         * conform/data/tar.h-data: Likewise.
63941         * conform/data/limits.h-data: Use "==" form on "constant" and
63942         "optional-constant" lines.
63943
63944         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
63945         Use -std=c99 for XOPEN2K.
63946         (@knownproblems): Remove.
63947         (newtoken): Don't check %isknown.
63948
63949         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
63950         Do not expect macro.
63951         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
63952         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
63953         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
63954         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
63955         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
63956         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
63957         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
63958         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
63959         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
63960         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
63961         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
63962         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
63963         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
63964         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
63965         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
63966         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
63967         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
63968         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
63969         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
63970         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
63971         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
63972         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
63973         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
63974         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
63975         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
63976         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
63977         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
63978         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
63979         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
63980         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
63981         [XPG3] (acosh): Likewise.
63982         [XPG3] (asinh): Likewise.
63983         [XPG3] (atanh): Likewise.
63984         [XPG3] (cbrt): Likewise.
63985         [XPG3] (expm1): Likewise.
63986         [XPG3] (ilogb): Likewise.
63987         [XPG3] (log1p): Likewise.
63988         [XPG3] (logb): Likewise.
63989         [XPG3] (nextafter): Likewise.
63990         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
63991         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
63992         [XPG3] (remainder): Likewise.
63993         [XPG3] (rint): Likewise.
63994         [XPG3 || XPG4 || UNIX98] (round): Likewise.
63995         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
63996         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
63997         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
63998         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
63999         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64000         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64001         [UNIX98 || XOPEN2K] (scalb): Expect.
64002         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64003         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64004         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64005         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64006         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64007         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64008         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64009         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64010         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64011         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64012         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64013         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64014         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64015         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64016         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64017         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64018         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64019         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64020         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64021         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64022         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64023         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64024         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64025         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64026         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64027         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64028         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64029         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64030         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64031         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64032         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64033         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64034         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64035         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64036         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64037         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64038         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64039         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64040         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64041         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64042         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64043         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64044         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64045         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64046         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64047         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64048         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64049         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64050         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64051         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64052         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64053         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64054         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64055         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64056         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64057         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64058         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64059         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64060         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64061         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64062         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64063         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64064         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64065         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64066         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64067         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64068         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64069         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64070         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64071         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64072         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64073         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64074         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64075         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64076         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64077         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64078         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64079         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64080         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64081         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64082         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64083         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64084         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64085         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64086         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64087         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64088         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64089         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64090         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64091         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64092         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64093         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64094         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64095         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64096         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64097         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64098         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64099         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64100         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64101         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64102         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64103         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64104         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64105         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64106         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64107         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64108         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64109         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64110         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64111         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64112         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64113         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64114         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64115         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64116         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64117         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64118         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64119         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64120         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64121         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64122         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64123         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64124         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64125         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64126         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64127         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64128         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64129         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64130         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64131         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64132         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64133         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64134         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64135         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64136         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64137         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64138         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64139
64140         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64141         _XOPEN_SOURCE_EXTENDED for XPG4.
64142
64143         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64144
64145         * Makeconfig (localtime): Remove variable.
64146         (inst_localtime-file): Likewise.
64147
64148 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64149
64150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64151         Update.
64152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64153         Update.
64154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64155         Update.
64156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64157         Update.
64158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64159         Update.
64160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64161         Update.
64162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64163         Update.
64164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64165         Update.
64166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64167         Update.
64168
64169 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64170
64171         [BZ #2550]
64172         [BZ #2570]
64173         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64174         comparisons to determine direction to adjust input.
64175         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64176         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64177         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64178         Likewise.
64179         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64180         Likewise.
64181         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64182         Likewise.
64183         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64184         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64185         Likewise.
64186         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64187         Likewise.
64188         * math/libm-test.inc (nexttoward_test): Add more tests.
64189
64190 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64191
64192         [BZ #14040]
64193         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64194         in version GLIBC_2.1, not GLIBC_2.0.
64195         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64196         Likewise.
64197
64198 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64199
64200         [BZ #13942]
64201         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64202         (1 - x) * (1 + x).
64203         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64204         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64205         * math/libm-test.inc (acos_test): Add more tests.
64206         (asin_test): Likewise.
64207         * sysdeps/i386/fpu/libm-test-ulps: Update.
64208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64209
64210         [BZ #14034]
64211         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64212         of square root.
64213         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64214         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64215         * math/libm-test.inc (acos_test_tonearest): New function.
64216         (acos_test_towardzero): Likewise.
64217         (acos_test_downward): Likewise.
64218         (acos_test_upward): Likewise.
64219         (asin_test_tonearest): Likewise.
64220         (asin_test_towardzero): Likewise.
64221         (asin_test_downward): Likewise.
64222         (asin_test_upward): Likewise.
64223         (main): Call the new functions.
64224         * sysdeps/i386/fpu/libm-test-ulps: Update.
64225         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64226
64227         [BZ #13884]
64228         [BZ #13924]
64229         * math/e_exp10.c: Include <float.h>.
64230         (__ieee754_exp10): Handle underflow here rather than multiplying
64231         large negative argument by M_LN10.
64232         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64233         of __ieee754_expf.
64234         * math/e_exp10l.c: Include <float.h>.
64235         (__ieee754_exp10l): Handle underflow here rather than multiplying
64236         large negative argument by M_LN10l.
64237         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64238         spurious overflow exception on underflow.
64239
64240 2012-04-29  Marek Polacek  <polacek@redhat.com>
64241
64242         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64243         (__fortify_function): New macro.
64244         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64245         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64246         __extern_always_inline.
64247         * libio/bits/stdio2.h: Likewise.
64248         * libio/bits/stdio.h: Likewise.
64249         * string/string.h: Likewise.
64250         * string/bits/string3.h: Likewise.
64251         * include/stdio.h: Likewise.
64252         * stdlib/bits/stdlib.h: Likewise.
64253         * stdlib/stdlib.h: Likewise.
64254         * rt/bits/mqueue2.h: Likewise.
64255         * rt/mqueue.h: Likewise.
64256         * posix/bits/unistd.h: Likewise.
64257         * posix/unistd.h: Likewise.
64258         * io/bits/poll2.h: Likewise.
64259         * io/bits/fcntl2.h: Likewise.
64260         * io/fcntl.h: Likewise.
64261         * io/sys/poll.h: Likewise.
64262         * misc/bits/syslog.h: Likewise.
64263         * misc/bits/syslog-ldbl.h: Likewise.
64264         * misc/sys/syslog.h: Likewise.
64265         * socket/bits/socket2.h: Likewise.
64266         * socket/sys/socket.h: Likewise.
64267         * debug/tst-chk1.c: Likewise.
64268         * wcsmbs/bits/wchar2.h: Likewise.
64269         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64270         * wcsmbs/wchar.h: Likewise.
64271
64272 2012-04-29  Andreas Jaeger  <aj@suse.de>
64273
64274         * Makerules (tests): Remove enable-check-abi protection.
64275         (check-abi-warn): Remove.
64276         (check-abi-%): Remove check-abi-warn usage.
64277
64278         * configure.in: Remove check-abi configure option.
64279         * configure: Regenerated.
64280         * config.make.in (enable-check-abi): Remove.
64281
64282 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64283
64284         [BZ #14033]
64285         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64286         double functions to double *_finite functions.
64287
64288         [BZ #13941]
64289         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64290         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64291         LDBL_MIN_EXP.
64292         * stdio-common/Makefile (tests): Add tst-sprintf3.
64293         * stdio-common/tst-sprintf3.c: New file.
64294
64295         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64296         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64297
64298 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64299
64300         * conform/conformtest.pl: Remove duplicate typed-constant
64301         handling.
64302
64303 2012-04-28  David S. Miller  <davem@davemloft.net>
64304
64305         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64306         (check-abi-%): Remove AWK script prerequisite and explicit
64307         abilist directory.
64308         (check-abi): Rewrite to just diff the symlist with the abilist.
64309         (config-tls, config-abi-config): Delete, no longer used.
64310         (update-abi-%): Remove AWK script and explicit abilist directory.
64311         (update-abi): Rewrite to simply compare and conditionally copy the
64312         symlist and the sysdep abilist file.  Remove update-abi-config
64313         checks.
64314         * abilist/ld.abilist: Remove.
64315         * abilist/libBrokenLocale.abilist: Remove.
64316         * abilist/libanl.abilist: Remove.
64317         * abilist/libcrypt.abilist: Remove.
64318         * abilist/libdl.abilist: Remove.
64319         * abilist/librt.abilist: Remove.
64320         * abilist/libthread_db.abilist: Remove.
64321         * abilist/libutil.abilist: Remove.
64322         * scripts/extract-abilist.awk: Remove.
64323         * scripts/merge-abilist.awk: Remove.
64324         * sysdeps/generic/libcidn.abilist: New file.
64325         * sysdeps/generic/libnss_compat.abilist: New file.
64326         * sysdeps/generic/libnss_db.abilist: New file.
64327         * sysdeps/generic/libnss_dns.abilist: New file.
64328         * sysdeps/generic/libnss_files.abilist: New file.
64329         * sysdeps/generic/libnss_hesiod.abilist: New file.
64330         * sysdeps/generic/libnss_nis.abilist: New file.
64331         * sysdeps/generic/libnss_nisplus.abilist: New file.
64332         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64333         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64334         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64335         file.
64336         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64337         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64338         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64339         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64340         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64341         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64342         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64343         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64344         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64345         file.
64346         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64347         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64348         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64349         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64350         file.
64351         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64352         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64353         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64354         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64355         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64356         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64357         file.
64358         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64359         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64360         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64361         file.
64362         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64363         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64364         New file.
64365         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64366         New file.
64367         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64368         New file.
64369         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64370         New file.
64371         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64372         New file.
64373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64374         New file.
64375         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64376         New file.
64377         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64378         New file.
64379         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64380         New file.
64381         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64382         New file.
64383         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64384         New file.
64385         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64386         New file.
64387         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64388         New file.
64389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64390         file.
64391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64392         New file.
64393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64394         New file.
64395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64396         file.
64397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64398         New file.
64399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64400         New file.
64401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64402         file.
64403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64404         New file.
64405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64406         New file.
64407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64408         New file.
64409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64410         New file.
64411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64412         New file.
64413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64414         New file.
64415         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64417         file.
64418         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64419         New file.
64420         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64421         file.
64422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64423         file.
64424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64425         file.
64426         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64427         file.
64428         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64429         file.
64430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64431         New file.
64432         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64433         file.
64434         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64435         file.
64436         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64437         New file.
64438         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64439         file.
64440         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64441         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64442         file.
64443         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64444         New file.
64445         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64446         file.
64447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64448         file.
64449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64450         file.
64451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64452         file.
64453         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64454         file.
64455         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64456         New file.
64457         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64458         file.
64459         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64460         file.
64461         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64462         New file.
64463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64464         file.
64465         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64466         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64467         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64468         file.
64469         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64470         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64471         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64472         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64473         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64474         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64475         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64476         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64477         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64478         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64479         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64481         file.
64482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64483         New file.
64484         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64485         file.
64486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64487         file.
64488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64489         file.
64490         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64491         file.
64492         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64493         file.
64494         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64495         New file.
64496         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64497         New file.
64498         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64499         file.
64500         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64501         New file.
64502         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64503         file.
64504         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64506         file.
64507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64508         New file.
64509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64510         file.
64511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64512         file.
64513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64514         file.
64515         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64516         file.
64517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64518         file.
64519         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64520         New file.
64521         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64522         New file.
64523         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64524         file.
64525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64526         New file.
64527         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64528         file.
64529
64530 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64531
64532         * conform/conformtest.pl: Fix typo in handling typed-constant from
64533         allow-header.
64534
64535 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64536
64537         * README: Cut down references to pre-2.6 Linux kernels and
64538         Linuxthreads.  Update lists of configurations in libc and ports
64539         and sort alphabetically.  Say "or newer" with Linux kernel version
64540         requirements.
64541
64542         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64543
64544 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64545
64546         [BZ #887]
64547         * math/libm-test.inc (logb_test_downward): New test to expose
64548         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64549         rounding mode.
64550
64551 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64552
64553         [BZ #14027]
64554         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64555         to be done.
64556         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64557         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64558
64559 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64560
64561         * sysdeps/unix/i386/brk.S: Remove file.
64562         * sysdeps/unix/i386/dl-brk.S: Likewise.
64563         * sysdeps/unix/i386/pipe.S: Likewise.
64564         * sysdeps/unix/i386/sigreturn.S: Likewise.
64565         * sysdeps/unix/i386/syscall.S: Likewise.
64566         * sysdeps/unix/i386/vfork.S: Likewise.
64567         * sysdeps/unix/i386/wait.S: Likewise.
64568
64569         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64570         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64571
64572         * configure.in (arm*-none*): Do not allow without
64573         --enable-hacker-mode.
64574         (netbsd*): Remove case setting base_os.
64575         (386bsd*): Likewise.
64576         (freebsd*): Likewise.
64577         (bsdi*): Likewise.
64578         (osf*): Likewise.
64579         (sunos*): Likewise.
64580         (ultrix*): Likewise.
64581         (newsos*): Likewise.
64582         (dynix*): Likewise.
64583         (*bsd*): Likewise.
64584         (sysv*): Likewise.
64585         (isc*): Likewise.
64586         (esix*): Likewise.
64587         (sco*): Likewise.
64588         (minix*): Likewise.
64589         (irix4*): Likewise.
64590         (irix6*): Likewise.
64591         (solaris[2-9]*): Likewise.
64592         (none): Likewise.
64593         * configure: Regenerated.
64594
64595 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64596
64597         [BZ #11521]
64598         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64599         overflow or cancellation in calculating denominator.
64600         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64601         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64602         down expression to avoid unexpected rounding in newer GCCs.
64603         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64604
64605 2012-04-26  David S. Miller  <davem@davemloft.net>
64606
64607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64608         long-double compat symbols.
64609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64616         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64617         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64618         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64621         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64622
64623 2012-04-25  David S. Miller  <davem@davemloft.net>
64624
64625         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64626         HWCAP_* values only after the memory barriers have been defined.
64627         (atomic_full_barrier): Define.
64628         (atomic_read_barrier): Define.
64629         (atomic_write_barrier): Define.
64630
64631 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64632
64633         * shlib-versions: Add libgcc_s version information.
64634         * sysdeps/generic/libgcc_s.h: Remove.
64635         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64636         libgcc_s.h.
64637         * sysdeps/gnu/unwind-resume.c: Likewise.
64638         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64639
64640 2012-04-25  David S. Miller  <davem@davemloft.net>
64641
64642         * sysdeps/unix/sparc/brk.S: Delete.
64643         * sysdeps/unix/sparc/dl-brk.S: Delete.
64644         * sysdeps/unix/sparc/pipe.S: Delete.
64645         * sysdeps/unix/sparc/sysdep.S: Delete.
64646         * sysdeps/unix/sparc/sysdep.h: Delete.
64647         * sysdeps/unix/sparc/vfork.S: Delete.
64648         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64649         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64650         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64651         (ret_ERRVAL, r0, r1, MOVE): Define.
64652         (JUMPTARGET): Remove.
64653         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64654         sysdeps/unix/sparc/sysdep.h
64655         (ENTRY, END): Remove.
64656         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64657
64658 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64659
64660         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64661         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64662         -DIS_IN_build.
64663
64664         * timezone/README: Update upstream location and email address for
64665         tzcode and tzdata.
64666         * timezone/zdump.c: Update from tzcode 2012b.
64667         * timezone/zic.c: Likewise.
64668
64669         * configure.in (libc_cv_as_needed): Remove test.
64670         * configure: Regenerated.
64671         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64672         conditional definition.
64673         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64674         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64675         * config.make.in (have-as-needed): Remove variable.
64676
64677 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64678             Paul Pluzhnikov  <ppluzhnikov@google.com>
64679
64680         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64681         strings correctly.
64682
64683 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64684
64685         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64686         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64687         * sysdeps/sh/strlen.S: Likewise.
64688
64689 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64690
64691         * sysdeps/unix/fork.S: Remove file.
64692         * sysdeps/unix/i386/fork.S: Likewise.
64693         * sysdeps/unix/sparc/fork.S: Likewise.
64694
64695         * sysdeps/unix/system.c: Remove file.
64696         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64697
64698         * sysdeps/unix/getegid.S: Remove file.
64699         * sysdeps/unix/geteuid.S: Likewise.
64700
64701 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64702
64703         * scripts/check-localplt.awk: New file.
64704         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64705         of diff.
64706         * scripts/data/localplt-generic.data: Add a comment.
64707
64708         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64709         NODE when __dir_mkfile failed.
64710         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64711         Reported by Ludovic Courtès <ludo@gnu.org>.
64712
64713 2012-04-24  Andreas Jaeger  <aj@suse.de>
64714
64715         * Makerules (common-clean): Also remove gen-as-const-headers
64716         files.
64717
64718 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64719
64720         * Makerules (native-compile): Do not change working directory for
64721         build.  Use $(OUTPUT_OPTION) in command.
64722         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64723
64724 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64725
64726         [BZ #13886]
64727         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64728         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64729         * math/libm-test.inc (floor_test): Add more tests.
64730         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64731
64732 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64733
64734         * sysdeps/unix/getdents.c: Remove file.
64735         * sysdeps/unix/sysv/getdents.c: Likewise.
64736         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64737
64738         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64739         sysdeps/unix/mman/syscalls.list.
64740         (mmap): Likewise.
64741         (mprotect): Likewise.
64742         (msync): Likewise.
64743         (munmap): Likewise.
64744         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64745         * sysdeps/unix/mman/syscalls.list: Remove.
64746         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64747
64748         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64749         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64750         * configure: Regenerated.
64751         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64752         $(libgcc_s_suffix).
64753         * config.make.in (libgcc_s_suffix): Remove variable.
64754
64755 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64756
64757         * sysdeps/unix/sysv/gethostname.c: Move to ...
64758         * sysdeps/posix/gethostname.c: ... here.
64759
64760         * sysdeps/unix/execve.S: Remove file.
64761
64762         * sysdeps/unix/_exit.S: Remove file.
64763
64764 2012-04-23  Andreas Jaeger  <aj@suse.de>
64765
64766         [BZ #13739]
64767         * manual/Makefile: Remove make dist support, there's no
64768         need for a stand-alone documentation tar ball.
64769         (TEXI2DVI): Define always, it's not in Makeconfig.
64770         (dist): Removed.
64771         (tar-it): Removed.
64772         (edition): Removed.
64773         (glibc-doc-$(edition).tar): Removed
64774         (%.Z): Removed.
64775         (%.gz): Removed.
64776         (%.uu): Removed.
64777         (ETAGS): Remove, it's in Makeconfig.
64778         (move-if-change): Remove, it's in Makeconfig.
64779
64780 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         [BZ #13970]
64783         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64784         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64785         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64786         (strtod_l, strtof_l, strtold_l): Remove __wur.
64787         It is not necessarily an error to ignore strtol's return value.
64788         One can reliably look at the stored endptr to decide whether
64789         the number had valid syntax.
64790
64791 2012-04-21  Andreas Jaeger  <aj@suse.de>
64792
64793         [BZ #13739]
64794         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64795
64796 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64797
64798         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64799         * sysdeps/unix/sysv/Versions: Remove file.
64800
64801 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64802
64803         [BZ #13927]
64804         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64805
64806 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64807
64808         [BZ #7064]
64809         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64810         version from __vm86.
64811
64812 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64813
64814         * sysdeps/unix/common/lxstat.c: Remove file.
64815         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64816
64817         * sysdeps/unix/sysv/Makefile: Remove file.
64818
64819         * sysdeps/unix/sysv/direct.h: Remove file.
64820
64821         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64822         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64823         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64824         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64825         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64826         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64827         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64828
64829         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64830
64831         * sysdeps/unix/xmknod.c: Remove file.
64832         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64833
64834         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64835
64836         * sysdeps/unix/sysv/i386/time.S: Remove file.
64837
64838         * sysdeps/unix/fxstat.c: Remove file.
64839         * sysdeps/unix/xstat.c: Likewise.
64840         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
64841
64842         * sysdeps/unix/sysv/sigaction.c: Remove file.
64843
64844         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
64845         (sysdep_headers): Remove variable.
64846         [termio.h not in sysdep_headers] (generated): Likewise.
64847         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
64848         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
64849         * sysdeps/unix/sysv/tcdrain.c: Likewise.
64850         * sysdeps/unix/sysv/tcflow.c: Likewise.
64851         * sysdeps/unix/sysv/tcflush.c: Likewise.
64852         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
64853         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
64854         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
64855         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
64856         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
64857
64858         * sysdeps/unix/siglist.c: Remove file.
64859
64860         * sysdeps/unix/getppid.S: Remove file.
64861
64862         * sysdeps/unix/mkdir.c: Remove file.
64863         * sysdeps/unix/rmdir.c: Likewise.
64864
64865 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
64866
64867         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
64868         ERR_MAX value.
64869         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
64870         errlist-compat value.
64871
64872 2012-04-18  David S. Miller  <davem@davemloft.net>
64873
64874         * sysdeps/generic/memcopy.h (reg_char): Delete.
64875         * debug/strcat_chk.c: Use char, not reg_char.
64876         * debug/strcpy_chk.c: Likewise.
64877         * debug/strncat_chk.c: Likewise.
64878         * debug/strncpy_chk.c: Likewise.
64879         * string/memchr.c: Likewise.
64880         * string/memrchr.c: Likewise.
64881         * string/rawmemchr.c: Likewise.
64882         * string/strcat.c: Likewise.
64883         * string/strchr.c: Likewise.
64884         * string/strchrnul.c: Likewise.
64885         * string/strcmp.c: Likewise.
64886         * string/strcpy.c: Likewise.
64887         * string/strncat.c: Likewise.
64888         * string/strncmp.c: Likewise.
64889         * string/strncpy.c: Likewise.
64890
64891 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64892
64893         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
64894         __builtin_memcopy is called when src and dest ranges are known to not
64895         overlap.
64896
64897 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64898
64899         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
64900         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
64901         fwd_align_merge macro call.
64902         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
64903         bwd_align_merge macro call.
64904         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64905
64906 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64907
64908         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
64909         bwd_align_merge macros.
64910         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
64911         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
64912         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64913
64914 2012-04-18  David S. Miller  <davem@davemloft.net>
64915
64916         * sysdeps/sparc/sparc64/memcopy.h: Delete.
64917
64918 2012-04-18  Andreas Jaeger  <aj@suse.de>
64919
64920         [BZ# 6794]
64921         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
64922         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
64923         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64924
64925         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
64926         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
64927         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64928
64929         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
64930         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
64931         Adjust for changed ldbl-128 files.
64932
64933         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
64934         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
64935         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64936
64937 2012-04-17  David S. Miller  <davem@davemloft.net>
64938
64939         * sysdeps/sparc/sparc32/memcopy.h: Delete.
64940
64941 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
64942
64943         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
64944         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
64945         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
64946         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
64947         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
64948         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
64949
64950 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64951
64952         [BZ #6794]
64953         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
64954         * math/libm-test.inc: Add ilogb errno and exception tests.
64955         * math/w_ilogb.c: New file: ilogb wrapper.
64956         * math/w_ilogbf.c: New file: ilogbf wrapper.
64957         * math/w_ilogbl.c: New file: ilogbl wrapper.
64958         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
64959         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
64960         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
64961         exception being thrown with 0.0 as argument.
64962         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
64963         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
64964         exception being thrown with 0.0 as argument.
64965         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
64966         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64967         exception being thrown with 0.0 as argument.
64968         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
64969         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
64970         exception being thrown with 0.0 as argument.
64971         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
64972         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
64973         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
64974         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
64975         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
64976         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
64977         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
64978         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
64979         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
64980
64981 2012-04-17  Petr Baudis  <pasky@ucw.cz>
64982
64983         * include/sys/uio.h: Change __vector to __iovec to avoid clash
64984         with altivec.
64985
64986 2012-04-16  Marek Polacek  <polacek@redhat.com>
64987
64988         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
64989
64990 2012-04-16  Marek Polacek  <polacek@redhat.com>
64991
64992         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
64993         operands of fdivp instruction.
64994
64995 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
64996
64997         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
64998         * elf/tst-auditmod3b.c: Likewise.
64999         * elf/tst-auditmod4b.c: Likewise.
65000         * elf/tst-auditmod5b.c: Likewise.
65001         * elf/tst-auditmod6b.c: Likewise.
65002         * elf/tst-auditmod6c.c: Likewise.
65003         * elf/tst-auditmod7b.c: Likewise.
65004         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65005         * sysdeps/x86_64/preconfigure.in: Likewise.
65006         * sysdeps/x86_64/preconfigure: Regenerated.
65007
65008 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65009
65010         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65011         __ILP32__.
65012
65013 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65014
65015         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65016         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65017
65018 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65019
65020         [BZ #13973]
65021         * locale/iso-639.def: Fix gl language name. Spotted by
65022         Yaron Shahrabani.
65023
65024 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65025
65026         [BZ #2074]
65027         * libio/libio.h (__io_write_fn): Update comment.
65028
65029 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65030
65031         [BZ #2074]
65032         * stdio.texi (Hook Functions): The user provided writer function
65033         is not allowed to return -1.
65034
65035 2012-04-11  David S. Miller  <davem@davemloft.net>
65036
65037         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65038
65039 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65040
65041         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65042         Add a leading slash to rtkaio.
65043
65044 2012-04-11  Jim Meyering  <meyering@redhat.com>
65045
65046         [BZ #11959]
65047         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65048         It is not necessarily an error to ignore fwrite's return
65049         value.  One can reliably use ferror to test for errors after
65050         the fact.
65051
65052 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65053
65054         * bits/types.h (__snseconds_t): New type.
65055         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65056
65057         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65058         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65059         (__SNSECONDS_T_TYPE): Likewise.
65060         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65061         (__SNSECONDS_T_TYPE): Likewise.
65062         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65063         (__SNSECONDS_T_TYPE): Likewise.
65064
65065 2012-04-10  Andreas Jaeger  <aj@suse.de>
65066
65067         [BZ #2636]
65068         * manual/time.texi (Processor Time): Return type of times is
65069         elapsed real time since an arbitrary point in the past.
65070         (CPU Time): Move CLK_TCK from here...
65071         (Processor Time): ...to here.  Correct description.
65072         * manual/conf.texi (Constants for Sysconf): Correct description of
65073         _SC_CLK_TCK.
65074
65075 2012-04-10  David S. Miller  <davem@davemloft.net>
65076
65077         [BZ #13967]
65078         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65079         where the is a gap between DT_REL(A) and DT_JMPREL.
65080
65081 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65082
65083         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65084         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65085         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65086
65087 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65088
65089         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65090         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65091         (dl_main): Handle --inhibit-cache.
65092         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65093         _dl_inhibit_cache.
65094         * elf/dl-load.c (_dl_map_object): Use it.
65095         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65096
65097 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65098
65099         [BZ #13872]
65100         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65101         (__ieee754_powl): Saturate large exponents rather than testing for
65102         overflow of y*log2(x).
65103         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65104         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65105         exceptions.
65106
65107         [BZ #11521]
65108         * math/s_ctan.c: Include <float.h>.
65109         (__ctan): Avoid internal overflow or cancellation in calculating
65110         denominator.
65111         * math/s_ctanf.c: Likewise.
65112         * math/s_ctanl.c: Likewise.
65113         * math/s_ctanh.c: Likewise.
65114         * math/s_ctanhf.c: Likewise.
65115         * math/s_ctanhl.c: Likewise.
65116         * math/libm-test.inc (ctan_test): Add more tests.
65117         (ctanh_test): Likewise.
65118         * sysdeps/i386/fpu/libm-test-ulps: Update.
65119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65120
65121 2012-04-09  Andreas Jaeger  <aj@suse.de>
65122
65123         [BZ #6894]
65124         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65125         is an optional BSD extension.
65126
65127         [BZ #10254]
65128         * manual/stdio.texi (Opening Streams): Document additional fopen
65129         parameters.
65130
65131 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65132
65133         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65134         %eax without telling the compiler.
65135
65136 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65137
65138         [BZ # 13963]
65139         * manual/install.texi: Use sourceware.org.
65140
65141 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65142
65143         [BZ #13873]
65144         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65145         (__ieee754_pow): Generate overflow and underflow using huge*huge
65146         and tiny*tiny rather than just returning constant infinity or zero
65147         for large exponents.
65148         * math/libm-test.inc (pow_test): Require overflow exceptions for
65149         applicable cases of large exponents.
65150
65151         [BZ #706]
65152         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65153         (__ieee754_pow): Use iterative multiplication algorithm only for
65154         integer exponents with absolute value below 1024.  Check for odd
65155         integer exponents when using algorithm for real exponents.
65156         * math/libm-test.inc (pow_test): Add more tests.
65157         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65158
65159 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65160
65161         [BZ #13705]
65162         * math/libm-test.inc (exp_test): Do not allow overflow exception
65163         on underflow test.
65164
65165 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65166
65167         [BZ #13705]
65168         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65169         instead of __kernel_standard_f.
65170
65171 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65172
65173         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65174         * sysdeps/x86_64/memset_chk.S: Likewise.
65175
65176 2012-04-08  Andreas Jaeger  <aj@suse.de>
65177
65178         [BZ #10153]
65179         * manual/startup.texi (Environment Access): Describe return value
65180         for putenv and setenv.
65181
65182         [BZ #6895]
65183         * manual/filesys.texi (Directory Entries): Add description for
65184         DT_LNK.
65185
65186         [BZ #6890]
65187         * manual/filesys.texi (Directory Entries): Clarify that it's file
65188         system not operating system in the description of DT_UNKNOWN.
65189
65190         [BZ #6578]
65191         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65192
65193 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65194
65195         [BZ #6649]
65196         * manual/llio.texi (Opening and Closing Files): Add cross
65197         reference to explain mode argument.
65198
65199 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65200
65201         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65202         * sysdeps/x86_64/memset_chk.S: Likewise.
65203
65204 2012-04-07  David S. Miller  <davem@davemloft.net>
65205
65206         * elf/elf.h (R_SPARC_WDISP10): Define.
65207         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65208         R_SPARC_SIZE32.
65209         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65210         R_SPARC_SIZE64 and R_SPARC_H34.
65211
65212 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65213
65214         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65215         conditions and remove no longer applicable assertion.
65216
65217 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65218
65219         * bits/byteswap.h: Include <features.h>.
65220         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65221         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65222
65223 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65224
65225         * bits/byteswap.h (__bswap_16): Removed.
65226         Include <bits/byteswap-16.h> to get __bswap_16.
65227         * sysdeps/i386/bits/byteswap.h: Likewise.
65228         * sysdeps/s390/bits/byteswap.h: Likewise.
65229         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65230         * bits/byteswap-16.h: New file.
65231         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65232         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65233         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65234         * string/Makefile (headers): Add bits/byteswap-16.h.
65235
65236 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65237
65238         [BZ #13895]
65239         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65240         extra indirection.
65241         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65242         * nss/tst-nss-static.c: New.
65243
65244 2012-04-06  Robert Millan  <rmh@gnu.org>
65245
65246         [BZ #6486]
65247         * manual/llio.texi (File Position Primitive): lseek
65248         refers to WHENCE when it really means OFFSET.
65249
65250 2012-04-06  Andreas Jaeger  <aj@suse.de>
65251
65252         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65253         strncmp declarations.
65254
65255         * abilist/libc.abilist: Add __poll and __ppoll.
65256
65257 2012-04-05  David S. Miller  <davem@davemloft.net>
65258
65259         * scripts/check-local-headers.sh: Accept a host triplet in the
65260         path matched by the exclude regexp.
65261
65262         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65263         definition.
65264         * sysdeps/powerpc/powerpc32/dl-machine.h
65265         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65266         * sysdeps/s390/s390-32/dl-machine.h
65267         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65268         * sysdeps/sparc/sparc32/dl-machine.h
65269         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65270         * sysdeps/sparc/sparc64/dl-machine.h
65271         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65272
65273         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65274         lazy binding.
65275         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65276         undefined symbol errors.
65277
65278         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65279         DT_NEEDED entries.
65280
65281 2012-04-05  Michael Matz  <matz@suse.de>
65282
65283         [BZ #13592]
65284         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65285
65286 2012-04-05  Andreas Jaeger  <aj@suse.de>
65287
65288         [BZ #13908]
65289         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65290         comment.
65291
65292 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65293
65294         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65295         which ROUND is no valid rounding mode.
65296
65297 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65298
65299         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65300         read again.
65301         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65302
65303 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65304
65305         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65306         an exception using FPU order intentionally.
65307
65308 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65309
65310         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65311         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65312         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65313         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65314
65315 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65316
65317         [BZ #12340]
65318         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65319         EINVAL when BUFLEN is too smal.
65320
65321 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65322
65323         [BZ #13553]
65324         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65325         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65326
65327 2012-04-03  Andreas Jaeger  <aj@suse.de>
65328
65329         [BZ #13938]
65330         * manual/setjmp.texi (System V contexts): Fix sentence.
65331
65332         [BZ #13926]
65333         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65334         New macro for this case.
65335         [!__GNUC__] (__bswap_64): New inline function for this case.
65336         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65337         * bits/byteswap.h: Likewise.
65338         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65339         ull, guard with __GLIBC_HAVE_LONG_LONG.
65340
65341         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65342         __GLIBC_HAVE_LONG_LONG.
65343
65344         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65345         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65346
65347 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65348
65349         [BZ #13691]
65350         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65351         inptr and inend, rather than using last_ch.
65352
65353 2012-04-02  David S. Miller  <davem@davemloft.net>
65354
65355         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65356         * stdio-common/printf-parse.h (read_int): Change return type to
65357         'int', return -1 on INT_MAX overflow.
65358         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65359         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65360         overflows INT_MAX.  Check for overflow of in-format-string precision
65361         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65362         SIZE_MAX not INT_MAX for integer overflow test.
65363         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65364         skip the construct in the format string but do not record anything.
65365         * stdio-common/bug22.c: Adjust to test both width/prevision
65366         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65367         explicitly for proper errno values.
65368
65369 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65370
65371         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65372         CHAR_MAX.
65373         * string/test-strcmp.c [! WIDE]: Likewise.
65374         * time/tst-mktime2.c: Likewise for INT_MAX.
65375         * string/test-string.h: #include <sys/param.h> for MIN.
65376
65377         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65378         * sysdeps/i386/init-first.c (init): Likewise.
65379         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65380         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65381         * sysdeps/sh/init-first.c (init): Likewise.
65382
65383 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65384
65385         * po/ru.po: Update from translation team.
65386         * po/vi.po: Likewise.
65387
65388 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65389
65390         * resolv/nss_dns/dns-host.c: Merge copyright years.
65391
65392 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65393
65394         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65395         Optimize memcpy with prefetch if
65396         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65397         src, dst pointers have unequal 16 byte alignments.
65398
65399 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65400
65401         [BZ #13928]
65402         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65403         from a CNAME entry and return the minimum ttl for the query.
65404         (gaih_getanswer_slice): Likewise.
65405
65406 2012-03-30  Jeff Law  <law@redhat.com>
65407
65408         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65409         due to long keys.
65410         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65411         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65412
65413         * resolv/nss_dns/dns-host.c: Update copyright year.
65414
65415 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65416
65417         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65418         requests to save a system call.  Fix check that all bytes are sent.
65419
65420         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65421         comments for sendmmsg.
65422
65423 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65424
65425         [BZ #13691]
65426         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65427         with only 1 character between 0x0041 and 0x01b0.
65428         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65429         * wcsmbs/tst-mbsnrtowcs.c: New file.
65430
65431 2012-03-29  David S. Miller  <davem@davemloft.net>
65432
65433         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65434         small copies by hand.
65435
65436 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65437
65438         [BZ #13761]
65439         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65440         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65441         group memberships.
65442
65443 2012-03-28  David S. Miller  <davem@davemloft.net>
65444
65445         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65446         that branches into memcpy.
65447         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65448         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65449         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65450         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65451         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65452         bits.
65453         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65454         implementation too.
65455         * sysdeps/sparc/mempcpy.S: New file.
65456
65457         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65458         the IFUNC routine in the libc case.
65459         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65460
65461         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65462         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65463         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65464         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65465         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65466         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65467         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65468         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65469
65470         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65471         loop to 256 bytes instead of 64 bytes and fix test signedness.
65472
65473         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65474         * sysdeps/sparc/sparc32/Makefile: rather than here...
65475         * sysdeps/sparc/sparc64/Makefile: and here.
65476
65477 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65478
65479         * malloc/mallocbug.c: Avoid warnings about unused variables.
65480
65481 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65482
65483         [BZ #13760]
65484         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65485         in the right place. Discard and retry query if response is
65486         larger than input buffer size.
65487
65488 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65489
65490         [BZ #369]
65491         [BZ #2678]
65492         [BZ #3866]
65493         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65494         x for large integer exponent.
65495         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65496         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65497         sign of result as needed afterwards.
65498         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65499         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65500         result for underflowing pow the same as for overflow.
65501         (__kernel_standard_l): Handle powl overflow and underflow here
65502         rather than calling __kernel_standard.
65503         * math/libm-test.inc (pow_test): Add more tests.
65504
65505         [BZ #3868]
65506         [BZ #13879]
65507         [BZ #13910]
65508         [BZ #13911]
65509         [BZ #13912]
65510         [BZ #13913]
65511         [BZ #13915]
65512         [BZ #13916]
65513         [BZ #13917]
65514         [BZ #13918]
65515         [BZ #13919]
65516         [BZ #13920]
65517         [BZ #13921]
65518         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65519         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65520         (__kernel_standard_l): New function.
65521         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65522         __kernel_standard.
65523         * math/w_acosl.c (__acosl): Likewise.
65524         * math/w_asinl.c (__asinl): Likewise.
65525         * math/w_atan2l.c (__atan2l): Likewise.
65526         * math/w_atanhl.c (__atanhl): Likewise.
65527         * math/w_coshl.c (__coshl): Likewise.
65528         * math/w_exp10l.c (__exp10l): Likewise.
65529         * math/w_exp2l.c (__exp2l): Likewise.
65530         * math/w_fmodl.c (__fmodl): Likewise.
65531         * math/w_hypotl.c (__hypotl): Likewise.
65532         * math/w_j0l.c (__j0l, __y0l): Likewise.
65533         * math/w_j1l.c (__j1l, __y1l): Likewise.
65534         * math/w_jnl.c (__jnl, __ynl): Likewise.
65535         * math/w_lgammal.c (__lgammal): Likewise.
65536         * math/w_log10l.c (__log10l): Likewise.
65537         * math/w_log2l.c (__log2l): Likewise.
65538         * math/w_logl.c (__logl): Likewise.
65539         * math/w_powl.c (__powl): Likewise.
65540         * math/w_remainderl.c (__remainderl): Likewise.
65541         * math/w_scalbl.c (sysv_scalbl): Likewise.
65542         * math/w_sinhl.c (__sinhl): Likewise.
65543         * math/w_sqrtl.c (__sqrtl): Likewise.
65544         * math/w_tgammal.c (__tgammal): Likewise.
65545         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65546         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65547         * math/libm-test.inc (acos_test): Add more tests.
65548         (acosh_test): Likewise.
65549         (asin_test): Likewise.
65550         (atanh_test): Likewise.
65551         (exp_test): Likewise.
65552         (exp10_test): Likewise.
65553         (exp2_test): Likewise.
65554         (expm1_test): Likewise.
65555         (lgamma_test): Likewise.
65556         (log_test): Likewise.
65557         (log10_test): Likewise.
65558         (log1p_test): Likewise.
65559         (log2_test): Likewise.
65560         (pow_test): Do not allow some spurious overflow exceptions.
65561         (sqrt_test): Add more tests.
65562         (tgamma_test): Likewise.
65563         (y0_test): Likewise.
65564         (y1_test): Likewise.
65565         (yn_test): Likewise.
65566
65567 2012-03-27  Anton Blanchard  <anton@samba.org>
65568
65569         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65570         MAP_HUGETLB.
65571         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65572         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65573         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65574
65575 2012-03-27  David S. Miller  <davem@davemloft.net>
65576
65577         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65578
65579         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65580         have-as-vis3 check.
65581
65582 2012-03-27  Andreas Jaeger  <aj@suse.de>
65583
65584         * sysdeps/x86_64/elf/configure.in: Moved to ...
65585         * sysdeps/x86_64/configure.in: ... here.
65586         * sysdeps/x86_64/elf/start.S: Moved to ...
65587         * sysdeps/x86_64/start.S: ... here.
65588         * sysdeps/x86_64/elf/configure: Delete.
65589
65590         * sysdeps/x86_64/configure.in: Merge contents from
65591         sysdeps/i386/configure.in (without i686 check).
65592
65593         * sysdeps/i386/elf/Versions: Merge into ...
65594         * sysdeps/i386/Versions: ... this.
65595         * sysdeps/i386/elf/Versions: Delete file.
65596         * sysdeps/i386/elf/start.S: Moved to ...
65597         * sysdeps/i386/start.S: ...here.
65598         * sysdeps/i386/elf/configure.in: Merge into...
65599         * sysdeps/i386/configure.in: ...here.
65600         * sysdeps/i386/elf/configure.in: Delete file.
65601         * sysdeps/i386/elf/configure: Delete file.
65602
65603         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65604         * debug/backtracesyms.c: ... here.
65605         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65606         * debug/backtracesymsfd.c: ... here.
65607         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65608         * sysdeps/generic/ifunc-sel.h: ... here.
65609
65610         * sysdeps/unix/i386/start.c: Delete file.
65611         * sysdeps/unix/sparc/start.c: Delete file.
65612         * sysdeps/unix/start.c: Delete file.
65613
65614         * sysdeps/sh/elf/configure.in: Moved to ...
65615         * sysdeps/sh/configure.in: ... here.
65616         * sysdeps/sh/elf/start.S: Moved to ...
65617         * sysdeps/sh/start.S: ... here.
65618         * sysdeps/sh/elf/configure: Delete file.
65619
65620         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65621         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65622         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65623         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65624         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65625         * sysdeps/powerpc/powerpc64/start.S: here.
65626         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65627         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65628         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65629         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65630         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65631
65632         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65633         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65634         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65635         * sysdeps/powerpc/powerpc32/start.S: ... here.
65636         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65637         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65638         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65639
65640         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65641         * sysdeps/powerpc/ifunc-sel.h: ... here.
65642         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65643         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65644
65645         * sysdeps/sparc/elf/configure.in: Moved to ...
65646         * sysdeps/sparc/configure.in: ... here.
65647         * sysdeps/sparc/elf/configure: Delete file.
65648         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65649         * sysdeps/sparc/sparc32/start.S: ... here.
65650         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65651         * sysdeps/sparc/sparc64/start.S: ... here.
65652         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65653         * sysdeps/sparc/sparc32/Makefile: ... this.
65654         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65655         * sysdeps/sparc/sparc64/Makefile: ... this.
65656
65657         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65658         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65659         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65660         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65661         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65662         * sysdeps/s390/s390-32/setjmp.S: ... here.
65663         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65664         * sysdeps/s390/s390-32/configure.in: ... here.
65665         * sysdeps/s390/s390-32/elf/configure: Delete file.
65666         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65667         * sysdeps/s390/s390-32/start.S: ... here.
65668
65669         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65670         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65671         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65672         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65673         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65674         * sysdeps/s390/s390-64/setjmp.S: ... here.
65675         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65676         * sysdeps/s390/s390-64/configure.in: ... here
65677         * sysdeps/s390/s390-64/elf/configure: Delete file.
65678         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65679         * sysdeps/s390/s390-64/start.S: ... here.
65680         * sysdeps/s390/s390-64/elf/configure: Delete.
65681
65682         * configure.in: Remove support for elf directories in sysdeps.
65683
65684         * configure: Regenerated.
65685         * sysdeps/i386/configure: Regenerated.
65686         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65687         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65688         * sysdeps/s390/s390-32/configure: Regenerated.
65689         * sysdeps/s390/s390-64/configure: Regenerated.
65690         * sysdeps/sh/configure: Regenerated.
65691         * sysdeps/sparc/configure: Regenerated.
65692         * sysdeps/x86_64/configure: Regenerated.
65693
65694 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65695
65696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65697
65698         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65699         denormal result into account.
65700
65701 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65702
65703         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65704         Reported by Allan McRae <allan@archlinux.org>.
65705
65706 2012-03-23  Jeff Law  <law@redhat.com>
65707
65708         * nss/getnssent.c (__nss_getent): Fix typo.
65709
65710 2012-03-23  David S. Miller  <davem@davemloft.net>
65711
65712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65713
65714 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65715
65716         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65717         to pad to uint64_t for each field.
65718         (dl_tls_index): Replace unsigned long with uint64_t.
65719
65720 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65721         Paul Pluzhnikov  <ppluzhnikov@google.com>
65722
65723         [BZ #6528]
65724         * grp/Makefile (otherlibs): Don't set it.
65725         * inet/Makefile (otherlibs): Likewise.
65726         * login/Makefile (otherlibs): Likewise.
65727         * nscd/Makefile (otherlibs): Likewise.
65728         * posix/Makefile (otherlibs): Likewise.
65729         * pwd/Makefile (otherlibs): Likewise.
65730         * rt/Makefile (otherlibs): Likewise.
65731         * sunrpc/Makefile (otherlibs): Likewise.
65732         * nss/Makefile (otherlibs): Likewise.
65733         Add libnss_files to routines and static-only-routines.
65734         ($(objpfx)getent): Remove rule.
65735         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65736         static-only-routines.
65737
65738 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65739
65740         [BZ #13892]
65741         * math/s_cexp.c: Include <float.h>.
65742         (__cexp): Handle exp result overflowing not necessarily
65743         overflowing both real and imaginary parts of result.
65744         * math/s_cexpf.c: Likewise.
65745         * math/s_cexpl.c: Likewise.
65746         * math/libm-test.inc (cexp_test): Add more tests.
65747         * sysdeps/i386/fpu/libm-test-ulps: Update.
65748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65749
65750 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65751
65752         * include/link.h (ELFW): New macro.
65753         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65754         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65755
65756 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65757
65758         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65759         with uint64_t.
65760
65761 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65762
65763         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65764         declaration.
65765         (struct La_x32_retval): Likewise.
65766
65767 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65768
65769         * sysdeps/x86_64/preconfigure.in: New file.
65770         * sysdeps/x86_64/preconfigure: New generated file.
65771
65772 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65773
65774         [BZ #13824]
65775         * math/e_exp2l.c: Include <float.h>.
65776         (__ieee754_exp2l): Handle overflow and underflow cases
65777         separately.  Only pass fractional part of argument to
65778         __ieee754_expl.
65779         * math/libm-test.inc (exp2_test): Add more tests.
65780
65781         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65782         negating x to take absolute value.
65783         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65784         Likewise.
65785         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65786         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65787         Likewise.
65788         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65789         computing low part if x was negated.
65790         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65791
65792 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65793
65794         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65795         la_x32_gnu_pltexit.
65796         (pltexit): Cast int_retval to ptrdiff_t.
65797         * elf/tst-auditmod3b.c: Likewise.
65798         * elf/tst-auditmod4b.c: Likewise.
65799         * elf/tst-auditmod5b.c: Likewise.
65800         * elf/tst-auditmod6b.c: Likewise.
65801         * elf/tst-auditmod6c.c: Likewise.
65802         * elf/tst-auditmod7b.c: Likewise.
65803
65804         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65805         and x32_gnu_pltexit.
65806
65807         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65808         __ELF_NATIVE_CLASS.
65809         (La_x32_regs): New macro.
65810         (La_x32_retval): Likewise.
65811         (la_x32_gnu_pltenter): New function prototype.
65812         (la_x32_gnu_pltexit): Likewise.
65813
65814 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65815
65816         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65817         exponent.
65818
65819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65820
65821         * configure.in (libc_cv_cc_nofma): Check for option to disable
65822         generation of FMA instructions.
65823         * configure: Regenerate.
65824         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65825         * sysdeps/ieee754/dbl-64/Makefile: New file.
65826         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65827         Remove brandred-fma4.
65828         (CFLAGS-brandred-fma4.c): Remove.
65829         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65830         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65831         define.
65832         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65833         define.
65834
65835 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65836
65837         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65838         LLONG_MAX != LONG_MAX.
65839         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65840         (_fitoa_word): Likewise.
65841         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
65842         LLONG_MAX != LONG_MAX.
65843         * stdio-common/_itowa.h: Include <_itoa.h>.
65844         (_itowa_word): Use _ITOA_WORD_TYPE on value.
65845         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
65846         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
65847         only if not defined.
65848         (_ITOA_WORD_TYPE): Likewise.
65849         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65850         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
65851
65852 2012-03-21  David S. Miller  <davem@davemloft.net>
65853
65854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65855
65856 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65857
65858         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
65859         of x86_64 when setting libc_cv_slibdir, libdir and
65860         libc_cv_localedir.
65861         * sysdeps/unix/sysv/linux/configure: Regenerated.
65862
65863 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65864
65865         * manual/lang.texi (Old Varargs): Remove section.
65866         (How Variadic): Update menu.
65867         (va_start): Do not mention varargs.h.
65868
65869 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65870             Joseph Myers  <joseph@codesourcery.com>
65871
65872         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
65873         link test.
65874         * configure: Regenerated.
65875
65876 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65877
65878         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
65879         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
65880         conformtest.pl
65881
65882 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65883
65884         * NOTES: Remove.
65885         * Makefile (files-for-dist): Remove NOTES.
65886         (NOTES): Remove rule.
65887         * README: Don't refer to NOTES.
65888         * manual/creature.texi: Don't include macros.texi.
65889         * manual/intro.texi (creature.texi): Remove comment referring to
65890         NOTES.
65891
65892         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
65893         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
65894         * configure: Regenerated.
65895         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
65896         LIBC_TRY_CC_OPTION.
65897         (libc_cv_as_i686): Likewise.
65898         (libc_cv_cc_avx): Likewise.
65899         (libc_cv_cc_sse2avx): Likewise.
65900         (libc_cv_cc_fma4): Likewise.
65901         (libc_cv_cc_novzeroupper): Likewise.
65902         * sysdeps/i386/configure: Regenerated.
65903
65904         [BZ #13883]
65905         * sysdeps/i386/fpu/s_cexp.S: Remove.
65906         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
65907         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
65908         * math/libm-test.inc (cexp_test): Add more tests.
65909         * sysdeps/i386/fpu/libm-test-ulps: Update.
65910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65911
65912 2012-03-21  Allan McRae  <allan@archlinux.org>
65913
65914         * timezone/Makefile: Do not install iso3166.tab and zone.tab
65915
65916 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65917
65918         [BZ #13871]
65919         * math/w_exp2.c: Do not include <float.h>.
65920         (o_threshold, u_threshold): Remove.
65921         (__exp2): Calculate result before checking finiteness and calling
65922         __kernel_standard.
65923         * math/w_exp2f.c: Likewise.
65924         * math/w_exp2l.c: Likewise.
65925         * math/libm-test.inc (exp2_test): Require overflow exception for
65926         1e6 input.
65927
65928         [BZ #3866]
65929         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
65930         range of signed 64-bit integers before using fistpll.  Remove
65931         checks for whether integers fit in mantissa bits.
65932         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
65933         the range of signed 32-bit integers before using fistpl.  Remove
65934         checks for whether integers fit in mantissa bits.
65935         * sysdeps/i386/fpu/e_powl.S (p64): New object.
65936         (__ieee754_powl): Test for y outside the range of signed 64-bit
65937         integers before using fistpll.  Reduce 64-bit values to 63-bit
65938         ones as needed.
65939         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
65940         divide-by-zero is raised for zero to large negative powers.
65941         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
65942         (__ieee754_powl): Test for y outside the range of signed 64-bit
65943         integers before using fistpll.  Reduce 64-bit values to 63-bit
65944         ones as needed.
65945         * math/libm-test.inc (pow_test): Add more tests.
65946
65947 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
65948
65949         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
65950         <stdio-common/_itoa.h>.
65951         * debug/segfault.c: Likewise.
65952         * elf/dl-cache.c: Likewise.
65953         * elf/dl-minimal.c: Likewise.
65954         * elf/dl-misc.c: Likewise.
65955         * elf/dl-sysdep.c: Likewise.
65956         * elf/dl-version.c: Likewise.
65957         * elf/rtld.c: Likewise.
65958         * hurd/hurdsock.c: Likewise.
65959         * hurd/lookup-retry.c: Likewise.
65960         * malloc/malloc.c: Likewise.
65961         * malloc/mtrace.c: Likewise.
65962         * nscd/nscd_getgr_r.c: Likewise.
65963         * nscd/nscd_getpw_r.c: Likewise.
65964         * nscd/nscd_getserv_r.c: Likewise.
65965         * posix/getopt_init.c: Likewise.
65966         * posix/wordexp.c: Likewise.
65967         * stdio-common/_itoa.c: Likewise.
65968         * stdio-common/printf_fphex.c: Likewise.
65969         * stdio-common/vfprintf.c: Likewise.
65970         * string/_strerror.c: Likewise.
65971         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
65972         * sysdeps/i386/i686/hp-timing.h: Likewise.
65973         * sysdeps/mach/_strerror.c: Likewise.
65974         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
65975         * sysdeps/mach/hurd/sethostid.c: Likewise.
65976         * sysdeps/mach/hurd/xmknodat.c: Likewise.
65977         * sysdeps/mach/xpg-strerror.c: Likewise.
65978         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
65979         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
65980         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
65981         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
65982         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
65983         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
65984         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
65985         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
65986         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
65987         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
65988         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
65989         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
65990         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
65991         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
65992         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
65993         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
65994         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
65995         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
65996         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
65997         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
65998         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
65999
66000         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66001
66002         * stdio-common/_itoa.h: Moved to ...
66003         * sysdeps/generic/_itoa.h: Here.
66004
66005         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66006
66007         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66008         instead of "_itoa.h" and "_itowa.h".
66009         * stdio-common/vfprintf.: Likewise.
66010
66011 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66012
66013         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66014         <bits/wordsize.h>.
66015         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66016         (__signbit): Likwise.
66017         (llrintf): Likwise.
66018         (llrint): Likwise.
66019
66020 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66021
66022         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66023         __WORDSIZE != 64.
66024
66025 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66026
66027         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66028         OVERFLOW_EXCEPTION_OK.
66029         * math/libm-test.inc ("Philosophy"): Update comment about
66030         exception testing.
66031         (OVERFLOW_EXCEPTION): Define.
66032         (OVERFLOW_EXCEPTION_OK): Likewise.
66033         (INVALID_EXCEPTION_OK): Renumber.
66034         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66035         (IGNORE_ZERO_INF_SIGN): Likewise.
66036         (test_exceptions): Handle FE_OVERFLOW.
66037         (exp10_test): Expect overflow exceptions.
66038         (exp2_test): Likewise.
66039         (expm1_test): Likewise.
66040         (nextafter_test): Likewise.
66041         (pow_test): Likewise.
66042         (scalbn_test): Likewise.
66043         (scalbln_test): Likewise.
66044
66045 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66046
66047         * sysdeps/x86_64/bits/atomic.h
66048         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66049         64bit integer.
66050         (atomic_exchange_acq): Likewise.
66051         (__arch_exchange_and_add_body): Likewise.
66052         (__arch_add_body): Likewise.
66053         (atomic_add_negative): Likewise.
66054         (atomic_add_zero): Likewise.
66055
66056 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66057
66058         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66059         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66060
66061 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66062
66063         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66064         Check __x86_64__ instead of __WORDSIZE.
66065
66066 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66067
66068         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66069
66070 2012-03-19  David S. Miller  <davem@davemloft.net>
66071
66072         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66073
66074         * sysdeps/sparc/fpu/fenv_private.h: New file.
66075         * sysdeps/sparc/fpu/math_private.h: Use it.
66076         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66077         Remove.
66078         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66079         (libc_feholdexcept_setroundl): Remove.
66080         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66081         Remove.
66082         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66083         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66084
66085 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66086
66087         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66088         int64_t instead of long int.
66089         (INSERT_WORDS64): Likwise.
66090
66091 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66092
66093         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66094         _Unwind_GetCFA return to _Unwind_Ptr first.
66095
66096 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66097
66098         [BZ #13629]
66099         * math/s_clog.c: Include <float.h>.
66100         (__clog): Scale large or subnormal inputs.
66101         * math/s_clogf.c: Likewise.
66102         * math/s_clogl.c: Likewise.
66103         * math/s_clog10.c: Include <float.h>.
66104         (M_LOG10_2): Define.
66105         (__clog10): Scale large or subnormal inputs.
66106         * math/s_clog10f.c: Likewise.
66107         * math/s_clog10l.c: Likewise.
66108         * math/libm-test.inc (clog_test): Add more tests.
66109         (clog10_test): Likewise.
66110         * sysdeps/i386/fpu/libm-test-ulps: Update.
66111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66112
66113         [BZ #11451]
66114         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66115         x and y.
66116         * math/libm-test.inc (atan2_test): Add another test.
66117
66118         * Makerules (common-objdir-compile): Remove.
66119         * sysdeps/unix/Makefile (config-generated): Do not add
66120         $(unix-generated) to variable.
66121         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66122         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66123         Remove rule.
66124         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66125         Likewise.
66126         [generic bits/local_lim.h] (before-compile): Do not append to
66127         variable.
66128         [generic bits/local_lim.h] (common-generated): Likewise.
66129         [generic sys/param.h] (before-compile): Do not append to variable.
66130         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66131         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66132         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66133         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66134         include.
66135         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66136         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66137         [generic sys/param.h] ($(addprefix
66138         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66139         [generic sys/param.h] (common-generated): Do not append to
66140         variable.
66141         [generic sys/param.h] (sysdep_headers): Likewise.
66142         [generic bits/errno.h] (before-compile): Do not append to
66143         variable.
66144         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66145         rule.
66146         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66147         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66148         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66149         [generic bits/errno.h] (common-generated): Do not append to
66150         variable.
66151         [generic bits/ioctls.h] (before-compile): Do not append to
66152         variable.
66153         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66154         rule.
66155         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66156         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66157         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66158         rule.
66159         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66160         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66161         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66162         [generic bits/ioctls.h] (common-generated): Do not append to
66163         variable.
66164         [generic sys/syscall.h] (syscall.h): Remove variable.
66165         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66166         rule.
66167         [generic sys/syscall.h] (before-compile): Do not append to
66168         variable.
66169         [generic sys/syscall.h] (common-generated): Likewise.
66170         * sysdeps/unix/errnos-tmpl.c: Remove file.
66171         * sysdeps/unix/errnos.awk: Likewise.
66172         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66173         * sysdeps/unix/ioctls.awk: Likewise.
66174         * sysdeps/unix/mk-local_lim.c: Likewise.
66175         * sysdeps/unix/snarf-ioctls: Likewise.
66176
66177 2012-03-19  Richard Henderson  <rth@twiddle.net>
66178
66179         * sysdeps/i386/fpu/fenv_private.h: New file.
66180         * sysdeps/i386/fpu/math_private.h: Use it.
66181         (math_opt_barrier, math_force_eval): Remove.
66182         (libc_feholdexcept_setround_53bit): Remove.
66183         (libc_feupdateenv_53bit): Remove.
66184         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66185         (math_opt_barrier, math_force_eval): Remove.
66186         (libc_feholdexcept): Remove.
66187         (libc_feholdexcept_setround): Remove.
66188         (libc_fetestexcept, libc_fesetenv): Remove.
66189         (libc_feupdateenv_test): Remove.
66190         (libc_feupdateenv, libc_feholdsetround): Remove.
66191         (libc_feresetround): Remove.
66192
66193         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66194         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66195
66196         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66197         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66198         (libc_feupdateenv_testl): New.
66199         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66200         (libc_feupdateenv_testf): New.
66201         (libc_feupdateenv): Use libc_feupdateenv_test.
66202         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66203         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66204
66205         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66206         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66207         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66208         (libc_feresetround_noex): New.
66209         (libc_feresetround_noexf): New.
66210         (libc_feresetround_noexl): New.
66211         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66212         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66213         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66214         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66215         SET_RESTORE_ROUND.
66216         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66217         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66218         (__cos): Likewise.
66219         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66220         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66221         SET_RESTORE_ROUND_NOEX.
66222         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66223         SET_RESTORE_ROUND_NOEXF.
66224         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66225         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66226         (libc_feholdsetroundf): New.
66227         (libc_feresetround, libc_feresetroundf): New.
66228
66229         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66230         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66231         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66232
66233         * sysdeps/generic/math_private.h: Include <fenv.h>.
66234         (default_libc_feholdexcept): New.
66235         (default_libc_feholdexcept_setround): New.
66236         (default_libc_fesetenv, default_libc_feupdateenv): New.
66237         (libc_feholdexcept): Only define if undefined.
66238         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66239         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66240         (libc_feholdexcept_setroundl): Likewise.
66241         (libc_feholdexcept_setround_53bit): Likewise.
66242         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66243         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66244         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66245         (libc_feupdateenv_53bit): Likewise.
66246         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66247         (libc_feholdexcept): Convert from macro to inline function.
66248         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66249         (libc_fesetenv, libc_feupdateenv): Likewise.
66250
66251         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66252         not previously defined.
66253         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66254         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66255         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66256         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66257         * sysdeps/ieee754/flt-32/math_private.h: New file.
66258         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66259         math_private.h below SET_FLOAT_WORD.
66260         (__isnan, __isinf_ns, __finite): Remove.
66261         (__isnanf, __isinf_nsf, __finitef): Remove.
66262
66263 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66264
66265         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66266
66267 2012-03-17  David S. Miller  <davem@davemloft.net>
66268
66269         [BZ #6471]
66270         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66271         for 2.16.
66272
66273 2012-03-16  David S. Miller  <davem@davemloft.net>
66274
66275         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66276         warnings.
66277
66278         [BZ #6471]
66279         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66280         properly.
66281         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66282         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66283         sysdep_routines when subdir is sysvipc.
66284         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66285         __getshmlba helper.
66286
66287         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66288
66289 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66290
66291         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66292         [__LP64__].
66293
66294 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66295
66296         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66297         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66298         (__lround): Renamed to ...
66299         (__llround): This.  Replace long int with long long int.
66300         Define lround functions as aliases of llround functions.
66301         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66302
66303 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66304
66305         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66306         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66307         adresses to uintptr_t.  Replace "long int" and "unsigned long
66308         int" with "greg_t" on va_arg.
66309
66310 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66311
66312         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66313         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66314
66315         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66316         Move e_machine check before EI_CLASS check.  Handle x32
66317         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66318         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66319         SKIP_EM_IA_64 and include
66320         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66321
66322         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66323         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66324         (add_system_dir): New macro.
66325
66326         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66327         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66328
66329 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66330
66331         [BZ #2551]
66332         [BZ #2552]
66333         [BZ #2553]
66334         [BZ #2554]
66335         [BZ #2562]
66336         [BZ #2563]
66337         [BZ #2565]
66338         [BZ #2566]
66339         [BZ #2576]
66340         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66341         (y0): Likewise.
66342         * math/w_j0f.c (j0f): Likewise.
66343         (y0f): Likewise.
66344         * math/w_j0l.c (__j0l): Likewise.
66345         (__y0l): Likewise.
66346         * math/w_j1.c (j1): Likewise.
66347         (y1): Likewise.
66348         * math/w_j1f.c (j1f): Likewise.
66349         (y1f): Likewise.
66350         * math/w_j1l.c (__j1l): Likewise.
66351         (__y1l): Likewise.
66352         * math/w_jn.c (jn): Likewise.
66353         (yn): Likewise.
66354         * math/w_jnf.c (jnf): Likewise.
66355         (ynf): Likewise.
66356         * math/w_jnl.c (__jnl): Likewise.
66357         (__ynl): Likewise.
66358         * math/libm-test.inc (j0_test): Add more tests.
66359         (j1_test): Likewise.
66360         (jn_test): Likewise.  Add trailing semicolon to existing test.
66361         (y0_test): Likewise.
66362         (y1_test): Likewise.
66363         * sysdeps/i386/fpu/libm-test-ulps: Update.
66364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66365
66366         [BZ #13851]
66367         [BZ #13854]
66368         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66369         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66370         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66371         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66372         (__tanl): Set errno for infinite argument.
66373         * sysdeps/i386/fpu/mptan.c: Remove.
66374         * sysdeps/i386/fpu/s_tan.S: Likewise.
66375         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66376         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66377         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66378         * math/libm-test.inc (tan_test): Add more tests and enable more
66379         tests for double and long double.
66380         * sysdeps/i386/fpu/libm-test-ulps: Update.
66381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66382
66383 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66384
66385         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66386         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66387
66388 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66389
66390         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66391         * configure.in: Use it for both main tree and add-ons.
66392         * configure: Regenerated.
66393
66394 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66395
66396         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66397
66398 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66399
66400         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66401         in comment.
66402
66403         [BZ #13851]
66404         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66405         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66406         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66407         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66408         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66409         infinite argument.
66410         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66411         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66412         != 0 for prec == 2.
66413         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66414         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66415         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66416         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66417         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66418         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66419         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66420         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66421         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66422         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66423         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66424         * math/libm-test.inc (cos_test): Add more tests and enable more
66425         tests for long double.
66426         (sin_test): Likewise.
66427         (sincos_test): Likewise.
66428         * sysdeps/i386/fpu/libm-test-ulps: Update.
66429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66430
66431 2012-03-16  David S. Miller  <davem@davemloft.net>
66432
66433         * sysdeps/sparc/fpu/math_private.h: New file.
66434
66435 2012-03-15  David S. Miller  <davem@davemloft.net>
66436
66437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66438         file.
66439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66441         file.
66442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66443         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66444         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66445         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66446         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66447         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66448         sysdep routines.
66449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66450
66451         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66452         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66453
66454         * sysdeps/sparc/sparc-ifunc.h: New file.
66455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66456         sparc-ifunc.h
66457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66459         Likewise.
66460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66461         Likewise.
66462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66466         Likewise.
66467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66472         Likewise.
66473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66474         Likewise.
66475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66479         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66480         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66481         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66482         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66483         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66484         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66485         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66486         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66487         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66488         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66489         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66490         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66491         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66492         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66493         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66494         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66495         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66496         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66497         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66498         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66499
66500 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66501
66502         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66503         scaling.
66504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66505
66506 2012-03-15  Andreas Jaeger  <aj@suse.de>
66507
66508         [BZ #13852]
66509         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66510         ieee754/flt-32 implementation for sin, cos and sincos.
66511         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66512         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66513         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66514         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66515         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66516         ieee754/flt-32 implementation for tan.
66517
66518         * math/libm-test.inc (cos_test): Enable some large input tests for
66519         float as well
66520         (sin_test): Likewise.
66521         (sincos_test): Likewise.
66522         (tan_test): Add tests for large input.
66523
66524         * sysdeps/i386/fpu/libm-test-ulps: Update.
66525
66526 2012-03-15  Andreas Jaeger  <aj@suse.de>
66527
66528         [BZ #13658]
66529         * math/libm-test.inc (cos_test): Add more test cases.
66530         (sin_test): Likewise.
66531         (sincos_test): Likewise.
66532
66533 2012-03-15  Andreas Jaeger  <aj@suse.de>
66534
66535         [BZ #13837]
66536         * math/libm-test.inc (cos_test): Add a test case for large input
66537         value.
66538         (sin_test): Likewise.
66539         (sincos_test): Likewise.
66540
66541 2012-03-15  Andreas Jaeger  <aj@suse.de>
66542             Joseph Myers  <joseph@codesourcery.com>
66543
66544         [BZ #13658]
66545         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66546         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66547         * sysdeps/i386/fpu/branred.c: Likewise.
66548         * sysdeps/i386/fpu/dosincos.c: Likewise.
66549         * sysdeps/i386/fpu/mpa.c: Likewise.
66550         * sysdeps/i386/fpu/s_cos.S: Likewise.
66551         * sysdeps/i386/fpu/s_sin.S: Likewise.
66552         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66553         * sysdeps/i386/fpu/sincos32.c: Likewise.
66554
66555         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66556         Define.
66557         (libc_feupdateenv_53bit): Define.
66558         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66559         Define.
66560         (libc_feupdateenv_53bit): Define.
66561
66562         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66563         53 bit (without extend i386 double precision).
66564
66565         * math/libm-test.inc (sincos_test): Add tests for large input.
66566         (sin): Likewise.
66567         (cos): Likewise.
66568
66569         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66570
66571 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66572
66573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66574
66575 2012-03-15  David S. Miller  <davem@davemloft.net>
66576
66577         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66578         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66579         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66580         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66581         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66583         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66585         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66586         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66587         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66588         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66589         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66590         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66591         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66593         file.
66594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66596         file.
66597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66599         file.
66600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66602         file.
66603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66604         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66605         fmin/fmax sysdep routines.
66606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66607
66608 2012-03-14  David S. Miller  <davem@davemloft.net>
66609
66610         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66611         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66612         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66613         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66614         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66615         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66616         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66617         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66618         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66619         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66620         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66621         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66622         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66623         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66624         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66625         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66626         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66627         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66628         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66629         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66630         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66631         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66632         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66633         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66634         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66635         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66636         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66637         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66638         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66639         routines.
66640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66641         file.
66642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66644         file.
66645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66647         file.
66648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66650         file.
66651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66653         file.
66654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66656         file.
66657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66658         file.
66659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66660         file.
66661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66662         file.
66663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66664         New file.
66665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66666         file.
66667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66668         file.
66669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66671         file.
66672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66674         file.
66675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66677         file.
66678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66680         VIS3 routines.
66681
66682         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66683         New file.
66684
66685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66686
66687         * sysdeps/sparc/configure.in: New file.
66688         * sysdeps/sparc/configure: Generate.
66689         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66690         * configure: Regenerate.
66691         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66692         * config.make.in (have-as-vis3): New.
66693         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66694         available use -Av9d instead of -Av9a.
66695         * sysdeps/sparc/sparc64/Makefile: Likewise.
66696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66698         New file.
66699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66700         file.
66701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66702         New file.
66703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66704         file.
66705         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66706         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66707         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66708         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66709         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66710
66711         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66712         fzeros/fnegs to load 0x80000000 into a float register instead of
66713         using the stack.
66714         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66715
66716 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66717
66718         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66719         bits/syscall.h.
66720         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66721         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66722         ($(inst_includedir)/bits/syscall.h): Remove rule.
66723         ($(objpfx)bits/syscall.d): Include instead of
66724         $(objpfx)syscall-list.d.
66725         (generated): Change syscall-list.h and syscall-list.d to
66726         bits/syscall.h and bits/syscall.d.
66727
66728 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66729
66730         [BZ #13846]
66731         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66732
66733 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66734
66735         [BZ #13841]
66736         * math/s_csqrt.c: Include <float.h>.
66737         (__csqrt): Scale large or subnormal inputs.
66738         * math/s_csqrtf.c: Likewise.
66739         * math/s_csqrtl.c: Likewise.
66740         * math/libm-test.inc (csqrt_test): Add more tests.
66741         * sysdeps/i386/fpu/libm-test-ulps: Update.
66742         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66743
66744         [BZ #13840]
66745         * math/libm-test.inc (hypot_test): Add more tests.
66746
66747 2012-03-13  David S. Miller  <davem@davemloft.net>
66748
66749         [BZ #13840]
66750         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66751         double-precision for the calculation instead of scaling.
66752
66753 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66754
66755         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66756         manipulate bits before adding and subtracting TWO52[sx].
66757         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66758         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66759         Likewise.
66760         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66761
66762 2012-03-13  David S. Miller  <davem@davemloft.net>
66763
66764         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66765         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66766         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66767         rtld-global-offsets.h
66768         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66769
66770         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66771         large parameters.
66772
66773         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66774
66775         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66776         'err' in the ifdef scope in which it is actually used.
66777
66778         * nss/nss_db/db-init.c: Include string.h
66779
66780 2012-03-12  David S. Miller  <davem@davemloft.net>
66781
66782         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66783         masking out of the most significant byte of random value used.
66784         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66785         Fix coding style in previous change.
66786
66787         * sysdeps/unix/sysv/linux/kernel-features.h
66788         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66789         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66790         expression.
66791         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66792         later.
66793
66794 2012-03-11  David S. Miller  <davem@davemloft.net>
66795
66796         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66797         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66798         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66799         for 'resultvar' otherwise things get truncated on 64-bit.
66800
66801         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66802         Fix masking out of the most significant byte of random value used.
66803
66804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66805
66806 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66807
66808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66809
66810 2012-03-09  David S. Miller  <davem@davemloft.net>
66811
66812         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66813         variables with appropriate CPP guards.
66814         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66815         from the frame pointer, not the stack pointer.  Correct layout
66816         comments.  Fix test on resulting framesize and the management of
66817         the outregs buffer for pltexit.  Preserve floating point return
66818         values across _dl_call_pltexit call.
66819         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66820         framesize and the management of the outregs buffer for pltexit.
66821         Preserve floating point return values across _dl_call_pltexit
66822         call.
66823         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66824         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66825         (la_sparc64_gnu_pltexit): New functions.
66826         (print_exit): Fix format string for return register value.
66827
66828 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66829
66830         * sunrpc/Makefile (others): Add rpcgen.
66831         ($(objpfx)rpcgen): Remove special build rule and dependency on
66832         libc.
66833         * sunrpc/rpcgen.c: New file.
66834
66835 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         [BZ #13673]
66838         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66839         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66840         * sysdeps/i386/crti.S: Likewise.
66841         * sysdeps/i386/crtn.S: Likewise.
66842         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
66843         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
66844         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
66845         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
66846         * sysdeps/sh/crti.S: Likewise.
66847         * sysdeps/sh/crtn.S: Likewise.
66848         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66849
66850         [BZ #13673]
66851         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
66852         with URL.
66853         * locale/programs/locfile-kw.gperf: Likewise.
66854         * locale/programs/charmap-kw.h: Regenerated.
66855         * locale/programs/locfile-kw.h: Likewise.
66856
66857         [BZ #13673]
66858         * intl/plural.y: Replace FSF snail mail address with URL.
66859         * intl/plural.c: Regenerated.
66860
66861 2012-03-09  Richard Henderson  <rth@twiddle.net>
66862
66863         * include/math_private.h: Remove file.
66864         * math/math_private.h: Move file ...
66865         * sysdeps/generic/math_private.h: ... here.
66866
66867         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
66868         * sysdeps/powerpc/fpu/math_private.h: Likewise.
66869         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66870
66871         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
66872         and <math_private.h>.
66873         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
66874         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
66875         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
66876         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
66877         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
66878         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
66879         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
66880         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
66881         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
66882         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
66883         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
66884         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
66885         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
66886         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
66887         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
66888         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
66889         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
66890         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
66891         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
66892         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
66893         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
66894         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
66895         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
66896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
66897         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
66898         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
66899         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
66900         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
66901         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
66902         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
66903         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
66904         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
66905         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
66906         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
66907         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
66908         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
66909         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
66910         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
66911         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
66912         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
66913         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
66914         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
66915         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
66916         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
66917         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
66918         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
66919         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
66920         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
66921         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
66922         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
66923         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
66924         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
66925         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
66926         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
66927         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
66928         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
66929         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
66930         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
66931         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
66932         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
66933         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
66934         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
66935         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
66936         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
66937         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
66938         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
66939         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
66940         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
66941         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
66942         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
66943         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
66944         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
66945         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
66946         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
66947         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
66948         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
66949         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
66950         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
66951         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
66952         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
66953         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
66954         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
66955         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
66956         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
66957         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
66958         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
66959         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
66960         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
66961         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
66962         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
66963         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
66964         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
66965         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
66966         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
66967         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
66968         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
66969         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
66970         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
66971         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
66972         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
66973         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
66974         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
66975         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
66976         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
66977         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
66978         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
66979         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
66980         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
66981         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
66982         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
66983         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
66984         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
66985         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
66986         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
66987         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
66988         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
66989         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
66990         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
66991         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
66992         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
66993         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
66994         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
66995         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
66996         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
66997         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
66998         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
66999         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67000         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67001         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67002         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67003         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67004         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67005         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67006         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67007         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67008         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67009         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67010         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67011         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67012         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67013         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67014         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67015         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67016         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67017         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67018         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67019         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67020         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67021         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67022         * sysdeps/ieee754/k_standard.c: Likewise.
67023         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67024         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67025         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67026         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67027         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67028         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67029         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67030         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67031         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67032         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67033         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67034         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67035         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67036         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67037         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67038         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67039         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67040         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67041         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67042         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67043         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67044         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67045         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67046         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67047         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67048         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67049         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67050         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67051         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67052         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67053         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67054         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67055         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67056         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67057         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67058         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67059         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67060         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67061         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67062         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67063         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67064         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67065         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67066         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67067         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67068         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67069         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67070         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67071         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67072         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67073         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67074         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67075         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67076         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67077         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67078         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67079         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67080         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67081         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67082         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67083         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67084         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67085         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67086         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67087         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67088         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67089         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67090         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67091         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67092         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67093         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67094         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67095         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67096         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67097         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67098         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67099         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67100         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67101         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67102         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67103         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67104         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67105         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67106         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67107         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67108         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67109         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67110         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67111         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67112         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67113         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67114         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67115         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67116         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67117         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67118         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67119         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67120         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67121         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67122         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67123         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67124         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67125         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67126         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67127         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67128         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67129         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67130         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67131         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67132         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67133         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67134         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67135         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67136         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67137         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67138         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67139         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67140         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67141         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67142         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67143         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67144         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67145         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67146         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67147         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67148         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67149         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67150         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67151         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67152         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67153         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67154         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67155         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67156         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67157         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67158         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67159         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67160         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67161         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67162         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67163         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67164         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67165         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67166         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67167         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67168         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67169         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67170         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67171         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67172         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67173         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67174         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67175         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67176         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67177         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67178         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67179         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67180         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67181         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67182         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67183         * sysdeps/ieee754/s_lib_version.c: Likewise.
67184         * sysdeps/ieee754/s_matherr.c: Likewise.
67185         * sysdeps/ieee754/s_signgam.c: Likewise.
67186         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67187         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67188         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67189         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67190         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67191         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67192         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67193         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67194         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67195         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67196         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67197         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67198         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67199         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67200         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67201         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67202         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67203         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67204         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67205         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67206         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67207
67208 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67209
67210         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67211         * sunrpc/rpc_main.c: Likewise.
67212         * sunrpc/rpc_svcout.c: Likewise.
67213
67214 2012-03-09  David S. Miller  <davem@davemloft.net>
67215
67216         * include/math_private.h: New file.
67217
67218 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67219
67220         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67221         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67222         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67223         from <bits/socket_type.h>.
67224         (enum __socket_type): Don't define here.
67225         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67226         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67227         bits/socket_type.h.
67228
67229         [BZ #13566]
67230         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67231         checking __USE_GNU.
67232
67233         * Makerules ($(inst_includedir)/%.h): New rule.
67234         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67235         (install-others): Remove variable setting.
67236         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67237
67238 2012-03-08  Richard Henderson  <rth@twiddle.net>
67239
67240         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67241         from macro to inline function; merge with the
67242         !__LIBC_INTERNAL_MATH_INLINES version.
67243         (__ieee754_sqrtf): Likewise.
67244
67245         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67246         to inline function.
67247         (__rintf, __floor, __floorf): Likewise.
67248
67249         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67250         macro to inline function.
67251         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67252
67253         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67254         not <math/math_private.h>.
67255
67256 2012-03-08  David S. Miller  <davem@davemloft.net>
67257
67258         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67259         copyright year.
67260         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67261
67262 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67263
67264         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67265         normalization.
67266         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67267         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67268
67269 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67270
67271         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67272         be defined individually, they must be defined as a block.  Define
67273         S for printing a string instead of hidint the different by using a
67274         macro for adding the 'l'.
67275         * stdio-common/tst-fphex-wide.c: Adjust.
67276
67277 2012-03-07  Marek Polacek  <polacek@redhat.com>
67278
67279         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67280
67281 2012-03-08  Marek Polacek  <polacek@redhat.com>
67282
67283         [BZ #13806]
67284         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67285         * stdio-common/tst-fphex.c: Define a few macros to make the
67286         test reusable.  Use them.
67287         * stdio-common/tst-fphex-wide.c: New file.
67288
67289 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67290
67291         [BZ #6911]
67292         * manual/macros.texi (gnusystems): New macro.
67293         (nongnusystems): Likewise.
67294         (gnulinuxhurdsystems): Likewise.
67295         (gnuhurdsystems): Likewise..
67296         (gnulinuxsystems): Likewise.
67297         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67298         variants of the GNU system, not "GNU system".
67299         * manual/conf.texi: Likewise.
67300         * manual/errno.texi: Likewise.  Update example of errno macro
67301         expansion.
67302         * manual/filesys.texi: Likewise.
67303         (getumask): Document as specific to GNU/Hurd.
67304         * manual/install.texi: Likewise.  Reword some references to
67305         GNU/Linux.
67306         * manual/intro.texi: Likewise.
67307         * manual/io.texi: Likewise.
67308         (File Name Portability): Detail which constraints are inapplicable
67309         to all GNU systems and which are only inapplicable to GNU/Hurd.
67310         * manual/job.texi: Likewise.
67311         * manual/llio.texi: Likewise.
67312         (O_NOCTTY): Document as present on GNU/Linux.
67313         * manual/maint.texi: Likewise.
67314         * manual/memory.texi: Likewise.
67315         * manual/pattern.texi: Likewise.
67316         * manual/pipe.texi: Likewise.
67317         * manual/process.texi: Likewise.
67318         * manual/resource.texi: Likewise.
67319         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67320         child on GNU/Hurd.
67321         * manual/setjmp.texi: Likewise.
67322         * manual/signal.texi: Likewise.
67323         * manual/startup.texi: Likewise.
67324         * manual/stdio.texi: Likewise.
67325         * manual/terminal.texi: Likewise.
67326         (ONLCR): Document as POSIX.
67327         (OXTABS): Document availability on GNU/Linux as XTABS.
67328         (ONOEOT): Document availability separately from other bits.
67329         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67330         * manual/time.texi: Likewise.
67331         * manual/users.texi: Likewise.
67332         * INSTALL: Regenerated.
67333         * sysdeps/gnu/errlist.c: Regenerated.
67334
67335         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67336         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67337         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67338         puts.
67339         * configure: Regenerated.
67340
67341 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67342
67343         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67344         default includes instead of AC_HEADER_CHECK.
67345         * sysdeps/i386/configure: Regenerated.
67346
67347         [BZ #10716]
67348         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67349         * math/s_cacoshf.c (__cacoshf): Likewise.
67350         * math/s_cacoshl.c (__cacoshl): Likewise.
67351         * math/s_casinh.c (__casinh): Set signs of result from argument.
67352         * math/s_casinhf.c (__casinhf): Likewise.
67353         * math/s_casinhl.c (__casinhl): Likewise.
67354         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67355         (casinh_test): Add more tests.
67356         * sysdeps/i386/fpu/libm-test-ulps: Update.
67357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67358
67359 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67360
67361         * po/zh_TW.po: Update from translation team.
67362
67363         * login/Makefile (distribute): Remove variable.
67364         * catgets/Makefile: Likewise.
67365         * mach/Makefile: Likewise.
67366         * malloc/Makefile: Likewise.
67367         * misc/Makefile: Likewise.
67368         * iconv/Makefile: Likewise.
67369         * nscd/Makefile: Likewise.
67370         * hurd/Makefile: Likewise.
67371         * manual/Makefile: Likewise.
67372         * locale/Makefile: Likewise.
67373         * intl/Makefile: Likewise.
67374         * conform/Makefile: Likewise.
67375         * nss/Makefile: Likewise.
67376         * time/Makefile: Likewise.
67377         * soft-fp/Makefile: Likewise.
67378         * dirent/Makefile: Likewise.
67379         * gmon/Makefile: Likewise.
67380         * po/Makefile: Likewise.
67381         * rt/Makefile: Likewise.
67382         * socket/Makefile: Likewise.
67383         * math/Makefile: Likewise.
67384         * signal/Makefile: Likewise.
67385         * debug/Makefile: Likewise.
67386         * elf/Makefile: Likewise.
67387         * timezone/Makefile: Likewise.
67388         * stdlib/Makefile: Likewise.
67389         * iconvdata/Makefile: Likewise.
67390         * sunrpc/Makefile: Likewise.
67391         * io/Makefile: Likewise.
67392         * argp/Makefile: Likewise.
67393         * inet/Makefile: Likewise.
67394         * hesiod/Makefile: Likewise.
67395         * grp/Makefile: Likewise.
67396         * csu/Makefile: Likewise.
67397         * wctype/Makefile: Likewise.
67398         * crypt/Makefile: Likewise.
67399         * libio/Makefile: Likewise.
67400         * string/Makefile: Likewise.
67401         * nis/Makefile: Likewise.
67402         * resolv/Makefile: Likewise.
67403         * stdio-common/Makefile: Likewise.
67404         * wcsmbs/Makefile: Likewise.
67405         * dlfcn/Makefile: Likewise.
67406         * posix/Makefile: Likewise.
67407
67408         [BZ #6959]
67409         * timezone/Makefile: Don't install timezone files, just the programs
67410         and scripts.
67411
67412 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67413
67414         * nss/databases.def: Add missing gshadow entry.
67415
67416         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67417
67418 2012-03-06  Marek Polacek  <polacek@redhat.com>
67419
67420         [BZ #13726]
67421         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67422         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67423         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67424         * stdio-common/tst-long-dbl-fphex.c: New file.
67425
67426 2012-03-06  David S. Miller  <davem@davemloft.net>
67427
67428         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67429         (set_obp_int): New function.
67430         (get_obp_int): New function.
67431         (__get_clockfreq_via_dev_openprom): Likewise.
67432         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67433         Avoid unused variable warnings on 'val' and use builtin_expect.
67434         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67435         __builtin_expect.
67436         (INLINE_CLONE_SYSCALL): Likewise.
67437
67438 2012-03-05  David S. Miller  <davem@davemloft.net>
67439
67440         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67441
67442 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67443
67444         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67445
67446         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67447         only for |x| >= 40.
67448         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67449
67450 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67451
67452         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67453         Replace gettimeofday with __vdso_gettimeofday.
67454
67455         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67456         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67457         __vdso_clock_gettime and __vdso_getcpu.
67458
67459         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67460         time with __vdso_time.
67461
67462 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67463
67464         * manual/lang.texi (size_t): Note types to which size_t may be
67465         equivalent with the GNU C Library, but do not describe when
67466         differences between them are significant.
67467
67468 2012-03-05  Andreas Jaeger  <aj@suse.de>
67469
67470         * sysdeps/i386/fpu/libm-test-ulps: Update.
67471
67472 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67473
67474         [BZ #3976]
67475         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67476         (__ieee754_pow): Save and restore rounding mode and use
67477         round-to-nearest for main computations.
67478         * math/libm-test.inc (pow_test_tonearest): New function.
67479         (pow_test_towardzero): Likewise.
67480         (pow_test_downward): Likewise.
67481         (pow_test_upward): Likewise.
67482         (main): Call the new functions.
67483         * sysdeps/i386/fpu/libm-test-ulps: Update.
67484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67485
67486         [BZ #3976]
67487         * math/libm-test.inc (cosh_test_tonearest): New function.
67488         (cosh_test_towardzero): Likewise.
67489         (cosh_test_downward): Likewise.
67490         (cosh_test_upward): Likewise.
67491         (sinh_test_tonearest): Likewise.
67492         (sinh_test_towardzero): Likewise.
67493         (sinh_test_downward): Likewise.
67494         (sinh_test_upward): Likewise.
67495         (main): Call the new functions.
67496         * sysdeps/i386/fpu/libm-test-ulps: Update.
67497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67498
67499 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67500
67501         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67502         default stack guard is set in last bytes.
67503         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67504
67505 2012-03-05  Kees Cook  <keescook@chromium.org>
67506
67507         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67508
67509         [BZ #13656]
67510         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67511         possibly allocate from heap instead of stack.
67512         * stdio-common/bug-vfprintf-nargs.c: New file.
67513         * stdio-common/Makefile (tests): Add nargs overflow test.
67514
67515 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67516
67517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67518
67519 2012-03-03  Marek Polacek  <polacek@redhat.com>
67520
67521         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67522         * math/math_private.h: Likewise.
67523         * stdlib/tst-strtod.c: Likewise.
67524         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67525         * sysdeps/x86_64/bits/atomic.h: Likewise.
67526
67527 2012-03-02  David S. Miller  <davem@davemloft.net>
67528
67529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67533         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67534         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67535         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67536         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67537
67538 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67539
67540         [BZ #13792]
67541         * manual/examples/README: New file, says the example source files
67542         can be used under GPL>=2.
67543         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67544         line containing just "*/".
67545         * manual/examples/add.c: Add copyright header (GPL>=2).
67546         * manual/examples/argp-ex1.c: Likewise.
67547         * manual/examples/argp-ex2.c: Likewise.
67548         * manual/examples/argp-ex3.c: Likewise.
67549         * manual/examples/argp-ex4.c: Likewise.
67550         * manual/examples/atexit.c: Likewise.
67551         * manual/examples/db.c: Likewise.
67552         * manual/examples/dir.c: Likewise.
67553         * manual/examples/dir2.c: Likewise.
67554         * manual/examples/execinfo.c: Likewise.
67555         * manual/examples/filecli.c: Likewise.
67556         * manual/examples/filesrv.c: Likewise.
67557         * manual/examples/fmtmsgexpl.c: Likewise.
67558         * manual/examples/genpass.c: Likewise.
67559         * manual/examples/inetcli.c: Likewise.
67560         * manual/examples/inetsrv.c: Likewise.
67561         * manual/examples/isockad.c: Likewise.
67562         * manual/examples/longopt.c: Likewise.
67563         * manual/examples/memopen.c: Likewise.
67564         * manual/examples/memstrm.c: Likewise.
67565         * manual/examples/mkfsock.c: Likewise.
67566         * manual/examples/mkisock.c: Likewise.
67567         * manual/examples/mygetpass.c: Likewise.
67568         * manual/examples/pipe.c: Likewise.
67569         * manual/examples/popen.c: Likewise.
67570         * manual/examples/rprintf.c: Likewise.
67571         * manual/examples/search.c: Likewise.
67572         * manual/examples/select.c: Likewise.
67573         * manual/examples/setjmp.c: Likewise.
67574         * manual/examples/sigh1.c: Likewise.
67575         * manual/examples/sigusr.c: Likewise.
67576         * manual/examples/stpcpy.c: Likewise.
67577         * manual/examples/strdupa.c: Likewise.
67578         * manual/examples/strftim.c: Likewise.
67579         * manual/examples/strncat.c: Likewise.
67580         * manual/examples/subopt.c: Likewise.
67581         * manual/examples/swapcontext.c: Likewise.
67582         * manual/examples/termios.c: Likewise.
67583         * manual/examples/testopt.c: Likewise.
67584         * manual/examples/testpass.c: Likewise.
67585         * manual/examples/timeval_subtract.c: Likewise.
67586
67587         [BZ #13792]
67588         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67589         function to ...
67590         * manual/timeval_subtract.c.texi: ... here, new file.
67591
67592 2012-03-02  David S. Miller  <davem@davemloft.net>
67593
67594         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67595
67596 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67597
67598         [BZ #3976]
67599         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67600         (__sin): Save and restore rounding mode and use round-to-nearest
67601         for all computations.
67602         (__cos): Save and restore rounding mode and use round-to-nearest
67603         for all computations.
67604         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67605         <fenv.h>.
67606         (tan): Save and restore rounding mode and use round-to-nearest for
67607         all computations.
67608         * math/libm-test.inc (cos_test_tonearest): New function.
67609         (cos_test_towardzero): Likewise.
67610         (cos_test_downward): Likewise.
67611         (cos_test_upward): Likewise.
67612         (sin_test_tonearest): Likewise.
67613         (sin_test_towardzero): Likewise.
67614         (sin_test_downward): Likewise.
67615         (sin_test_upward): Likewise.
67616         (tan_test_tonearest): Likewise.
67617         (tan_test_towardzero): Likewise.
67618         (tan_test_downward): Likewise.
67619         (tan_test_upward): Likewise.
67620         (main): Call the new functions.
67621         * sysdeps/i386/fpu/libm-test-ulps: Update.
67622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67623
67624         [BZ #10135]
67625         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67626         small n, then large n, before computing and testing k+n.
67627         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67628         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67629         Likewise.
67630         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67631         Likewise.
67632         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67633         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67634         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67635         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67636         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67637         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67638         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67639         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67640         * math/libm-test.inc (scalbn_test): Add more tests.
67641         (scalbln_test): Likewise.
67642
67643         * manual/filesys.texi (mode_t): Describe constraints on size and
67644         signedness, not exact equivalence to a particular type.
67645         (ino_t): Likewise.
67646         (ino64_t): Likewise.
67647         (dev_t): Likewise.
67648         (nlink_t): Likewise.
67649         (blkcnt_t): Likewise.
67650         (blkcnt64_t): Likewise.
67651         * manual/llio.texi (off_t): Likewise.
67652
67653         [BZ #3976]
67654         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67655         (__ieee754_exp): Save and restore rounding mode and use
67656         round-to-nearest for all computations.
67657         * math/libm-test.inc (exp_test_tonearest): New function.
67658         (exp_test_towardzero): Likewise.
67659         (exp_test_downward): Likewise.
67660         (exp_test_upward): Likewise.
67661         (main): Call the new functions.
67662         * sysdeps/i386/fpu/libm-test-ulps: Update.
67663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67664
67665 2012-03-01  Chris Demetriou  <cgd@google.com>
67666
67667         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67668         have predictable order.
67669
67670 2012-03-01  David S. Miller  <davem@davemloft.net>
67671
67672         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67673
67674         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67675         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67676         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67677         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67678
67679         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67680         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67681         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67682         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67683         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67684         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67685         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67686         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67687         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67688
67689         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67690
67691         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67692         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67693         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67694
67695         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67696         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67697         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67698         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67699         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67700         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67701         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67702         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67703         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67704         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67705         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67706         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67707         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67708         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67709         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67710         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67711         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67712         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67713         * sysdeps/sparc/elf/configure: Regenerated.
67714
67715 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67716
67717         * configure.in (AS, LD): Require binutils 2.20 or later.
67718         * configure: Regenerated.
67719         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67720         as required minimum version.
67721         * INSTALL: Regenerated.
67722
67723         [BZ #2541]
67724         [BZ #4108]
67725         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67726         before squaring exponent.
67727         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67728         bottom long double and 27 bits of top long double before squaring
67729         exponent.
67730         * math/libm-test.inc (erfc_test): Add more tests.
67731         * sysdeps/i386/fpu/libm-test-ulps: Update.
67732         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67734
67735 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67736
67737         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67738         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67739         containing bit-fields.
67740         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67741         * soft-fp/single.h (_FP_UNION_S): Likewise.
67742         * soft-fp/double.h (_FP_UNION_D): Likewise.
67743
67744 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67745
67746         [BZ #13786]
67747         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67748         not include ../strcmp.S.
67749         [USE_AS_STRNCASECMP_L]: Likewise.
67750         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67751         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67752         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67753         (__strncasecmp_l_ia32): Define as alias to
67754         __strncasecmp_l_nonascii.
67755
67756         [BZ #5794]
67757         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67758         * sysdeps/i386/fpu/libm-test-ulps: Update.
67759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67760
67761         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67763
67764 2012-02-29  Jeff Law  <law@redhat.com>
67765
67766         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67767         out of bounds read.
67768
67769 2012-02-29  Marek Polacek  <polacek@redhat.com>
67770
67771         [BZ #13706]
67772         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67773         * elf/Makefile: Add rules to run tst-unused-dep.out.
67774
67775 2012-02-28  David S. Miller  <davem@davemloft.net>
67776
67777         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67778         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67779         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67780         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67781         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67782         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67783
67784 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67785
67786         * math/libm-test.inc (llround_test): Move one test from
67787         lround_test.  Use TEST_f_L in moved test.
67788         (lround_test): Move misplaced test to llround_test.  Add testcase
67789         from bug 2561.
67790
67791 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67792
67793         * sysdeps/x86_64/fpu/e_expf.S: New file.
67794         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67795
67796 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67797
67798         [BZ #13637]
67799         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67800         of remain_len that may cause incomplete multi-byte character and
67801         false match.
67802         * posix/bug-regex33.c: New file.
67803         * posix/Makefile (tests): Add bug-regex33.
67804
67805 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67806
67807         * manual/macros.texi: New file.
67808         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67809         * manual/libc.texinfo: Include macros.texi.
67810         * manual/creatute.texi: Likewise.
67811         * manual/install.texi: Likewise.
67812         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67813         @glibcadj{} in references to the GNU C Library.
67814         * manual/charset.texi: Likewise.
67815         * manual/conf.texi: Likewise.
67816         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67817         when not using those macros.
67818         * manual/creature.texi: Likewise.
67819         * manual/crypt.texi: Likewise.
67820         * manual/errno.texi: Likewise.
67821         * manual/filesys.texi: Likewise.
67822         * manual/header.texi: Likewise.
67823         * manual/install.texi: Likewise.
67824         * manual/intro.texi: Likewise.
67825         * manual/io.texi: Likewise.
67826         * manual/job.texi: Likewise.
67827         * manual/lang.texi: Likewise.
67828         * manual/libc.texiinfo: Likewise.
67829         * manual/llio.texi: Likewise.
67830         * manual/locale.texi: Likewise.
67831         * manual/maint.texi: Likewise.
67832         * manual/math.texi: Likewise.
67833         * manual/memory.texi: Likewise.
67834         * manual/message.texi: Likewise.
67835         * manual/nss.texi: Likewise.
67836         * manual/pattern.texi: Likewise.
67837         * manual/process.texi: Likewise.
67838         * manual/resource.texi: Likewise.
67839         * manual/search.texi: Likewise.
67840         * manual/setjmp.texi: Likewise.
67841         * manual/signal.texi: Likewise.
67842         * manual/socket.texi: Likewise.
67843         * manual/startup.texi: Likewise.
67844         * manual/stdio.texi: Likewise.
67845         * manual/string.texi: Likewise.
67846         * manual/sysinfo.texi: Likewise.
67847         * manual/syslog.texi: Likewise.
67848         * manual/terminal.texi: Likewise.
67849         * manual/time.texi: Likewise.
67850         * manual/users.texi: Likewise.
67851         * INSTALL: Regenerated.
67852         * NOTES: Regenerated.
67853         * sysdeps/gnu/errlist.c: Regenerated.
67854
67855 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
67856
67857         * include/dirent.h: Include <dirstream.h> before
67858         <dirent/dirent.h>.
67859
67860 2012-02-28  David S. Miller  <davem@davemloft.net>
67861
67862         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
67863         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
67864         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
67865         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
67866
67867 2012-02-27  David S. Miller  <davem@davemloft.net>
67868
67869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
67870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
67871         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
67872         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
67873
67874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
67875         frame pointer instead of stack pointer relative arg slot.
67876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67877         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67878         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67879
67880 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
67881
67882         [BZ #3992]
67883         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
67884
67885 2012-02-27  David S. Miller  <davem@davemloft.net>
67886
67887         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
67888         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67889         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
67890         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
67891         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67892         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67893         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
67894         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
67895
67896 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67897
67898         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
67899         later.  Allow versions 5-9.
67900         * configure: Regenerated.
67901         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
67902         required minimum version and 4.6 as recommended version.  Do not
67903         mention bugs in GCC 2.7 and 2.8.
67904         * INSTALL: Regenerated.
67905
67906 2012-02-27  David S. Miller  <davem@davemloft.net>
67907
67908         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
67909         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
67910         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
67911         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
67912         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
67913         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
67914         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
67915         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
67916
67917         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
67918         manipulate bits before adding and subtracting TWO112[sx].
67919         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67920
67921 2012-02-27  Roland McGrath  <roland@hack.frob.com>
67922
67923         [BZ #13775]
67924         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
67925         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
67926         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
67927         being in POSIX, because they are in 1003.1-2008.
67928
67929         * rt/tst-aio.c: Include <fcntl.h>.
67930         * rt/tst-aio7.c: Likewise.
67931         * rt/tst-aio64.c: Likewise.
67932
67933         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
67934
67935 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67936
67937         * manual/install.texi (--with-headers): Describe headers as
67938         interface headers, not private headers.
67939         (Specific advice for GNU/Linux systems): Describe use of headers
67940         from "make headers_install", not private headers from older
67941         kernels.
67942         * INSTALL: Regenerated.
67943         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
67944         Change to 2.6.19.
67945         * sysdeps/unix/sysv/linux/configure: Regenerated.
67946
67947         * manual/llio.texi (fclean): Remove documentation.
67948
67949         * manual/Makefile (libc-texi-generated): New variable.  Include
67950         version.texi.
67951         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
67952         $(libc-texi-generated), not duplicated list of files.
67953         (version.texi, stamp-version): New rules.
67954         (realclean): Remove $(libc-texi-generated), not individual files
67955         from that list.  Do not remove dir-add.texinfo.
67956         * manual/libc.texinfo: Comment out uses of edition numbers and
67957         references to printed manual.  Remove last-updated dates.
67958         (EDITION): Comment out.
67959         (ISBN): Likewise.
67960         (VERSION, UPDATED): Remove.
67961         (version.texi): Include.
67962
67963 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
67964
67965         * sysdeps/posix/spawni.c: Include <signal.h>.
67966         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
67967         * sysdeps/pthread/aio_fsync.c: Likewise.
67968
67969 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
67970
67971         * conform/Makefile (tests): Run only when not cross-compiling and
67972         when fast-check is not defined.
67973
67974         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
67975         * conform/data/limits.h-data: Fixes for POSIX2008.
67976         * conform/run-conformtest.sh: Run all tests.
67977         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
67978         headers.
67979         * include/bits/dlfcn.h: Likewise.
67980         * include/langinfo.h: Likewise.
67981         * include/monetary.h: Likewise.
67982         * include/sys/poll.h: Likewise.
67983
67984         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
67985         for __USE_GNU.
67986         * posix/spawn.h: Define __need_sigset_t.
67987         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
67988         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
67989         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
67990         to get sigevent_t only.
67991         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
67992         only for __USE_GNU.
67993         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
67994         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
67995         process_vm_writev only for __USE_GNU.
67996         * termios/termios.h: Declare tcgetsid also for POSIX2008.
67997
67998         * conform/Makefile: For now ignore errors from run-conformtest.
67999         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68000         POSIX to avoid namespace pollution.  Don't prepend headers.
68001         * conform/data/aio.h-data: Fixes for POSIX testing.
68002         * conform/data/fcntl.h-data: Likewise.
68003         * conform/data/glob.h-data: Likewise.
68004         * conform/data/grp.h-data: Likewise.
68005         * conform/data/pthread.h-data: Likewise.
68006         * conform/data/pwd.h-data: Likewise.
68007         * conform/data/signal.h-data: Likewise.
68008         * conform/data/spawn.h-data: Likewise.
68009         * conform/data/stdio.h-data: Likewise.
68010         * conform/data/stdlib.h-data: Likewise.
68011         * conform/data/stropts.h-data: Likewise.
68012         * conform/data/sys/mman.h-data: Likewise.
68013         * conform/data/sys/stat.h-data: Likewise.
68014         * conform/data/sys/types.h-data: Likewise.
68015         * conform/data/sys/wait.h-data: Likewise.
68016         * conform/data/time.h-data: Likewise.
68017         * conform/data/unistd.h-data: Likewise.
68018         * conform/data/utime.h-data: Likewise.
68019
68020         * io/sys/stat.h: fchmod was always in POSIX.
68021         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68022         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68023         * rt/aio.h: Define __need_timespec before including <time.h>.
68024         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68025         struct.  Add forward declaration of pthread_attr_t and use it in
68026         sigevent.
68027         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68028         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68029         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68030         always remove CLK_TCK definition.
68031
68032 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68033
68034         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68035
68036 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68037
68038         * conform/run-conformtest.sh: New file.
68039         * conform/Makefile: Run run-conformtest for tests.
68040         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68041         support.
68042
68043         * conform/data/uchar.h-data: New file.
68044         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68045         * conform/data/arpa/inet.h-data: Likewise.
68046         * conform/data/assert.h-data: Likewise.
68047         * conform/data/complex.h-data: Likewise.
68048         * conform/data/cpio.h-data: Likewise.
68049         * conform/data/ctype.h-data: Likewise.
68050         * conform/data/dirent.h-data: Likewise.
68051         * conform/data/dlfcn.h-data: Likewise.
68052         * conform/data/errno.h-data: Likewise.
68053         * conform/data/fcntl.h-data: Likewise.
68054         * conform/data/float.h-data: Likewise.
68055         * conform/data/fmtmsg.h-data: Likewise.
68056         * conform/data/fnmatch.h-data: Likewise.
68057         * conform/data/ftw.h-data: Likewise.
68058         * conform/data/glob.h-data: Likewise.
68059         * conform/data/grp.h-data: Likewise.
68060         * conform/data/iconv.h-data: Likewise.
68061         * conform/data/inttypes.h-data: Likewise.
68062         * conform/data/langinfo.h-data: Likewise.
68063         * conform/data/libgen.h-data: Likewise.
68064         * conform/data/limits.h-data: Likewise.
68065         * conform/data/locale.h-data: Likewise.
68066         * conform/data/math.h-data: Likewise.
68067         * conform/data/monetary.h-data: Likewise.
68068         * conform/data/mqueue.h-data: Likewise.
68069         * conform/data/ndbm.h-data: Likewise.
68070         * conform/data/net/if.h-data: Likewise.
68071         * conform/data/netdb.h-data: Likewise.
68072         * conform/data/netinet/in.h-data: Likewise.
68073         * conform/data/nl_types.h-data: Likewise.
68074         * conform/data/poll.h-data: Likewise.
68075         * conform/data/pthread.h-data: Likewise.
68076         * conform/data/pwd.h-data: Likewise.
68077         * conform/data/regex.h-data: Likewise.
68078         * conform/data/sched.h-data: Likewise.
68079         * conform/data/search.h-data: Likewise.
68080         * conform/data/semaphore.h-data: Likewise.
68081         * conform/data/setjmp.h-data: Likewise.
68082         * conform/data/signal.h-data: Likewise.
68083         * conform/data/spawn.h-data: Likewise.
68084         * conform/data/stdarg.h-data: Likewise.
68085         * conform/data/stdio.h-data: Likewise.
68086         * conform/data/stdlib.h-data: Likewise.
68087         * conform/data/string.h-data: Likewise.
68088         * conform/data/strings.h-data: Likewise.
68089         * conform/data/stropts.h-data: Likewise.
68090         * conform/data/sys/ipc.h-data: Likewise.
68091         * conform/data/sys/mman.h-data: Likewise.
68092         * conform/data/sys/msg.h-data: Likewise.
68093         * conform/data/sys/resource.h-data: Likewise.
68094         * conform/data/sys/select.h-data: Likewise.
68095         * conform/data/sys/sem.h-data: Likewise.
68096         * conform/data/sys/shm.h-data: Likewise.
68097         * conform/data/sys/socket.h-data: Likewise.
68098         * conform/data/sys/stat.h-data: Likewise.
68099         * conform/data/sys/statvfs.h-data: Likewise.
68100         * conform/data/sys/time.h-data: Likewise.
68101         * conform/data/sys/timeb.h-data: Likewise.
68102         * conform/data/sys/times.h-data: Likewise.
68103         * conform/data/sys/types.h-data: Likewise.
68104         * conform/data/sys/uio.h-data: Likewise.
68105         * conform/data/sys/un.h-data: Likewise.
68106         * conform/data/sys/utsname.h-data: Likewise.
68107         * conform/data/sys/wait.h-data: Likewise.
68108         * conform/data/syslog.h-data: Likewise.
68109         * conform/data/tar.h-data: Likewise.
68110         * conform/data/termios.h-data: Likewise.
68111         * conform/data/utime.h-data: Likewise.
68112         * conform/data/utmpx.h-data: Likewise.
68113         * conform/data/varargs.h-data: Likewise.
68114         * conform/data/wchar.h-data: Likewise.
68115         * conform/data/wctype.h-data: Likewise.
68116         * conform/data/wordexp.h-data: Likewise.
68117
68118         * include/stropts.h: New file.
68119         * include/uchar.h: New file.
68120         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68121         * include/assert.h: Likewise.
68122         * include/ctype.h: Likewise.
68123         * include/dirent.h: Likewise.
68124         * include/dlfcn.h: Likewise.
68125         * include/fcntl.h: Likewise.
68126         * include/fnmatch.h: Likewise.
68127         * include/glob.h: Likewise.
68128         * include/grp.h: Likewise.
68129         * include/libio.h: Likewise.
68130         * include/locale.h: Likewise.
68131         * include/math.h: Likewise.
68132         * include/net/if.h: Likewise.
68133         * include/netdb.h: Likewise.
68134         * include/netinet/in.h: Likewise.
68135         * include/pthread.h: Likewise.
68136         * include/pwd.h: Likewise.
68137         * include/regex.h: Likewise.
68138         * include/sched.h: Likewise.
68139         * include/search.h: Likewise.
68140         * include/setjmp.h: Likewise.
68141         * include/signal.h: Likewise.
68142         * include/stdio.h: Likewise.
68143         * include/stdlib.h: Likewise.
68144         * include/string.h: Likewise.
68145         * include/sys/cdefs.h: Likewise.
68146         * include/sys/mman.h: Likewise.
68147         * include/sys/msg.h: Likewise.
68148         * include/sys/resource.h: Likewise.
68149         * include/sys/select.h: Likewise.
68150         * include/sys/socket.h: Likewise.
68151         * include/sys/stat.h: Likewise.
68152         * include/sys/statvfs.h: Likewise.
68153         * include/sys/time.h: Likewise.
68154         * include/sys/times.h: Likewise.
68155         * include/sys/uio.h: Likewise.
68156         * include/sys/utsname.h: Likewise.
68157         * include/sys/wait.h: Likewise.
68158         * include/termios.h: Likewise.
68159         * include/time.h: Likewise.
68160         * include/ulimit.h: Likewise.
68161         * include/unistd.h: Likewise.
68162         * include/utime.h: Likewise.
68163         * include/wchar.h: Likewise.
68164         * include/wctype.h: Likewise.
68165         * include/wordexp.h: Likewise.
68166
68167         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68168
68169         * time/time.h: TIME_UTC must be a macro.
68170         Make timespec_get available for ISO C11 only as well.
68171
68172 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68173
68174         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68175         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68176
68177 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68178
68179         * configure.in: Use -o not -a in test for unsupported multi-arch.
68180
68181 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68182
68183         * manual/texinfo.tex: Update to version 2012-01-19.16.
68184
68185 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68186
68187         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68188
68189 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68190
68191         [BZ #13738]
68192         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68193         * manual/fdl-1.3.texi: New file.
68194         * manual/fdl-1.1.texi: File removed.
68195
68196         [BZ #13738]
68197         * manual/libc.texinfo (FDL_VERSION): New @set.
68198         Use it for mention of FDL in cover text.
68199         (Documentation License): Use it in @include file name.
68200
68201 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68202             Roland McGrath  <roland@hack.frob.com>
68203
68204         [BZ #5461]
68205         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68206         (not LONG_LONG_MAX and LONG_LONG_MIN.
68207         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68208         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68209         name.
68210         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68211
68212 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68213
68214         [BZ #2547]
68215         [BZ #11365]
68216         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68217         manipulate bits before adding and subtracting TWO23[sx].
68218         * math/libm-test.inc (nearbyint_test): Add more tests.
68219
68220 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68221
68222         [BZ #2548]
68223         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68224         bits before adding and subtracting TWO23[sx].
68225         * math/libm-test.inc (rint_test): Add more tests.
68226         (rint_test_tonearest): Likewise.
68227         (rint_test_towardzero): Likewise.
68228         (rint_test_downward): Likewise.
68229         (rint_test_upward: Likewise.
68230
68231 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68232
68233         [BZ #10110]
68234         * include/stdc-predef.h: New file.  Extracted from features.h.
68235         * include/features.h: Include stdc-predef.h.
68236         * Makefile (headers): Add stdc-predef.h.
68237         * CONFORMANCE (Compiler limitations): Update.
68238
68239 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68240
68241         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68242
68243 2012-02-21  David S. Miller  <davem@davemloft.net>
68244
68245         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68246         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68247
68248 2012-02-20  David S. Miller  <davem@davemloft.net>
68249
68250         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68251         using a normal save/restore sequence, rather than allocating a
68252         dummy stack frame just to store a frame pointer and restore.
68253         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68254
68255 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68256
68257         * manual/install.texi: Fix stray word in line-wrapped comment.
68258
68259 2012-02-20  David S. Miller  <davem@davemloft.net>
68260
68261         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68262         both binutils and gcc support GOTDATA.
68263
68264         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68265         "rd %pc" in the PIC register setup sequences.
68266
68267         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68268         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68269         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68270         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68271         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68272         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68273         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68274         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68275         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68276         (SYSCALL_ERROR_HANDLER): Likewise.
68277         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68278         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68279         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68280         (SYSCALL_ERROR_HANDLER): Likewise.
68281
68282         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68283         (HAVE_GCC_GOTDATA): New.
68284         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68285         relocation support in both binutils and gcc.
68286         * sysdeps/sparc/elf/configure: Regenerate.
68287
68288         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68289         * sysdeps/sparc/sparc32/elf/configure: Delete.
68290         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68291         * sysdeps/sparc/sparc64/elf/configure: Delete.
68292         * sysdeps/sparc/elf/configure.in: New file.
68293         * sysdeps/sparc/elf/configure: Generate.
68294
68295         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68296         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68297         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68298         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68299         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68300
68301 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68302
68303         * manual/install.texi: Do not mention specific glibc version
68304         numbers.
68305         * manual/libc.texinfo (VERSION, UPDATED): Update.
68306         (@copying): Use @copyright{} and range of years.
68307
68308 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68309
68310         [BZ #13695]
68311         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68312         [crti.S not in sysdirs] (generated): Do not append.
68313         [crti.S not in sysdirs] (omit-deps): Likewise.
68314         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68315         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68316         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68317         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68318         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68319         Likewise.
68320         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68321         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68322         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68323         * csu/defs.awk: Remove file.
68324         * sysdeps/generic/initfini.c: Likewise.
68325         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68326         variable.
68327         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68328         Likewise.
68329
68330 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68331
68332         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68333         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68334         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68335         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68336         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68337         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68338         <bits/epoll.h>.
68339         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68340         (__EPOLL_PACKED): Define to empty if not defined by
68341         <bits/epoll.h>.
68342         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68343         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68344         bits/epoll.h.
68345
68346 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68347
68348         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68349         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68350         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68351         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68352         <bits/timerfd.h>.
68353         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68354         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68355         bits/timerfd.h.
68356
68357 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68358
68359         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68360         in C locale.
68361         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68362         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68363         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68365
68366 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68367
68368         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68369         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68370
68371 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68372
68373         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68374         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68375         defined.
68376         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68377         Likewise.
68378         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68379         entry for 2.16.
68380
68381 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68382
68383         * math/w_acos.c: Use non-signaling floating-point comparisons.
68384         * math/w_acosf.c: Likewise.
68385         * math/w_acosh.c: Likewise.
68386         * math/w_acoshf.c: Likewise.
68387         * math/w_acoshl.c: Likewise.
68388         * math/w_acosl.c: Likewise.
68389         * math/w_asin.c: Likewise.
68390         * math/w_asinf.c: Likewise.
68391         * math/w_asinl.c: Likewise.
68392         * math/w_atanh.c: Likewise.
68393         * math/w_atanhf.c: Likewise.
68394         * math/w_atanhl.c: Likewise.
68395         * math/w_exp2.c: Likewise.
68396         * math/w_exp2f.c: Likewise.
68397         * math/w_exp2l.c: Likewise.
68398         * math/w_j0.c: Likewise.
68399         * math/w_j0f.c: Likewise.
68400         * math/w_j0l.c: Likewise.
68401         * math/w_j1.c: Likewise.
68402         * math/w_j1f.c: Likewise.
68403         * math/w_j1l.c: Likewise.
68404         * math/w_jn.c: Likewise.
68405         * math/w_jnf.c: Likewise.
68406         * math/w_log.c: Likewise.
68407         * math/w_log10.c: Likewise.
68408         * math/w_log10f.c: Likewise.
68409         * math/w_log10l.c: Likewise.
68410         * math/w_log2.c: Likewise.
68411         * math/w_log2f.c: Likewise.
68412         * math/w_log2l.c: Likewise.
68413         * math/w_logf.c: Likewise.
68414         * math/w_logl.c: Likewise.
68415         * math/w_sqrt.c: Likewise.
68416         * math/w_sqrtf.c: Likewise.
68417         * math/w_sqrtl.c: Likewise.
68418         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68419         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68420         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68421         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68422         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68423
68424 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68425
68426         [BZ #9739]
68427         * manual/string.texi (strnlen): Use correct parameter name in
68428         equivalent expression.
68429
68430 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68431
68432         [BZ #11174]
68433         * manual/users.texi (seteuid): Consistently use neweuid for
68434         argument name.
68435
68436 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68437
68438         [BZ #13704]
68439         * manual/nss.texi (Services in the NSS configuration): Correct
68440         list of services in example configuration file.
68441
68442 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68443
68444         [BZ #11322]
68445         * manual/arith.texi: Remove statements about negative zero
68446         behaving identically to zero.
68447
68448 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68449
68450         [BZ #5993]
68451         * manual/install.texi: Do not document upgrading from libc5.
68452
68453 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68454
68455         [BZ #4596]
68456         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68457
68458 2012-02-18  David S. Miller  <davem@davemloft.net>
68459
68460         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68461         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68462         %o7 across the call.
68463         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68464         instead.
68465         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68466         SETUP_PIC_REG_LEAF.
68467         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68468         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68469         * sysdeps/sparc/crtn.S: Likewise.
68470
68471 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68472
68473         * aout/Makefile: Remove.
68474
68475 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68476
68477         [BZ #13058]
68478         * manual/examples/argp-ex1.c (main): Format definition in GNU
68479         style.
68480         * manual/examples/argp-ex2.c (main): Likewise.
68481         * manual/examples/argp-ex3.c (main): Likewise.
68482         * manual/examples/argp-ex4.c (main): Likewise.
68483         * manual/examples/longopt.c (main): Use new-style prototype
68484         definition.
68485         * manual/examples/strncat.c (main): Specify return type and use
68486         (void) for arguments.
68487         * manual/examples/subopt.c (main): Use char **argv argument.
68488
68489 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68490
68491         [BZ #5077]
68492         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68493         rounding modes.
68494
68495 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68496
68497         [BZ #6907]
68498         * manual/string.texi (strchr): Change when strchrnul is
68499         recommended.
68500
68501 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68502
68503         [BZ #174]
68504         * manual/locale.texi (setlocale): Document LOCPATH.
68505
68506 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68507
68508         [BZ #10210]
68509         * manual/process.texi (execle): Move @dots{} before last argument.
68510
68511 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68512
68513         [BZ #12047]
68514         * manual/charset.texi (Generic Charset Conversion): Fix typo
68515         (LC_TYPE -> LC_CTYPE).
68516
68517 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68518
68519         [BZ #5805]
68520         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68521         (scalbnf): Likewise.
68522         (scalbnl): Likewise.
68523         (scalbln): Likewise.
68524         (scalblnf): Likewise.
68525         (scalblnl): Likewise.
68526         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68527         (vwarnx): Likewise.
68528         (verr): Likewise.
68529         (verrx): Likewise.
68530         * manual/filesys.texi (telldir): Use braces around return type.
68531         * manual/llio.texi (mmap): Add space after comma.
68532         (mmap64): Likewise.
68533         * manual/math.texi (jn): Use @var{} on parameter names.
68534         (jnf): Likewise.
68535         (jnl): Likewise.
68536         (yn): Likewise.
68537         (ynf): Likewise.
68538         (ynl): Likewise.
68539         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68540         line.
68541         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68542         "...".
68543         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68544         (sched_get_priority_max): Likewise.
68545         * manual/signal.texi (sigvec): Add space after comma.
68546         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68547         names.
68548         (if_indextoname): Likewise.
68549         (if_freenameindex): Likewise.
68550         (sendto): Use ',' instead of '.' in prototype.
68551         * manual/startup.texi (syscall): Use @dots{} instead of literal
68552         "...".
68553         * manual/stdio.texi (__fpending): Separate initial words of
68554         paragraph from @deftypefun line.
68555         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68556         "...".
68557         (vsyslog): Use @var{} on parameter names.
68558         * manual/terminal.texi (stty): Use @var{} on parameter names.
68559         * manual/users.texi (getutmp): Use @var{} on parameter names.
68560         (getutmpx): Likewise.
68561
68562 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68563
68564         [BZ #6884]
68565         * manual/stdio.texi (fopen): Fix typos in description of
68566         ",ccs=STRING".
68567
68568 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68569
68570         [BZ #4026]
68571         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68572         get clock_id definition.
68573
68574 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68575
68576         [BZ #4822]
68577         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68578         (madvise): Cast every argument to void on its own.
68579
68580 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68581
68582         [BZ #9902]
68583         * manual/startup.texi (Exit Status): Fix typo.
68584
68585 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68586
68587         [BZ #10140]
68588         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68589         * manual/examples/argp-ex2.c: Likewise.
68590         * manual/examples/argp-ex3.c: Likewise.
68591
68592 2012-02-16  Richard Henderson  <rth@redhat.com>
68593
68594         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68595         * sysdeps/s390/s390-32/initfini.c: Remove.
68596         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68597         * sysdeps/s390/s390-64/initfini.c: Remove.
68598
68599 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68600
68601         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68602         compiler output for sysdeps/generic/initfini.c.
68603         * sysdeps/sh/elf/initfini.c: Remove file.
68604
68605 2012-02-16  David S. Miller  <davem@davemloft.net>
68606
68607         [BZ #11494]
68608         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68609
68610         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68611         * sysdeps/sparc/crti.S: New file.
68612         * sysdeps/sparc/crtn.S: New file.
68613         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68614         * sysdeps/sparc/sparc64/Makefile: Likewise.
68615
68616 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68617
68618         [BZ #3335]
68619         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68620
68621 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68622
68623         [BZ #4822]
68624         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68625
68626         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68627         (write, read, close): Likewise.
68628         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68629
68630 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68631
68632         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68633         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68634         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68635         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68636         <bits/signalfd.h>.
68637         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68638         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68639         bits/signalfd.h.
68640
68641 2012-02-14  Marek Polacek  <polacek@redhat.com>
68642
68643         * sysdeps/x86_64/crti.S: New file.
68644         * sysdeps/x86_64/crtn.S: New file.
68645         * sysdeps/x86_64/elf/initfini.c: Remove file.
68646
68647 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68648
68649         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68650         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68651         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68652         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68653         <bits/inotify.h>.
68654         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68655         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68656         bits/inotify.h.
68657
68658 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68659
68660         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68661         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68662         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68663         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68664         <bits/eventfd.h>.
68665         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68666         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68667         bits/eventfd.h.
68668
68669 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68670
68671         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68672         __feraiseexcept instead of feraiseexcept.
68673
68674         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68675         nanosleep invocations.
68676         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68677         strings, and add error checking for a nanosleep invocations.
68678
68679 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         Replace FSF snail mail address with URLs, as per GNU coding standards.
68682         Most of the snail mail addresses were wrong anyway, and omitting
68683         them makes the source code easier to maintain.  Almost all of the
68684         changes are to license notices and to locale LC_IDENTIFICATION
68685         addresses, except for this one:
68686         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68687         not its snail mail address.
68688
68689 2012-02-09  Richard Henderson  <rth@twiddle.net>
68690
68691         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68692         of kernel-features.h.
68693
68694         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68695
68696 2012-02-08  Marek Polacek  <polacek@redhat.com>
68697
68698         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68699         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68700         * sysdeps/gnu/_G_config.h: Likewise.
68701         * sysdeps/generic/_G_config.h: Likewise.
68702
68703 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68704
68705         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68706         tests.
68707         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68708
68709         * sysdeps/powerpc/powerpc32/crti.S: New file.
68710         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68711         * sysdeps/powerpc/powerpc64/crti.S: New file.
68712         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68713
68714         * Makeconfig (have-initfini): Don't set.
68715         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68716         * configure.in (nopic_initfini): Don't substitute.
68717         * config.h.in (HAVE_INITFINI): Don't #undef.
68718         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68719         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68720
68721 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68722
68723         Support crti.S and crtn.S provided directly by architectures.
68724         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68725         [crti.S in sysdirs] (omit-deps): Likewise.
68726         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68727         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68728         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68729         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68730         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68731         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68732         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68733         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68734         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68735         compiler output for sysdeps/generic/initfini.c.
68736         * sysdeps/i386/elf/Makefile: Remove file.
68737         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68738
68739 2012-02-07  Marek Polacek  <polacek@redhat.com>
68740
68741         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68742         * sysdeps/gnu/_G_config.h: Likewise.
68743         * sysdeps/mach/hurd/_G_config.h: Likewise.
68744
68745 2012-02-07  Marek Polacek  <polacek@redhat.com>
68746
68747         * math/Makefile (tests): Add tst-CMPLX2.
68748         * math/tst-CMPLX2.c: New file.
68749
68750 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68751
68752         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68753
68754         * math/libm-test.inc (jn_test): Add missing L suffix.
68755
68756 2012-02-06  Marek Polacek  <polacek@redhat.com>
68757
68758         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68759         * sysdeps/i386/fpu/e_powf.S: Likewise.
68760         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68761         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68762         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68763         * sysdeps/i386/fpu/e_pow.S: Likewise.
68764         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68765         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68766         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68767         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68768         * sysdeps/i386/fpu/e_log2.S: Likewise.
68769         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68770         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68771         * sysdeps/i386/fpu/e_powl.S: Likewise.
68772         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68773         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68774         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68775         * sysdeps/i386/fpu/e_logl.S: Likewise.
68776         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68777         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68778         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68779         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68780         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68781         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68782         * sysdeps/i386/fpu/e_log.S: Likewise.
68783         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68784         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68785         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68786         * sysdeps/i386/fpu/e_logf.S: Likewise.
68787         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68788         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68789         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68790         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68791         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68792         * sysdeps/i386/fpu/e_log10.S: Likewise.
68793         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68794         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68795         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68796         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68797         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68798         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68799         * sysdeps/i386/asm-syntax.h: Likewise.
68800         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68801         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68802         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68803         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68804         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68805         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68806         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68807         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68808         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68809         * sysdeps/powerpc/sysdep.h: Likewise.
68810         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68811         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68812
68813 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68814
68815         [BZ #411]
68816         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68817
68818 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68819
68820         * sysdeps/i386/sysdep.h: Include <features.h>.
68821         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68822         version.
68823
68824 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68825
68826         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68827         Define.
68828         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68829         LOAD_PIC_REG_STR.
68830
68831 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68832
68833         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68834         (SETUP_PIC_REG): Use GET_PC_THUNK.
68835         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68836         macro.
68837
68838 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68839
68840         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
68841         for non-PIC compilation.
68842         (SETUP_PIC_REG): Add .p2align directive.
68843         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
68844         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
68845         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
68846         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
68847         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
68848         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
68849         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
68850         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
68851         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
68852         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
68853         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
68854         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
68855         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
68856         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
68857         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
68858         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
68859         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
68860         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
68861         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
68862         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
68863         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
68864         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
68865         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
68866         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
68867         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
68868         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
68869         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
68870         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
68871         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
68872         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
68873         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
68874         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
68875         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
68876         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
68877         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
68878         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
68879         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
68880         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
68881         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
68882         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
68883         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
68884
68885 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68886
68887         * math/tst-CMPLX.c: Include <stdio.h>.
68888
68889 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
68890
68891         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
68892         float.
68893         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
68894         * sysdeps/sparc/bits/mathdef.h: Likewise.
68895
68896 2012-01-31  Marek Polacek  <polacek@redhat.com>
68897
68898         * libio/libio.h: Don't define _PARAMS.
68899         * locale/programs/config.h: Don't define PARAMS.
68900         * stdlib/strtol_l.c: Likewise.
68901         (__strtol_l): Remove PARAMS from the prototype.
68902
68903 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
68904
68905         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
68906         names.  Just use the correct names.  Remove unnecessary wrapper
68907         functions.
68908         * malloc/arena.c: Likewise.
68909         * malloc/hooks.c: Likewise.
68910
68911         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
68912         ARENA_TEST says not to.  Simplify test for creation of a new arena.
68913         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
68914
68915 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
68916
68917         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
68918         into tail calls.
68919         (update_get_addr): New function.
68920         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
68921         GET_ADDR_MODULE parameter.
68922
68923 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68924
68925         * crypt/cert.c: Remove __STDC__ conditionals.
68926         * crypt/crypt-entry.c: Likewise.
68927         * crypt/crypt_util.c: Likewise.
68928         * libio/filedoalloc.c: Likewise.
68929         * libio/fileops.c: Likewise.
68930         * libio/genops.c: Likewise.
68931         * libio/iofclose.c: Likewise.
68932         * libio/iofdopen.c: Likewise.
68933         * libio/iofopen.c: Likewise.
68934         * libio/iofopen64.c: Likewise.
68935         * libio/iogetdelim.c: Likewise.
68936         * libio/iopopen.c: Likewise.
68937         * libio/obprintf.c: Likewise.
68938         * libio/oldfileops.c: Likewise.
68939         * libio/oldiofclose.c: Likewise.
68940         * libio/oldiofdopen.c: Likewise.
68941         * libio/oldiofopen.c: Likewise.
68942         * libio/oldiopopen.c: Likewise.
68943         * libio/wfiledoalloc.c: Likewise.
68944         * libio/wgenops.c: Likewise.
68945         * locale/programs/xmalloc.c: Likewise.
68946         * misc/syslog.c: Likewise.
68947         * stdio-common/xbug.c: Likewise.
68948         * string/memchr.c: Likewise.
68949         * string/memcmp.c: Likewise.
68950         * string/memrchr.c: Likewise.
68951         * string/rawmemchr.c: Likewise.
68952         * sysdeps/posix/getcwd.c: Likewise.
68953         * time/strftime_l.c: Likewise.
68954
68955 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68956
68957         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
68958         * config.make.in (config-cflags-sse2avx): Define.
68959         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
68960         Fix typo.
68961
68962 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
68963
68964         * scripts/config.guess: Update from upstream config git repository.
68965         * scripts/config.sub: Likewise.
68966
68967 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
68968
68969         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
68970         (EM_NUM): Update.
68971         (R_TILEPRO_*, R_TILEGX_*): New macros.
68972
68973         * scripts/firstversions.awk: Fix bug in version range handling.
68974
68975         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
68976
68977         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
68978
68979         * include/sys/epoll.h: New file.
68980         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
68981         libc_hidden_def.
68982
68983 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
68984
68985         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
68986         Avoid unnecessary __WORDSIZE == 64 test.
68987         (fmaxf): Use VEX format if possible.
68988         (fmax): Likewise.
68989         (fminf): Likewise.
68990         (fmin): Likewise.
68991
68992         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
68993         * math/math_private.h: Remove libc_fegetround* and
68994         libc_fesetround*.
68995         * sysdeps/i386/configure.in: Check for -msse2avx.
68996         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
68997         also if SSE2AVX is defined.
68998         Remove libc_fegetround* and libc_fesetround*.
68999         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69000         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69001         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69002         of HAS_YMM_USABLE.
69003         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69004         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69005         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69006         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69007         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69008
69009         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69010
69011 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69012
69013         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69014         size is not set.
69015         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69016
69017 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69018
69019         [BZ #13618]
69020         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69021         relocation.
69022         * Makeconfig (libm): Define.
69023         * elf/Makefile: Add rules to build and run tst-relsort1.
69024         * elf/tst-relsort1.c: New file.
69025         * elf/tst-relsort1mod1.c: New file.
69026         * elf/tst-relsort1mod2.c: New file.
69027
69028 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69029
69030         * math/s_ldexp.c: Remove __STDC__ conditionals.
69031         * math/s_ldexpf.c: Likewise.
69032         * math/s_ldexpl.c: Likewise.
69033         * math/s_nextafter.c: Likewise.
69034         * math/s_nexttowardf.c: Likewise.
69035         * math/s_significand.c: Likewise.
69036         * math/s_significandf.c: Likewise.
69037         * math/s_significandl.c: Likewise.
69038         * math/w_jnl.c: Likewise.
69039         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69040         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69041         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69042         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69043         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69044         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69045         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69046         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69047         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69048         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69049         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69050         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69051         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69052         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69053         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69054         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69055         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69056         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69057         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69058         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69059         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69060         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69061         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69062         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69063         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69064         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69065         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69066         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69067         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69068         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69069         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69070         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69071         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69072         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69073         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69074         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69075         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69076         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69077         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69078         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69079         * sysdeps/ieee754/k_standard.c: Likewise.
69080         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69081         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69082         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69083         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69084         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69085         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69086         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69087         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69088         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69089         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69090         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69091         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69092         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69093         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69094         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69095         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69096         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69097         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69098         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69099         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69100         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69101         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69102         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69103         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69104         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69105         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69106         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69107         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69108         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69109         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69110         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69111         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69112         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69113         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69114         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69115         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69116         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69117         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69118         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69119         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69120         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69121         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69122         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69123         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69124         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69125         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69126         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69127         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69128         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69129         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69130         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69131         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69132         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69133         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69134         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69135         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69136         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69137         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69138         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69139         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69140         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69141         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69142         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69143         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69144         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69145         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69146         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69147         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69148         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69149         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69150         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69151         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69152         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69153         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69154         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69155         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69156         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69157         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69158         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69159         * sysdeps/ieee754/s_matherr.c: Likewise.
69160         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69161         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69162         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69163         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69164
69165 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69166
69167         * crypt/md5.h: Remove __STDC__ conditionals.
69168         * libio/libioP.h: Likewise.
69169         * locale/programs/config.h: Likewise.
69170         * sysdeps/generic/sysdep.h: Likewise.
69171         * sysdeps/i386/asm-syntax.h: Likewise.
69172         * sysdeps/s390/asm-syntax.h: Likewise.
69173         * sysdeps/unix/sysdep.h: Likewise.
69174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69176
69177 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69178
69179         * libio/libio.h: Remove __STDC__ conditionals.
69180         * malloc/obstack.h: Likewise.
69181         * math/complex.h: Likewise.
69182         * math/math.h: Likewise.
69183         * sysdeps/generic/_G_config.h: Likewise.
69184         * sysdeps/gnu/_G_config.h: Likewise.
69185         * sysdeps/mach/hurd/_G_config.h: Likewise.
69186         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69187         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69188         * sysdeps/sparc/bits/mathdef.h: Likewise.
69189
69190 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69191
69192         [BZ #13583]
69193         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69194         Clean up HAS_* macros.
69195         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69196         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69197         possible.
69198         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69199         HAS_AVX.
69200         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69201         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69202         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69203         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69204         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69205
69206 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69207
69208         * elf/tst-unique3.cc (gets): Remove declaration.
69209         * elf/tst-unique3lib.cc (gets): Likewise.
69210         * elf/tst-unique3lib2.cc (gets): Likewise.
69211         * elf/tst-unique4.cc (gets): Likewise.
69212
69213 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69214
69215         * include/stdio.h: Add C++ protection.  Add gets declarations and
69216         definitions.
69217         * debug/tst-chk1.c: Don't declare gets here.
69218         * stdio-common/tst-gets.c: Likewise.
69219
69220 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69221
69222         * posix/glob: Remove directory.
69223
69224 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69225
69226         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69227
69228 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69229
69230         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69231         of the non-standard EPFNOSUPPORT.
69232
69233 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69234
69235         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69236         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69237         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69238
69239 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69240
69241         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69242
69243 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69244
69245         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69246         transient errors.
69247         * nscd/grpcache.c (cache_addgr): Likewise.
69248         * nscd/hstcache.c (cache_addhst): Likewise.
69249         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69250         * nscd/pwdcache.c (cache_addpw): Likewise.
69251         * nscd/servicescache.c (cache_addserv): Likewise.
69252
69253 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69254
69255         * malloc/malloc.c: Various cleanups.
69256         * malloc/hooks.c: Likewise.
69257
69258         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69259         * stdlib/bug-fmtmsg1.c: New file.
69260
69261         * stdlib/fmtmsg.c (init): Add missing unlock.
69262         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69263
69264 2012-01-12  Marek Polacek  <polacek@redhat.com>
69265
69266         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69267         and _GNU_SOURCE.
69268
69269 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69270
69271         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69272         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69273         macro to ensure uniqueness of label name.
69274         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69275         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69276
69277 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69278
69279         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69280
69281         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69282         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69283         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69284         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69285
69286 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69287
69288         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69289
69290         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69291         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69292         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69293
69294         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69295
69296         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69297         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69298         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69299         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69300
69301         * math/bits/math-finite.h: Add ldexp support.
69302
69303 2012-01-10  Marek Polacek  <polacek@redhat.com>
69304
69305         * locale/programs/localedef.h (show_archive_content): Add noreturn
69306         attribute.
69307
69308 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69309
69310         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69311
69312 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69313
69314         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69315
69316         * io/Makefile (headers): Add bits/poll2.h.
69317
69318 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69319
69320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69321         typo #include statement.
69322
69323 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69324
69325         * include/sys/cdefs.h: Define __attribute_alloc_size.
69326         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69327         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69328         * elf/pldd.c: Likewise.
69329         * iconv/iconv_charmap.c: Likewise.
69330         * iconv/iconvconfig.c: Likewise.
69331         * iconv/strtab.c: Likewise.
69332         * locale/programs/locale.c: Likewise.
69333         * locale/programs/localedef.h: Likewise.
69334         * locale/programs/simple-hash.c: Likewise.
69335         * nscd/nscd.h: Likewise.
69336         * nss/makedb.c: Likewise.
69337         * sysdeps/generic/ldconfig.h: Likewise.
69338         * locale/programs/localedef.c: Remove xmalloc prototype.
69339         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69340
69341 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69342
69343         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69344         appropriate.
69345
69346 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69347
69348         * math/Makefile (tests): Add tst-CMPLX.
69349         * math/tst-CMPLX.c: New file.
69350
69351         * math/complex.h (CMPLXL): Fix typo.
69352
69353         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69354         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69355         GLIBC_2.16.
69356         * debug/tst-chk1.c: Add poll and ppoll tests.
69357         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69358         * include/sys/poll.h: Add hidden proto for ppoll.
69359         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69360         * sysdeps/mach/hurd/ppoll.c: Likewise.
69361         * io/ppoll.c: Likewise.
69362         * debug/poll_chk.c: New file.
69363         * debug/ppoll_chk.c: New file.
69364         * include/bits/poll2.h: New file.
69365         * io/bits/poll2.h: New file.
69366
69367         [BZ #1350]
69368         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69369
69370         * configure.in: static is always set to yes.  Remove.
69371         * config.make.in: Don't set build-static.
69372         * Makeconfig: Remove use of build-static.
69373         * dlfcn/Makefile: Likewise.
69374         * elf/Makefile: Likewise.
69375         * math/Makefile: Likewise.
69376         * misc/Makefile: Likewise.
69377         * nptl/Makefile: Likewise.
69378         * sysdeps/mach/hurd/Makefile: Likewise.
69379
69380         * configure.in: PWD_P is not used anymore.
69381         * config.make.in: Remove PWD_P entry.
69382
69383         * configure.in: Remove last remnants of RANLIB.
69384         No need to check for signed size_t anymore.
69385         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69386         and IA-64.
69387         Remove __builtin_expect test because we require at least gcc 3.4.
69388         * aclocal.m4: Likewise.
69389
69390         * wcsmbs/mbrtoc16.c: Implement using towc function.
69391         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69392         * wcsmbs/wcsmbsload.c: Likewise.
69393         * iconv/gconv_simple.c: Likewise.
69394         * iconv/gconv_int.h: Likewise.
69395         * iconv/gconv_builtin.h: Likewise.
69396         * iconv/iconv_prog.c: Remove CHAR16 handling.
69397
69398         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69399
69400         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69401
69402         * configure.in: Remove --with-elf and --enable-bounded options.
69403         Dont set base_machine for ia64.  More non-ELF conditions removed.
69404         Remove testing and setting of leading underscore information.
69405         * config.make.in (build-bounded): Set to no.
69406         * config.h.in: Remove NO_UNDERSCORES entry.
69407         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69408         them.
69409         * csu/start.c: Remove !NO_UNDERSCORE code.
69410         * locale/localeinfo.h: Likewise.
69411         * sysdeps/generic/machine-gmon.h: Likewise.
69412         * sysdeps/generic/sysdep.h: Likewise.
69413         * sysdeps/i386/sysdep.h: Likewise.
69414         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69415         * sysdeps/mach/sysdep.h: Likewise.
69416         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69417         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69418         * sysdeps/sh/sysdep.h: Likewise.
69419         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69420         * sysdeps/unix/i386/sysdep.S: Likewise.
69421         * sysdeps/unix/sparc/start.c: Likewise.
69422         * sysdeps/unix/sparc/sysdep.S: Likewise.
69423         * sysdeps/unix/sparc/sysdep.h: Likewise.
69424         * sysdeps/unix/start.c: Likewise.
69425         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69426         * sysdeps/x86_64/sysdep.h: Likewise.
69427
69428 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69429
69430         [BZ #13553]
69431         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69432         for non-gcc.
69433         * argp/argp-fmtstream.h: Use const instead __const.
69434         * argp/argp.h: Likewise.
69435         * assert/assert.h: Likewise.
69436         * bits/fenv.h: Likewise.
69437         * bits/sched.h: Likewise.
69438         * bits/sigset.h: Likewise.
69439         * bits/sigthread.h: Likewise.
69440         * catgets/nl_types.h: Likewise.
69441         * conform/data/pthread.h-data: Likewise.
69442         * crypt/crypt-private.h: Likewise.
69443         * crypt/crypt.h: Likewise.
69444         * crypt/crypt_util.c: Likewise.
69445         * ctype/ctype.h: Likewise.
69446         * debug/execinfo.h: Likewise.
69447         * debug/mbsnrtowcs_chk.c: Likewise.
69448         * debug/mbsrtowcs_chk.c: Likewise.
69449         * debug/wcsnrtombs_chk.c: Likewise.
69450         * debug/wcsrtombs_chk.c: Likewise.
69451         * debug/wcstombs_chk.c: Likewise.
69452         * dirent/dirent.h: Likewise.
69453         * dlfcn/dlfcn.h: Likewise.
69454         * elf/neededtest4.c: Likewise.
69455         * grp/grp.h: Likewise.
69456         * gshadow/gshadow.h: Likewise.
69457         * iconv/gconv.h: Likewise.
69458         * iconv/gconv_int.h: Likewise.
69459         * iconv/gconv_simple.c: Likewise.
69460         * iconv/iconv.h: Likewise.
69461         * iconv/loop.c: Likewise.
69462         * iconv/skeleton.c: Likewise.
69463         * include/aio.h: Likewise.
69464         * include/aliases.h: Likewise.
69465         * include/argz.h: Likewise.
69466         * include/arpa/inet.h: Likewise.
69467         * include/assert.h: Likewise.
69468         * include/dirent.h: Likewise.
69469         * include/dlfcn.h: Likewise.
69470         * include/execinfo.h: Likewise.
69471         * include/fcntl.h: Likewise.
69472         * include/fenv.h: Likewise.
69473         * include/glob.h: Likewise.
69474         * include/grp.h: Likewise.
69475         * include/libintl.h: Likewise.
69476         * include/mntent.h: Likewise.
69477         * include/netdb.h: Likewise.
69478         * include/pwd.h: Likewise.
69479         * include/rpc/netdb.h: Likewise.
69480         * include/sched.h: Likewise.
69481         * include/search.h: Likewise.
69482         * include/shadow.h: Likewise.
69483         * include/signal.h: Likewise.
69484         * include/stdio.h: Likewise.
69485         * include/stdlib.h: Likewise.
69486         * include/string.h: Likewise.
69487         * include/sys/socket.h: Likewise.
69488         * include/sys/stat.h: Likewise.
69489         * include/sys/statfs.h: Likewise.
69490         * include/sys/statvfs.h: Likewise.
69491         * include/sys/syslog.h: Likewise.
69492         * include/sys/time.h: Likewise.
69493         * include/sys/uio.h: Likewise.
69494         * include/time.h: Likewise.
69495         * include/unistd.h: Likewise.
69496         * include/utmp.h: Likewise.
69497         * include/wchar.h: Likewise.
69498         * include/wctype.h: Likewise.
69499         * inet/aliases.h: Likewise.
69500         * inet/arpa/inet.h: Likewise.
69501         * inet/netinet/ether.h: Likewise.
69502         * inet/netinet/in.h: Likewise.
69503         * intl/libintl.h: Likewise.
69504         * io/bits/fcntl2.h: Likewise.
69505         * io/fcntl.h: Likewise.
69506         * io/ftw.h: Likewise.
69507         * io/sys/poll.h: Likewise.
69508         * io/sys/stat.h: Likewise.
69509         * io/sys/statfs.h: Likewise.
69510         * io/sys/statvfs.h: Likewise.
69511         * io/utime.h: Likewise.
69512         * libio/bits/stdio.h: Likewise.
69513         * libio/bits/stdio2.h: Likewise.
69514         * libio/libio.h: Likewise.
69515         * libio/libioP.h: Likewise.
69516         * libio/stdio.h: Likewise.
69517         * locale/lc-ctype.c: Likewise.
69518         * locale/locale.h: Likewise.
69519         * login/utmp.h: Likewise.
69520         * malloc/arena.c: Likewise.
69521         * malloc/malloc.c: Likewise.
69522         * malloc/malloc.h: Likewise.
69523         * malloc/mcheck.c: Likewise.
69524         * malloc/mtrace.c: Likewise.
69525         * math/bits/mathcalls.h: Likewise.
69526         * math/fenv.h: Likewise.
69527         * math/math_private.h: Likewise.
69528         * misc/bits/error.h: Likewise.
69529         * misc/bits/syslog.h: Likewise.
69530         * misc/err.h: Likewise.
69531         * misc/error.h: Likewise.
69532         * misc/fstab.h: Likewise.
69533         * misc/mntent.h: Likewise.
69534         * misc/regexp.h: Likewise.
69535         * misc/search.h: Likewise.
69536         * misc/sgtty.h: Likewise.
69537         * misc/sys/mman.h: Likewise.
69538         * misc/sys/syslog.h: Likewise.
69539         * misc/sys/uio.h: Likewise.
69540         * misc/sys/xattr.h: Likewise.
69541         * misc/ttyent.h: Likewise.
69542         * nis/rpcsvc/ypclnt.h: Likewise.
69543         * nss/nss.h: Likewise.
69544         * posix/bits/unistd.h: Likewise.
69545         * posix/fnmatch.h: Likewise.
69546         * posix/glob.h: Likewise.
69547         * posix/sched.h: Likewise.
69548         * posix/spawn.h: Likewise.
69549         * posix/sys/wait.h: Likewise.
69550         * posix/unistd.h: Likewise.
69551         * posix/wordexp.h: Likewise.
69552         * pwd/pwd.h: Likewise.
69553         * resolv/netdb.h: Likewise.
69554         * resource/sys/resource.h: Likewise.
69555         * rt/aio.h: Likewise.
69556         * rt/bits/mqueue2.h: Likewise.
69557         * rt/mqueue.h: Likewise.
69558         * shadow/shadow.h: Likewise.
69559         * signal/signal.h: Likewise.
69560         * socket/send.c: Likewise.
69561         * socket/sendto.c: Likewise.
69562         * socket/sys/socket.h: Likewise.
69563         * stdio-common/printf.h: Likewise.
69564         * stdlib/bits/stdlib.h: Likewise.
69565         * stdlib/fmtmsg.h: Likewise.
69566         * stdlib/monetary.h: Likewise.
69567         * stdlib/stdlib.h: Likewise.
69568         * stdlib/ucontext.h: Likewise.
69569         * streams/stropts.h: Likewise.
69570         * string/argz.h: Likewise.
69571         * string/bits/string2.h: Likewise.
69572         * string/string.h: Likewise.
69573         * string/strings.h: Likewise.
69574         * sunrpc/rpc/auth.h: Likewise.
69575         * sunrpc/rpc/auth_des.h: Likewise.
69576         * sunrpc/rpc/clnt.h: Likewise.
69577         * sunrpc/rpc/netdb.h: Likewise.
69578         * sunrpc/rpc/pmap_clnt.h: Likewise.
69579         * sunrpc/rpc/xdr.h: Likewise.
69580         * sysdeps/generic/inttypes.h: Likewise.
69581         * sysdeps/generic/net/if.h: Likewise.
69582         * sysdeps/generic/sys/swap.h: Likewise.
69583         * sysdeps/gnu/net/if.h: Likewise.
69584         * sysdeps/gnu/utmpx.h: Likewise.
69585         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69586         * sysdeps/i386/i486/bits/string.h: Likewise.
69587         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69588         * sysdeps/s390/bits/string.h: Likewise.
69589         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69590         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69591         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69592         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69593         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69594         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69595         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69596         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69597         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69598         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69599         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69600         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69601         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69602         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69603         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69604         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69605         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69606         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69607         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69608         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69609         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69610         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69611         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69612         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69613         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69614         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69615         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69616         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69617         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69618         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69619         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69620         * sysvipc/sys/ipc.h: Likewise.
69621         * sysvipc/sys/msg.h: Likewise.
69622         * sysvipc/sys/sem.h: Likewise.
69623         * sysvipc/sys/shm.h: Likewise.
69624         * termios/termios.h: Likewise.
69625         * time/sys/time.h: Likewise.
69626         * time/time.h: Likewise.
69627         * wcsmbs/bits/wchar2.h: Likewise.
69628         * wcsmbs/uchar.h: Likewise.
69629         * wcsmbs/wchar.h: Likewise.
69630         * wctype/wctype.h: Likewise.
69631
69632         [BZ #13551]
69633         * Makeconfig: Remove all but ELF support including AIX support.
69634         * Makerules: Likewise.
69635         * config.h.in: Likewise.
69636         * config.make.in: Likewise.
69637         * configure: Likewise.
69638         * configure.in: Likewise.
69639         * csu/Makefile: Likewise.
69640         * csu/version.c: Likewise.
69641         * debug/Makefile: Likewise.
69642         * dlfcn/Makefile: Likewise.
69643         * elf/Makefile: Likewise.
69644         * extra-lib.mk: Likewise.
69645         * iconv/Makefile: Likewise.
69646         * include/libc-symbols.h: Likewise.
69647         * include/shlib-compat.h: Likewise.
69648         * resolv/Makefile: Likewise.
69649         * resolv/res_libc.c: Likewise.
69650         * rt/Makefile: Likewise.
69651         * sysdeps/i386/asm-syntax.h: Likewise.
69652         * sysdeps/i386/sysdep.h: Likewise.
69653         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69654         * sysdeps/mach/sysdep.h: Likewise.
69655         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69656         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69657         * sysdeps/s390/asm-syntax.h: Likewise.
69658         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69659         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69660         * sysdeps/sh/sysdep.h: Likewise.
69661         * sysdeps/unix/sparc/sysdep.h: Likewise.
69662         * sysdeps/wordsize-32/divdi3.c: Likewise.
69663         * sysdeps/x86_64/sysdep.h: Likewise.
69664
69665         * argp/Versions: Remove _argp_unlock_xxx.
69666
69667         [BZ #13559]
69668         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69669         * abilist/libBrokenLocale.abilist: Likewise.
69670         * abilist/libanl.abilist: Likewise.
69671         * abilist/libc.abilist: Likewise.
69672         * abilist/libcrypt.abilist: Likewise.
69673         * abilist/libdl.abilist: Likewise.
69674         * abilist/libm.abilist: Likewise.
69675         * abilist/libnsl.abilist: Likewise.
69676         * abilist/libpthread.abilist: Likewise.
69677         * abilist/libresolv.abilist: Likewise.
69678         * abilist/librt.abilist: Likewise.
69679         * abilist/libthread_db.abilist: Likewise.
69680         * abilist/libutil.abilist: Likewise.
69681         * abilist/libnss_db.abilist: New file.
69682
69683         * scripts/abilist.awk: Add support for indirect functions.
69684
69685         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69686
69687         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69688
69689         * shlib-versions: Remove entries for ports architectures.
69690
69691         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69692         files in ports.
69693         * elf/stackguard-macros.h: Remove support for IA-64.
69694         * elf/tst-auditmod1.c: Likewise.
69695         * sysdeps/generic/ldsodefs.h: Likewise.
69696
69697         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69698         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69699         configure files.
69700
69701         [BZ #13552]
69702         * configure.in: Remove --enable-omitfp support.
69703         * FAQ.in: Adjust.
69704         * config.make.in: Likewise.
69705         * Makeconfig: Likewise.
69706         * manual/install.texi: Likewise.
69707
69708         In case anyone cares, the IA-64 architecture could move to ports.
69709         * sysdeps/ia64/*: Removed.
69710         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69711         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69712
69713         [BZ #13555]
69714         * configure.in: Remove entries for unsupported architectures.
69715
69716         [BZ #13533]
69717         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69718         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69719         routines.
69720         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69721         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69722         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69723         fall back to using wcrtomb.
69724         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69725         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69726         renaming.
69727         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69728         * wcsmbs/tst-c16c32-1.c: New file.
69729
69730         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69731         local variable.
69732
69733         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69734
69735         * elf/tst-unique3.cc: Add explicit declaration of gets.
69736         * elf/tst-unique3lib.cc: Likewise.
69737         * elf/tst-unique3lib2.cc: Likewise.
69738         * elf/tst-unique4.cc: Likewise.
69739
69740         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69741
69742 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69743
69744         [BZ #13566]
69745         * assert/assert.h (static_assert): Don't define for C++.
69746         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69747         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69748
69749 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69750
69751         * iconv/loop.c (single loop): Fix assertion in storing of
69752         remaining bytes.
69753
69754         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69755
69756 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69757
69758         * posix/getconf.c: Update copyright year.
69759         * nss/getent.c: Likewise.
69760         * nss/makedb.c: Likewise.
69761         * iconv/iconvconfig.c: Likewise.
69762         * iconv/iconv_prog.c: Likewise.
69763         * elf/ldconfig.c: Likewise.
69764         * elf/pldd.c: Likewise.
69765         * elf/sotruss.ksh: Likewise.
69766         * catgets/gencat.c: Likewise.
69767         * csu/version.c: Likewise.
69768         * elf/ldd.bash.in: Likewise.
69769         * elf/sprof.c (print_version): Likewise.
69770         * locale/programs/locale.c: Likewise.
69771         * locale/programs/localedef.c: Likewise.
69772         * login/programs/pt_chown.c: Likewise.
69773         * nscd/nscd.c (print_version): Likewise.
69774         * debug/xtrace.sh: Likewise.
69775         * malloc/memusage.sh: Likewise.
69776         * malloc/mtrace.pl: Likewise.
69777         * debug/catchsegv.sh: Likewise.
69778
69779 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69780
69781         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69782         pure attribute.
69783
69784 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69785
69786         [BZ #13533]
69787         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69788         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69789         transformations.
69790         * iconv/gconv_int.h: Likewise.
69791         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69792         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69793         from libc for GLIBC_2.16.
69794         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69795         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69796         * wcsmbs/uchar.h: Really define mbstate_t.
69797         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69798         * wcsmbs/c16rtomb.c: New file.
69799         * wcsmbs/mbrtoc16.c: New file.
69800         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69801         for C/POSIX locale.
69802         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69803         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69804
69805         * wcsmbs/wchar.h: Add missing __restrict.
69806
69807 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69808
69809         [BZ #13532]
69810         * time/Makefile (routines): Add timespec_get.
69811         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69812         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69813         timespec for ISO C11.
69814         * time/timespec_get.c: New file.
69815         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69816         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69817
69818         [BZ #13531]
69819         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69820         * stdlib/stdlib.h: Declare aligned_alloc.
69821         * Versions.def: Add GLIBC_2.16 for libc.
69822         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69823
69824         [BZ 13527]
69825         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69826         ISO C11.
69827
69828         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69829         code.
69830
69831         [BZ #13528]
69832         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69833
69834         [BZ #13529]
69835         * assert/assert.h (static_assert): Define.
69836
69837         * version.h: Update for 2.16 development version.
69838
69839         [BZ #13526]
69840         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
69841         _ISOC11_SOURCE.
69842
69843         * version.h (RELEASE): Bump for 2.15 release.
69844         * include/features.h (__GLIBC_MINOR__): Bump to 15.
69845
69846         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
69847         Patch by Marek Polacek <mpolacek@redhat.com>.
69848
69849         * bits/byteswap.h: Protect long long constants with __extension__.
69850         * sysdeps/i386/bits/byteswap.h: Likewise.
69851         * sysdeps/ia64/bits/byteswap.h: Likewise.
69852         * sysdeps/s390/bits/byteswap.h: Likewise.
69853         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69854
69855 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69856
69857         [BZ #13540]
69858         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
69859         destination buffer.
69860         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
69861
69862 2011-12-23  Marek Polacek  <polacek@redhat.com>
69863
69864         * elf/dl-addr.c (determine_info): Add inline keyword.
69865         * elf/tst-auditmod4b.c (check_avx): Likewise.
69866         * elf/tst-auditmod6b.c (check_avx): Likewise.
69867         * elf/tst-auditmod6c.c (check_avx): Likewise.
69868         * elf/tst-auditmod7b.c (check_avx): Likewise.
69869
69870 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69871
69872         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
69873         !__SSE_MATH__.
69874
69875 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69876
69877         [BZ #13540]
69878         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
69879         processing for last bytes.
69880
69881 2011-08-06  Bruno Haible  <bruno@clisp.org>
69882
69883         [BZ #13061]
69884         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
69885         U+0385, not to U+1FEE.
69886
69887         [BZ #13062]
69888         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
69889         entry for U+00A5 U+0301.
69890
69891 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69892
69893         [BZ #13166]
69894         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
69895         buffer for the output is too small.
69896
69897         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
69898         optimization.
69899
69900         [BZ #13185]
69901         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
69902         SSE flags if possible.
69903
69904 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69905
69906         [BZ #13540]
69907         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
69908         processing for last bytes.
69909
69910 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
69911
69912         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
69913         (syscall-list-default-options, syscall-list-default-condition)
69914         (syscall-list-includes): Define.
69915         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
69916         list of ABIs and options and #if conditions for each ABI.  Do not
69917         handle common syscalls between ABIs specially.
69918         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
69919         Remove.
69920         (syscall-list-variants, syscall-list-32bit-options)
69921         (syscall-list-32bit-condition, syscall-list-64bit-options)
69922         (syscall-list-64bit-condition): Define.
69923         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
69924         (syscall-list-variants, syscall-list-32bit-options)
69925         (syscall-list-32bit-condition, syscall-list-64bit-options)
69926         (syscall-list-64bit-condition): Define.
69927         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
69928         Remove.
69929         (syscall-list-variants, syscall-list-32bit-options)
69930         (syscall-list-32bit-condition, syscall-list-64bit-options)
69931         (syscall-list-64bit-condition): Define.
69932         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
69933         Remove.
69934         (syscall-list-variants, syscall-list-32bit-options)
69935         (syscall-list-32bit-condition, syscall-list-64bit-options)
69936         (syscall-list-64bit-condition): Define.
69937
69938 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69939
69940         * locale/iso-639.def: Add brx entry.
69941
69942         [BZ #13328]
69943         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
69944         Proposed by Mariusz_Cukr <marcukr@op.pl>.
69945
69946         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
69947         __feraiseexcept_renamed.
69948
69949 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69950
69951         [BZ #13538]
69952         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
69953         EPOLLET with unsigned values.
69954         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69955         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69956
69957         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
69958         to large cancellation.
69959         * math/s_cacoshf.c: Likewise.
69960         * math/s_cacoshl.c: Likewise.
69961
69962 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
69963
69964         [BZ #13305]
69965         [BZ #12786]
69966         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
69967         * math/s_cacoshf.c: Likewise.
69968         * math/s_cacoshl.c: Likewise.
69969
69970 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
69971
69972         [BZ #13439]
69973         * iconv/gconv.h: Define __GCONV_SWAP.
69974         * iconvdata/unicode.c: The swap bit must be stored in __flags.
69975         * iconvdata/utf-16.c: Likewise.
69976         * iconvdata/utf-32.c: Likewise.
69977
69978 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
69979
69980         [BZ #13524]
69981         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
69982         numerator after shifting it by one limb.
69983
69984 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
69985
69986         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
69987         under [__USE_EXTERN_INLINES].
69988
69989 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
69990
69991         [BZ #13446]
69992         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
69993
69994 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69995
69996         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
69997         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
69998         optimized code.
69999         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70000         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70001         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70002         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70003         for strncasecmp/strncasecmp_l compilation.
70004         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70005         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70006
70007 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70008
70009         [BZ #13484]
70010         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70011         of __asm__.
70012
70013 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70014
70015         [BZ #13506]
70016         * time/tzfile.c (__tzfile_read): Check values from file header.
70017
70018 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70019
70020         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70021         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70022         * powerpc/powerpc32/dl-start.S: Likewise.
70023         * powerpc/powerpc32/elf/start.S: Likewise.
70024         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70025         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70026         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70027         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70028         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70029         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70030         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70031         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70032         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70033         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70034         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70035         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70036         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70037         * powerpc/powerpc32/memset.S: Likewise.
70038         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70039         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70040         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70041         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70042         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70043         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70044         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70045         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70046         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70047         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70048         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70049         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70050         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70051
70052 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70053
70054         * math/libm-test.inc: Added more nearbyint tests.
70055         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70056         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70057         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70058         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70059
70060 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70061
70062         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70063         FD_CLOEXEC.
70064
70065 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70066
70067         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70068         Add wcscpy-ssse3 wcscpy-c.
70069         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70070         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70071         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70072         * sysdeps/x86_64/wcschr.S: New file.
70073         * sysdeps/x86_64/wcsrchr.S: New file.
70074         * string/test-strcmp.c: Remove checking of wcscmp function for
70075         wrong alignments.
70076         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70077         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70078         wcsrchr-sse2 wcsrchr-c.
70079         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70080         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70081         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70082         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70083         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70084         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70085         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70086         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70087         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70088         * wcsmbc/wcschr.c (WCSCHR): New macro.
70089
70090 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70091
70092         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70093         * wcsmbs/test-wcsrchr.c: New file.
70094         * string/test-strrchr.c: Add wcsrchr support.
70095         (WIDE): New macro.
70096         * wcsmbs/test-wcscpy.c: New file.
70097         * string/test-strcpy.c: Add wcscpy support.
70098         (WIDE): New macro.
70099
70100 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70101
70102         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70103         the inner loop.
70104
70105 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70106
70107         [BZ #13472]
70108         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70109
70110 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70111
70112         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70113         Minor optimizations.
70114
70115         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70116         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70117         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70118
70119 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70120
70121         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70122         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70123         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70124         for gcc to avoid warnings.
70125         * inet/Makefile (tests): Add tst-checks.
70126         * inet/tst-checks.c: New file.
70127
70128         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70129         warning.
70130
70131         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70132         __wmemcmp_sse2.
70133
70134         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70135         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70136
70137         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70138
70139 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70140
70141         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70142         problem.
70143
70144         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70145
70146 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70147
70148         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70149         conditional on GCC version.
70150         (__arch_compare_and_exchange_val_8_acq)
70151         (__arch_compare_and_exchange_val_16_acq)
70152         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70153         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70154         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70155
70156 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70157
70158         * sysdeps/sh/backtrace.c: New file.
70159
70160 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70161
70162         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70163         parenthesis.
70164
70165 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70166
70167         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70168         falling back to utime.
70169
70170 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70171
70172         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70173         expectations for float.
70174
70175 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70176
70177         * locale/weight.h (findidx): Add parameter len.
70178         * locale/weightwc.h (findidx): Likewise.
70179         * posix/fnmatch_loop.c (FCT): Adjust caller.
70180         * posix/regcomp.c (build_equiv_class): Likewise.
70181         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70182         * posix/regexec.c (check_node_accept_bytes): Likewise.
70183         * string/strcoll_l.c (STRCOLL): Likewise.
70184         * string/strxfrm_l.c (STRXFRM): Likewise.
70185
70186 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70187
70188         * Makefile.in: Remove CVSOPT handling.
70189         * configure.in: Remove use of AC_REVISION.
70190         * iconvdata/Makefile (distribute): No need to filter out CVS.
70191         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70192         handling.
70193
70194 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70195
70196         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70197         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70198         [USE_AS_STRNCASECMP_L]: Likewise.
70199         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70200         NO_TLS_DIRECT_SEG_REFS.
70201         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70202         Fix argument offsets for non-PIC.
70203         [USE_AS_STRNCASECMP_L]: Likewise.
70204         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70205         NO_TLS_DIRECT_SEG_REFS.
70206
70207 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70208
70209         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70210         O_CLOEXEC.
70211         * locale/loadlocale.c (_nl_load_locale): Likewise.
70212
70213 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70214
70215         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70216         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70217         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70218         (SYSCALL_GETTIME): Set errno on error.
70219
70220         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70221         count references to noai6ai_cached.
70222
70223 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70224
70225         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70226
70227         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70228         FD_CLOEXEC for /proc/self/maps.
70229
70230         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70231         FD_CLOEXEC for /proc/meminfo.
70232
70233         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70234         gai.conf.
70235
70236         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70237         FD_CLOEXEC for given file.
70238
70239         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70240
70241         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70242         FD_CLOEXEC for /etc/hosts.
70243         (_gethtent): Likewise.
70244
70245         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70246
70247         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70248         cancellation and set FD_CLOEXEC for /etc/netgroup.
70249
70250         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70251         reading /etc/publickey.
70252
70253         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70254         allow cancellation when reading /etc/group.
70255
70256         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70257         cancellation.
70258         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70259
70260         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70261         when using data file.
70262
70263         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70264
70265         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70266         (write_nis_obj): Use "c" and "e" in fopen.
70267
70268         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70269
70270         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70271
70272         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70273
70274         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70275
70276         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70277         locale.alias.
70278
70279         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70280
70281         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70282
70283         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70284
70285         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70286         file parsing and set FD_CLOEXEC.
70287
70288 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70289
70290         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70291
70292 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70293
70294         * malloc/arena.c (arena_get2): Don't call reused_arena when
70295         _int_new_arena failed.
70296
70297 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70298
70299         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70300         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70301         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70302         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70303         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70304         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70305         to compile strcasecmp and strncasecmp.
70306         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70307         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70308
70309         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70310
70311 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70312
70313         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70314         locale-defines.sym to gen-as-const-headers.
70315         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70316         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70317         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70318         to compile strcasecmp and strncasecmp.
70319         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70320         strcasecmp_l and strncasecmp_l.
70321         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70322         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70323         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70324         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70325         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70326         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70327         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70328         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70329         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70330         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70331         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70332
70333 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70334
70335         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70336         result of SYSDEP_GETTIME_CPU to retval.
70337         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70338         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70339
70340         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70341         variable.
70342
70343         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70344         mantissa words.
70345         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70346
70347         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70348         from unused variable.
70349
70350         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70351         DWARF definitions.
70352         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70353         for assembling.
70354
70355         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70356         over namespaces.
70357
70358         * sunrpc/rpc_prot.c (rejected): Fix case value.
70359
70360         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70361         unsigned long long int to avoid warnings in shift.
70362
70363         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70364         of use of trans.
70365         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70366         variable tmp.
70367
70368         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70369         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70370         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70371
70372         * nis/nis_table.c (nis_list): Use variable of correct type for
70373         result of __follow_path call.
70374
70375 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70376
70377         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70378         of math functions ceil, trunc, floor, round, and sqrt, when
70379         avaliable on the platform.
70380         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70381         name clash.
70382         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70383         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70384         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70385
70386 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70387
70388         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70389         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70390
70391 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70392
70393         * include/unistd.h: Fix __readlink return type.
70394         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70395
70396 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70397
70398         * stdlib/ucontext.h: Undo last change for makecontext.
70399
70400 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70401
70402         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70403
70404         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70405         * setjmp/setjmp.h: Mark functions as non-leaf.
70406         * setjmp/bits/setjmp2.h: Likewise.
70407         * stdlib/ucontext.h: Likewise.
70408
70409 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70410
70411         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70412         (reused_arena): Don't check arena limit.
70413         (arena_get2): Atomically check arena limit.
70414
70415 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70416
70417         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70418         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70419
70420         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70421         instructions.
70422
70423 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70424
70425         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70426         handler when locking.
70427
70428         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70429         Fix size of allocated buffer.
70430
70431 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70432
70433         [BZ #10103]
70434         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70435         declarations for long double functions.
70436         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70437
70438         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70439
70440 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70441
70442         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70443         installed.
70444
70445         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70446         is disabled.
70447
70448 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70449
70450         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70451
70452 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70453
70454         * include/alloca.h (stackinfo_alloca_round): Define.
70455         (extend_alloca): Use it.
70456         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70457         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70458         here.
70459
70460         * scripts/check-local-headers.sh: Ignore libaudit.h.
70461
70462         * nscd/Makefile (extra-objs): Make recursively expanded.
70463
70464 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70465
70466         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70467         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70468
70469         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70470         * posix/tst-rfc3484-2.c: Likewise.
70471         * posix/tst-rfc3484-3.c: Likewise.
70472
70473         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70474         process_vm_writev.
70475         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70476         process_vm_writev.
70477         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70478         process_vm_writev from libc using GLIBC_2.15 version.
70479
70480         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70481
70482 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70483
70484         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70485         stack usage.
70486
70487 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70488
70489         [BZ #13367]
70490         * nss/getent.c (initgroups_keys): Show error message in case no group
70491         names are given.
70492
70493         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70494         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70495         __bump_nl_timestamp.
70496         * nscd/connections (nscd_init): When host database is served open
70497         netlink socket and request notification about configuration changes.
70498         (main_loop_poll): Track netlink file descriptor and bump timestamp
70499         in case data becomes available.
70500         (main_loop_epoll): Likewise.
70501         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70502         (database_pers_head): Add extra_data fileds.
70503         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70504         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70505         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70506         Adjust caller.
70507         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70508         in6ai data, call __free_in6ai.
70509         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70510         Add -DHAVE_NETLINK.
70511         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70512         interface information.  Reuse previous data if netlink timestamp
70513         is not changed.
70514         (__bump_nl_timestamp): New function.
70515         (__free_in6ai): New function.
70516
70517 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70518
70519         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70520         close_not_cancel_no_status here.
70521         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70522
70523 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70524
70525         [BZ #13276]
70526         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70527         return value.
70528
70529         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70530         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70531         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70532
70533 2011-07-03  Andreas Jaeger  <aj@suse.de>
70534
70535         [BZ #10709]
70536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70537         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70538         * math/libm-test.inc (sin_test): Add test case.
70539
70540 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70541
70542         [BZ #13337]
70543         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70544         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70545
70546         * elf/chroot_canon.c (chroot_canon): Cleanups.
70547
70548         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70549
70550         [BZ #13335]
70551         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70552         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70553
70554         * string/test-strchr.c: Make usable for strchrnul testing.
70555         * string/test-strchrnul.c: New file.
70556         * string/Makefile (strop-tests): Add strchrnul.
70557
70558         * po/it.po: Update from translation team.
70559         * po/es.po: Likewise.
70560
70561 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70562
70563         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70564         the three constants needed as parameters.  Drop the others.
70565         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70566         __m128i_strloadu_tolower.
70567         Create and initialize variable zero and use it in all the places
70568         where _mm_setzero_si128 was used.
70569
70570         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70571         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70572         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70573         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70574         anymore.
70575         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70576         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70577         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70578         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70579         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70580         __mpranred, __mptan.
70581         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70582         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70583         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70584         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70585         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70586         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70587         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70588         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70589         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70590
70591 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70592
70593         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70594         redefine if SHARED.
70595         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70596
70597         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70598         wide char related routines to wcsmbs subdir.
70599
70600 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70601
70602         [BZ #13344]
70603         * misc/sys/cdefs.h (__THROWNL): Define.
70604         * posix/unistd.h: Use __THREADNL instead of __THREAD
70605         for memory synchronization functions.
70606
70607 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70608
70609         [BZ #13349]
70610         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70611         doesn't exist.
70612         * manual/stdio.texi (Obstack Streams): Node removed.
70613
70614 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70615
70616         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70617         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70618         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70619
70620         * math/math_private.h (math_force_eval): Allow non-addressable
70621         arguments.
70622         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70623
70624 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70625
70626         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70627         file is not needed.
70628
70629         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70630         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70631         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70632         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70633         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70634         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70635         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70636         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70637         Add AVX variants.
70638         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70639         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70640         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70641         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70642         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70643         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70644         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70645         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70646         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70647         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70648         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70649         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70650         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70651         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70652         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70653         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70654         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70655         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70656         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70657
70658         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70659         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70660
70661         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70662         place.  Use VEX encoding when compiling for AVX.
70663
70664 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70665
70666         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70667         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70668
70669         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70670
70671 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70672
70673         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70674         useless if() expression.
70675         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70676         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70677         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70678         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70679         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70680         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70681         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70682         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70683         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70684         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70685         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70686         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70687         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70688         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70689         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70690         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70691         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70692         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70693         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70694
70695         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70696
70697 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70698
70699         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70700         condition.
70701         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70702
70703 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70704
70705         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70706         .text section.  Avoid duplicate constants.
70707         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70708         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70709         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70710         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70711         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70712         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70713         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70714         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70715         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70716         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70717         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70718         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70719         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70720         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70721         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70722         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70723         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70724         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70725         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70726         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70727         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70728         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70729         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70730         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70731         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70732         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70733         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70734         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70735         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70736         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70737         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70738         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70739         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70740         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70741         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70742         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70743         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70744         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70745         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70746         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70747         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70748         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70749         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70750         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70751         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70752
70753 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70754
70755         * sysdeps/x86_64/dla.h: Move to ...
70756         * sysdeps/x86_64/fpu/dla.h: ...here.
70757         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70758         situations.  Use __builtin_fma only for gcc 4.6 and up.
70759
70760         * config.make.in: Add have-mfma4 entry.
70761         * configure.in: Substitute libc_cv_cc_fma4.
70762         * math/Makefile (dbl-only-routines): Add sincostab.
70763         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70764         Use __sincostab not sincos.
70765         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70766         name is a macro.
70767         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70768         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70769         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70770         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70771         using __copysign.
70772         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70773         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70774         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70775         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70776         and __inv.
70777         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70778         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70779         __copysign.
70780         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70781         define aliases when function name is a macro.
70782         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70783         sysdeps/ieee754/dbl-64/sincos.tbl.
70784         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70785         fma4-enabled routines.
70786         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70787         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70788         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70789         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70790         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70791         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70792         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70793         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70794         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70795         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70796         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70797         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70798         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70799         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70800         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70801         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70802         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70803         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70804         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70805         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70806         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70807         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70808         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70809         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70810         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70811         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70812         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70813         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70814         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70815         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70816
70817         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70818         rename.
70819         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70820         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70821         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70823         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70824         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70825         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70826         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70827
70828 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70829
70830         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70831
70832 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70833
70834         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70835
70836         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70837         prediction.
70838         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70839
70840         * string/strnlen.c: Don't define STRNLEN, reverse logic.
70841         Remove unused variable magic_bits.
70842         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
70843
70844         * string/strnlen.c: Define and use STRNLEN macro.
70845         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
70846         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
70847         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
70848         * wcsmbs/wcslen.c: Define and use WCSLEN.
70849         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
70850         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
70851         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
70852         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
70853         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
70854         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
70855         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
70856
70857 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70858
70859         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
70860         strnlen-sse2-no-bsf.
70861         Rename strlen-no-bsf to strlen-sse2-no-bsf.
70862         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
70863         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
70864         Add strnlen support.
70865         (USE_AS_STRNLEN): New macro.
70866         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
70867         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
70868         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
70869         * sysdeps/x86_64/wcslen.S: New file.
70870
70871 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
70872
70873         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
70874         XMM-moves are used for copying on small sizes.
70875
70876 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70877
70878         * wcsmbs/Makefile (strop-tests): Add wcschr.
70879         * wcsmbs/test-wcschr.c: New file.
70880         * string/test-strchr.c: Update.
70881         Add wcschr support.
70882         (WIDE): New macro.
70883
70884 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70885
70886         * wcsmbs/Makefile (strop-tests): Add wcslen.
70887         * wcsmbs/test-wcslen.c: New file.
70888         * string/test-strlen.c: Update.
70889         Add wcslen support.
70890         (WIDE): New macro.
70891
70892 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70893
70894         * po/it.po: Update from translation team.
70895
70896 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70897
70898         * sysdeps/x86_64/wcscmp.S: Update.
70899         Fix wrong comparison semantics.
70900         wcscmp shall use signed comparison not unsigned.
70901         Don't use substraction to avoid overflow bug.
70902         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
70903         * wcsmbc/wcscmp.c: Likewise.
70904         * string/test-strcmp.c: Likewise.
70905         Add new tests to check cases with negative values.
70906
70907 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70908
70909         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
70910         * sysdeps/x86_64/dla.h: ...here.  New file.
70911         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
70912         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70913         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70914         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70915         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70916         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70917         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70918         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70919         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70920
70921 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
70922
70923         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
70924         __ynl_finite aliases.
70925
70926 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70927
70928         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
70929
70930         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
70931         define DLA_FMA.
70932         [DLA_FMA] (EMULV): Use DLA_FMA.
70933         [DLA_FMA] (MUL12): Use EMULV.
70934         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
70935         that are not needed.
70936         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70937         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70938         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70939         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70940         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70941         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70942         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70943
70944 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
70945
70946         * math/s_nan.c: Undef __nan.
70947         * math/s_nanf.c: Undef __nanf.
70948         * math/s_nanl.c: Undef __nanl.
70949         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
70950         "math_private.h".
70951
70952 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70953
70954         * math/s_catan.c: Add branch predictions.
70955         * math/s_catanf.c: Likewise.
70956         * math/s_catanh.c: Likewise.
70957         * math/s_catanhf.c: Likewise.
70958         * math/s_catanhl.c: Likewise.
70959         * math/s_catanl.c: Likewise.
70960         * math/s_cexp.c: Likewise.
70961         * math/s_cexpf.c: Likewise.
70962         * math/s_cexpl.c: Likewise.
70963         * math/s_clog.c: Likewise.
70964         * math/s_clog10.c: Likewise.
70965         * math/s_clog10f.c: Likewise.
70966         * math/s_clog10l.c: Likewise.
70967         * math/s_clogf.c: Likewise.
70968         * math/s_clogl.c: Likewise.
70969         * math/s_csqrt.c: Likewise.
70970         * math/s_csqrtf.c: Likewise.
70971         * math/s_csqrtl.c: Likewise.
70972         * math/s_ctanf.c: Likewise.
70973         * math/s_ctanh.c: Likewise.
70974         * math/s_ctanhf.c: Likewise.
70975         * math/s_ctanhl.c: Likewise.
70976         * math/s_ctanl.c: Likewise.
70977
70978         * math/math_private.h: Define __nan, __nanf, __nanl.
70979         * math/s_cacosh.c: Include <math_private.h>.
70980         * math/s_cacoshl.c: Likewise.
70981         * math/s_casinh.c: Likewise.
70982         * math/s_casinhf.c: Likewise.
70983         * math/s_casinhl.c: Likewise.
70984         * math/s_ccos.c: Rely entire on ccosh.
70985         * math/s_ccosf.c: Rely entire on ccoshf.
70986         * math/s_ccosl.c: Rely entirely on ccoshl.
70987         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
70988         Remove tests for FE_INVALID.
70989         * math/s_ccoshf.c: Likewise.
70990         * math/s_ccoshl.c: Likewise.
70991         * math/s_csin.c: Likewise.
70992         * math/s_csinf.c: Likewise.
70993         * math/s_csinh.c Likewise.
70994         * math/s_csinhf.c: Likewise.
70995         * math/s_csinhl.c: Likewise.
70996         * math/s_csinl.c: Likewise.
70997         * math/s_ctan.c: Likewise.
70998         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
70999         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71000         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71001
71002 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71003
71004         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71005         compilation problems.
71006
71007         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71008         __builtin_expect.
71009
71010 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71011
71012         * sysdeps/i386/configure.in: Test for -mfma4 option.
71013         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71014         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71015         COMMON_CPUID_INDEX_80000001.
71016         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71017         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71018         use it if FMA3 is not supported.
71019         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71020
71021         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71022         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71023
71024 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71025
71026         [BZ #12892]
71027         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71028         it would create a cycle with a link time dependency.
71029
71030 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71031
71032         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71033         instruction.
71034         * string/Makefile (strop-tests): Add rawmemchr.
71035         * string/test-rawmemchr.c: New file.
71036
71037         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71038         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71039         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71040         when compiling str{,n}casecmp and when AVX is available.  Hook up
71041         new optimized code in initializers.
71042
71043 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71044
71045         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71046         __feraiseexcept instead of feraiseexcept.
71047
71048 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71049
71050         * math/math_private.h: Define defaults for libc_fetestexcept and
71051         libc_feupdateenv.
71052         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71053         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71054         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71055         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71056         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71057         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71058         libc_fetestexcept and libc_feupdateenv.
71059
71060         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71061         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71062         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71063         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71064         libc_feholdexcept_setround.
71065
71066         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71067         Add s_nearbyint-c and s_nearbyintf-c.
71068         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71069         nearbyintf inlines.
71070         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71071         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71072         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71073         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71074
71075         * math/math_private.h: Define defaults for libc_fegetround,
71076         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71077         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71078         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71079         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71080         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71081         standard functions.
71082         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71083         Remove comments and hacks for old compiler versions.
71084         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71085         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71086         libc_feholdexceptl.
71087
71088 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71089
71090         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71091         (__feraiseexcept_renamed): Add __NTH.
71092         (feraiseexcept): Add __NTH.  Rename local variables to fix
71093         namespace violations.
71094
71095 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71096
71097         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71098
71099         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71100
71101         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71102         recently added interfaces.
71103         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71104
71105         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71106         about macro parameter expansion.
71107
71108         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71109         __NO_MATH_INLINES is defined.  Cleanups.
71110
71111         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71112         and __floorf is target has SSE4.1.
71113         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71114         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71115         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71116         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71117
71118         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71119         name.
71120         (floorf): Likewise.
71121
71122         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71123
71124 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71125
71126         * misc/sys/cdefs.h: Fix last change.
71127
71128         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71129         database lookup.
71130
71131 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71132
71133         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71134
71135         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71136         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71137         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71138         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71139         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71140         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71141         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71142         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71143         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71144         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71145         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71146         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71147         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71148         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71149         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71150         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71151         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71152         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71153         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71154         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71155         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71156         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71157
71158         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71159         ceil, ceilf, floor, floorf.
71160
71161         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71162         Perform IRELATIVE relocations last.
71163
71164         * elf/do-rel.h: Add another parameter nrelative, replacing the
71165         local variable with the same name.  Change name of the function
71166         to end in Rel or Rela (uppercase).
71167         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71168         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71169         elf_dynamic_do_##reloc function.
71170
71171 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71172
71173         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71174         is sufficient, at least on modern CPUs.
71175
71176         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71177
71178         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71179         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71180
71181         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71182         __expl_finite.
71183         * math/bits/math-finite.h: Add entries for exp.
71184         * math/e_expl.c: Add __*_finite alias.
71185         * sysdeps/i386/fpu/e_exp.S: Likewise.
71186         * sysdeps/i386/fpu/e_expf.S: Likewise.
71187         * sysdeps/i386/fpu/e_expl.c: Likewise.
71188         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71189         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71190         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71191         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71192         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71193         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71194         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71195
71196         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71197         is sufficient, at least on modern CPUs.
71198
71199         * ctype/ctype-info.c (__ctype_init): Define.
71200         * include/ctype.h (__ctype_init): Declare.
71201         (__ctype_b_loc): The variable is always initialized.
71202         (__ctype_toupper_loc): Likewise.
71203         (__ctype_tolower_loc): Likewise.
71204         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71205         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71206
71207 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71208
71209         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71210
71211         * configure.in: Also look in $cxxmachine/include for C++ system
71212         headers.
71213
71214 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71215
71216         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71217         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71218         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71219         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71220         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71221         (USE_AS_WMEMCMP): New macro.
71222         Fixing indents.
71223         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71224         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71225         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71226         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71227         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71228         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71229         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71230         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71231         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71232         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71233         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71234         (USE_AS_WMEMCMP): New macro.
71235         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71236         * sysdeps/string/test-memcmp.c: Update.
71237         Fix simple_wmemcmp.
71238         Add new tests.
71239         * wcsmbs/wmemcmp.c: Update.
71240         (WMEMCMP): New macro.
71241         Fix overflow bug.
71242
71243 2011-10-12  Andreas Jaeger  <aj@suse.de>
71244
71245         [BZ #13268]
71246         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71247
71248 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71249
71250         * libio/iofwide.c (do_length): Avoid warning.
71251
71252         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71253
71254 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71255
71256         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71257
71258         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71259         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71260         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71261         * sysdeps/i386/i686/fpu/e_log.S: New file.
71262         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71263         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71264
71265         * ctype/ctype.h: Add support for inlined isXXX functions when
71266         compiling C++ code.
71267
71268 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71269
71270         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71271
71272         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71273
71274 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71275
71276         [BZ #13291]
71277         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71278
71279 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71280
71281         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71282         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71283         feraiseexcept.
71284
71285         * sysdeps/x86_64/memrchr.S: Check for zero size.
71286
71287         * string/stratcliff.c: Add memrchr tests.
71288
71289 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71290
71291         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71292         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71293         rawmemchr-sse2 rawmemchr-sse2-bsf.
71294         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71295         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71296         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71297         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71298         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71299         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71300         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71301         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71302         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71303         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71304         * string/memrchr.c (MEMRCHR): New macro.
71305
71306 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71307
71308         Add integration with gcc's -ffinite-math-only and optimize wrapper
71309         functions in libm.
71310         * Versions.def: Define GLIBC_2.15 version for libm.
71311         * math/Makefile (headers): Add bits/math-finite.h.
71312         * math/bits/math-finite.h: New file.
71313         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71314         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71315         * math/e_acoshl.c: Add __*_finite alias.
71316         * math/e_acosl.c: Likewise.
71317         * math/e_asinl.c: Likewise.
71318         * math/e_atan2l.c: Likewise.
71319         * math/e_atanhl.c: Likewise.
71320         * math/e_coshl.c: Likewise.
71321         * math/e_exp10.c: Likewise.
71322         * math/e_exp10f.c: Likewise.
71323         * math/e_exp10l.c: Likewise.
71324         * math/e_exp2l.c: Likewise.
71325         * math/e_fmodl.c: Likewise.
71326         * math/e_gammal_r.c: Likewise.
71327         * math/e_hypotl.c: Likewise.
71328         * math/e_j0l.c: Likewise.
71329         * math/e_j1l.c: Likewise.
71330         * math/e_jnl.c: Likewise.
71331         * math/e_lgammal_r.c: Likewise.
71332         * math/e_log10l.c: Likewise.
71333         * math/e_log2l.c: Likewise.
71334         * math/e_logl.c: Likewise.
71335         * math/e_powl.c: Likewise.
71336         * math/e_sinhl.c: Likewise.
71337         * math/e_sqrtl.c: Likewise.
71338         * math/e_scalb.c: Completely rewritten and optimized.
71339         * math/e_scalbf.c: Likewise.
71340         * math/e_scalbl.c: Likewise.
71341         * math/w_acos.c: Likewise.
71342         * math/w_acosf.c: Likewise.
71343         * math/w_acosl.c: Likewise.
71344         * math/w_acosh.c: Likewise.
71345         * math/w_acoshf.c: Likewise.
71346         * math/w_acoshl.c: Likewise.
71347         * math/w_asin.c: Likewise.
71348         * math/w_asinf.c: Likewise.
71349         * math/w_asinl.c: Likewise.
71350         * math/w_atan2.c: Likewise.
71351         * math/w_atan2f.c: Likewise.
71352         * math/w_atan2l.c: Likewise.
71353         * math/w_atanh.c: Likewise.
71354         * math/w_atanhf.c: Likewise.
71355         * math/w_atanhl.c: Likewise.
71356         * math/w_exp10.c: Likewise.
71357         * math/w_exp10f.c: Likewise.
71358         * math/w_exp10l.c: Likewise.
71359         * math/w_fmod.c: Likewise.
71360         * math/w_fmodf.c: Likewise.
71361         * math/w_fmodl.c: Likewise.
71362         * math/w_j0.c: Likewise.
71363         * math/w_j0f.c: Likewise.
71364         * math/w_j0l.c: Likewise.
71365         * math/w_j1.c: Likewise.
71366         * math/w_j1f.c: Likewise.
71367         * math/w_j1l.c: Likewise.
71368         * math/w_jn.c: Likewise.
71369         * math/w_jnf.c: Likewise.
71370         * math/w_log.c: Likewise.
71371         * math/w_logf.c: Likewise.
71372         * math/w_logl.c: Likewise.
71373         * math/w_log10.c: Likewise.
71374         * math/w_log10f.c: Likewise.
71375         * math/w_log10l.c: Likewise.
71376         * math/w_log2.c: Likewise.
71377         * math/w_log2f.c: Likewise.
71378         * math/w_log2l.c: Likewise.
71379         * math/w_pow.c: Likewise.
71380         * math/w_powf.c: Likewise.
71381         * math/w_powl.c: Likewise.
71382         * math/w_remainder.c: Likewise.
71383         * math/w_remainderf.c: Likewise.
71384         * math/w_remainderl.c: Likewise.
71385         * math/w_scalb.c: Likewise.
71386         * math/w_scalbf.c: Likewise.
71387         * math/w_scalbl.c: Likewise.
71388         * math/w_sqrt.c: Likewise.
71389         * math/w_sqrtf.c: Likewise.
71390         * math/w_sqrtl.c: Likewise.
71391         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71392         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71393         used.
71394         * math/math_private.h: Declare __kernel_standard_f.
71395         * math/w_cosh.c: Remove cruft and optimize a bit.
71396         * math/w_coshf.c: Likewise.
71397         * math/w_coshl.c: Likewise.
71398         * math/w_exp2.c: Likewise.
71399         * math/w_exp2f.c: Likewise.
71400         * math/w_exp2l.c: Likewise.
71401         * math/w_hypot.c: Likewise.
71402         * math/w_hypotf.c: Likewise.
71403         * math/w_hypotl.c: Likewise.
71404         * math/w_lgamma.c: Likewise.
71405         * math/w_lgamma_r.c: Likewise.
71406         * math/w_lgammaf.c: Likewise.
71407         * math/w_lgammaf_r.c: Likewise.
71408         * math/w_lgammal.c: Likewise.
71409         * math/w_lgammal_r.c: Likewise.
71410         * math/w_sinh.c: Likewise.
71411         * math/w_sinhf.c: Likewise.
71412         * math/w_sinhl.c: Likewise.
71413         * math/w_tgamma.c: Likewise.
71414         * math/w_tgammaf.c: Likewise.
71415         * math/w_tgammal.c: Likewise.
71416         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71417         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71418         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71419         Minor optimizations.  Pretty printing.  Remove cruft.
71420         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71421         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71422         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71423         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71424         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71425         * sysdeps/i386/fpu/e_asin.S: Likewise.
71426         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71427         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71428         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71429         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71430         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71431         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71432         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71433         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71434         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71435         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71436         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71437         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71438         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71439         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71440         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71441         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71442         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71443         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71444         * sysdeps/i386/fpu/e_log.S: Likewise.
71445         * sysdeps/i386/fpu/e_log10.S: Likewise.
71446         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71447         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71448         * sysdeps/i386/fpu/e_log2.S: Likewise.
71449         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71450         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71451         * sysdeps/i386/fpu/e_logf.S: Likewise.
71452         * sysdeps/i386/fpu/e_logl.S: Likewise.
71453         * sysdeps/i386/fpu/e_pow.S: Likewise.
71454         * sysdeps/i386/fpu/e_powf.S: Likewise.
71455         * sysdeps/i386/fpu/e_powl.S: Likewise.
71456         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71457         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71458         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71459         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71460         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71461         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71462         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71463         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71464         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71465         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71466         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71467         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71468         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71469         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71470         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71471         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71472         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71473         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71474         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71475         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71476         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71477         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71478         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71479         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71480         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71481         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71482         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71483         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71484         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71485         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71486         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71487         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71488         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71489         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71490         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71491         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71492         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71493         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71494         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71495         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71496         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71497         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71498         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71499         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71500         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71501         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71502         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71503         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71504         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71505         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71506         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71507         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71508         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71509         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71510         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71511         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71512         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71513         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71514         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71515         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71516         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71517         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71518         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71519         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71520         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71521         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71522         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71523         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71524         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71525         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71526         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71527         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71528         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71529         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71530         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71531         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71532         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71533         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71534         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71535         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71536         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71537         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71538         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71539         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71540         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71541         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71542         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71543         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71544         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71545         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71546         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71547         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71548         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71549         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71550         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71551         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71552         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71553         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71554         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71555         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71556         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71557         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71558         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71559         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71560         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71561         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71562         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71563         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71564         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71565         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71566         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71567         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71568         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71569         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71570         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71571         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71572         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71573         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71574         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71575         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71576         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71577         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71578         (__isnanf): Likewise.
71579         (__isinf_ns): Likewise.
71580         (__isinf_nsf): Likewise.
71581         (__finite): Likewise.
71582         (__finitef): Likewise.
71583         (__ieee754_sqrt): Define as macro.
71584         (__ieee754_sqrtf): Define as macro.
71585         (__ieee754_sqrtl): Define as macro.
71586         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71587         inlined copy.
71588         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71589         __FINITE_MATH_ONLY__ consistent.
71590         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71591
71592 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71593
71594         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71595         of rawmemchr.
71596
71597         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71598
71599 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71600
71601         * po/ja.po: Update from translation team.
71602
71603 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71604
71605         * locale/programs/locarchive.c (prepare_address_space): New function.
71606         (create_archive, enlarge_archive, open_archive): Use it.
71607
71608         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71609         inside [SHARED], where it is used.
71610
71611         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71612
71613         * nss/getent.c (netgroup_keys): Remove unused variable.
71614         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71615
71616 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71617
71618         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71619         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71620         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71621         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71622         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71623         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71624         * math/Makefile (libm-calls): Add s_isinf_ns.
71625         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71626         * math/multc3.c: Likewise.
71627         * math/s_casin.c: Likewise.
71628         * math/s_casinf.c: Likewise.
71629         * math/s_casinl.c: Likewise.
71630         * math/s_ccos.c: Likewise.
71631         * math/s_ccosf.c: Likewise.
71632         * math/s_ccosl.c: Likewise.
71633         * math/s_ctan.c: Likewise.
71634         * math/s_ctanf.c: Likewise.
71635         * math/s_ctanh.c: Likewise.
71636         * math/s_ctanhf.c: Likewise.
71637         * math/s_ctanhl.c: Likewise.
71638         * math/s_ctanl.c: Likewise.
71639         * math/w_fmod.c: Likewise.
71640         * math/w_fmodf.c: Likewise.
71641         * math/w_fmodl.c: Likewise.
71642         * math/w_remainder.c: Likewise.
71643         * math/w_remainderf.c: Likewise.
71644         * math/w_remainderl.c: Likewise.
71645         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71646         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71647         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71648         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71649         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71650         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71651         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71652         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71653
71654         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71655         of the number.
71656         * stdio-common/printf_fphex.c: Likewise.
71657         * stdio-common/printf_size.c: Likewise.
71658
71659         * math/e_exp10.c: Include math_private.h using <...> not "...".
71660         * math/e_exp10f.c: Likewise.
71661         * math/e_exp10l.c: Likewise.
71662         * math/e_exp2l.c: Likewise.
71663         * math/e_j0l.c: Likewise.
71664         * math/e_j1l.c: Likewise.
71665         * math/e_jnl.c: Likewise.
71666         * math/e_lgammal_r.c: Likewise.
71667         * math/e_rem_pio2l.c: Likewise.
71668         * math/e_scalb.c: Likewise.
71669         * math/e_scalbf.c: Likewise.
71670         * math/e_scalbl.c: Likewise.
71671         * math/k_cosl.c: Likewise.
71672         * math/k_sinl.c: Likewise.
71673         * math/k_tanl.c: Likewise.
71674         * math/s_cacoshf.c: Likewise.
71675         * math/s_catan.c: Likewise.
71676         * math/s_catanf.c: Likewise.
71677         * math/s_catanh.c: Likewise.
71678         * math/s_catanhf.c: Likewise.
71679         * math/s_catanhl.c: Likewise.
71680         * math/s_catanl.c: Likewise.
71681         * math/s_ccosh.c: Likewise.
71682         * math/s_ccoshf.c: Likewise.
71683         * math/s_ccoshl.c: Likewise.
71684         * math/s_cexp.c: Likewise.
71685         * math/s_cexpf.c: Likewise.
71686         * math/s_cexpl.c: Likewise.
71687         * math/s_clog.c: Likewise.
71688         * math/s_clog10.c: Likewise.
71689         * math/s_clog10f.c: Likewise.
71690         * math/s_clog10l.c: Likewise.
71691         * math/s_clogf.c: Likewise.
71692         * math/s_clogl.c: Likewise.
71693         * math/s_csin.c: Likewise.
71694         * math/s_csinf.c: Likewise.
71695         * math/s_csinh.c: Likewise.
71696         * math/s_csinhf.c: Likewise.
71697         * math/s_csinhl.c: Likewise.
71698         * math/s_csinl.c: Likewise.
71699         * math/s_csqrt.c: Likewise.
71700         * math/s_csqrtf.c: Likewise.
71701         * math/s_csqrtl.c: Likewise.
71702         * math/s_ctan.c: Likewise.
71703         * math/s_ctanf.c: Likewise.
71704         * math/s_ctanh.c: Likewise.
71705         * math/s_ctanhf.c: Likewise.
71706         * math/s_ctanhl.c: Likewise.
71707         * math/s_ctanl.c: Likewise.
71708         * math/s_ldexp.c: Likewise.
71709         * math/s_ldexpf.c: Likewise.
71710         * math/s_ldexpl.c: Likewise.
71711         * math/s_significand.c: Likewise.
71712         * math/s_significandf.c: Likewise.
71713         * math/s_significandl.c: Likewise.
71714         * math/w_acos.c: Likewise.
71715         * math/w_acosf.c: Likewise.
71716         * math/w_acosh.c: Likewise.
71717         * math/w_acoshf.c: Likewise.
71718         * math/w_acoshl.c: Likewise.
71719         * math/w_acosl.c: Likewise.
71720         * math/w_asin.c: Likewise.
71721         * math/w_asinf.c: Likewise.
71722         * math/w_asinl.c: Likewise.
71723         * math/w_atan2.c: Likewise.
71724         * math/w_atan2f.c: Likewise.
71725         * math/w_atan2l.c: Likewise.
71726         * math/w_atanh.c: Likewise.
71727         * math/w_atanhf.c: Likewise.
71728         * math/w_atanhl.c: Likewise.
71729         * math/w_cosh.c: Likewise.
71730         * math/w_coshf.c: Likewise.
71731         * math/w_coshl.c: Likewise.
71732         * math/w_dremf.c: Likewise.
71733         * math/w_exp10.c: Likewise.
71734         * math/w_exp10f.c: Likewise.
71735         * math/w_exp10l.c: Likewise.
71736         * math/w_exp2.c: Likewise.
71737         * math/w_exp2f.c: Likewise.
71738         * math/w_fmod.c: Likewise.
71739         * math/w_fmodf.c: Likewise.
71740         * math/w_fmodl.c: Likewise.
71741         * math/w_hypot.c: Likewise.
71742         * math/w_hypotf.c: Likewise.
71743         * math/w_hypotl.c: Likewise.
71744         * math/w_j0.c: Likewise.
71745         * math/w_j0f.c: Likewise.
71746         * math/w_j0l.c: Likewise.
71747         * math/w_j1.c: Likewise.
71748         * math/w_j1f.c: Likewise.
71749         * math/w_j1l.c: Likewise.
71750         * math/w_jn.c: Likewise.
71751         * math/w_jnf.c: Likewise.
71752         * math/w_jnl.c: Likewise.
71753         * math/w_lgamma.c: Likewise.
71754         * math/w_lgamma_r.c: Likewise.
71755         * math/w_lgammaf.c: Likewise.
71756         * math/w_lgammaf_r.c: Likewise.
71757         * math/w_lgammal.c: Likewise.
71758         * math/w_lgammal_r.c: Likewise.
71759         * math/w_log.c: Likewise.
71760         * math/w_log10.c: Likewise.
71761         * math/w_log10f.c: Likewise.
71762         * math/w_log10l.c: Likewise.
71763         * math/w_log2.c: Likewise.
71764         * math/w_log2f.c: Likewise.
71765         * math/w_log2l.c: Likewise.
71766         * math/w_logf.c: Likewise.
71767         * math/w_logl.c: Likewise.
71768         * math/w_pow.c: Likewise.
71769         * math/w_powf.c: Likewise.
71770         * math/w_powl.c: Likewise.
71771         * math/w_remainder.c: Likewise.
71772         * math/w_remainderf.c: Likewise.
71773         * math/w_remainderl.c: Likewise.
71774         * math/w_scalb.c: Likewise.
71775         * math/w_scalbf.c: Likewise.
71776         * math/w_scalbl.c: Likewise.
71777         * math/w_sinh.c: Likewise.
71778         * math/w_sinhf.c: Likewise.
71779         * math/w_sinhl.c: Likewise.
71780         * math/w_sqrt.c: Likewise.
71781         * math/w_sqrtf.c: Likewise.
71782         * math/w_sqrtl.c: Likewise.
71783         * math/w_tgamma.c: Likewise.
71784         * math/w_tgammaf.c: Likewise.
71785         * math/w_tgammal.c: Likewise.
71786
71787         * po/ja.po: Update from translation team.
71788
71789 2011-09-29  Andreas Jaeger  <aj@suse.de>
71790
71791         [BZ #13179]
71792         * sunrpc/netname.c (netname2host): Fix logic.
71793
71794         [BZ #6779]
71795         [BZ #6783]
71796         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71797         correctly.
71798         * math/w_remainder.c (__remainder): Likewise.
71799         * math/w_remainderf.c (__remainderf): Likewise.
71800         * math/libm-test.inc (remainder_test): Add test cases.
71801
71802 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71803
71804         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71805         sdiv_qrnnd.
71806
71807 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71808
71809         * string/test-memcmp.c: Avoid unncessary #defines.
71810         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71811
71812 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71813
71814         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71815         Use new sse2 version for core i3 - i7 as it's faster
71816         than sse42 version.
71817         (bit_Prefer_PMINUB_for_stringop): New.
71818         * sysdeps/x86_64/rawmemchr.S: Update.
71819         Replace with faster SSE2 version.
71820         * sysdeps/x86_64/memrchr.S: New file.
71821         * sysdeps/x86_64/memchr.S: Update.
71822         Replace with faster SSE2 version.
71823
71824 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71825
71826         * elf/dl-load.c (lose): Add cast to avoid warning.
71827
71828 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71829
71830         * po/ca.po: Update from translation team.
71831
71832         * inet/getnetgrent_r.c: Hook up nscd.
71833         * nscd/Makefile (routines): Add nscd_netgroup.
71834         (nscd-modules): Add netgroupcache.
71835         (CFLAGS-netgroupcache.c): Define.
71836         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71837         (cache_search): Add const to second parameter.
71838         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71839         INNETGR.
71840         (dbs): Add netgrdb entry.
71841         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
71842         (verify_persistent_db): Handle netgrdb.
71843         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
71844         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
71845         GETFDNETGR.
71846         (netgroup_response_header): Define.
71847         (innetgroup_response_header): Define.
71848         (datahead): Add netgroup_response_header and innetgroup_response_header
71849         elements.
71850         * nscd/nscd.conf: Add entries for netgroup cache.
71851         * nscd/nscd.h (dbtype): Add netgrdb.
71852         (_PATH_NSCD_NETGROUP_DB): Define.
71853         (netgroup_iov_disabled): Declare.
71854         (xmalloc, xcalloc, xrealloc): Move declarations here.
71855         (cache_search): Adjust prototype.
71856         Add netgroup-related prototypes.
71857         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
71858         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
71859         (__nscd_innetgr): Declare.
71860         * nscd/selinux.c (perms): Use access_vector_t as element type and
71861         add netgroup-related initializers.
71862         * nscd/netgroupcache.c: New file.
71863         * nscd/nscd_netgroup.c: New file.
71864         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
71865         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
71866         For four parameters use innetgr.
71867         * nss/nss_files/files-init.c: Add definition and callback for netgr.
71868         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
71869         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
71870         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
71871
71872         * nscd/connections.c (register_traced_file): Don't register file
71873         for disabled databases.
71874
71875 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
71876
71877         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
71878
71879         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
71880         from tree and freeing node.
71881
71882 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
71883
71884         * nss/nsswitch.c (__nss_database_lookup): Handle
71885         nss_parse_service_list out of memory case.
71886
71887 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
71888
71889         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
71890         out of memory case.
71891
71892 2011-10-04  Andreas Schwab  <schwab@redhat.com>
71893
71894         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
71895         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
71896         pass it down.
71897         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
71898         elf_machine_rela, elf_machine_lazy_rel.
71899         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
71900         (ELF_DYNAMIC_DO_REL): Likewise.
71901         (ELF_DYNAMIC_DO_RELA): Likewise.
71902         (ELF_DYNAMIC_RELOCATE): Likewise.
71903         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
71904         to ELF_DYNAMIC_DO_REL.
71905         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
71906         (dl_main): In trace mode always set __RTLD_NOIFUNC.
71907         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
71908         elf_machine_rela.
71909         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
71910         skip_ifunc, don't call ifunc function if non-zero.
71911         (elf_machine_rela): Likewise.
71912         (elf_machine_lazy_rel): Likewise.
71913         (elf_machine_lazy_rela): Likewise.
71914         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
71915         (elf_machine_lazy_rel): Likewise.
71916         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
71917         Likewise.
71918         (elf_machine_lazy_rel): Likewise.
71919         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
71920         Likewise.
71921         (elf_machine_lazy_rel): Likewise.
71922         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
71923         (elf_machine_lazy_rel): Likewise.
71924         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
71925         (elf_machine_lazy_rel): Likewise.
71926         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
71927         (elf_machine_lazy_rel): Likewise.
71928         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
71929         (elf_machine_lazy_rel): Likewise.
71930         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
71931         (elf_machine_lazy_rel): Likewise.
71932         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
71933         (elf_machine_lazy_rel): Likewise.
71934
71935 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
71936
71937         * nss/nss_files/files-init.c (_nss_files_init): Use static
71938         initialization for all the *_traced_file variables.
71939
71940 2011-09-28  Andreas Schwab  <schwab@redhat.com>
71941
71942         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71943
71944 2011-09-27  Roland McGrath  <roland@hack.frob.com>
71945
71946         [BZ #13226]
71947         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
71948
71949 2011-09-27  Andreas Schwab  <schwab@redhat.com>
71950
71951         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71952         Reread the line before reparsing it.
71953
71954 2011-09-26  Andreas Schwab  <schwab@redhat.com>
71955
71956         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
71957
71958 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
71959             Maxim Kuvyrkov  <maxim@codesourcery.com>
71960             Joseph Myers  <joseph@codesourcery.com>
71961
71962         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
71963         if needed for __stack_chk_guard.
71964
71965 2011-09-19  Roland McGrath  <roland@hack.frob.com>
71966
71967         * sysdeps/posix/spawni.c (script_execute): Always define it.
71968         It will be optimized away if unused.
71969         (maybe_script_execute): New function.
71970         (__spawni): Call it.
71971
71972         * Makerules: Don't include tls.make.
71973         (config-tls): Always set to thread.
71974         * tls.make.c: File removed.
71975
71976 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
71977
71978         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
71979         * config.make.in (CPPFLAGS-config): New substituted variable.
71980
71981 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
71982
71983         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
71984
71985         [BZ #13192]
71986         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
71987         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
71988
71989 2011-09-15  Roland McGrath  <roland@hack.frob.com>
71990
71991         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
71992         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
71993         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
71994         (CALL_FAIL): Likewise.
71995         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
71996         (CALL_FAIL): Macro removed.
71997         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
71998
71999 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72000
72001         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72002         for __FINITE_MATH_ONLY__ == 1.
72003
72004 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72005
72006         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72007         __ieee754_sqrt instead of sqrt.
72008         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72009         __ieee754_sqrtf instead of sqrtf.
72010         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72011         __floorf instead of floorf.
72012         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72013         __floorf, __truncf instead of floorf, truncf.
72014
72015 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72016
72017         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72018
72019         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72020         __extern_always_inline.
72021         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72022         32-bit.
72023
72024 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72025
72026         * elf/rtld.c (dl_main): Also relocate in dependency order when
72027         doing symbol dependency testing.
72028
72029 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72030
72031         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72032         Always define `refsym'.
72033
72034 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72035
72036         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72037         (__FD_ELT): Renamed from __FDELT.
72038         * misc/bits/select2.h (__FD_ELT): Likewise.
72039         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72040         __FD_MASK instead of __FDELT, __FDMASK.
72041         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72042         Likewise.
72043         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72044         Likewise.
72045
72046         * elf/Makefile (gen-ldd): Fix pattern.
72047
72048         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72049         (init_tls): Likewise.
72050
72051 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72052
72053         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72054
72055 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72056
72057         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72058         `struct cmsghdr *' instead of `void *'.
72059         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72060         Likewise.
72061
72062 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72063
72064         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72065         if non-absolute.
72066         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72067         ldd_rewrite_script.
72068
72069 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72070
72071         * configure.in: Remove --with-tls option.
72072         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72073         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72074         out in case it is missing.
72075         * sysdeps/ia64/elf/configure.in: Likewise.
72076         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72077         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72078         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72079         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72080         * sysdeps/sh/elf/configure.in: Likewise.
72081         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72082         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72083         * sysdeps/x86_64/elf/configure.in: Likewise.
72084         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72085         * sysdeps/mach/hurd/tls.h: Likewise.
72086
72087         [BZ #13067]
72088         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72089
72090         [BZ #13090]
72091         * configure.in: Fix use of AC_INIT.
72092
72093         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72094
72095 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72096
72097         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72098         __set_errno.
72099         * malloc/hooks.c: Likewise.
72100
72101         [BZ #11929]
72102         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72103         variables statically.
72104         (narenas): Initialize.
72105         (list_lock): Initialize.
72106         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72107         initializtion of main_arena and list_lock.  Small cleanups.
72108         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72109         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72110         Add initializers to main_arena and mp_.
72111         (malloc_state): Remove pagesize member.  Change all users to use
72112         GLRO(dl_pagesize).
72113
72114         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72115         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72116         is always initialized.
72117
72118         * malloc/malloc.c: Removed unused configurations and dead code.
72119         * malloc/arena.c: Likewise.
72120         * malloc/hooks.c: Likewise.
72121         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72122
72123         * include/tls.h: Removed.  USE___THREAD must always be defined.
72124         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72125         * elf/dl-libc.c: Likewise.
72126         * elf/dl-tsd.c: Likewise.
72127         * include/errno.h: Likewise.
72128         * include/netdb.h: Likewise.
72129         * include/resolv.h: Likewise.
72130         * inet/herrno-loc.c: Likewise.
72131         * inet/herrno.c: Likewise.
72132         * malloc/arena.c: Likewise.
72133         * malloc/hooks.c: Likewise.
72134         * malloc/malloc.c: Likewise.
72135         * resolv/res-state.c: Likewise.
72136         * resolv/res_libc.c: Likewise.
72137         * sysdeps/i386/dl-machine.h: Likewise.
72138         * sysdeps/ia64/dl-machine.h: Likewise.
72139         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72140         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72141         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72142         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72143         * sysdeps/sh/dl-machine.h: Likewise.
72144         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72145         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72146         * sysdeps/unix/i386/sysdep.S: Likewise.
72147         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72148         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72149         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72150         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72151         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72152         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72153         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72154         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72155         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72156         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72157         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72158         * sysdeps/x86_64/dl-machine.h: Likewise.
72159         * tls.make.c: Likewise.
72160
72161         * configure.in: Remove --with-__thread option.  Make tests for
72162         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72163         tls_model attribute fail if no support is available.  Remove
72164         USE_IN_LIBIO.
72165         * Makeconfig: Adjust for dropped configure option.  All features are
72166         now mandatory.
72167         * Makerules: Likewise.
72168         * Versions.def: Likewise.
72169         * argp/argp-fmtstream.c: Likewise.
72170         * argp/argp-fmtstream.h: Likewise.
72171         * argp/argp-help.c: Likewise.
72172         * assert/assert.c: Likewise.
72173         * config.h.in: Likewise.
72174         * config.make.in: Likewise.
72175         * configure: Likewise.
72176         * configure.in: Likewise.
72177         * csu/Versions: Likewise.
72178         * csu/init.c: Likewise.
72179         * elf/tst-audit2.c: Likewise.
72180         * elf/tst-tls10.c: Likewise.
72181         * elf/tst-tls10.h: Likewise.
72182         * elf/tst-tls11.c: Likewise.
72183         * elf/tst-tls12.c: Likewise.
72184         * elf/tst-tls14.c: Likewise.
72185         * elf/tst-tlsmod11.c: Likewise.
72186         * elf/tst-tlsmod12.c: Likewise.
72187         * elf/tst-tlsmod13.c: Likewise.
72188         * elf/tst-tlsmod13a.c: Likewise.
72189         * elf/tst-tlsmod14a.c: Likewise.
72190         * elf/tst-tlsmod15b.c: Likewise.
72191         * elf/tst-tlsmod16a.c: Likewise.
72192         * elf/tst-tlsmod16b.c: Likewise.
72193         * elf/tst-tlsmod7.c: Likewise.
72194         * elf/tst-tlsmod8.c: Likewise.
72195         * elf/tst-tlsmod9.c: Likewise.
72196         * gmon/gmon.c: Likewise.
72197         * grp/fgetgrent_r.c: Likewise.
72198         * grp/putgrent.c: Likewise.
72199         * hurd/fopenport.c: Likewise.
72200         * include/libc-symbols.h: Likewise.
72201         * include/tls.h: Likewise.
72202         * intl/gettextP.h: Likewise.
72203         * intl/loadinfo.h: Likewise.
72204         * locale/global-locale.c: Likewise.
72205         * locale/localeinfo.h: Likewise.
72206         * mach/devstream.c: Likewise.
72207         * malloc/arena.c: Likewise.
72208         * malloc/set-freeres.c: Likewise.
72209         * misc/err.c: Likewise.
72210         * misc/getttyent.c: Likewise.
72211         * misc/mntent_r.c: Likewise.
72212         * posix/getopt.c: Likewise.
72213         * posix/wordexp.c: Likewise.
72214         * pwd/fgetpwent_r.c: Likewise.
72215         * resolv/Versions: Likewise.
72216         * resolv/res_hconf.c: Likewise.
72217         * shadow/fgetspent_r.c: Likewise.
72218         * shadow/putspent.c: Likewise.
72219         * stdio-common/printf_fphex.c: Likewise.
72220         * stdio-common/tmpfile.c: Likewise.
72221         * stdlib/abort.c: Likewise.
72222         * stdlib/fmtmsg.c: Likewise.
72223         * sunrpc/auth_unix.c: Likewise.
72224         * sunrpc/clnt_perr.c: Likewise.
72225         * sunrpc/clnt_tcp.c: Likewise.
72226         * sunrpc/clnt_udp.c: Likewise.
72227         * sunrpc/clnt_unix.c: Likewise.
72228         * sunrpc/openchild.c: Likewise.
72229         * sunrpc/svc_simple.c: Likewise.
72230         * sunrpc/svc_tcp.c: Likewise.
72231         * sunrpc/svc_udp.c: Likewise.
72232         * sunrpc/svc_unix.c: Likewise.
72233         * sunrpc/xdr.c: Likewise.
72234         * sunrpc/xdr_array.c: Likewise.
72235         * sunrpc/xdr_rec.c: Likewise.
72236         * sunrpc/xdr_ref.c: Likewise.
72237         * sunrpc/xdr_stdio.c: Likewise.
72238
72239 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72240
72241         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72242
72243 2011-07-03  Andreas Jaeger  <aj@suse.de>
72244
72245         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72246         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72247         regenerate with gen-libm-tests.pl.
72248
72249 2010-05-12  Petr Baudis  <pasky@suse.cz>
72250
72251         [BZ #11589]
72252         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72253         around j0() zero points by switching to j1().
72254         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72255         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72257         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72258
72259 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72260
72261         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72262         instead of 0.
72263         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72264         instead of 0.
72265         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72266         Patch in part by Pavel Roskin <proski@gnu.org>.
72267
72268         [BZ #13138]
72269         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72270         realloc.
72271         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72272         Free memory block if necessary.
72273
72274         [BZ #12847]
72275         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72276         be NULL.  Don't lock in this case.
72277
72278 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72279
72280         * elf/elf.h (ELFOSABI_GNU): New macro.
72281         (ELFOSABI_LINUX): Define to that.
72282
72283 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72284
72285         * string/strncat.c (strncat): Undef the symbol in case it has been
72286         defined in bits/string.h.
72287
72288 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72289
72290         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72291
72292         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72293         link map.
72294
72295 2011-08-17  Andreas Jaeger  <aj@suse.de>
72296
72297         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72298
72299 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72300             Ian Lance Taylor  <iant@google.com>
72301
72302         * math/libm-test.inc (lround_test): New testcase.
72303         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72304
72305 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72306
72307         * Makefile: Remove support for automatic cvs check-ins.
72308         * Makerules: Likewise.
72309         * config.make.in: Likewise.
72310         * configure.in: Likewise.
72311         * intl/Makefile: Likewise.
72312         * locale/Makefile: Likewise.
72313         * po/Makefile: Likewise.
72314         * posix/Makefile: Likewise.
72315         * sysdeps/gnu/Makefile: Likewise.
72316         * sysdeps/mach/hurd/Makefile: Likewise.
72317         * sysdeps/sparc/sparc32/Makefile: Likewise.
72318
72319         [BZ #13118]
72320         * posix/Makefile (bug-regex32-ENV): Define.
72321         Patch by John Stanley <jpsinthemix@verizon.net>.
72322
72323         * misc/Makefile (headers): Add bits/select2.h.
72324         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72325         * misc/bits/select2.h: New file.
72326         * include/bits/select2.h: New file.
72327         * debug/Makefile (routines): Add fdelt_chk.
72328         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72329         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72330         FD_ISSET.
72331         * debug/fdelt_chk.c: New file.
72332
72333         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72334         * wcsmbs/test-wmemcmp.c: Likewise.
72335         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72336         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72337
72338 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72339
72340         * string/Makefile (strop-tests): Add memcmp.
72341         * string/test-wmemcmp.c: New file.
72342         * string/test-memcmp.c: Add wmemcmp support.
72343
72344 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72345
72346         [BZ #13153]
72347         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72348         2011-07-19 change.
72349
72350         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72351         garbage value in a __mach_port_mod_refs call in the cases of the
72352         task-self and thread-self ports.
72353
72354 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72355
72356         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72357
72358 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72359
72360         * elf/dl-load.c (lose): Check for non-null L.
72361
72362 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72363
72364         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72365
72366         * elf/dl-libc.c (dlerror_run): Pass back error code from
72367         dl_catch_error.
72368
72369         [BZ #13123]
72370         * elf/dl-load.c (lose): Free l_origin if it is valid.
72371
72372         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72373         names.
72374         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72375         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72376         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72377         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72378         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72379         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72380
72381 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72382
72383         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72384         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72385         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72386         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72387         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72388         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72389         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72390         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72391         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72392         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72393
72394 2011-08-15  Alan Modra  <amodra@gmail.com>
72395
72396         [BZ #13092]
72397         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72398         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72399         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72400         ppc_mcount to static-only-routines.
72401         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72402         __mcount_internal.
72403         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72404         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72405
72406 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72407
72408         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72409         for finite and infinity parameters.
72410
72411 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72412
72413         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72414         and add nop instructions for throughput optimization.
72415         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72416
72417 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72418
72419         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72420         aligned copy for power7 with vector-scalar instructions.
72421         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72422
72423 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72424
72425         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72426         AVX check.
72427
72428 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72429
72430         [BZ #13144]
72431         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72432         last change.
72433
72434 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72435
72436         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72437         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72438         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72439         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72440         clock_gettime.
72441
72442 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72443
72444         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72445         Forgot to demangle the pointer.
72446
72447         * sysdeps/i386/sysdep.h: Define atom_text_section.
72448         * sysdeps/x86_64/sysdep.h: Likewise.
72449         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72450         section with atom_text_section.
72451         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72452         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72453         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72454         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72455         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72456
72457         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72458         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72459         already be defined.  Change to take two parameters and don't assign
72460         result to variable.  Adjust all users.
72461         Define INTERNAL_GETTIME if not already defined.
72462         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72463         call.
72464         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72465         HAVE_CLOCK_GETTIME_VSYSCALL.
72466         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72467
72468         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72469         gettimeofday vsyscall, just use time.
72470
72471 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72472
72473         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72474         <errno.h>.
72475
72476 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72477
72478         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72479         syscall on x86-64.
72480         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72481         syscall.
72482         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72483         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72484         syscall if possible.
72485
72486 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72487
72488         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72489         e_ident.  Don't pass to find_mapsXX.
72490         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72491
72492 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72493
72494         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72495         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72496         * sysdeps/x86_64/multiarch/strchr.S: Update.
72497         Check bit_slow_BSF bit.
72498         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72499         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72500         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72501
72502 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72503
72504         [BZ #13134]
72505         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72506         before glibc 2.15.
72507         (tryshell): Define.
72508         (__spawni): Change last parameter to be flag.  Test
72509         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72510         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72511         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72512         * posix/spawni.c: Likewise.
72513         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72514         * posix/spawnp.c: Likewise.  Change normal version to use
72515         SPAWN_XFLAGS_USE_PATH.
72516         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72517         SPAWN_XFLAGS_TRY_SHELL.
72518
72519         [BZ #13150]
72520         * posix/glob.h: Remove gcc 1.x support.
72521
72522         [BZ #13068]
72523         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72524
72525 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72526
72527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72528         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72529         strrchr-sse2-bsf
72530         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72531         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72532         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72533         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72534         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72535         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72536
72537 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72538
72539         * sysdeps/x86_64/wcscmp.S: New file.
72540
72541         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72542         wcscmp-c wcscmp-sse2
72543         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72544         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72545         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72546         * wcsmbs/wcscmp.c: Allow renaming.
72547
72548 2011-09-05  David S. Miller  <davem@davemloft.net>
72549
72550         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72551         stack slot, rather than the struct return pointer slot.
72552         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72553         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72555         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72556
72557 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72558
72559         * po/ja.po: Update from translation team.
72560
72561         [BZ #13144]
72562         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72563         kernel in 64-bit binaries.
72564
72565 2011-09-01  David S. Miller  <davem@davemloft.net>
72566
72567         * elf/elf.h (HWCAP_SPARC_*): Move to..
72568         * sysdeps/sparc/sysdep.h: this new file and add new values.
72569         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72570         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72571         _DL_HWCAP_COUNT to 24.
72572         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72573         entries.
72574         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72575         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72576         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72577         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72578         instead of magic constants.
72579         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72580
72581 2011-08-31  David S. Miller  <davem@davemloft.net>
72582
72583         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72584         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72585         Reimplement to do errno handling inline.
72586         (SYSCALL_ERROR_HANDLER): New macro.
72587         (__SYSCALL_STRING): Do not do errno handling in asm.
72588         (__CLONE_SYSCALL_STRING): Delete.
72589         (__INTERNAL_SYSCALL_STRING): Delete.
72590         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72591         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72592         (PSEUDO): Reimplement to do errno handling inline.
72593         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
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/sysdep.h (INLINE_SYSCALL):
72599         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72600         i386.
72601         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72602         (inline_syscall*): Add 'err' argument.
72603         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72604         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72605         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72606         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72607
72608         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72609         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72610
72611 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72612
72613         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72614
72615 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72616
72617         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72618         directive.
72619
72620 2011-08-24  David S. Miller  <davem@davemloft.net>
72621
72622         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72623
72624 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72625
72626         * elf/Makefile: Add rules to build and run unload8 test.
72627         * elf/unload8.c: New file.
72628         * elf/unload8mod1.c: New file.
72629         * elf/unload8mod1x.c: New file.
72630         * elf/unload8mod2.c: New file.
72631         * elf/unload8mod3.c: New file.
72632
72633         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72634         it wasn't used.
72635
72636 2011-08-23  David S. Miller  <davem@davemloft.net>
72637
72638         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72639         subtract stack bias.
72640         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72641         %sp not %fp in calculations.
72642         (_JMPBUF_UNWINDS_ADJ): Likewise.
72643
72644         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72645         (aio_suspend): Call it to force an exception region around the
72646         AIO_MISC_WAIT() invocation.
72647
72648 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72649
72650         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72651         backslash.
72652
72653 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72654
72655         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72656         protection macro.
72657         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72658         and <dl-machine.h>.
72659         (Elf64_FuncDesc): Remove.
72660
72661 2011-08-22  David S. Miller  <davem@davemloft.net>
72662
72663         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72664         sigaltstack check, add missing cfi directives.
72665         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72666         missing cfi directives, and sigaltstack handling.
72667
72668 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72669
72670         [BZ #11724]
72671         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72672         object is seen twice.
72673         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72674
72675         * elf/Makefile (distribute): Add tst-initorder2.c.
72676         (tests): Add tst-initorder2.
72677         (modules-names): Add tst-initorder2a tst-initorder2b
72678         tst-initorder2c tst-initorder2d.  Add rules to build them.
72679         ($(objpfx)tst-initorder2.out): New rule.
72680         * elf/tst-initorder2.c: New file.
72681         * elf/tst-initorder2.exp: New file.
72682
72683 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72684
72685         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72686
72687         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72688         dependencies back to end of function.
72689
72690         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72691         $(elfobjdir)/ld.so.
72692
72693 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72694
72695         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72696         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72697         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72698         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72699         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72700         of __vdso_gettimeofday.
72701         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72702         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72703         attribute_hidden.
72704         (_libc_vdso_platform_setup): Remove initialization of
72705         __vdso_gettimeofday and __vdso_time.
72706
72707 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72708
72709         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72710         and fgetc_unlocked.
72711         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72712         getc_unlocked.
72713
72714         * elf/dl-open.c (add_to_global): Report additions to the global scope
72715         for LD_DEBUG=scopes.
72716         (dl_open_worker): Also print scope of newly loaded dependencies.
72717         (_dl_show_scope): Indicate if there is no scope.
72718
72719         [BZ #13114]
72720         * stdio-common/Makefile (tests): Add bug24.
72721         * stdio-common/bug24.c: New file.
72722
72723 2011-08-19  Andreas Jaeger  <aj@suse.de>
72724
72725         [BZ #13114]
72726         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72727         non-existant file when using close-on-exec mode.
72728
72729 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72730
72731         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72732         the very first instruction.
72733
72734         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72735         the CFI state in the end.
72736         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72737         inclusion of dl-trampoline.h.
72738         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72739
72740 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72741
72742         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72743         expectations for long double.
72744
72745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72746         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72747
72748 2011-08-14  David S. Miller  <davem@davemloft.net>
72749
72750         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72751         artificual limit depends upon the system page size.
72752
72753 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72754
72755         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72756         * resolv/Makefile: Define CFLAGS-libresolv.
72757
72758 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72759
72760         * nss/makedb.c (compute_tables): Make variables used in nested
72761         function static.
72762
72763 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72764
72765         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72766         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72767         if buffer was too small.
72768
72769         * elf/pldd.c (main): Attach to all threads in the process.
72770         Rewrite /proc handling to use *at functions.
72771
72772 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72773
72774         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72775         specifies first scope to show.
72776         (dl_open_worker): Update callers.  Move printing scope of new
72777         object to before the relocation.
72778         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72779         * sysdeps/generic/ldsodefs.h: Update declaration.
72780
72781         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72782         string for the scope number.
72783
72784 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72785
72786         * nscd/servicescache.c (cache_addserv): Make sure written is always
72787         initialized.
72788
72789 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72790
72791         * sysdeps/i386/i486/bits/atomic.h
72792         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72793         statement expression, so as to suppress "set but not used" warning.
72794         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72795
72796         * string/strncat.c (STRNCAT): Use prototype definition.
72797
72798         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72799         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72800         -Iprograms here.
72801         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72802         (localedef-modules): Add localedef.
72803         (locale-modules): Add locale.
72804
72805         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72806         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72807         to avoid a warning.
72808
72809 2011-08-14  David S. Miller  <davem@davemloft.net>
72810
72811         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72812         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72813
72814 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72815
72816         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72817         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72818         * elf/rtld.c (dl_main): Set l_name of vDSO.
72819         Call _dl_show_scope when DL_DEBUG_SCOPES.
72820         (process_dl_debug): Recognize scopes flag and also set it for all.
72821         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72822         Declare _dl_show_scope.
72823
72824         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72825         (do_dlopen): Pass caller_dlopen to dl_open.
72826         (__libc_dlopen_mode): Initialize caller_dlopen.
72827
72828         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72829         of libc.  Make tolower call locale-independent.  Optimize a bit by
72830         using isdigit instead of isalnum.
72831         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72832
72833 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72834
72835         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72836         was a dependency or dynamically loaded.
72837
72838 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72839
72840         * intl/l10nflist.c: Allow architecture-specific pop function.
72841         * sysdeps/x86_64/l10nflist.c: New file.
72842
72843         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
72844         classification.
72845
72846 2011-08-10  Andreas Schwab  <schwab@redhat.com>
72847
72848         * include/dirent.h: Add libc_hidden_proto for scandirat and
72849         scandirat64.  Don't declare __scandirat64.
72850         * dirent/scandirat.c: Add libc_hidden_def.
72851         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
72852         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
72853
72854 2011-08-10  David S. Miller  <davem@davemloft.net>
72855
72856         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
72857         enum.
72858         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72859         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72860         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72861
72862 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
72863
72864         * Versions.def [libc]: Add GLIBC_2.15.
72865         * dirent/Makefile (routines): Add scandirat and scandirat64.
72866         * dirent/Versions [libc]: Export scandirat and scandirat64 for
72867         GLIBC_2.15.
72868         * dirent/dirent.h: Declare scandirat and scandirat64.
72869         * dirent/scandirat.c: New file.
72870         * dirent/scandirat64.c: New file.
72871         * sysdeps/wordsize-64/scandirat.c: New file.
72872         * sysdeps/wordsize-64/scandirat64.c: New file.
72873         * dirent/opendir.c: Define opendirat.
72874         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
72875         using scandirat.
72876         * dirent/scandir64.c: Adjust for scandir.c change.
72877         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
72878         __scandirat64, and __scandir_cancel_handler.
72879         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
72880         additional parameter and use openat instead of open (outside of ld.so).
72881         Add new __opendir as wrapper around __opendirat.
72882         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
72883         here without requiring old scandirat implementation.
72884
72885 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
72886
72887         * dirent/scandir.c (cancel_handler): Renamed to
72888         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
72889         defined.  Adjust users.
72890         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
72891         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
72892
72893 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
72894
72895         * string/test-string.h (IMPL): Use __STRING to expand name and then
72896         stringify it.
72897
72898         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
72899         of cleanups.
72900
72901 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72902
72903         * string/Makefile: Update.
72904         (strop-tests): Append strncat.
72905         * string/test-wcscmp.c: New file.
72906         New comprehensive test for wcscmp.
72907         * string/test-strcmp.c: Update.
72908         (WIDE): New define.
72909
72910 2011-07-22  Andreas Schwab  <schwab@redhat.com>
72911
72912         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
72913         line.
72914
72915 2011-07-26  Andreas Schwab  <schwab@redhat.com>
72916
72917         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
72918         encoding to ACE if AI_IDN.
72919
72920 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
72921
72922         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
72923         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
72924
72925 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72926
72927         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
72928         Fix overflow bug in strncat.
72929         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
72930
72931         * string/test-strncat.c: Update.
72932         Add new tests for checking overflow bugs.
72933
72934 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72935
72936         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72937         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
72938         * sysdeps/i386/i686/multiarch/strcat.S: New file.
72939         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
72940         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
72941         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
72942         * sysdeps/i386/i686/multiarch/strncat.S: New file.
72943         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
72944         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
72945
72946         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
72947         (USE_AS_STRCAT): Define.
72948         Add strcat and strncat support.
72949         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72950
72951 2011-07-25  Andreas Schwab  <schwab@redhat.com>
72952
72953         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
72954         __n bigger than INT_MAX+1.
72955         (__strncmp_g): Likewise.
72956
72957 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
72958
72959         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
72960         * libio/stido.h: Likewise.
72961
72962         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
72963         (AF_NFC): Define.
72964         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
72965         (AF_NFC): Define.
72966
72967         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
72968         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72969         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72970         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
72971         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72972
72973         [BZ #13021]
72974         * scripts/test-installation.pl: Don't expect libnss_test1 to be
72975         installed.
72976
72977         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
72978         typo.
72979         (_dl_x86_64_save_sse): Likewise.
72980
72981 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
72982
72983         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
72984         OSXSAVE.
72985         (_dl_x86_64_save_sse): Likewise.
72986
72987         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
72988
72989         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
72990
72991 2011-07-21  Andreas Schwab  <schwab@redhat.com>
72992
72993         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
72994         change.
72995         (_dl_x86_64_save_sse): Use correct AVX check.
72996
72997 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72998
72999         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73000         bug in strncpy/strncat.
73001         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73002
73003 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73004
73005         * string/tester.c (test_strcat): Add tests for different alignments
73006         of source and destination.
73007         (test_strncat): Likewise.
73008
73009 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73010
73011         [BZ #12852]
73012         * posix/glob.c (glob): Check passed in values before using them in
73013         expressions to avoid some overflows.
73014         (glob_in_dir): Likewise.
73015
73016         [BZ #13007]
73017         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73018         check for AVX enablement so that we don't crash with old kernels and
73019         new hardware.
73020         * elf/tst-audit4.c: Add same checks here.
73021         * elf/tst-audit6.c: Likewise.
73022
73023         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73024
73025 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73026
73027         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73028
73029 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73030
73031         * po/cs.po: Update from translation team.
73032         * po/bg.po: Likewise.
73033
73034 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73035
73036         * misc/sys/cdefs.h: Add support for const attribute.
73037         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73038         to gnu_dev_{major,minor,makedev} functions.
73039
73040 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73041
73042         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73043
73044 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73045
73046         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73047         strlen results.
73048
73049 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73050
73051         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73052         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73053         register in order to avoid conflicts with the soft frame pointer
73054         being held in r11 when necessary.
73055         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73056         (INTERNAL_VSYSCALL_NCS): Likewise.
73057
73058 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73059
73060         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73061         * elf/dl-fini.c (_dl_fini): Adjust caller.
73062         * elf/dl-close.c (_dl_close_worker): Likewise.
73063         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73064
73065 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73066
73067         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73068         "aux_cache->nlibs < 0".
73069
73070         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73071         in the reload-count case.
73072
73073 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73074
73075         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73076         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73077         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73078         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73079         * sysdeps/x86_64/multiarch/strcat.S: New file.
73080         * sysdeps/x86_64/multiarch/strncat.S: New file.
73081         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73082         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73083         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73084         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73085         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73086         (USE_AS_STRCAT): Define.
73087         Add strcat and strncat support.
73088         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73089         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73090         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73091         * string/strncat.c: Update.
73092         (USE_AS_STRNCAT): Define.
73093         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73094         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73095         and i7.
73096         * sysdeps/x86_64/multiarch/init-arch.h
73097         (bit_Prefer_PMINUB_for_stringop): New.
73098         (index_Prefer_PMINUB_for_stringop): Likewise.
73099         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73100         bit_Prefer_PMINUB_for_stringop.
73101
73102 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73103
73104         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73105         buffer64.
73106         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73107         of casting of buffer.
73108         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73109         buffer32 and buffer64.
73110         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73111         writes instead of casting of buffer.
73112         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73113         buffer32.
73114         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73115         casting of buffer.
73116
73117 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73118
73119         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73120
73121 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73122
73123         * nscd/nscd.c (termination_handler): Don't do anything for a database
73124         if it has not yet been initialized.
73125
73126 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73127
73128         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73129
73130 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73131
73132         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73133
73134 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73135
73136         * po/nl.po: Update from translation team.
73137         * po/sv.po: Likewise.
73138
73139 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73140
73141         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73142         now disallowed by GCC.
73143
73144         * configure.in (use-default-link): Default to yes if a test -shared
73145         link meets our qualifications.
73146         * configure: Regenerated.
73147
73148         * config.make.in (output-format): New variable.
73149         * configure.in: Check for ld --print-output-format support.
73150         * configure: Regenerated.
73151         * Makerules ($(common-objpfx)format.lds)
73152         [$(output-format) != unknown]: Just use $(output-format),
73153         instead of the linker-script munging.
73154
73155 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73156
73157         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73158         of $(common-objpfx)shlib.lds.
73159         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73160
73161         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73162         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73163
73164         * configure.in (-z relro check): Adjust test code to add a large
73165         writable data section after it.
73166         * configure: Regenerated.
73167
73168 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73169
73170         * configure.in (-z relro check): Fix test code to make the variable
73171         truly const.
73172         * configure: Regenerated.
73173
73174 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73175
73176         * nscd/nscd.h (struct traced_file): Define.
73177         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73178         elements.  Add traced_files.
73179         (inotify_fd): Declare.
73180         (register_traced_file): Declare.
73181         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73182         (inotify_fd): Export.
73183         (resolv_conf_descr): Remove.
73184         (nscd_init): Move inotify descriptor creation to main.
73185         Don't register files for notification here.
73186         (register_traced_file): New function.
73187         (invalidate_cache): Don't use reset_res to determine whether to call
73188         res_init, go through the list of registered files.
73189         (main_loop_poll): The inotify descriptors are now stored in the
73190         structures for the traced files.
73191         (main_loop_epoll): Likewise.
73192         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73193         to __nss_disable_nscd.
73194         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73195         for a database anymore.  Check the records for all the registered
73196         files instead.
73197         * nss/Makefile (libnss_files-routines): Add files-init.
73198         (libnss_db-routines): Add db-init.
73199         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73200         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73201         * nss/nss_db/db-init.c: New file.
73202         * nss/nss_files/files-init.c: New file.
73203         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73204         __nss_lookup_function.
73205         (__nss_lookup_function): Call nss_load_library.
73206         (nss_load_all_libraries): New function.
73207         (__nss_disable_nscd): Take parameter with callback function for files
73208         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73209         used for the cached services.
73210         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73211         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73212         options for features to all the files in nscd.
73213
73214         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73215
73216 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73217
73218         * csu/elf-init.c (__libc_csu_init): Comment typo.
73219
73220 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73221
73222         * po/pl.po: Update from translation team.
73223         * po/ja.po: Likewise.
73224         * po/ru.po: Likewise.
73225         * po/ko.po: Likewise.
73226         * po/fr.po: Likewise.
73227
73228 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73229
73230         * configure.in (.ctors/.dtors header and trailer check):
73231         Use an empirical test on a built program.
73232         * configure: Regenerated.
73233
73234         * configure.in (-z relro check): Use an empirical test on a built DSO.
73235         Detect, but do not require, on ia64.
73236         * configure: Regenerated.
73237
73238         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73239         Update tests that use readelf to use $READELF instead.
73240         * configure: Regenerated.
73241
73242 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73243
73244         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73245         if the result is not used.
73246
73247 2011-07-05  Andreas Jaeger  <aj@suse.de>
73248
73249         [BZ#9696]
73250         * stdlib/tst-strtod.c: Add testcase.
73251
73252 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73253
73254         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73255         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73256         The latter has a higher limit.  Take additional parameter to pass to
73257         the new function.
73258         (__pathconf): Pass file to __statfs_link_max.
73259         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73260         __statfs_link_max.
73261         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73262         __statfs_link_max.
73263
73264         [BZ #12868]
73265         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73266         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73267         Handle Lustre.
73268         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73269         (__statfs_filesize_max): Likewise.
73270         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73271
73272 2011-07-05  Andreas Jaeger  <aj@suse.de>
73273
73274         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73275
73276 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73277
73278         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73279         `status' variable.
73280         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73281         Likewise.
73282
73283 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73284
73285         * Makefile (strop-tests): Add strncat.
73286         * string/test-strncat.c: New file.
73287
73288 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73289
73290         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73291
73292 2011-06-21  Andreas Jaeger  <aj@suse.de>
73293
73294         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73295         Copy rule from iconvdata/Makefile.
73296
73297 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73298
73299         [BZ #12922]
73300         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73301         but no long options are defined, just return 'W'.
73302
73303 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73304
73305         [BZ #9696]
73306         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73307
73308 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73309
73310         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73311         netgroups to read.
73312         (innetgr): Likewise.
73313
73314 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73315
73316         * config.make.in (install_root): Default to $(DESTDIR).
73317
73318 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73319
73320         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73321
73322 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73323
73324         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73325
73326         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73327         containing directory rather than embedding absolute directory names.
73328
73329         * scripts/check-local-headers.sh: Rewritten using awk.
73330         Match by word, not by line.  Print error messages for matches.
73331         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73332
73333         * Makerules [shlib-lds-flags empty]:
73334         ($(common-objpfx)libc_pic.opts): New target.
73335         ($(common-objpfx)libc_pic.os.clean): New target.
73336         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73337
73338         * config.make.in (OBJCOPY): New variable.
73339         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73340         * configure: Regenerated.
73341
73342         * config.make.in (use-default-link): New variable.
73343         * configure.in (use_default_link): Grok --with-default-link to set it.
73344         * configure: Regenerated.
73345         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73346         (shlib-lds, shlib-lds-flags): Define to empty.
73347
73348         * Makerules (shlib-lds): New variable.
73349         (shlib-lds-flags): New variable.
73350         (build-shlib, build-moduile, build-module-asneeded): Use it.
73351         ($(common-objpfx)libc.so): Use $(shlib-lds).
73352         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73353         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73354
73355         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73356         DT_FLAGS/DT_FLAGS_1 with zero flags.
73357
73358         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73359         linker script munging.
73360
73361 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73362
73363         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73364         as 128-bit value.
73365         * crypt/sha512.c (sha512_process_block): Perform total addition using
73366         128-bit if possible.
73367         (__sha512_finish_ctx): Likewise.
73368         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73369         as 64-bit value.
73370         * crypt/sha256.c (SWAP64): Define.
73371         (sha256_process_block): Perform total addition using 64-bit if
73372         possible.
73373         (__sha256_finish_ctx): Likewise.
73374
73375 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73376
73377         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73378         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73379         * nscd/hstcache.c (cache_addhst): Likewise.
73380         * nscd/grpcache.c (cache_addgr): Likewise.
73381         * nscd/aicache.c (addhstaiX): Likewise.
73382         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73383
73384 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73385
73386         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73387         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73388         * nscd/hstcache.c (cache_addhst): Likewise.
73389         * nscd/grpcache.c (cache_addgr): Likewise.
73390         * nscd/aicache.c (addhstaiX): Likewise.
73391
73392 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73393
73394         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73395         domain only when needed.
73396
73397 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73398
73399         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73400         is always restored.
73401
73402 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73403
73404         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73405         are re-adding the entry.
73406         * nscd/servicescache.c (cache_addserv): Likewise.
73407
73408 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73409
73410         * sysdeps/generic/dl-irel.h: fix protection against multiple
73411         inclusions.
73412         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73413
73414 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73415
73416         [BZ #12935]
73417         * malloc/memusage.sh: Fix quoting in message.
73418         * debug/xtrace.sh: Likewise.
73419
73420         * configure.in: Remove support for --experimental-malloc option, make
73421         it the default.
73422         * config.make.in: Likewise.
73423         * malloc/Makefile: Likewise.
73424
73425 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73426
73427         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73428         two-byte characters.
73429
73430 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73431
73432         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73433         AC_CACHE_CHECK invocation.
73434         * configure: Regenerated.
73435
73436         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73437
73438 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73439
73440         [BZ #12350]
73441         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73442         bit from old_res_options.
73443
73444         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73445
73446         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73447         value type for setfct.
73448
73449 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73450
73451         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73452         __gettimeofday instead of gettimeofday.
73453
73454 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73455
73456         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73457
73458 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73459
73460         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73461
73462         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73463         info.
73464
73465 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73466
73467         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73468         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73469         strcpy-sse2-unaligned strncpy-sse2-unaligned
73470         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73471         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73472         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73473         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73474         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73475         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73476         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73477         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73478         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73479         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73480         (STRCPY): Support SSE2 and SSSE3 versions.
73481
73482 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73483
73484         [BZ #12874]
73485         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73486         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73487         kernels which artificially limit size of requests.
73488
73489 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73490
73491         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73492         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73493         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73494         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73495         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73496         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73497         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73498         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73499         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73500         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73501         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73502         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73503         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73504         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73505         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73506         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73507         Enable unaligned load optimization for Intel Core i3, i5 and i7
73508         processors.
73509         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73510         Define.
73511         (index_Fast_Unaligned_Load): Define.
73512         (HAS_FAST_UNALIGNED_LOAD): Define.
73513
73514 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73515
73516         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73517
73518 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73519
73520         [BZ #12907]
73521         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73522         until it is clear that the information is realy needed.
73523         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73524
73525 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73526
73527         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73528
73529 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73530
73531         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73532         /sys/devices/system/cpu/online if it is usable.
73533
73534         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73535         reading the information from the /proc filesystem to once a second.
73536
73537 2011-06-21  Andreas Jaeger  <aj@suse.de>
73538
73539         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73540         NULL after inclusion of kernel headers.
73541
73542 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73543
73544         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73545         calls to internal_setent.
73546
73547         [BZ #12885]
73548         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73549         addresses using gethostbyname4_r ignore IPv4 addresses.
73550
73551         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73552         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73553
73554         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73555
73556 2011-06-20  David S. Miller  <davem@davemloft.net>
73557
73558         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73559         inclusions.
73560         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73561
73562         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73563         (elf_irel): Use it.
73564         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73565         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73566         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73567         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73568         * sysdeps/x86_64/dl-irel.h: Likewise.
73569
73570         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73571         * elf/dl-sym.c: Likewise.
73572
73573 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73574
73575         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73576         need to dereference resplen2.
73577
73578 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73579
73580         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73581
73582 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73583
73584         * Makeconfig: Define vardbdir and inst_vardbdir.
73585         * nss/Makefile: Add rules to install db-Makefile.
73586
73587         * nss/nss_db/db-XXX.c: Cleanup.
73588
73589         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73590         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73591         GLIBC_PRIVATE.
73592         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73593         * nss/makedb.c: Implement -g option to specify that value strings
73594         are generated and should not be added to table iterated over for
73595         get*ent calls.
73596         * nss/nss_db/db-initgroups.c: New file.
73597
73598         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73599         interface.
73600
73601         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73602         (internal_getgrouplist): Adjust to name change.
73603         Update use_initgroups_entry if this is not the first call.
73604         * nss/databases.def: Add initgroups entry.
73605
73606         * nss/makedb.c (compute_tables): Check result of multiple hash table
73607         sizes to minimize maximum chain length.
73608
73609 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73610
73611         * Versions.def: Add entry for libnss_db.
73612         * shlib-versions: Likewise.
73613         * nss/Makefile: Add rules to build libnss_db.
73614         * nss/Versions: Add libnss_db information.  Organize libnss_files
73615         entries better.
73616         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73617         makedb progra.  Some minor improvements to generate smaller files.
73618         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73619         here from...
73620         * nss/makedb.c: ...here.
73621         Improve database format to be smaller and require less memory at
73622         runtime.
73623         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73624         db anymore.
73625         * nss/nss_db/db-netgrp.c: Likewise.
73626         * nss/nss_db/db-open.c: Likewise.
73627         * nss/nss_files/flies-XXX.x: Adjust comments.
73628         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73629         * nss/nss_files/files-grp.c: Likewise.
73630         * nss/nss_files/files-hosts.c: Likewise.
73631         * nss/nss_files/files-network.c: Likewise.
73632         * nss/nss_files/files-proto.c: Likewise.
73633         * nss/nss_files/files-pwd.c: Likewise.
73634         * nss/nss_files/files-rpc.c: Likewise.
73635         * nss/nss_files/files-service.c: Likewise.
73636         * nss/nss_files/files-sgrp.c: Likewise.
73637         * nss/nss_files/files-spwd.c: Likewise.
73638         * nss/nss_db/db-alias.c: Removed.
73639         * nss/nss_db/dummy-db.h: Removed.
73640
73641 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73642
73643         * nss/makedb.c: Rewritten to not use database library.
73644         * nss/Makefile: Update to build new makedb program.
73645
73646 2011-06-14  Andreas Jaeger  <aj@suse.de>
73647
73648         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73649         memset declaration.
73650
73651 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73652
73653         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73654         tmpbuf.
73655
73656 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73657
73658         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73659         * elf/Makefile ($(objpfx)ld.so): Likewise.
73660
73661         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73662         Don't list ld.so twice in dependencies.
73663
73664         * posix/bug-regex31.c: Include <stdlib.h>.
73665
73666         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73667
73668         * nis/nss_compat/compat-spwd.c
73669         (getspent_next_nss_netgr): Remove unused variable.
73670         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73671
73672         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73673         nonmembers" output to use the right array.
73674
73675         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73676
73677         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73678
73679         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73680         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73681         * catgets/gencat.c (read_input_file): Likewise.
73682         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73683
73684         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73685         variable definition inside #if's controlling its use.
73686
73687         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73688
73689         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73690
73691         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73692
73693         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73694         unreachable code.
73695
73696         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73697
73698         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73699         * configure: Regenerated.
73700
73701         * Makerules: Revert last change.
73702         * elf/Makefile: Likewise.
73703
73704 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73705
73706         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73707         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73708         (reloc-link): Likewise.
73709
73710 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73711
73712         * elf/Makefile: Add rules to build pldd.
73713         * elf/pldd.c: New file.
73714         * elf/pldd-xx.c: New file.
73715
73716 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73717
73718         * version.h: Update for 2.15 development version.
73719
73720 2011-06-07  David S. Miller  <davem@davemloft.net>
73721
73722         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73723         ifuncs.
73724         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73725         elf_machine_lazy_rel): Likewise.
73726         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73727         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73728         elf_machine_lazy_rel): Likewise.
73729         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73730         dl_hwcap via passed in argument.
73731         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73732         Likewise.
73733
73734 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73735
73736         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73737
73738 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73739
73740         [BZ #12849]
73741         * manual/fdl-1.1.texi: New file, verbatim from:
73742         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73743         * manual/lgpl-2.1.texi: New file, verbatim from:
73744         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73745         * manual/Makefile (licenses): New variable, list those new file names.
73746         (texis): Use it.
73747         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73748
73749         * manual/fdl.texi: File removed.
73750         * manual/lesser.texi: File removed.
73751         * manual/libc.texinfo (Copying, Documentation License):
73752         Use new @include file names, put @appendix directive before @include.
73753
73754 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73755
73756         [BZ #12841]
73757         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73758         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73759         (mq_open): Add __NTH.
73760
73761 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73762
73763         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73764         Assume Intel Core i3/i5/i7 processor if AVX is available.
73765
73766 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73767
73768         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73769         typo.
73770
73771 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73772
73773         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73774         memory.  Use alloca_account.  Fix memory leak when retrying.
73775
73776 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73777
73778         * version.h (RELEASE): Bump for 2.14 release.
73779         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73780
73781         * config.make.in (RANLIB): Remove entry.
73782
73783 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73784
73785         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73786         (libc.pot): Work around missing support for .ksh extension in xgettext.
73787
73788         [BZ #12684]
73789         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73790         if both request failed.
73791         (send_dg): In case of server errors clear resplen or *resplen2.
73792
73793         [BZ #12454]
73794         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73795         when there are multiple maps.
73796         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73797         (_dl_fini): Remove test here.
73798
73799         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73800
73801 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73802
73803         [BZ #12350]
73804         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73805         bit from old_res_options.
73806         (gaih_inet): Likewise.
73807
73808         [BZ #11099]
73809         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73810         as signed.
73811
73812         * resolv/res_init.c (res_setoptions): Make the code more compact.
73813
73814         [BZ #11558]
73815         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73816         set RES_USEVC.
73817
73818         [BZ #11634]
73819         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73820
73821         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73822
73823         [BZ #11781]
73824         * malloc/malloc.h: Declare malloc hook variables as volatile.
73825
73826         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73827         in last patch.
73828
73829         [BZ #11799]
73830         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73831         raise in the comment.
73832         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73833         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73834         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73835
73836 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73837
73838         [BZ #12811]
73839         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73840         grow the buffers more if it already has to be sufficient.
73841         (build_wcs_upper_buffer): Likewise.
73842         * posix/regexec.c (check_matching): Likewise.
73843         (clean_state_log_if_needed): Likewise.
73844         (extend_buffers): Don't enlarge buffers beyond size of the input
73845         buffer.
73846         Patches mostly by Emil Wojak <emil@wojak.eu>.
73847         * posix/bug-regex32.c: New file.
73848         * posix/Makefile (tests): Add bug-regex32.
73849
73850         * locale/findlocale.c (_nl_find_locale): Return right away if
73851         _nl_explode_name failed.
73852         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
73853
73854         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
73855
73856         * debug/xtrace.sh: Unify messages.
73857         * malloc/memusage.sh: Likewise.
73858
73859         [BZ #12813]
73860         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
73861         time symbol from vDSO.  Substitute with vsyscall if not available.
73862         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
73863         __vdso_time.
73864
73865         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
73866         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
73867         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
73868         Add sendmmsg and internal_sendmmsg.
73869         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
73870         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
73871         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
73872
73873         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
73874         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
73875         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
73876
73877 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
73878
73879         [BZ #12813]
73880         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
73881         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
73882         available.
73883         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
73884         __vdso_getcpu.
73885
73886         [BZ #12814]
73887         * iconvdata/Makefile (tests): Add bug-iconv9.
73888         * iconvdata/bug-iconv9.c: New file.
73889
73890 2011-05-27  Andreas Schwab  <schwab@redhat.com>
73891
73892         [BZ #12814]
73893         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
73894
73895 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
73896
73897         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
73898         (struct user_regs_struct): Change intcs field back to cs.
73899
73900 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
73901
73902         * po/ja.po: Update from translation team.
73903
73904 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
73905
73906         [BZ #12795]
73907         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
73908         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
73909
73910 2011-05-20  Andreas Schwab  <schwab@redhat.com>
73911
73912         * stdlib/longlong.h: Update from GCC.
73913
73914 2011-05-23  Andreas Schwab  <schwab@redhat.com>
73915
73916         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
73917         parameter name.
73918         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
73919         Add parameter name.
73920         (__sysconf): Pass it down.
73921
73922 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
73923
73924         [BZ #12671]
73925         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
73926         some situations.
73927         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
73928         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
73929         add in in __libc_use_alloca calls.  Adjust callers.
73930         (glob): Use malloc in some situations.
73931
73932         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
73933         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
73934         pltexit.
73935
73936 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
73937
73938         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
73939         and CLOCK_BOOTTIME_ALARM.
73940
73941         [BZ #12782]
73942         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
73943         is returned.
73944
73945         * string/_strerror.c (__strerror_r): Print negative errors as signed
73946         numbers.
73947
73948         [BZ #12777]
73949         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
73950         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
73951         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
73952
73953         * configure.in: Fix typo in redirection and correct removal of test
73954         files in two cases.
73955
73956         [BZ #12788]
73957         * locale/setlocale.c (new_composite_name): Fix test to check for
73958         identical name of all categories.
73959
73960         [BZ #12792]
73961         * libio/filedoalloc.c (local_isatty): New function.
73962         (_IO_file_doallocate): Use local_isatty.
73963         * stdio-common/perror.c (perror): In case a new stream is used
73964         forward the stream error.
73965         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
73966         error flag.
73967
73968 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
73969
73970         [BZ #11884]
73971         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
73972         alloca.
73973         * include/alloca.h (extend_alloca_account): Define.
73974
73975         [BZ #11857]
73976         * posix/regex.h: Fix comments with documentation of user-accessible
73977         fields after compilation and describe correct free'ing of pattern
73978         after re_compile_pattern.
73979         Patch by Reuben Thomas <rrt@sc3d.org>.
73980
73981 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
73982
73983         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
73984         and -mno-altivec to prevent the compiler from using Altivec and/or
73985         VSX instructions when the corresponding registers are not available.
73986
73987 2011-05-19  Andreas Schwab  <schwab@redhat.com>
73988
73989         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
73990
73991 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
73992
73993         * libio/freopen.c (freopen): Use __dup2, not dup2.
73994         * libio/freopen64.c (freopen64): Likewise.
73995
73996 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
73997
73998         [BZ #12775]
73999         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74000         * math/Makefile (tests): Add test-powl.
74001         (CFLAGS-test-powl.c): Define.
74002         * math/test-powl.c: New file.
74003
74004 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74005
74006         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74007
74008 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74009
74010         [BZ #11837]
74011         * iconvdata/gb18030.c: Update to GB18020-2005.
74012
74013 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74014
74015         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74016         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74017         Patch by Aharon Robbins <arnold@skeeve.com>.
74018
74019         [BZ #11892]
74020         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74021         on the stack.
74022
74023         [BZ #11895]
74024         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74025         through underflows.
74026
74027         [BZ #12766]
74028         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74029         point to strings before performing equality test for error_one_per_line
74030         mode.
74031
74032         [BZ #11697]
74033         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74034
74035         [BZ #11820]
74036         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74037         (struct user_fpregs_struct): Avoid __uint*_t types.
74038
74039         [BZ #6420]
74040         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74041         symbol info.  Use it instead of calling _dl_addr locally.
74042         (lock_and_info): New function.
74043         (tr_freehook): Call lock_and_info and pass symbol info as additional
74044         parameter to tr_where.
74045         (tr_mallochook): Likewise.
74046         (tr_reallochook): Likewise.
74047         (tr_memalignhook): Likewise.
74048
74049         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74050         used and couldn't be at all thread-safe.
74051
74052 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74053
74054         * libio/freopen.c (freopen): Don't close old file descriptor
74055         before the new one is opened.  Instead dup the new file descriptor
74056         to the old one after the new stream is created.
74057         * libio/freopen64.c (freopen64): Likewise.
74058         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74059         * libio/fileops.c (_IO_new_file_close_it): Handle new
74060         _IO_FLAGS2_NOCLOSE flag.
74061         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74062         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74063         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74064         _IO_FLAGS2_NOCLOSE flag.
74065         * include/unistd.h: Add hidden_proto for dup3.
74066         Define __have_dup3.
74067         * io/dup3.c: Define hidden symbol.
74068         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74069
74070         [BZ #7101]
74071         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74072         when an incomplete long option is used.
74073         * posix/tst-getopt_long1.c: New file.
74074         * posix/Makefile (tests): Add tst-getopt_long1.
74075
74076         [BZ #10138]
74077         * scripts/config.guess: Update from autoconf-2.68.
74078         * scripts/config.sub: Likewise.
74079
74080         [BZ #10157]
74081         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74082         tests into ...
74083         (has_cpuclock): ...this.  New function.
74084         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74085         macro here based on has_cpuclock code.
74086
74087         [BZ #10149]
74088         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74089         First byte (not low byte) is now always NUL.
74090         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74091
74092         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74093         Use non-cancelable interfaces.
74094
74095         [BZ #9809]
74096         * locale/iso-639.def: Add entry for Sorani.
74097
74098         [BZ #11901]
74099         * include/stdlib.h: Move include protection to the right place.
74100         Define abort_msg_s.  Declare __abort_msg with it.
74101         * stdlib/abort.c (__abort_msg): Adjust type.
74102         * assert/assert.c (__assert_fail_base): New function.  Majority
74103         of code from __assert_fail.  Allocate memory for __abort_msg with
74104         mmap.
74105         (__assert_fail): Now call __assert_fail_base.
74106         * assert/assert-perr.c: Remove bulk of implementation.  Use
74107         __assert_fail_base.
74108         * include/assert.hL Declare __assert_fail_base.
74109         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74110         mmap.
74111         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74112
74113 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74114
74115         [BZ #11952]
74116         [BZ #12453]
74117         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74118         until all modules are registered in the DTV.
74119         * elf/Makefile: Add rules to build and run tst-tls19.
74120         * elf/tst-tls19.c: New file.
74121         * elf/tst-tls19mod1.c: New file.
74122         * elf/tst-tls19mod2.c: New file.
74123         * elf/tst-tls19mod3.c: New file.
74124         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74125
74126         [BZ #12083]
74127         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74128         correctly.
74129
74130         [BZ #12601]
74131         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74132         two-byte sequence errors.
74133         * iconvdata/Makefile (tests): Add bug-iconv8.
74134         * iconvdata/bug-iconv8.c: New file.
74135
74136         [BZ #12626]
74137         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74138         buf2 definition.
74139
74140         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74141
74142         [BZ #12432]
74143         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74144         (dummy_getcfa): New function.
74145         (init): Get _Unwind_GetCFA address, use dummy if not found.
74146         (backtrace_helper): In recursion check, also check whether CFA changes.
74147         (__backtrace): Completely initialize arg.
74148
74149         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74150         storing incomplete byte sequence in state object.  Avoid testing for
74151         guaranteed too small input if we know there is enough data available.
74152
74153 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74154
74155         * Makeconfig (+link-pie): Indent.
74156         * Rules (binaries-pie): Define if $(have-fpie) and
74157         $(build-shared).
74158         (binaries-shared): Also filter out $(binaries-pie).
74159         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74160         * nscd/Makefile (others-pie): Add nscd.
74161         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74162         ($(objpfx)nscd): Remove command override.
74163         * login/Makefile (others-pie): Add pt_chown.
74164         ($(objpfx)pt_chown): Remove command override.
74165         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74166         remove command overrides.
74167
74168 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74169
74170         * libio/tst_putwc.c: Fix error messages.
74171
74172         [BZ #12724]
74173         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74174         currently writing and seek to current position when not.
74175         * libio/Makefile (tests): Add bug-fclose1.
74176         * libio/bug-fclose1.c: New file.
74177
74178 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74179
74180         [BZ #12511]
74181         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74182         don't set DF_1_NODELETE here.
74183         (do_lookup_x): When entering new entry test for copy relocation
74184         and if necessary set DF_1_NODELETE flag.
74185         * elf/tst-unique4.cc: New file.
74186         * elf/tst-unique4.h: New file.
74187         * elf/tst-unique4lib.cc: New file.
74188         * elf/Makefile: Add rules to build and run tst-unique4.
74189         Patch by Piotr Bury <pbury@goahead.com>.
74190
74191 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74192
74193         [BZ #12052]
74194         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74195
74196         [BZ #12625]
74197         * misc/mntent_r.c (addmntent): Flush the stream after the output
74198
74199         [BZ #12393]
74200         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74201         (is_trusted_path_normalize): Skip initial colon.  Append slash
74202         to empty buffer.  Duplicate is_trusted_path code but allow
74203         constructed patch to be prefix.
74204         (is_dst): Allow $ORIGIN followed by /.
74205         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74206         Correct testing of result of is_trusted_path_normalize
74207         (decompose_rpath): Fix warning.
74208
74209 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74210
74211         [BZ #11257]
74212         * grp/initgroups.c (internal_getgrouplist): When we found the service
74213         list through the initgroups entry in nsswitch.conf do not always
74214         continue on a successful lookup.  Don't always use the
74215         __nss_group_database value if it is set.
74216         * nss/nsswitch.conf (initgroups): Change action for successful db
74217         lookup to continue for compatibility.
74218
74219 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74220
74221         [BZ #11532]
74222         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74223         and CP774 modules.
74224         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74225         and CP774 modules.
74226         * iconvdata/tst-tables.sh: Likewise.
74227         * iconvdata/cp770.c: New file.
74228         * iconvdata/cp771.c: New file.
74229         * iconvdata/cp772.c: New file.
74230         * iconvdata/cp773.c: New file.
74231         * iconvdata/cp774.c: New file.
74232         * iconvdata/testdata/CP770: New file.
74233         * iconvdata/testdata/CP770..UTF8: New file.
74234         * iconvdata/testdata/CP771: New file.
74235         * iconvdata/testdata/CP771..UTF8: New file.
74236         * iconvdata/testdata/CP772: New file.
74237         * iconvdata/testdata/CP772..UTF8: New file.
74238         * iconvdata/testdata/CP773: New file.
74239         * iconvdata/testdata/CP773..UTF8: New file.
74240         * iconvdata/testdata/CP774: New file.
74241         * iconvdata/testdata/CP774..UTF8: New file.
74242
74243         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74244         END CHARMAP line.
74245         * iconvdata/gen-8bit-gap.sh: Likewise.
74246         * iconvdata/gen-8bit.sh: Likewise.
74247
74248         * locale/iso-639.def: Add ary entry.
74249
74250         [BZ #11258]
74251         * locale/C-translit.h.in: Add U20A1 transliteration.
74252
74253         [BZ #12178]
74254         * locale/iso-639.def: Add wae entry.
74255         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74256
74257         [BZ #12545]
74258         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74259         for n.
74260
74261         [BZ #12711]
74262         * locale/C-translit.h.in: Add entry for U20B9.
74263         Patch by pravin.d.s@gmail.com.
74264
74265 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74266
74267         [BZ #12713]
74268         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74269         ENAMETOOLONG use generic getcwd.
74270         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74271         in rtld.  Use *stat64.
74272         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74273         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74274         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74275         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74276         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74277         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74278         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74279         __fstatat64 macros.
74280         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74281         * dirent/rewinddir.c: Add libc_hidden_def.
74282         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74283         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74284
74285         * include/dirent.h (__alloc_dir): Add flags parameter.
74286         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74287         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74288         __alloc_dir.
74289         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74290         from fdopendir if O_CLOEXEC is already set.
74291
74292 2011-03-15  Alan Modra  <amodra@gmail.com>
74293
74294         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74295         l_tls_firstbyte_offset non-zero.  Save padding offset in
74296         l_tls_firstbyte_offset for later use.
74297         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74298         freeing static tls block.
74299
74300 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74301
74302         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74303         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74304         being defined by the kernel headers.
74305
74306 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74307
74308         [BZ #12734]
74309         * resolv/resolv.h: Define RES_NOTLDQUERY.
74310         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74311         no-tld-query and set RES_NOTLDQUERY.
74312         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74313         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74314         modern BIND to search name as TLD unless forbidden.
74315
74316 2011-05-07  Petr Baudis  <pasky@suse.cz>
74317             Ulrich Drepper  <drepper@gmail.com>
74318
74319         [BZ #12393]
74320         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74321         (is_trusted_path): ...to here.
74322         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74323         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74324         using is_trusted_path_normalize() in setuid scripts.
74325
74326 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74327
74328         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74329         __BEGIN/__END_DECLS.
74330
74331 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74332
74333         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74334         NSS_STATUS_NOTFOUND if no record was found.
74335
74336 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74337
74338         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74339         (headers-not-in-tirpc): Remove rpc/netdb.h
74340         * resolv/netdb.h: Revert last change.
74341
74342 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74343
74344         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74345         circular dependency between libgcc.a and libc.a.
74346
74347 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74348
74349         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74350         * nis/Makefile: Don't install rpcsvc/*.
74351         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74352         instead of <rpc/types.h>.
74353         (MAXHOSTNAMELEN): Define.
74354
74355 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74356
74357         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74358
74359 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74360
74361         [BZ #12714]
74362         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74363         gethostbyname4_r when IPv6 results are possible.
74364
74365 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74366
74367         [BZ #12723]
74368         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74369         _PC_PIPE_BUF handling.
74370
74371 2011-04-30  Bruno Haible  <bruno@clisp.org>
74372
74373         [BZ #12717]
74374         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74375         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74376         to 'int'.
74377         * inet/getnameinfo.c (getnameinfo): Likewise.
74378
74379 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74380
74381         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74382         to groups setting in database lookup.
74383         * nss/nsswitch.conf: Add initgroups entry.
74384
74385 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74386
74387         [BZ #12685]
74388         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74389         mode string.
74390         Patch by Eric Blake <eblake@redhat.com>.
74391
74392 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74393
74394         * sunrpc/Makefile (need-export-routines): Add svc_run.
74395         (routines): Remove svc_run.
74396         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74397         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74398         * sunrpc/svc_run.c (svc_run): Likewise.
74399         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74400
74401 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74402
74403         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74404         problem in reallocation in last patch.
74405
74406 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74407
74408         * sunrpc/Makefile: Move inclusion of Rules.
74409
74410 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74411
74412         * nss/nss_files/files-initgroups.c: New file.
74413         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74414         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74415         _nss_files_initgroups_dyn.
74416
74417 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74418
74419         * elf/elf.h (R_ARM_IRELATIVE): Define.
74420
74421 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74422
74423         * po/ru.po: Update from translation team.
74424
74425 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74426
74427         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74428         dependencies.
74429
74430 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74431
74432         [BZ #12653]
74433         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74434         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74435         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74436         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74437         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74438
74439 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74440
74441         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74442         differing bytes.
74443         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74444         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74445         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74446
74447 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74448
74449         [BZ #12420]
74450         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74451         storing it.
74452         * stdlib/bug-getcontext.c: New file.
74453         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74454
74455 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74456
74457         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74458         instructions into .machine "z9-109".
74459         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74460         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74461
74462 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74463
74464         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74465         between environment variables and auxiliary vector.
74466
74467 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74468
74469         * Makefile: Add rules to build linkobj/libc.so.
74470         * include/libc-symbols.h: Define libc_hidden_nolink.
74471         * include/rpc/auth.h: Mark functions which are to be hidden.
74472         * include/rpc/auth_des.h: Likewise.
74473         * include/rpc/auth_unix.h: Likewise.
74474         * include/rpc/clnt.h: Likewise.
74475         * include/rpc/des_crypt.h: Likewise.
74476         * include/rpc/key_prot.h: Likewise.
74477         * include/rpc/pmap_clnt.h: Likewise.
74478         * include/rpc/pmap_prot.h: Likewise.
74479         * include/rpc/pmap_rmt.h: Likewise.
74480         * include/rpc/rpc_msg.h: Likewise.
74481         * include/rpc/svc.h: Likewise.
74482         * include/rpc/svc_auth.h: Likewise.
74483         * include/rpc/xdr.h: Likewise.
74484         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74485         * nss/Makefile: Likewise.
74486         * sunrpc/Makefile: Don't install headers.  Build library with normal
74487         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74488         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74489         for the compat linking library.  Remove use of INTDEF/INTUSE.
74490         * sunrpc/auth_none.c: Likewise.
74491         * sunrpc/auth_unix.c: Likewise.
74492         * sunrpc/authdes_prot.c: Likewise.
74493         * sunrpc/authuxprot.c: Likewise.
74494         * sunrpc/clnt_gen.c: Likewise.
74495         * sunrpc/clnt_perr.c: Likewise.
74496         * sunrpc/clnt_raw.c: Likewise.
74497         * sunrpc/clnt_simp.c: Likewise.
74498         * sunrpc/clnt_tcp.c: Likewise.
74499         * sunrpc/clnt_udp.c: Likewise.
74500         * sunrpc/clnt_unix.c: Likewise.
74501         * sunrpc/des_crypt.c: Likewise.
74502         * sunrpc/des_soft.c: Likewise.
74503         * sunrpc/get_myaddr.c: Likewise.
74504         * sunrpc/key_call.c: Likewise.
74505         * sunrpc/key_prot.c: Likewise.
74506         * sunrpc/netname.c: Likewise.
74507         * sunrpc/pm_getmaps.c: Likewise.
74508         * sunrpc/pm_getport.c: Likewise.
74509         * sunrpc/pmap_clnt.c: Likewise.
74510         * sunrpc/pmap_prot.c: Likewise.
74511         * sunrpc/pmap_prot2.c: Likewise.
74512         * sunrpc/pmap_rmt.c: Likewise.
74513         * sunrpc/publickey.c: Likewise.
74514         * sunrpc/rpc_cmsg.c: Likewise.
74515         * sunrpc/rpc_common.c: Likewise.
74516         * sunrpc/rpc_dtable.c: Likewise.
74517         * sunrpc/rpc_prot.c: Likewise.
74518         * sunrpc/rpc_thread.c: Likewise.
74519         * sunrpc/rtime.c: Likewise.
74520         * sunrpc/svc.c: Likewise.
74521         * sunrpc/svc_auth.c: Likewise.
74522         * sunrpc/svc_authux.c: Likewise.
74523         * sunrpc/svc_raw.c: Likewise.
74524         * sunrpc/svc_run.c: Likewise.
74525         * sunrpc/svc_simple.c: Likewise.
74526         * sunrpc/svc_tcp.c: Likewise.
74527         * sunrpc/svc_udp.c: Likewise.
74528         * sunrpc/svc_unix.c: Likewise.
74529         * sunrpc/svcauth_des.c: Likewise.
74530         * sunrpc/xcrypt.c: Likewise.
74531         * sunrpc/xdr.c: Likewise.
74532         * sunrpc/xdr_array.c: Likewise.
74533         * sunrpc/xdr_float.c: Likewise.
74534         * sunrpc/xdr_intXX_t.c: Likewise.
74535         * sunrpc/xdr_mem.c: Likewise.
74536         * sunrpc/xdr_rec.c: Likewise.
74537         * sunrpc/xdr_ref.c: Likewise.
74538         * sunrpc/xdr_sizeof.c: Likewise.
74539         * sunrpc/xdr_stdio.c: Likewise.
74540
74541 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74542
74543         [BZ #12650]
74544         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74545         * sysdeps/ia64/dl-tls.h: Likewise.
74546         * sysdeps/powerpc/dl-tls.h: Likewise.
74547         * sysdeps/s390/dl-tls.h: Likewise.
74548         * sysdeps/sh/dl-tls.h: Likewise.
74549         * sysdeps/sparc/dl-tls.h: Likewise.
74550         * sysdeps/x86_64/dl-tls.h: Likewise.
74551         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74552
74553 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74554
74555         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74556         rpath element also skip the following colon.
74557         (expand_dynamic_string_token): Add is_path parameter and pass
74558         down to DL_DST_REQUIRED and _dl_dst_substitute.
74559         (decompose_rpath): Call expand_dynamic_string_token with
74560         non-zero is_path.  Ignore empty rpaths.
74561         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74562         with zero is_path.
74563
74564 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74565
74566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74567         Make cancelable.
74568
74569 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74570
74571         [BZ #12655]
74572         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74573         Patch by Filipe David Manana <fdmanana@apache.org>.
74574
74575 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74576
74577         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74578         Maintain aligned stack.
74579         (CHECK_RSP): Remove unused macro.
74580
74581 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74582
74583         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74584         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74585
74586 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74587
74588         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74589
74590         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74591
74592 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74593
74594         [BZ #12518]
74595         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74596         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74597         * sysdeps/x86_64/memmove.c: New file.
74598         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74599         (memcpy): Renamed to ...
74600         (__new_memcpy): This.
74601         (memcpy): Provide GLIBC_2_14 memcpy.
74602         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74603         (memcpy): Provide GLIBC_2_2_5 memcpy.
74604
74605 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74606
74607         [BZ #12631]
74608         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74609
74610 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74611
74612         * misc/syncfs.c: New file.
74613         * misc/Makefile (routines): Add syncfs.
74614         * posix/unistd.h: Declare syncfs.
74615         * sysdeps/unix/syscalls.list: Add syncfs.
74616
74617 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74618
74619         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74620         open_by_handle_at.
74621         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74622         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74623         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74624         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74625         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74626         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74627         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74628
74629 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74630
74631         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74632         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74633         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74634         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74635         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74636         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74637         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74638
74639         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74640         sync_file_range.c with -fexceptions.
74641         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74642         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74643         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74644         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74645         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74646         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74647         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74648         sync_file_range as cancellation point
74649         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74650         now a wrapper around __call_sync_file_range with cancellation handling.
74651         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74652         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74653         function name to __call_sync_file_range.
74654         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74655         Add call_sync_file_range.
74656
74657 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74658
74659         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74660         bits/timex.h.
74661
74662 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74663
74664         * iconv/iconv.h: Fix typo in comment.
74665         * io/fcntl.h: Likewise.
74666         * libio/stdio.h: Likewise.
74667         * posix/spawn.h: Likewise.
74668         * posix/unistd.h: Likewise.
74669         * stdlib/stdlib.h: Likewise.
74670         * time/time.h: Likewise.
74671         * wcsmbs/wchar.h: Likewise.
74672
74673         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74674         open_by_handle): Add.
74675         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74676         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74677         Augment a few comments.
74678         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74679         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74680         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74681         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74682         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74683         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74684         open_by_handle.
74685
74686         * io/fcntl.h (AT_EMPTY_PATH): Define.
74687
74688 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74689
74690         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74691         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74692         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74693         to...
74694         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74695         * Versions.def: Add GLIBC_2.14.
74696         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74697         Export.
74698
74699 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74700
74701         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74702         round counter.
74703         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74704
74705 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74706
74707         [BZ #12597]
74708         * string/test-strncmp.c (do_page_test): New function.
74709         (check2): Likewise.
74710         (test_main): Call check2.
74711         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74712
74713 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74714
74715         [BZ #12587]
74716         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74717         Handle cache information in CPU leaf 4.
74718         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74719
74720 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74721
74722         [BZ #12583]
74723         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74724         character representation.
74725         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74726
74727 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74728
74729         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74730         END(__isnan) to END(__isnanf) to match function entry point/label
74731         EALIGN(__isnanf,...).
74732
74733 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74734
74735         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74736
74737 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74738
74739         [BZ #12510]
74740         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74741         copy from the symbol referenced in the relocation to initialize the
74742         used variable.
74743         Patch by Piotr Bury <pbury@goahead.com>.
74744         * elf/Makefile: Add rules to build and tst-unique3.
74745         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74746         * elf/tst-unique3.cc: New file.
74747         * elf/tst-unique3.h: New file.
74748         * elf/tst-unique3lib.cc: New file.
74749         * elf/tst-unique3lib2.cc: New file.
74750
74751         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74752
74753 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74754
74755         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74756         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74757         to _start.
74758
74759 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74760
74761         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74762         to-be-loaded object along a path to loader is ld.so.
74763
74764 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74765             Ulrich Drepper  <drepper@gmail.com>
74766
74767         * sysdeps/x86_64/memset.S: After aligning destination, code
74768         branches to different locations depending on the value of
74769         misalignment, when multiarch is enabled. Fix this.
74770
74771 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74772
74773         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74774         Set _x86_64_preferred_memory_instruction for AMD processsors.
74775         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74776         Set bit_Prefer_SSE_for_memop for AMD processors.
74777
74778 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74779
74780         * libio/fmemopen.c (fmemopen): Optimize a bit.
74781
74782 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74783
74784         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74785
74786 2011-03-03  Roland McGrath  <roland@redhat.com>
74787
74788         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74789
74790 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74791
74792         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74793         __bzero_ultra1 instead of __memset_ultra1.
74794
74795 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74796             Ulrich Drepper  <drepper@gmail.com>
74797
74798         [BZ #12509]
74799         * include/link.h (struct link_map): Add l_orig_initfini.
74800         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74801         returning unsuccessfully.
74802         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74803         close of a file loaded at startup, restore the original l_initfini
74804         list.
74805         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74806         list, store the pointer.
74807         * elf/Makefile ($(objpfx)noload-mem): New rule.
74808         (noload-ENV): Define.
74809         (tests): Add $(objpfx)noload-mem.
74810         * elf/noload.c: Include <memcheck.h>.
74811         (main): Call mtrace.  Close all opened handles.
74812
74813 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74814
74815         [BZ #12454]
74816         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74817         dependencies are missing.
74818
74819 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74820
74821         Fix __if_freereq crash: Unlike the generic version which uses free,
74822         Hurd needs munmap.
74823         * sysdeps/mach/hurd/ifreq.h: New file.
74824
74825 2011-01-27  Petr Baudis  <pasky@suse.cz>
74826             Ulrich Drepper  <drepper@gmail.com>
74827
74828         [BZ 12445]#
74829         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74830         to extend_alloca().
74831         * stdio-common/bug23.c: New file.
74832         * stdio-common/Makefile (tests): Add bug23.
74833
74834 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74835             Ulrich Drepper  <drepper@gmail.com>
74836
74837         [BZ #12489]
74838         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74839         before performing relro protection.  At old place add assertion
74840         to make sure nothing changed.
74841
74842 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
74843             Glauber de Oliveira Costa  <glommer@gmail.com>
74844
74845         * elf/elf.h: Add new ARM TLS relocs.
74846
74847 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
74848
74849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
74850         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
74851         cast from r3.
74852         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
74853         'tests' variable.
74854         * sysdeps/wordsize-64/tst-writev.c: New file.
74855
74856 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
74857
74858         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
74859         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
74860         insns in _dl_start to prevent a TOC reference before relocs are
74861         resolved.
74862
74863 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
74864
74865         [BZ #12469]
74866         * Makeconfig: Remove RANLIB definition.
74867         * Makerules: Don't use RANLIB.
74868         * aclocal.m4: Remove ranlib test.
74869         * configure.in: No need to check for ranlib.
74870         * elf/rtld-Rules: Don't use RANLIB.
74871
74872 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74873
74874         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
74875         protection macro.
74876         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
74877         inclusion protection macro.
74878
74879         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
74880         SIGRTMIN and SIGRTMAX and print information in that case only when
74881         SIGRTMIN is defined.
74882
74883 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
74884
74885         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
74886         arginfo fn returning -1.
74887
74888         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
74889         and thousands string is zero terminated.
74890
74891 2011-02-03  Andreas Schwab  <schwab@redhat.com>
74892
74893         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
74894         sysdeps/unix/sysv/linux/bits/socket.h.
74895
74896 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74897
74898         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
74899         (__CPU_COUNT): Remove old macros.
74900         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
74901         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
74902         (__CPU_ALLOC, __CPU_FREE): Add macros.
74903         (__sched_cpualloc, __sched_cpufree): Add declarations.
74904
74905 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
74906
74907         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
74908         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
74909         * nscd/aicache.c (addhstaiX): Return timeout of added value.
74910         (readdhstai): Return value of addhstaiX call.
74911         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
74912         (addgrbyX): Return value returned by cache_addgr.
74913         (readdgrbyname): Return value returned by addgrbyX.
74914         (readdgrbygid): Likewise.
74915         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
74916         (addpwbyX): Return value returned by cache_addpw.
74917         (readdpwbyname): Return value returned by addhstbyX.
74918         (readdpwbyuid): Likewise.
74919         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
74920         (addservbyX): Return value returned by cache_addserv.
74921         (readdservbyname): Return value returned by addservbyX:
74922         (readdservbyport): Likewise.
74923         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
74924         (addhstbyX): Return value returned by cache_addhst.
74925         (readdhstbyname): Return value returned by addhstbyX.
74926         (readdhstbyaddr): Likewise.
74927         (readdhstbynamev6): Likewise.
74928         (readdhstbyaddrv6): Likewise.
74929         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
74930         (readdinitgroups): Return value returned by addinitgroupsX.
74931         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
74932         (prune_cache): Keep track of timeout value of re-added entries.
74933         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
74934         * nscd/nscd.h: Adjust prototypes of readd* functions.
74935
74936 2011-02-04  Roland McGrath  <roland@redhat.com>
74937
74938         * nis/nis_server.c (nis_servstate): Use the right name for 0.
74939         (nis_stats): Likewise.
74940         * nis/nis_modify.c (nis_modify): Likewise.
74941         * nis/nis_remove.c (nis_remove): Likewise.
74942         * nis/nis_add.c (nis_add): Likewise.
74943
74944         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
74945
74946         * posix/fnmatch_loop.c: Add some consts.
74947
74948         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
74949
74950 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
74951
74952         [BZ #12460]
74953         * config.make.in (config-cflags-novzeroupper): Define.
74954         * configure.in: Substitute libc_cv_cc_novzeroupper.
74955         * elf/Makefile (AVX-CFLAGS): Define.
74956         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
74957         (CFLAGS-tst-auditmod4a.c): Likewise.
74958         (CFLAGS-tst-auditmod4b.c): Likewise.
74959         (CFLAGS-tst-auditmod6b.c): Likewise.
74960         (CFLAGS-tst-auditmod6c.c): Likewise.
74961         (CFLAGS-tst-auditmod7b.c): Likewise.
74962         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
74963
74964 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
74965
74966         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
74967         function to the callback.
74968         Patch partly by Jiri Olsa <jolsa@redhat.com>.
74969
74970 2011-02-02  Andreas Schwab  <schwab@redhat.com>
74971
74972         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
74973         of errno.
74974
74975 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
74976
74977         [BZ #11724]
74978         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
74979         of constructors.
74980         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
74981         of destructors.
74982         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
74983
74984         [BZ #11724]
74985         * elf/Makefile: Add rules to build and run new test.
74986         * elf/tst-initorder.c: New file.
74987         * elf/tst-initorder.exp: New file.
74988         * elf/tst-initordera1.c: New file.
74989         * elf/tst-initordera2.c: New file.
74990         * elf/tst-initordera3.c: New file.
74991         * elf/tst-initordera4.c: New file.
74992         * elf/tst-initorderb1.c: New file.
74993         * elf/tst-initorderb2.c: New file.
74994         * elf/tst-order-a1.c: New file.
74995         * elf/tst-order-a2.c: New file.
74996         * elf/tst-order-a3.c: New file.
74997         * elf/tst-order-a4.c: New file.
74998         * elf/tst-order-b1.c: New file.
74999         * elf/tst-order-b2.c: New file.
75000         * elf/tst-order-main.c: New file.
75001         New test case by George Gensure <werkt0@gmail.com>.
75002
75003 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75004
75005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75006         decoding ACE if AI_CANONIDN.
75007
75008 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75009
75010         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75011
75012 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75013
75014         * version.h (RELEASE): Bump for 2.13 release.
75015         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75016
75017         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75018
75019         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75020         MADV_NOHUGEPAGE.
75021         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75022         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75023         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75024         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75025         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75026         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75027
75028         * posix/getconf.c: Update copyright year.
75029         * catgets/gencat.c: Likewise.
75030         * csu/version.c: Likewise.
75031         * debug/catchsegv.sh: Likewise.
75032         * debug/xtrace.sh: Likewise.
75033         * elf/ldconfig.c: Likewise.
75034         * elf/ldd.bash.in: Likewise.
75035         * elf/sprof.c (print_version): Likewise.
75036         * iconv/iconv_prog.c: Likewise.
75037         * iconv/iconvconfig.c: Likewise.
75038         * locale/programs/locale.c: Likewise.
75039         * locale/programs/localedef.c: Likewise.
75040         * malloc/memusage.sh: Likewise.
75041         * malloc/mtrace.pl: Likewise.
75042         * nscd/nscd.c (print_version): Likewise.
75043         * nss/getent.c: Likewise.
75044
75045         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75046         PF_CAIF, and PF_ALG.
75047         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75048
75049 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75050
75051         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75052         (modules-names): Use them.
75053         (ifunc-test-modules, ifunc-pie-tests): Define.
75054         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75055         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75056         (test-extras): Likewise.
75057         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75058         $(compile-command.c).
75059         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75060         (all-built-dso): Define.
75061         (check-textrel.out, check-execstack.out): Depend on it.
75062
75063         * configure.in: Don't override --enable-multi-arch.
75064
75065 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75066
75067         [BZ #6812]
75068         * nscd/hstcache.c (tryagain): Define.
75069         (cache_addhst): Return tryagain not notfound for temporary errors.
75070         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75071         failed.
75072
75073 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75074
75075         [BZ #10563]
75076         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75077         to make the syscall.
75078         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75079
75080         [BZ #12378]
75081         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75082         and fall back to matching as normal character if the string ends before
75083         the matching ']' is found.  This is what POSIX requires.
75084         * posix/testfnm.c: Adjust test result.
75085         * posix/globtest.sh: Adjust test result.  Add new test.
75086         * posix/tst-fnmatch.input: Likewise.
75087         * posix/tst-fnmatch2.c: Add new test.
75088
75089 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75090
75091         * elf/Makefile (check-execstack): Revert last change.  Depend on
75092         check-execstack.h.
75093         (check-execstack.h): New target.
75094         (generated): Add check-execstack.h.
75095         * elf/check-execstack.c: Include "check-execstack.h".
75096         (main): Revert last change.
75097         (handle_file): Return zero if GNU_STACK is absent and
75098         DEFAULT_STACK_PERMS doesn't include PF_X.
75099
75100 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75101
75102         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75103         in child fails because the descriptor is already closed.
75104         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75105         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75106         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75107
75108         [BZ #12397]
75109         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75110         syscall.
75111
75112         [BZ #10484]
75113         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75114         temporary buffer used to handle multi lookups locally.
75115         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75116
75117 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75118
75119         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75120         loader is ld.so.
75121
75122 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75123
75124         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75125         alignment for SSE2.
75126
75127 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75128
75129         [BZ #12394]
75130         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75131         characters.  When rounding increased number of integer digits recompute
75132         number of groups.
75133         * stdio-common/tst-grouping.c: New file.
75134         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75135
75136 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75137
75138         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75139         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75140
75141         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75142         void.
75143         * bits/select.h: Likewise.
75144
75145 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75146
75147         * po/ja.po: Update from translation team.
75148
75149 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75150
75151         [BZ #11155]
75152         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75153         implementation just like for lxstat, fxstatat, et al.
75154
75155 2010-12-27  Jim Meyering  <meyering@redhat.com>
75156
75157         [BZ #12348]
75158         * posix/regexec.c (build_trtable): Return failure indication upon
75159         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75160
75161 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75162
75163         [BZ #12201]
75164         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75165         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75166         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75167         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75168
75169         [BZ #12207]
75170         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75171
75172         [BZ #12204]
75173         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75174         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75175
75176 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75177
75178         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75179         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75180         script has SORT_BY_INIT_PRIORITY.
75181         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75182         NO_CTORS_DTORS_SECTIONS is defined.
75183         * elf/soinit.c: Likewise.
75184         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75185         NO_CTORS_DTORS_SECTIONS is defined.
75186         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75187         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75188         * sysdeps/sh/init-first.c: Likewise.
75189         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75190
75191 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75192
75193         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75194         always use the slow path.
75195
75196 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75197
75198         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75199         similar rule which adds the sysdep directories to the header search in
75200         order to pick up the correct platform stackinfo.h.
75201         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75202         perform test if it is, otherwise return successfully without testing.
75203         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75204         DEFAULT_STACK_PERMS define in stackinfo.h.
75205         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75206         defined in stackinfo.h.
75207         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75208         DEFAULT_STACK_PERMS defined in stackinfo.h.
75209         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75210         * sysdeps/ia64/stackinfo.h: Likewise.
75211         * sysdeps/s390/stackinfo.h: Likewise.
75212         * sysdeps/sh/stackinfo.h: Likewise.
75213         * sysdeps/sparc/stackinfo.h: Likewise.
75214         * sysdeps/x86_64/stackinfo.h: Likewise.
75215         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75216         PF_X for powerpc64.  Retain PF_X for powerpc32.
75217
75218 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75219
75220         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75221         accurately.
75222         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75223         GETDENTS_64BIT_ALIGNED.
75224
75225 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75226
75227         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75228
75229 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75230
75231         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75232         _GNU_SOURCE.
75233
75234         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75235         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75236         Remove __restrict.
75237         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75238         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75239
75240 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75241
75242         [BZ #11655]
75243         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75244         are initialized.
75245
75246 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75247
75248         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75249
75250 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75251
75252         * po/it.po: Update from translation team.
75253
75254 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75255
75256         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75257         unused codes.
75258
75259 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75260
75261         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75262
75263 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75264
75265         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75266         specially.
75267         (gaih_getanswer_slice): Likewise.
75268
75269 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75270
75271         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75272
75273 2010-05-31  Petr Baudis  <pasky@suse.cz>
75274
75275         [BZ #11149]
75276         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75277         silently even in the chroot mode.
75278
75279 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75280
75281         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75282         last patch a bit.  Pretty printing
75283
75284 2010-05-31  Petr Baudis <pasky@suse.cz>
75285
75286         [BZ #10085]
75287         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75288         initialization of skip_initgroups_dyn.
75289
75290 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75291
75292         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75293         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75294
75295 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75296
75297         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75298
75299 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75300
75301         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75302         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75303         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75304         ($(objpfx)tst-fnmatch-mem): New rule.
75305         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75306         * posix/tst-fnmatch.c (main): Call mtrace.
75307
75308 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75309
75310         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75311         Support Intel processor model 6 and model 0x2c.
75312
75313 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75314
75315         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75316           signed comparison.
75317
75318 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75319
75320         [BZ #12205]
75321         * string/test-strncasecmp.c (check_result): New function.
75322         (do_one_test): Use it.
75323         (check1): New function.
75324         (test_main): Use it.
75325         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75326         Support strcasecmp and strncasecmp.
75327
75328 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75329
75330         [BZ #12194]
75331         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75332         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75333
75334 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75335
75336         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75337         IFUNC support.
75338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75339         memset-x86-64.
75340         * sysdeps/x86_64/multiarch/bzero.S: New file.
75341         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75342         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75343         * sysdeps/x86_64/multiarch/memset.S: New file.
75344         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75345         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75346         Set bit_Prefer_SSE_for_memop for Intel processors.
75347         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75348         Define.
75349         (index_Prefer_SSE_for_memop): Define.
75350         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75351
75352 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75353
75354         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75355         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75356
75357 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75358
75359         [BZ #12191]
75360         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75361         (__x86_64_raw_data_cache_size_half): Likewise.
75362         (__x86_64_raw_shared_cache_size): Likewise.
75363         (__x86_64_raw_shared_cache_size_half): Likewise.
75364
75365         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75366         (__x86_64_raw_data_cache_size_half): Likewise.
75367         (__x86_64_raw_shared_cache_size): Likewise.
75368         (__x86_64_raw_shared_cache_size_half): Likewise.
75369         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75370         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75371         and __x86_64_raw_shared_cache_size_half.  Round
75372         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75373         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75374         to multiple of 256 bytes.
75375
75376 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75377
75378         [BZ #12167]
75379         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75380         of inacessible symlinks.  Verify result of symlink before returning it.
75381         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75382         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75383
75384 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75385
75386         * math/math.h (isinf): Fix typo in comment.
75387
75388 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75389
75390         * po/da.po: Update from translation team.
75391
75392 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75393
75394         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75395         is added to the list.
75396
75397 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75398             Ulrich Drepper  <drepper@gmail.com>
75399
75400         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75401         the global list here.  Move code to...
75402         (_dl_add_to_namespace_list): ...here.  New function.
75403         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75404         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75405         * elf/dl-load.c (lose): Don't remove the element from the list.
75406         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75407         (_dl_map_object): Likewise.
75408
75409 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75410
75411         [BZ #12159]
75412         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75413         into all bytes of SSE register.
75414         Patch by Richard Li <richardpku@gmail.com>.
75415
75416 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75417
75418         [BZ #12140]
75419         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75420         perturbing.
75421
75422 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75423
75424         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75425         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75426         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75427         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75429         submachine.
75430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75431
75432 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75433
75434         * include/dlfcn.h (__RTLD_SECURE): Define.
75435         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75436         mode & __RTLD_SECURE instead.
75437         (open_path): Rename preloaded parameter to secure.
75438         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75439         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75440         * elf/dl-deps.c (openaux): Likewise.
75441         * elf/rtld.c (struct map_args): Remove is_preloaded.
75442         (map_doit): Don't use it.
75443         (dl_main): Likewise.
75444         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75445         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75446
75447 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75448
75449         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75450         (sysd-rules-targets): Remove duplicates.
75451         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75452         rtld-%.$o dependency.
75453
75454 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75455
75456         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75457         _dl_map_object do it.
75458
75459 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75460
75461         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75462         fast fma builtins, define the macros in the C99 standard.
75463         (FP_FAST_FMAF): Likewise.
75464         (FP_FAST_FMAL): Likewise.
75465         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75466
75467         * bits/mathdef.h: Update copyright year.
75468         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75469
75470 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75471
75472         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75473         builtins, define the macros in the C99 standard.
75474         (FP_FAST_FMAF): Likewise.
75475         (FP_FAST_FMAL): Likewise.
75476         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75477         multiply/add.
75478         (FP_FAST_FMAF): Likewise.
75479
75480 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75481
75482         [BZ #3268]
75483         * math/libm-test.inc (fma_test): Some new testcases.
75484         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75485         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75486         y and infinite z.  Do multiplication by C already in long double.
75487         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75488         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75489         y and infinite z.  Do bitwise or of inexact bit into u.d.
75490         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75491         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75492         * sysdeps/i386/fpu/s_fma.S: Removed.
75493         * sysdeps/i386/fpu/s_fmal.S: Removed.
75494
75495 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75496
75497         [BZ #3268]
75498         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75500         computation is not scheduled after fetestexcept.  Fix value
75501         of minimum denormal long double.
75502
75503 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75504
75505         [BZ #3268]
75506         * math/libm-test.inc (fma_test): Add some more tests.
75507         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75508         correctly.
75509
75510 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75511
75512         * scripts/data/localplt-s390-linux-gnu.data: New file.
75513         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75514
75515 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75516
75517         [BZ #3268]
75518         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75519         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75520         instead of dbl-64.
75521         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75522         inlines.
75523         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75524         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75525         if one of x and y is very large and the other is subnormal.
75526         * sysdeps/s390/fpu/s_fmaf.c: New file.
75527         * sysdeps/s390/fpu/s_fma.c: New file.
75528         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75529         * sysdeps/powerpc/fpu/s_fma.S: New file.
75530         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75531         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75532         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75533
75534 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75535
75536         [BZ #3268]
75537         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75538         fma tests.
75539         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75540         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75541         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75542         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75543         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75544         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75545         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75546
75547 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75548
75549         [BZ #12078]
75550         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75551         * posix/bug-regex31.input: Add test case.
75552
75553 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75554
75555         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75556         * posix/bug-regex31.input: New file.
75557
75558         [BZ #12078]
75559         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75560         (parse_sub_exp): Fix last change, use postorder.
75561
75562         * posix/bug-regex31.c: New file.
75563         * posix/Makefile: Add rules to build and run bug-regex31.
75564
75565         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75566
75567         [BZ #12078]
75568         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75569
75570         [BZ #12108]
75571         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75572         to have entries in sys_siglist.
75573
75574         [BZ #12093]
75575         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75576         be NULL.
75577
75578 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75579
75580         [BZ #3268]
75581         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75582         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75583         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75584         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75585         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75586         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75587         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75588         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75589         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75590         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75591         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75592         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75593         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75594         * math/ftestexcept.c (fetestexcept): Likewise.
75595         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75596         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75597         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75598         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75599         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75600         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75601         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75602
75603 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75604
75605         [BZ #12107]
75606         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75607         newline.
75608
75609 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75610
75611         * string/bug-strstr1.c: New file.
75612         * string/Makefile: Add rules to build and run bug-strstr1.
75613
75614 2010-10-05  Eric Blake  <eblake@redhat.com>
75615
75616         [BZ #12092]
75617         * string/str-two-way.h (two_way_long_needle): Always clear memory
75618         when skipping input due to the shift table.
75619
75620 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75621
75622         [BZ #12005]
75623         * malloc/mcheck.c: Handle large requests.
75624
75625         [BZ #12077]
75626         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75627         for strncmp and strncasecmp.
75628         * string/stratcliff.c: Add tests for strcmp and strncmp.
75629         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75630
75631 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75632
75633         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75634         __set_fpscr.
75635
75636 2010-09-30  Andreas Jaeger  <aj@suse.de>
75637
75638         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75639         (CGROUP_SUPER_MAGIC): Define.
75640         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75641         Handle btrfs and cgroup file systems.
75642         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75643         Likewise.
75644
75645 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75646
75647         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75648         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75649
75650 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75651
75652         [BZ #12067]
75653         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75654         trying to locate the ELF header.
75655
75656 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75657
75658         [BZ #11611]
75659         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75660         Mask out sign-bit copies when constructing f_fsid.
75661
75662 2010-09-24  Petr Baudis <pasky@suse.cz>
75663
75664         * debug/stack_chk_fail_local.c: Add missing licence exception.
75665         * debug/warning-nop.c: Likewise.
75666
75667 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75668
75669         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75670         implementing getdents64 using getdents syscall, set d_type if
75671         __ASSUME_GETDENTS32_D_TYPE.
75672
75673 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75674
75675         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75676         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75677
75678 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75679
75680         [BZ #12037]
75681         * posix/unistd.h: Undo change of feature selection for ftruncate from
75682         2010-01-11.
75683
75684 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75685
75686         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75687         detection.
75688
75689 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75690
75691         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75692         fanotify_mark.
75693         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75694
75695 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75696
75697         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75698         variables after CHECK_SP call.
75699         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75700
75701 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75702             Ulrich Drepper  <drepper@redhat.com>
75703
75704         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75705         re-relocationg ld.so.
75706         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75707         _dl_init_paths call.
75708         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75709         here anymore.
75710
75711 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75712
75713         * resolv/res_init.c (__res_vinit): Count the default server we added.
75714
75715 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75716             Ulrich Drepper  <drepper@redhat.com>
75717
75718         [BZ #11968]
75719         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75720         (____longjmp_chk): Use %ebx for saving value across system call.
75721         Add unwind info.
75722
75723 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75724
75725         * manual/Makefile: Don't mix pattern rules with normal rules.
75726
75727 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75728
75729         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75730         operation.
75731         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75732         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75733         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75734         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75735         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75736         Likewise.
75737
75738 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75739
75740         [BZ #11979]
75741         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75742         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75743
75744 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75745
75746         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75747         * sysdeps/x86_64/addmul_1.S: Likewise.
75748         * sysdeps/x86_64/lshift.S: Likewise.
75749         * sysdeps/x86_64/mul_1.S: Likewise.
75750         * sysdeps/x86_64/rshift.S: Likewise.
75751         * sysdeps/x86_64/sub_n.S: Likewise.
75752         * sysdeps/x86_64/submul_1.S: Likewise.
75753
75754 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75755
75756         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75757         Define __sched_param instead of SCHED_* and sched_param when
75758         <bits/sched.h> is included with __need_schedparam defined.
75759         * bits/sched.h [__need_schedparam]
75760         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75761         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75762         (__defined_schedparam): Define to 1.
75763         (__sched_param): New structure, identical to sched_param.
75764         (__need_schedparam): Undefine.
75765
75766 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75767
75768         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75769         (epoll_create1): Declare.
75770
75771         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75772
75773 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75774
75775         [BZ #7066]
75776         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75777         shifting retval into place.
75778
75779 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75780
75781         * nis/rpcsvc/nis.h: Update copyright notice.
75782         * nis/rpcsvc/nis.x: Likewise.
75783         * nis/rpcsvc/nis_callback.h: Likewise.
75784         * nis/rpcsvc/nis_callback.x: Likewise.
75785         * nis/rpcsvc/nis_object.x: Likewise.
75786         * nis/rpcsvc/nis_tags.h: Likewise.
75787         * nis/rpcsvc/yp.h: Likewise.
75788         * nis/rpcsvc/yp.x: Likewise.
75789         * nis/rpcsvc/ypupd.h: Likewise.
75790         * nis/yp_xdr.c: Likewise.
75791         * nis/ypupdate_xdr.c: Likewise.
75792
75793         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75794         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75795         (pmap_getport): Use __libc_rpc_getport.
75796         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75797         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75798         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75799
75800 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75801
75802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75803         fanotify_mark.
75804
75805 2010-08-27  Roland McGrath  <roland@redhat.com>
75806
75807         * sysdeps/i386/i686/multiarch/Makefile
75808         (CFLAGS-varshift.c): New variable.
75809
75810 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75811
75812         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75813         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75814
75815         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75816
75817         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75818
75819 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75820
75821         * sysdeps/x86_64/strlen.S: Unroll the loop.
75822         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75823         strlen-sse2 strlen-sse2-bsf.
75824         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75825         __strlen_no_bsf if bit_Slow_BSF is set.
75826         (__strlen_sse42): Removed.
75827         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75828         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75829
75830 2010-08-25  Roland McGrath  <roland@redhat.com>
75831
75832         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75833         * sysdeps/x86_64/multiarch/varshift.c: New file.
75834         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75835         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75836         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75837         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75838
75839 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75840
75841         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75842         strlen-sse2 strlen-sse2-bsf.
75843         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
75844         __strlen_sse2_bsf if bit_Slow_BSF is unset.
75845         (__strlen_sse2): Removed.
75846         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
75847         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
75848         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
75849         bit_Slow_BSF for Atom.
75850         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
75851         (index_Slow_BSF): Define.
75852         (HAS_SLOW_BSF): Define.
75853
75854 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
75855
75856         [BZ #10851]
75857         * resolv/res_init.c (__res_vinit): When no server address at all
75858         is given default to loopback.
75859
75860 2010-08-24  Roland McGrath  <roland@redhat.com>
75861
75862         * configure.in: Remove config-name.h generation.
75863         * configure: Regenerated.
75864         * config-name.in: File removed.
75865         * scripts/config-uname.sh: New file.
75866         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
75867         ($(objdir)config-name.h): New target.
75868
75869         * sunrpc/rpc_parse.h: Avoid nested comment.
75870
75871 2010-08-24  Richard Henderson  <rth@redhat.com>
75872             Ulrich Drepper  <drepper@redhat.com>
75873             H.J. Lu  <hongjiu.lu@intel.com>
75874
75875         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
75876         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
75877         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
75878         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
75879         _mm_alignr_epi8 with _mm_loadu_si128.
75880         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
75881         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
75882         (__m128i_shift_right): Removed.
75883         * sysdeps/i386/i686/multiarch/varshift.h: New file.
75884         * sysdeps/i386/i686/multiarch/varshift.S: New file.
75885         * sysdeps/x86_64/multiarch/varshift.h: New file.
75886         * sysdeps/x86_64/multiarch/varshift.S: New file.
75887
75888 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
75889
75890         * configure.in: Move assembler checks to before sysdep dir checking.
75891
75892 2010-08-20  Petr Baudis  <pasky@suse.cz>
75893
75894         * LICENSES: Sync the sunrpc license.
75895
75896 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
75897
75898         * sunrpc/auth_des.c: Update copyright notice once again.
75899         * sunrpc/auth_none.c: Likewise.
75900         * sunrpc/auth_unix.c: Likewise.
75901         * sunrpc/authdes_prot.c: Likewise.
75902         * sunrpc/authuxprot.c: Likewise.
75903         * sunrpc/bindrsvprt.c: Likewise.
75904         * sunrpc/clnt_gen.c: Likewise.
75905         * sunrpc/clnt_perr.c: Likewise.
75906         * sunrpc/clnt_raw.c: Likewise.
75907         * sunrpc/clnt_simp.c: Likewise.
75908         * sunrpc/clnt_tcp.c: Likewise.
75909         * sunrpc/clnt_udp.c: Likewise.
75910         * sunrpc/clnt_unix.c: Likewise.
75911         * sunrpc/des_crypt.c: Likewise.
75912         * sunrpc/des_soft.c: Likewise.
75913         * sunrpc/get_myaddr.c: Likewise.
75914         * sunrpc/getrpcport.c: Likewise.
75915         * sunrpc/key_call.c: Likewise.
75916         * sunrpc/key_prot.c: Likewise.
75917         * sunrpc/openchild.c: Likewise.
75918         * sunrpc/pm_getmaps.c: Likewise.
75919         * sunrpc/pm_getport.c: Likewise.
75920         * sunrpc/pmap_clnt.c: Likewise.
75921         * sunrpc/pmap_prot.c: Likewise.
75922         * sunrpc/pmap_prot2.c: Likewise.
75923         * sunrpc/pmap_rmt.c: Likewise.
75924         * sunrpc/rpc/auth.h: Likewise.
75925         * sunrpc/rpc/auth_unix.h: Likewise.
75926         * sunrpc/rpc/clnt.h: Likewise.
75927         * sunrpc/rpc/des_crypt.h: Likewise.
75928         * sunrpc/rpc/key_prot.h: Likewise.
75929         * sunrpc/rpc/netdb.h: Likewise.
75930         * sunrpc/rpc/pmap_clnt.h: Likewise.
75931         * sunrpc/rpc/pmap_prot.h: Likewise.
75932         * sunrpc/rpc/pmap_rmt.h: Likewise.
75933         * sunrpc/rpc/rpc.h: Likewise.
75934         * sunrpc/rpc/rpc_des.h: Likewise.
75935         * sunrpc/rpc/rpc_msg.h: Likewise.
75936         * sunrpc/rpc/svc.h: Likewise.
75937         * sunrpc/rpc/svc_auth.h: Likewise.
75938         * sunrpc/rpc/types.h: Likewise.
75939         * sunrpc/rpc/xdr.h: Likewise.
75940         * sunrpc/rpc_clntout.c: Likewise.
75941         * sunrpc/rpc_cmsg.c: Likewise.
75942         * sunrpc/rpc_common.c: Likewise.
75943         * sunrpc/rpc_cout.c: Likewise.
75944         * sunrpc/rpc_dtable.c: Likewise.
75945         * sunrpc/rpc_hout.c: Likewise.
75946         * sunrpc/rpc_main.c: Likewise.
75947         * sunrpc/rpc_parse.c: Likewise.
75948         * sunrpc/rpc_parse.h: Likewise.
75949         * sunrpc/rpc_prot.c: Likewise.
75950         * sunrpc/rpc_sample.c: Likewise.
75951         * sunrpc/rpc_scan.c: Likewise.
75952         * sunrpc/rpc_scan.h: Likewise.
75953         * sunrpc/rpc_svcout.c: Likewise.
75954         * sunrpc/rpc_tblout.c: Likewise.
75955         * sunrpc/rpc_util.c: Likewise.
75956         * sunrpc/rpc_util.h: Likewise.
75957         * sunrpc/rpcinfo.c: Likewise.
75958         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
75959         * sunrpc/rpcsvc/key_prot.x: Likewise.
75960         * sunrpc/rpcsvc/klm_prot.x: Likewise.
75961         * sunrpc/rpcsvc/mount.x: Likewise.
75962         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
75963         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
75964         * sunrpc/rpcsvc/rex.x: Likewise.
75965         * sunrpc/rpcsvc/rstat.x: Likewise.
75966         * sunrpc/rpcsvc/rusers.x: Likewise.
75967         * sunrpc/rpcsvc/sm_inter.x: Likewise.
75968         * sunrpc/rpcsvc/spray.x: Likewise.
75969         * sunrpc/rpcsvc/yppasswd.x: Likewise.
75970         * sunrpc/rtime.c: Likewise.
75971         * sunrpc/svc.c: Likewise.
75972         * sunrpc/svc_auth.c: Likewise.
75973         * sunrpc/svc_authux.c: Likewise.
75974         * sunrpc/svc_raw.c: Likewise.
75975         * sunrpc/svc_run.c: Likewise.
75976         * sunrpc/svc_simple.c: Likewise.
75977         * sunrpc/svc_tcp.c: Likewise.
75978         * sunrpc/svc_udp.c: Likewise.
75979         * sunrpc/svc_unix.c: Likewise.
75980         * sunrpc/svcauth_des.c: Likewise.
75981         * sunrpc/xcrypt.c: Likewise.
75982         * sunrpc/xdr.c: Likewise.
75983         * sunrpc/xdr_array.c: Likewise.
75984         * sunrpc/xdr_float.c: Likewise.
75985         * sunrpc/xdr_mem.c: Likewise.
75986         * sunrpc/xdr_rec.c: Likewise.
75987         * sunrpc/xdr_ref.c: Likewise.
75988         * sunrpc/xdr_sizeof.c: Likewise.
75989         * sunrpc/xdr_stdio.c: Likewise.
75990
75991         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
75992         handling.
75993
75994 2010-08-19  Andreas Schwab  <schwab@redhat.com>
75995
75996         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
75997
75998 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
75999
76000         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76001         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76002         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76003         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76004         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76005         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76006         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76007         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76008         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76009         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76010         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76011         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76012         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76013         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76014
76015 2010-07-26  Anton Blanchard  <anton@samba.org>
76016
76017         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76018         * malloc/arena.c (heap_trim): Likewise.
76019
76020 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76021
76022         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76023         here.  Not...
76024         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76025         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76026
76027 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76028
76029         * sysdeps/i386/elf/Makefile: New file.
76030
76031 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76032
76033         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76034         from fanotify_init.
76035         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76036         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76037
76038 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76039
76040         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76041         of strncasecmp_l.
76042         * sysdeps/multiarch/strcmp.S: Likewise.
76043
76044 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76045
76046         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76047         strncase_l-nonascii.
76048         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76049         Add strncase_l-ssse3.
76050         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76051         * sysdeps/x86_64/strcmp.S: Likewise.
76052         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76053         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76054         * sysdeps/x86_64/strncase.S: New file.
76055         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76056         * sysdeps/x86_64/strncase_l.S: New file.
76057         * string/Makefile (strop-tests): Add strncasecmp.
76058         * string/test-strncasecmp.c: New file.
76059
76060         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76061         warning.
76062
76063         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76064         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76065
76066 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76067
76068         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76069
76070 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76071
76072         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76073         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76074         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76075
76076 2010-05-01  Alan Modra  <amodra@gmail.com>
76077
76078         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76079         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76080         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76081         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76082         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76083         tidying.  Don't tail-call __sigjmp_save for static lib.
76084         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76085         save location.
76086         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76087         (CALL_MCOUNT): Add eh info, and nop after bl.
76088         (TAIL_CALL_SYSCALL_ERROR): New macro.
76089         (PSEUDO_RET): Use it.
76090         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76091         Correct save location of integer regs and cr.
76092         (_dl_profile_resolve): Correct cr save location.  Delete nops
76093         after bl when SHARED.  Reduce cfi size a little by better
76094         placement of cfi directives.
76095         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76096         make a stack frame.  Instead use parm save area as a temp.
76097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76098         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76100         Don't make a stack frame for parent, use parm save area.
76101         Increase child stack frame to 112 bytes.  Don't save unused reg,
76102         and adjust reg usage.  Set up cfi on error recovery and
76103         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76105         (__makecontext): Add dummy nop after jump to exit.
76106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76107         Use correct parm save area and cr save, reduce stack frame.
76108         Correct cfi for possible PSEUDO_RET frame setup.
76109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76110         Branch to local label emitted by PSEUDO_RET rather than
76111         __syscall_error.
76112
76113 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76114
76115         [BZ #11904]
76116         * locale/programs/locale.c (print_assignment): New function.
76117         (show_locale_vars): Use it.
76118
76119 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76120
76121         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76122         field.
76123         (struct statfs64): Likewise.
76124         (_STATFS_F_FLAGS): Define.
76125         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76126         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76127         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76128         (ST_VALID): Define locally.
76129         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76130         __statvfs_getflags, use the provided value.
76131         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76132         __ASSUME_STATFS_F_FLAGS.
76133
76134         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76135
76136         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76137         Add sys/fanotify.h.
76138         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76139         fanotify_mask for GLIBC_2.13.
76140         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76141         fanotify_init and fanotify_mark.
76142         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76143         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76144
76145         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76146         Add prlimit.
76147         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76148         prlimit64 for GLIBC_2.13.
76149         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76150         prlimit64.
76151         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76152         syscall.
76153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76154         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76155         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76156         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76157         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76158         add prlimit alias.
76159         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76160
76161         [BZ #11903]
76162         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76163         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76164
76165         * nss/Makefile: Add rules to build and run tst-nss-test1.
76166         * shlib-versions: Add entry for libnss_test1.
76167         * nss/nss_test1.c: New file.
76168         * nss/tst-nss-test1.c: New file.
76169
76170         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76171         (__nss_configure_lookup): Set appropriate entry in
76172         __nss_configure_lookup to true.
76173         * nss/nsswitch.h: Define enum with indeces of databases in
76174         databases and __nss_database_custom arrays.  Declare
76175         __nss_database_custom.
76176         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76177         to avoid using nscd when custom rules are installed.
76178         * nss/getXXbyYY_r.c: Likewise.
76179         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76180
76181         * nss/nss_files/files-parse.c: Whitespace fixes.
76182
76183 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76184
76185         [BZ #11883]
76186         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76187         * posix/fnmatch_loop.c: Likewise.
76188
76189 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76190
76191         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76192         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76193         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76194         * Versions.def [GLIBC_2.13]: Add.
76195
76196 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76197
76198         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76199         Also fail if tpwd after pwuid call is NULL.
76200
76201 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76202
76203         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76204         when converting to ms.
76205
76206 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76207
76208         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76209         EOPNOTSUPP errors with ENOTTY.
76210         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76211         EOPNOTSUPP errors with ENOTTY.
76212
76213 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76214
76215         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76216         Add strcasecmp_l-ssse3.
76217         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76218         strcasecmp.
76219         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76220         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76221         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76222
76223 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76224
76225         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76226
76227         * string/Makefile (strop-tests): Add strcasecmp.
76228         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76229         strcasecmp_l-nonascii.
76230         (gen-as-const-headers): Add locale-defines.sym.
76231         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76232         * sysdeps/x86_64/strcasecmp.S: New file.
76233         * sysdeps/x86_64/strcasecmp_l.S: New file.
76234         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76235         * sysdeps/x86_64/locale-defines.sym: New file.
76236         * string/test-strcasecmp.c: New file.
76237
76238         * string/test-strcasestr.c: Test both ends of the range of characters.
76239         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76240
76241 2010-07-29  Roland McGrath  <roland@redhat.com>
76242
76243         [BZ #11856]
76244         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76245
76246 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76247
76248         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76249         for ld.so.
76250
76251 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76252
76253         * manual/memory.texi (Malloc Tunable Parameters): Document
76254         M_PERTURB.
76255
76256 2010-07-26  Roland McGrath  <roland@redhat.com>
76257
76258         [BZ #11840]
76259         * configure.in (-fgnu89-inline check): Set and substitute
76260         gnu89_inline, not libc_cv_gnu89_inline.
76261         * configure: Regenerated.
76262         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76263
76264 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76265
76266         * string/test-strnlen.c: New file.
76267         * string/Makefile (strop-tests): Add strnlen.
76268         * string/tester.c (test_strnlen): Add a few more test cases.
76269         * string/tst-strlen.c: Better error reporting.
76270
76271         * sysdeps/x86_64/strnlen.S: New file.
76272
76273 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76274
76275         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76276         lower-latency instructions.
76277
76278 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76279
76280         * string/test-strcasestr.c: New file.
76281         * string/test-strstr.c: New file.
76282         * string/Makefile (strop-tests): Add strstr and strcasestr.
76283         * string/str-two-way.h: Don't undefine MAX.
76284         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76285
76286 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76287
76288         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76289         strcasestr-nonascii.
76290         (CFLAGS-strcasestr-nonascii.c): Define.
76291         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76292         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76293         Remove unused attribute.
76294
76295 2010-07-20  Roland McGrath  <roland@redhat.com>
76296
76297         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76298         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76299         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76300         like LD_HWCAP_MASK can disable hwcaps.
76301
76302 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76303
76304         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76305
76306 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76307
76308         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76309         call in strcasestr.
76310         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76311         __strcasestr_sse42_nonascii.
76312         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76313         strcasestr-nonascii.c.
76314         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76315
76316 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76317
76318         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76319         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76320         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76321         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76322
76323 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76324
76325         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76326         fcntl.
76327
76328 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76329
76330         [BZ #11577]
76331         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76332         dl_signal_cerror.
76333
76334 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76335
76336         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76337         _PC_PIPE_BUF using F_GETPIPE_SZ.
76338
76339 2010-07-05  Roland McGrath  <roland@redhat.com>
76340
76341         * manual/arith.texi (Rounding Functions): Fix rint description
76342         implicit in round description.
76343
76344 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76345
76346         * elf/Makefile: Fix linking for a few tests to make recent linker
76347         happy.
76348
76349 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76350
76351         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76352         $(common-objpfx)libc_nonshared.a.
76353
76354 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76355
76356         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76357         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76358         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76359         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76360         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76361         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76362         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76363         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76378         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76379         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76380         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76381         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76382         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76383         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76384         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76385         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76386         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76387         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76388         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76389         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76404
76405 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76406
76407         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76408         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76409         * string/memmove.c (memmove): Renamed to ...
76410         (MEMMOVE): ...this.  Default to memmove.
76411         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76412         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76413         (END_CHK): Define.
76414         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76415         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76416         mempcpy-ssse3-back memmove-ssse3-back.
76417         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76418         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76419         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76420         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76421         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76422         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76423         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76424         * sysdeps/x86_64/multiarch/memmove.c: New file.
76425         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76426         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76427         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76428         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76429         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76430         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76431         Define.
76432         (index_Fast_Copy_Backward): Define.
76433         (HAS_ARCH_FEATURE): Define.
76434         (HAS_FAST_REP_STRING): Define.
76435         (HAS_FAST_COPY_BACKWARD): Define.
76436
76437 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76438
76439         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76440         Restore proper fallback handling.
76441
76442 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76443
76444         [BZ #11701]
76445         * posix/group_member.c (__group_member): Correct checking loop.
76446
76447         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76448         OOM in getpwuid_r correctly.  Return error number when the caller
76449         should return, otherwise -1.
76450         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76451         call returning > 0 value.
76452         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76453
76454 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76455
76456         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76457         libc_nonshared.a from targets in modules-names.
76458
76459 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76460
76461         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76462         requires it.
76463
76464 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76465
76466         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76467         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76468         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76469         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76470
76471 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76472
76473         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76474
76475 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76476
76477         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76478         and F_GETPIPE_SZ.
76479         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76480         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76481         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76482         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76483         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76484         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76485
76486 2010-06-14  Roland McGrath  <roland@redhat.com>
76487
76488         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76489
76490 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76491
76492         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76493         __REDIRECT followed by __THROW.
76494         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76495         * posix/getopt.h (getopt): Likewise.
76496
76497 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76498
76499         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76500         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76501         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76502         in AT_FLAGS.
76503         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76504         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76505
76506 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76507
76508         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76509
76510 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76511
76512         [BZ #11640]
76513         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76514         Properly check family and model.
76515
76516 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76517
76518         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76519
76520 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76521
76522         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76523
76524 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76525
76526         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76527         symbol reference.
76528
76529 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76530
76531         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76532         symbol reference.
76533
76534 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76535
76536         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76537         and internal_recvmmsg.
76538         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76539         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76540         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76541         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76542
76543         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76544         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76545         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76546
76547 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76548
76549         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76550
76551 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76552
76553         POWER7 optimizations.
76554         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76555         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76556
76557 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76558
76559         * version.h: Update for 2.13 development version.
76560
76561 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76562
76563         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76564         exceptions.  Return 0.
76565
76566 2010-05-07  Roland McGrath  <roland@redhat.com>
76567
76568         * elf/ldconfig.c (main): Add a const.
76569
76570 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76571
76572         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76573         (args_options): Add no-idn option.
76574         (ahosts_keys_int): Add idn_flags to ai_flags.
76575         (parse_option): Handle 'i' option to clear idn_flags.
76576
76577         * malloc/malloc.c (_int_free): Possible race in the most recently
76578         added check.  Only act on the data if no current modification
76579         happened.
76580
76581 See ChangeLog.17 for earlier changes.